summaryrefslogtreecommitdiffstats
path: root/roles/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'roles/waybar')
-rw-r--r--roles/waybar/templates/waybar/config.jsonc.j214
-rw-r--r--roles/waybar/templates/waybar/style.css.j22
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,