diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-11-23 00:56:09 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-11-23 00:56:09 +0800 |
| commit | cca6c4807e15af4ef15a767a43dfdc4eeae371c0 (patch) | |
| tree | ba50079ba7b437f17a4e14a76640c902f59010d8 | |
| parent | ce6abe372c2bf25d642bee67042722010e70d44f (diff) | |
add(waybar, modules): dpms module
| -rw-r--r-- | dot-config/waybar/modules.jsonc | 30 | ||||
| -rw-r--r-- | dot-config/waybar/style.css | 6 |
2 files changed, 23 insertions, 13 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", ] }, diff --git a/dot-config/waybar/style.css b/dot-config/waybar/style.css index 8c5bece4..34c1a1c4 100644 --- a/dot-config/waybar/style.css +++ b/dot-config/waybar/style.css @@ -145,7 +145,11 @@ tooltip { padding-left: 17px; } -#custom-quit, #custom-lock, #custom-suspend, #custom-reboot { +#custom-dpms { + padding-right: 22px; +} + +#custom-quit, #custom-lock, #custom-suspend, #custom-reboot, #custom-dpms { color: @YELLOW; } |
