add wl-gammerlay-rs config

This commit is contained in:
Simon Rieger 2023-05-30 20:49:54 +02:00
parent 924990cda8
commit a4b64f16cc
2 changed files with 31 additions and 0 deletions

View file

@ -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"
}
}

View file

@ -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;
}