summaryrefslogtreecommitdiff
path: root/dot-config/waybar/modules.jsonc
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-11-23 00:56:09 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-11-23 00:56:09 +0800
commitcca6c4807e15af4ef15a767a43dfdc4eeae371c0 (patch)
treeba50079ba7b437f17a4e14a76640c902f59010d8 /dot-config/waybar/modules.jsonc
parentce6abe372c2bf25d642bee67042722010e70d44f (diff)
add(waybar, modules): dpms module
Diffstat (limited to 'dot-config/waybar/modules.jsonc')
-rw-r--r--dot-config/waybar/modules.jsonc30
1 files changed, 18 insertions, 12 deletions
diff --git a/dot-config/waybar/modules.jsonc b/dot-config/waybar/modules.jsonc
index 7a8e3de0..b0e6dd79 100644
--- a/dot-config/waybar/modules.jsonc
+++ b/dot-config/waybar/modules.jsonc
@@ -262,6 +262,18 @@
"modules": ["clock", "group/small-utils"],
"drawer": {}
},
+ "custom/dpms": {
+ "format": "󰶐",
+ "tooltip": false,
+ "on-click": "notify-send -e 'Hyprland' 'Click again to Turn off monitor'",
+ "on-double-click": "hyprctl dispatch dpms off"
+ },
+ "custom/lock": {
+ "format": "󰍁",
+ "tooltip": false,
+ "on-click": "notify-send -e 'Hyprland' 'Click again to Lock'",
+ "on-double-click": "loginctl lock-session"
+ },
"custom/quit": {
"format": "󰗼",
"tooltip": false,
@@ -274,11 +286,11 @@
"on-click": "notify-send -e 'Hyprland' 'Click again to Suspend'",
"on-double-click": "systemctl suspend"
},
- "custom/lock": {
- "format": "󰍁",
+ "custom/shutdown": {
+ "format": "",
"tooltip": false,
- "on-click": "notify-send -e 'Hyprland' 'Click again to Lock'",
- "on-double-click": "loginctl lock-session"
+ "on-click": "notify-send -e 'Hyprland' 'Click again to Shutdown'",
+ "on-double-click": "shutdown now"
},
"custom/reboot": {
"format": "󰜉",
@@ -286,12 +298,6 @@
"on-click": "notify-send -e 'Hyprland' 'Click again to Reboot'",
"on-double-click": "reboot"
},
- "custom/shutdown": {
- "format": "",
- "tooltip": false,
- "on-click": "notify-send -e 'Hyprland' 'Click again to Shutdown'",
- "on-double-click": "shutdown now"
- },
"group/power": {
"orientation": "inherit",
"drawer": {
@@ -300,9 +306,9 @@
},
"modules": [
"custom/shutdown",
- "custom/quit",
- "custom/suspend",
+ "custom/dpms",
"custom/lock",
+ "custom/suspend",
"custom/reboot",
]
},