Commit 9e81159
Changed files (3)
.config
hypr
waybar
.config/hypr/hypridle.conf
@@ -1,21 +1,17 @@
general {
- lock_cmd = pidof hyprlock || hyprlock
- before_sleep_cmd = loginctl lock-session
- after_sleep_cmd = hyprctl dispatch dpms on
+ lock_cmd = pidof hyprlock || hyprlock &
+ 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.
+ inhibit_sleep = 3 # wait until screen is locked
}
-#listener {
-# timeout = 10
-# on-timeout = loginctl lock-session
-#}
-
listener {
- timeout = 600
- on-timeout = hyprctl dispatch dpms off
- on-resume = hyprctl dispatch dpms on
+ timeout = 300
+ on-timeout = loginctl lock-session
}
listener {
- timeout = 700
- on-timeout = systemctl suspend
-}
+ timeout = 330
+ on-timeout = hyprctl dispatch dpms off
+ on-resume = hyprctl dispatch dpms on && brightnessctl -r
+}
\ No newline at end of file
.config/waybar/config.jsonc
@@ -20,8 +20,7 @@
"format-icons": {
"1": "",
"2": "",
- "3": "",
- "music": ""
+ "3": ""
},
"persistent-workspaces": {
"*": ["1", "2", "3"]
@@ -33,7 +32,8 @@
"show-special": true,
"format": "{icon}",
"format-icons": {
- "music": ""
+ "music": "",
+ "temp":""
},
"ignore-workspaces": ["^([0-9]|10)$"]
},
@@ -70,8 +70,9 @@
"menu": "on-click",
"menu-file": "~/.config/waybar/power_menu.xml",
"menu-actions": {
- "shutdown": "shutdown",
- "reboot": "reboot",
+ "shutdown": "systemctl poweroff --no-wall",
+ "reboot": "systemctl reboot --no-wall",
+ "lock": "hyprlock",
"suspend": "systemctl suspend"
}
},