From a4b64f16cc6bce4729cf352a12bb73bc913b650f Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 30 May 2023 20:49:54 +0200 Subject: [PATCH] add wl-gammerlay-rs config --- dot_config/waybar/config | 25 +++++++++++++++++++++++++ dot_config/waybar/style.css | 6 ++++++ 2 files changed, 31 insertions(+) diff --git a/dot_config/waybar/config b/dot_config/waybar/config index bc13d73..651df0f 100644 --- a/dot_config/waybar/config +++ b/dot_config/waybar/config @@ -21,6 +21,9 @@ "memory", "temperature", "backlight", + "custom/wl-gammarelay-temperature", + "custom/wl-gammarelay-brightness", + "custom/wl-gammarelay-gamma", "keyboard-state", "sway/language", "battery", @@ -210,5 +213,27 @@ "escape": true, "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + }, + "custom/wl-gammarelay-temperature": { + "format": "{} ", + "exec": "wl-gammarelay-rs watch {t}", + "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n +100", + "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -100", + "on-click": "busctl --user set-property rs.wl-gammarelay / rs.wl.gammarelay Temperature q 6500", + "on-click-right": "busctl --user call rs.wl-gammarelay / rs.wl.gammarelay ToggleInverted" + }, + "custom/wl-gammarelay-brightness": { + "format": "{}% ", + "exec": "wl-gammarelay-rs watch {bp}", + "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateBrightness d +0.02", + "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateBrightness d -0.02", + "on-click": "busctl --user set-property rs.wl-gammarelay / rs.wl.gammarelay Brightness d 1" + }, + "custom/wl-gammarelay-gamma": { + "format": "{}% γ", + "exec": "wl-gammarelay-rs watch {g}", + "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateGamma d +0.02", + "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateGamma d -0.02", + "on-click": "busctl --user set-property rs.wl-gammarelay / rs.wl.gammarelay Gamma d 1" } } diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index 7decd8f..8dac1f8 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -87,6 +87,9 @@ button:hover { #mode, #idle_inhibitor, #scratchpad, +#custom-wl-gammarelay-temperature, +#custom-wl-gammarelay-brightness, +#custom-wl-gammarelay-gamma, #mpd { padding: 0 10px; color: #ffffff; @@ -155,6 +158,9 @@ label:focus { background-color: #964B00; } +#custom-wl-gammarelay-temperature, +#custom-wl-gammarelay-brightness, +#custom-wl-gammarelay-gamma, #backlight { background-color: #90b1b1; }