My Nix Infra
nix nixos
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

correct usage of swayidle + hyprlock, use systemctl sleep

ydcjeff 4b324998 ab59a894

+9 -10
+2 -2
bin/ez-cmd-palette
··· 9 9 10 10 options=( 11 11 $'\uf023 Lock' 12 - $'\uf186 Suspend' 12 + $'\uf186 Sleep' 13 13 $'\uf08b Logout' 14 14 $'\uf021 Reboot' 15 15 $'\uf011 Shutdown' ··· 23 23 24 24 case $(menu "${options[@]}" | tr '[:upper:]' '[:lower:]') in 25 25 *lock*) loginctl lock-session ;; 26 - *suspend*) systemctl suspend ;; 26 + *sleep*) systemctl sleep ;; 27 27 *logout*) loginctl terminate-session "$XDG_SESSION_ID" ;; 28 28 *reboot*) systemctl reboot ;; 29 29 *shutdown*) systemctl poweroff ;;
+7 -8
config/niri/config.kdl
··· 144 144 145 145 spawn-sh-at-startup "swaybg -m fill -i $(ls -d ~/.dotfiles/wallpapers/* | shuf | head -n 1)" 146 146 spawn-at-startup "swayidle" "-w" \ 147 - "timeout" "290" "'notify-send -u critical \"Locking in 10s...\" -t 10000'" \ 148 - "timeout" "300" "'loginctl lock-session'" \ 149 - "timeout" "330" "'niri msg action power-off-monitors'" \ 150 - "timeout" "1800" "'systemctl suspend'" \ 151 - "resume" "'niri msg action power-on-monitors'" \ 152 - "before-sleep" "'loginctl lock-session; niri msg action power-off-monitors'" \ 153 - "after-resume" "'niri msg action power-on-monitors'" \ 154 - "lock" "'pidof hyprlock || hyprlock'" 147 + "timeout" "290" "notify-send -u critical 'Locking in 10s...' -t 10000" \ 148 + "timeout" "300" "pidof hyprlock || loginctl lock-session" \ 149 + "timeout" "330" "niri msg action power-off-monitors" "resume" "niri msg action power-on-monitors" \ 150 + "timeout" "1800" "systemctl sleep" "resume" "niri msg action power-on-monitors" \ 151 + "before-sleep" "(pidof hyprlock || loginctl lock-session); niri msg action power-off-monitors" \ 152 + "after-resume" "niri msg action power-on-monitors" \ 153 + "lock" "pidof hyprlock || hyprlock &" 155 154 156 155 binds { 157 156 // Mod-Shift-/, which is usually the same as Mod-?, shows a list of important hotkeys.