made custom wlsunset module for waybar

This commit is contained in:
opal
2023-06-26 20:05:07 -07:00
parent 06031ced64
commit b98cf96dc1
2 changed files with 9 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
"position": "top",
"height": 35,
"modules-left": ["sway/workspaces"],
"modules-center": ["clock", "backlight"],
"modules-center": ["clock", "custom/wlsunset"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray"],
"sway/workspaces": {
"disable-scroll": true,
@@ -22,8 +22,7 @@
"clock": {
"format": "{: %H:%M %A %B %d}",
"tooltip": false,
"on-click": "galendae -c $HOME/.config/galendae-cal/galendae.conf"
"tooltip": false
},
"battery": {
@@ -39,7 +38,11 @@
"format-full": "<span size='large' rise='-1600'></span> Full",
"format-charging": "<span size='large' rise='-1600'></span> {capacity}% "
},
"custom/wlsunset": {
"format": "",
"format-icons": ["", ""],
"on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500"
},
"network": {
"interval": 5,
"format-wifi": "<span size='large' rise='-1000'></span> {essid}",
@@ -62,12 +65,6 @@
// "default": ["", "", " "]
// },
},
"backlight": {
"device": "intel_backlight",
"format": "",
"format-icons": ["", ""],
"on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500"
},
"idle_inhibitor": {
"format": "<span rise='-4000' size='large'>{icon}</span>",
"format-icons": {

View File

@@ -101,7 +101,7 @@ window#waybar {
background: inherit;
}
#backlight {
#custom-wlsunset {
margin:7px 4px 0 4px;
color: #bebebe;
border: none;
@@ -109,7 +109,7 @@ window#waybar {
padding: 0px 0px 5px 0px;
}
#backlight:hover {
#custom-wlsunset:hover {
box-shadow: inherit;
text-shadow: inherit;
background: inherit;