mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-27 10:26:58 +02:00
feat: replace waybar/mako/anyrun/wlogout/swaylock with noctolia-shell, remove hyprland (#240)
This commit is contained in:
9
home/linux/gui/base/desktop/hypridle/default.nix
Normal file
9
home/linux/gui/base/desktop/hypridle/default.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
xdg.configFile."hypr/hypridle.conf".source = ./hypridle.conf;
|
||||
|
||||
# Hyprland idle daemon
|
||||
services.hypridle.enable = true;
|
||||
}
|
||||
35
home/linux/gui/base/desktop/hypridle/hypridle.conf
Normal file
35
home/linux/gui/base/desktop/hypridle/hypridle.conf
Normal file
@@ -0,0 +1,35 @@
|
||||
general {
|
||||
lock_cmd = noctalia-shell ipc call lockScreen lock # avoid starting multiple instances
|
||||
before_sleep_cmd = loginctl lock-session # lock before suspend
|
||||
# after_sleep_cmd = hyprctl dispatch dpms on # resume dpms after suspend
|
||||
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 180 # 3 minutes
|
||||
# List devices: brightnessctl --list
|
||||
# Adjust keyboard backlight: brightnessctl -d kbd_backlight set 50%
|
||||
on-timeout = brightnessctl --save --device=kbd_backlight set 0 # turn off keyboard backlight.
|
||||
on-resume = brightnessctl --restore --device=kbd_backlight # turn on keyboard backlight.
|
||||
}
|
||||
|
||||
# listener {
|
||||
# timeout = 600 # 10min.
|
||||
# on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||
# on-resume = brightnessctl -r # monitor backlight restore.
|
||||
# }
|
||||
|
||||
listener {
|
||||
timeout = 1200 # 20 minutes
|
||||
on-timeout = noctalia-shell ipc call lockScreen lock # lock screen
|
||||
}
|
||||
|
||||
# listener {
|
||||
# timeout = 1660 # 31 minutes
|
||||
# on-resume = brightnessctl -r # monitor wake up & screen on
|
||||
# }
|
||||
|
||||
# listener {
|
||||
# timeout = 1800 # 30min
|
||||
# on-timeout = systemctl suspend # suspend pc
|
||||
# }
|
||||
Reference in New Issue
Block a user