X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/93f6bf1a710ba5300378b66e68a64e2c467f8c9b..6bda705df3bcb5acc88cb844b7ea220de5d75cd8:/rc.org?ds=inline diff --git a/rc.org b/rc.org index 943103e..2be067f 100644 --- a/rc.org +++ b/rc.org @@ -3768,12 +3768,6 @@ insert_pass="Alt+n" :END: #+begin_src conf -exec xrdb .Xresources -exec dunst -exec pgrep -x "systemd-inhibit" || \ - systemd-inhibit --what=handle-power-key --who=aminb \ - --why="Handle power button in sway" sleep infinity - ### Variables # super set $mod Mod4 @@ -3987,6 +3981,33 @@ mode "$mode_system" { } bindsym XF86PowerOff mode "$mode_system" +# +# Notifications +# + +bindsym $mod+Shift+n mode notifications +mode notifications { + bindsym Return exec makoctl invoke; exec makoctl dismiss; mode default + bindsym d exec makoctl dismiss; mode default + bindsym Shift+d exec makoctl dismiss -a; mode default + + bindsym Escape mode default + bindsym q mode default +} + +# +# Screenshotting +# + +bindsym $mod+Shift+s mode screenshot +mode screenshot { + bindsym a exec grim $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default + bindsym r exec slurp | grim -g - $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default + + bindsym Escape mode default + bindsym q mode default +} + # # Status Bar: # @@ -4007,9 +4028,18 @@ bar { font pango: DejaVu Sans Mono 9 # font pango: Liberation Mono 9 +exec xrdb .Xresources +exec pgrep -x "systemd-inhibit" || \ + systemd-inhibit --what=handle-power-key --who=aminb \ + --why="Handle power button in sway" sleep infinity +exec mako 2>&1 >/tmp/mako.log +exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 + include /etc/sway/config.d/* include ~/.config/sway/`hostname` +exec systemd-notify --ready || true + #+end_src *** langa @@ -4380,9 +4410,9 @@ DEVICES_TO_DISABLE_ON_STARTUP="bluetooth" #DEVICES_TO_DISABLE_ON_UNDOCK="" #+end_src -*** pary +*** shemshak -#+begin_src conf :tangle (when (and (eq system-type 'gnu/linux) (string= (system-name) "pary")) "/sudo::/etc/default/tlp") +#+begin_src conf :tangle (when (and (eq system-type 'gnu/linux) (string= (system-name) "shemshak")) "/sudo::/etc/default/tlp") # ------------------------------------------------------------------------------ # tlp - Parameters for power saving # See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html @@ -5348,7 +5378,7 @@ alias mv="mv -iv" alias cp="cp -iv" alias scl=systemctl alias jcl=journalctl -alias m="mbsync -Va; getmail; notmuch new" +alias m="mbsync -a; getmail; notmuch new" alias best="youtube-dl -f best" alias nixx="ssh amin@nix.aminb.org" alias fence="ssh aminb@fencepost.gnu.org" @@ -5420,7 +5450,7 @@ light -S $val #+begin_src bash export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true' -light -Scrs "intel_backlight" 2 +light -Nr 2 source $HOME/.zprofile sway #+end_src