gammastep waybar

This commit is contained in:
John Mertz 2022-08-25 23:06:16 -06:00
parent 36bef7ca21
commit 36b36b4fee
2 changed files with 24 additions and 8 deletions

View File

@ -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,

View File

@ -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 {