fixed hypridle config

This commit is contained in:
Joel Mathew Thomas
2024-06-13 15:58:11 +05:30
parent 86bb9d2d50
commit 50ed0a6042
4 changed files with 30 additions and 37 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

+28 -35
View File
@@ -1,41 +1,34 @@
# _ _ _ _
# | |__ _ _ _ __ _ __(_) __| | | ___
# | '_ \| | | | '_ \| '__| |/ _` | |/ _ \
# | | | | |_| | |_) | | | | (_| | | __/
# |_| |_|\__, | .__/|_| |_|\__,_|_|\___|
# |___/|_|
#
general {
ignore_dbus_inhibit = false
}
# Screenlock
listener {
# HYPRLOCK TIMEOUT
timeout = 180
# HYPRLOCK ONTIMEOUT
on-timeout = hyprlock
}
# screen brightness
listener {
timeout = 240
on-timeout = brightnessctl -s set 10
on-resume = brightnessctl -r
}
# dpms
listener {
# DPMS TIMEOUT
timeout = 300
# DPMS ONTIMEOUT
on-timeout = hyprctl dispatch dpms off
# DPMS ONRESUME
on-resume = hyprctl dispatch dpms on
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 600
timeout = 300 # 5min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore.
}
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
#listener {
# timeout = 2 # 2.5min.
# on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
#}
listener {
timeout = 180 # 3min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 320 # 5.2min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}
listener {
timeout = 1800 # 30min
on-timeout = systemctl suspend # suspend pc
}
+1 -1
View File
@@ -190,7 +190,7 @@ bind = $mainMod, F, fullscreen, 1
bind = $mainMod SHIFT, F, fullscreen, 0
bind = $mainMod CTRL, F, fakefullscreen
bind = $mainMod, L, exec, hyprlock
bind = CTRL ALT, S , exec, systemctl suspend; hyprlock
bind = CTRL ALT, S , exec, systemctl suspend
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, A, workspace, 1
+1 -1
View File
@@ -143,7 +143,7 @@
"custom/sleep": {
"format": " 󰤄 ",
"tooltip": false,
"on-triple-click": "systemctl suspend; hyprlock"
"on-triple-click": "systemctl suspend"
},
"custom/reboot": {
"format": "  ",