added swaync and hyprsunset modules to waybar
This commit is contained in:
@@ -21,11 +21,13 @@
|
|||||||
|
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"idle_inhibitor",
|
"idle_inhibitor",
|
||||||
|
"custom/hyprsunset",
|
||||||
"gamemode",
|
"gamemode",
|
||||||
"privacy",
|
"privacy",
|
||||||
"wireplumber#source",
|
"wireplumber#source",
|
||||||
"wireplumber#sink",
|
"wireplumber#sink",
|
||||||
"tray",
|
"tray",
|
||||||
|
"custom/swaync",
|
||||||
"clock"
|
"clock"
|
||||||
],
|
],
|
||||||
|
|
||||||
@@ -140,5 +142,28 @@
|
|||||||
"on-scroll-up": "shift_up",
|
"on-scroll-up": "shift_up",
|
||||||
"on-scroll-down": "shift_down"
|
"on-scroll-down": "shift_down"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/swaync": {
|
||||||
|
"format": " {}",
|
||||||
|
"exec-if": "which swaync-client >/dev/null 2>&1 && pgrep -x swaync >/dev/null 2>&1",
|
||||||
|
"exec": "swaync-client -c",
|
||||||
|
"interval": 2,
|
||||||
|
"on-click": "swaync-client -t -sw",
|
||||||
|
"on-click-right": "swaync-client -d",
|
||||||
|
"on-click-middle": "swaync-client -C"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/hyprsunset": {
|
||||||
|
"format": "SUN",
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "Hyprsunset controls: Left=Enable, Right=Disable, Scroll=Gamma ±10%",
|
||||||
|
|
||||||
|
"on-click": "hyprctl hyprsunset temperature 2500", // enable warm tint
|
||||||
|
"on-click-right": "hyprctl hyprsunset identity", // disable (neutral)
|
||||||
|
"on-scroll-up": "hyprctl hyprsunset gamma +10", // brighter
|
||||||
|
"on-scroll-down": "hyprctl hyprsunset gamma -10", // dimmer
|
||||||
|
|
||||||
|
"interval": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -174,3 +174,35 @@ window#waybar {
|
|||||||
.modules-right > *:not(:last-child) {
|
.modules-right > *:not(:last-child) {
|
||||||
border-bottom: 1px solid #21202e; /* highlight-low */
|
border-bottom: 1px solid #21202e; /* highlight-low */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* SwayNC widget */
|
||||||
|
#custom-swaync {
|
||||||
|
background: #1f1d2e; /* surface */
|
||||||
|
color: #e0def4; /* text */
|
||||||
|
margin: 3px 6px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #21202e; /* highlight-low */
|
||||||
|
padding: 6px 8px;
|
||||||
|
border-left: 3px solid #c4a7e7; /* iris */
|
||||||
|
}
|
||||||
|
#custom-swaync.dnd {
|
||||||
|
/* if swaync emits a 'dnd' class */
|
||||||
|
border-left-color: #f6c177; /* gold */
|
||||||
|
}
|
||||||
|
#custom-swaync:hover {
|
||||||
|
background: #26233a; /* overlay */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hyprsunset widget */
|
||||||
|
#custom-hyprsunset {
|
||||||
|
background: #1f1d2e; /* surface */
|
||||||
|
color: #e0def4; /* text */
|
||||||
|
margin: 3px 6px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #21202e; /* highlight-low */
|
||||||
|
padding: 6px 8px;
|
||||||
|
border-left: 3px solid #ea9a97; /* rose */
|
||||||
|
}
|
||||||
|
#custom-hyprsunset:hover {
|
||||||
|
background: #26233a; /* overlay */
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user