support local config

all devices must define a local waybar config
This commit is contained in:
Peter Cai 2022-03-17 23:09:26 -04:00
parent 8c4aa7a8f4
commit d1e640c06e
3 changed files with 16 additions and 1 deletions

1
sway/.config/waybar/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
local

View file

@ -3,7 +3,9 @@
"position": "bottom",
"modules-left": ["custom/power", "sway/workspaces", "sway/mode"],
"modules-center": [],
"modules-right": ["tray", "network", "pulseaudio", "custom/weather", "clock"],
"include": [
"$HOME/.config/waybar/local"
],
"clock": {
"format": "{:%m/%d %H:%M}"
},

View file

@ -147,3 +147,15 @@ window#waybar.PCSX2 #window {
padding-right: 16px;
border-radius: 26px;
}
#battery {
margin-top: 8px;
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
margin-bottom: 8px;
border-radius: 26px;
transition: none;
color: #4d4d4d;
background: #a3be8c;
}