diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 5c8f95a..8ff2b58 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -278,7 +278,9 @@ binds { Mod+Alt+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } Mod+Shift+Escape hotkey-overlay-title="Exit niri" { quit; } Super+Escape hotkey-overlay-title="Lock the Screen (gtklock)" { spawn "gtklock" "-d"; } - Mod+Delete hotkey-overlay-title="Lock screen and Hibernate ..." allow-when-locked=true { spawn "~/.niri-dotfiles/bin/lock-hibernate.sh"; } + Mod+Delete hotkey-overlay-title="Lock screen and Hibernate ..." allow-when-locked=true { + spawn-sh "(pgrep gtklock || gtklock -d) && sleep 1 && systemctl hibernate"; + } XF86AudioRaiseVolume hotkey-overlay-title=null allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.01+"; } XF86AudioLowerVolume hotkey-overlay-title=null allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.01-"; } @@ -467,8 +469,8 @@ binds { // Mod+Space { switch-layout "next"; } // Mod+Shift+Space { switch-layout "prev"; } - Print hotkey-overlay-title=null { screenshot; } - Ctrl+Print { screenshot-screen; } + Print hotkey-overlay-title=null { screenshot-screen; } + Mod+Shift+S { screenshot; } Alt+Print { screenshot-window; } // Powers off the monitors. To turn them back on, do any input like diff --git a/bin/lock-hibernate.sh b/bin/lock-hibernate.sh deleted file mode 100755 index 972cacf..0000000 --- a/bin/lock-hibernate.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -pgrep gtklock || gtklock -d -sleep 1 -systemctl hibernate