From 36b36b4feef34dca4811c673c16861371b3d0054 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Thu, 25 Aug 2022 23:06:16 -0600 Subject: [PATCH] gammastep waybar --- waybar/config.template | 8 +++++++- waybar/style.css | 24 +++++++++++++++++------- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/waybar/config.template b/waybar/config.template index a34374568..dd3ec9918 100644 --- a/waybar/config.template +++ b/waybar/config.template @@ -38,7 +38,7 @@ // Choose the order of the modules "modules-left": ["sway/workspaces"], "modules-center": [], - "modules-right": ["custom/weather", "network", "network#wireguard", "cpu", "memory", "custom/disk", "temperature", "backlight", "custom/battery", "pulseaudio","tray", "custom/todo", "custom/osk", "custom/pkg", "custom/bar", "idle_inhibitor", "custom/clock", "custom/power"], + "modules-right": ["custom/weather", "network", "network#wireguard", "cpu", "memory", "custom/disk", "temperature", "backlight", "custom/battery", "pulseaudio","tray", "custom/todo", "custom/osk", "custom/pkg", "custom/bar", "custom/gammastep", "idle_inhibitor", "custom/clock", "custom/power"], // Modules configuration "sway/workspaces": { // "disable-scroll": true, @@ -191,6 +191,12 @@ }, "on-click": "echo {status} > .config/idle_inhibitor" }, + "custom/gammastep": { + "interval": 1, + "return-type": "json", + "exec": "${HOME}/scripts/waybar/waybar-gammastep.sh", + "on-click": "${HOME}/scripts/waybar/waybar-gammastep.sh toggle" + }, "custom/clock": { "interval": 60, "tooltip": true, diff --git a/waybar/style.css b/waybar/style.css index 63fcc5081..85c7889cd 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -66,7 +66,7 @@ window#waybar { /* Tray */ -#tray, #custom-todo, #custom-osk, #custom-pkg, #custom-bar, #idle_inhibitor, #custom-clock, #custom-power { +#tray, #custom-todo, #custom-osk, #custom-pkg, #custom-bar, #custom-gammastep, #idle_inhibitor, #custom-clock, #custom-power { color: @bluehi; } @@ -229,12 +229,6 @@ window#waybar { margin-right: -8px; } -/* Package upgrades */ - -#custom-pkg { - margin-bottom: -3px; -} - /* On-Screen Keyboard */ #custom-osk { @@ -243,6 +237,22 @@ window#waybar { margin-bottom: -15px; } +/* Package upgrades */ + +#custom-pkg { + margin-bottom: -3px; +} + +/* Gammastep */ + +#custom-gammastep.enabled { + color: #fefefe; +} + +#custom-gammastep { + margin-top: -5px; +} + /* Idle Inhibitor */ #idle_inhibitor.activated {