X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/5b09427d4c2fb597f6b54aca5e83f2578e016b96..5bf9d3c9ef096fd2dfa57e5b4ff6fc7680fee2ac:/rc.org diff --git a/rc.org b/rc.org index 7e5b2a1..782f08d 100644 --- a/rc.org +++ b/rc.org @@ -3800,9 +3800,8 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill ### Idle configuration exec swayidle \ - timeout 120 swaylock \ - timeout 180 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ + timeout 120 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ before-sleep swaylock @@ -3971,16 +3970,15 @@ bindsym $mod+Shift+r mode "resize" # # Power button # -set $locker swaylock && sleep 1 set $mode_system System (l)ock, (e)xit sway, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown mode "$mode_system" { - bindsym l exec $locker, mode "default" - bindsym e exec swaymsg exit, mode "default" - bindsym s exec $locker && systemctl suspend, mode "default" - bindsym h exec $locker && systemctl hibernate, mode "default" - bindsym r exec systemctl reboot, mode "default" - bindsym Shift+s exec systemctl poweroff -i, mode "default" + bindsym l exec swaylock, mode "default" + bindsym e exec swaymsg exit, mode "default" + bindsym s exec systemctl suspend, mode "default" + bindsym h exec systemctl hibernate, mode "default" + bindsym r exec systemctl reboot, mode "default" + bindsym Shift+s exec systemctl poweroff -i, mode "default" # back to normal: Enter, Escape, or q bindsym Return mode "default" @@ -4382,9 +4380,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 @@ -5350,7 +5348,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"