mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
general {
|
|
lock_cmd = swaylocksh & hyprctl switchxkblayout at-translated-set-2-keyboard 0
|
|
before_sleep_cmd = swaylocksh & hyprctl switchxkblayout at-translated-set-2-keyboard 0 # dbus/sysd lock command (loginctl lock-session)
|
|
after_sleep_cmd = swaylocksh & hyprctl switchxkblayout at-translated-set-2-keyboard 0
|
|
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
|
|
}
|
|
|
|
listener {
|
|
timeout = 200
|
|
on-timeout = notify-send -h string:x-canonical-private-synchronous:sys-notify -t 2400 -i face-yawn-symbolic 'Sleep' 'will inhibit soon'
|
|
|
|
}
|
|
`
|
|
listener {
|
|
timeout = 200 # in seconds
|
|
on-timeout = /home/delta/Documents/dotfiles/pkgs/hyprland/scripts/DM/brightness-kbd.sh on-timeout && brightnessctl -s set 10 # command to run when timeout has passed
|
|
on-resume = /home/delta/Documents/dotfiles/pkgs/hyprland/scripts/DM/brightness-kbd.sh on-resume && brightnessctl -r # command to run when activity is detected after timeout has fired.
|
|
}
|
|
|
|
listener {
|
|
timeout = 260 # in seconds
|
|
on-timeout = swaylocksh & hyprctl switchxkblayout at-translated-set-2-keyboard 0 # command to run when timeout has passed
|
|
}
|
|
|
|
listener {
|
|
timeout = 300 # in seconds
|
|
on-timeout = systemctl suspend # command to run when timeout has passed
|
|
} |