diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-20 14:22:13 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-20 14:37:12 +0100 |
| commit | 018fdcb5a16b7a984a38c78d8715f5e05bad3137 (patch) | |
| tree | 9f72971e826bf97c4435ce9261a930cb5f0d00bb /roles/waybar | |
| parent | 37e2f822c37e4ce08b029595c04e692eb197f86e (diff) | |
Add hyprland sunset and hyprpicker with scripts/waybar integration
Diffstat (limited to 'roles/waybar')
| -rw-r--r-- | roles/waybar/templates/waybar/config.jsonc.j2 | 14 | ||||
| -rw-r--r-- | roles/waybar/templates/waybar/style.css.j2 | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/roles/waybar/templates/waybar/config.jsonc.j2 b/roles/waybar/templates/waybar/config.jsonc.j2 index f88c7927..953230cb 100644 --- a/roles/waybar/templates/waybar/config.jsonc.j2 +++ b/roles/waybar/templates/waybar/config.jsonc.j2 @@ -16,6 +16,7 @@ "bluetooth", "pulseaudio", "backlight", + "custom/sunset", "hyprland/language", "keyboard-state", "cpu", @@ -91,6 +92,19 @@ "format": " {shortDescription}", "on-click": "hyprctl switchxkblayout all next" }, + "custom/sunset" : { + "interval": "once", + "tooltip": true, + "return-type": "json", + "format": "{icon}", + "format-icons": { + "on": "", + "off": "" + }, + "exec": "/etc/hypr/scripts/sunset.sh --status", + "on-click": "/etc/hypr/scripts/sunset.sh --toggle", + "signal": 6 + }, "keyboard-state": { {% if waybar_external_kbd_dev_path is defined %} "device-path": "{{ waybar_external_kbd_dev_path }}", diff --git a/roles/waybar/templates/waybar/style.css.j2 b/roles/waybar/templates/waybar/style.css.j2 index ee6f2296..100ab358 100644 --- a/roles/waybar/templates/waybar/style.css.j2 +++ b/roles/waybar/templates/waybar/style.css.j2 @@ -65,6 +65,7 @@ tooltip { #network, #bluetooth, #language, +#custom-sunset, #battery, #cpu, #memory, @@ -82,6 +83,7 @@ tooltip { #network:hover, #bluetooth:hover, #language:hover, +#custom-sunset:hover, #battery:hover, #battery.charging:hover, #battery.plugged:hover, #battery.full:hover, #cpu:hover, |
