summaryrefslogtreecommitdiff
path: root/dot-config/waybar
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-10-08 23:33:03 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-10-08 23:33:03 +0800
commitd73cb0cf3c10e2ba229010eb2d4353f19c7917d7 (patch)
treee5ce035017dcda68df50d8e70f275e25d3b847e8 /dot-config/waybar
parent4b7e9822dd1cf19dacb3daeee669d2b1f455bcfe (diff)
add(waybar,modules): added suspend/sleep module
Diffstat (limited to 'dot-config/waybar')
-rw-r--r--dot-config/waybar/modules.jsonc7
1 files changed, 7 insertions, 0 deletions
diff --git a/dot-config/waybar/modules.jsonc b/dot-config/waybar/modules.jsonc
index 9fd52d46..f27d3f38 100644
--- a/dot-config/waybar/modules.jsonc
+++ b/dot-config/waybar/modules.jsonc
@@ -255,6 +255,12 @@
"on-click": "notify-send 'Hyprland' 'Click again to Exit'",
"on-double-click": "hyprctl dispatch exit"
},
+ "custom/suspend": {
+ "format": "󰤄",
+ "tooltip": false,
+ "on-click": "notify-send 'Hyprland' 'Click again to Suspend'",
+ "on-double-click": "systemctl suspend"
+ },
"custom/lock": {
"format": "󰍁",
"tooltip": false,
@@ -282,6 +288,7 @@
"modules": [
"custom/shutdown",
"custom/quit",
+ "custom/suspend",
"custom/lock",
"custom/reboot",
]