Commit 9e81159

Ansari <ping@ansari.wtf>
2025-12-19 13:34:55
Update hypridle and waybar configurations; add lock option to power menu and adjust timeout settings
1 parent a123d3d
Changed files (3)
.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"
     }
   },
.config/waybar/power_menu.xml
@@ -1,6 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
     <object class="GtkMenu" id="menu">
+        <child>
+            <object class="GtkMenuItem" id="lock">
+                <property name="label">Lock</property>
+            </object>
+        </child>
         <child>
             <object class="GtkMenuItem" id="suspend">
                 <property name="label">Suspend</property>