Add Waybar configuration
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
09dc3f3a84
commit
f8c131b5f3
2 changed files with 130 additions and 0 deletions
81
system/.config/waybar/config
Normal file
81
system/.config/waybar/config
Normal file
|
@ -0,0 +1,81 @@
|
|||
[{
|
||||
"layer": "bottom<",
|
||||
"position": "top",
|
||||
"height": 35,
|
||||
"spacing": 4,
|
||||
"margin": "0 0 10px 0",
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["custom/update", "pulseaudio", "battery", "network", "clock", "custom/power"],
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "",
|
||||
"6": "",
|
||||
"7": "",
|
||||
"8": "",
|
||||
"9": "",
|
||||
"10": "ﱘ",
|
||||
}
|
||||
},
|
||||
"custom/update": {
|
||||
"format": "累 {}",
|
||||
"exec": "update-count",
|
||||
"interval": 60,
|
||||
"tooltip": false,
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"speaker": "墳",
|
||||
"default": ["奄", "奔", "墳"]
|
||||
},
|
||||
"tooltip": false,
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"tooltip": false,
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": "直 {essid}",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"tooltip": false,
|
||||
},
|
||||
"clock": {
|
||||
"format": " {:%F %H:%M:%S}",
|
||||
"tooltip": false,
|
||||
"on-click": "xdg-open https://www.kaderli.dev",
|
||||
},
|
||||
"custom/power": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "$XDG_BIN_HOME/power",
|
||||
}
|
||||
},
|
||||
{
|
||||
"layer": "bottom",
|
||||
"position": "bottom",
|
||||
"height": 35,
|
||||
"spacing": 4,
|
||||
"margin": "10px 0 0 0",
|
||||
"modules-left": ["tray"],
|
||||
"modules-center": [],
|
||||
"modules-right": [],
|
||||
"tray": {
|
||||
"spacing": 10,
|
||||
}
|
||||
}
|
||||
]
|
49
system/.config/waybar/style.css
Normal file
49
system/.config/waybar/style.css
Normal file
|
@ -0,0 +1,49 @@
|
|||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: "Iosevka Nerd Font", sans-serif;
|
||||
font-size: 14px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#waybar {
|
||||
background-color: #18161d;
|
||||
color: #A4A0AC;
|
||||
}
|
||||
|
||||
#tray,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#clock,
|
||||
#battery,
|
||||
#custom-update,
|
||||
#custom-power {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
#tray:hover,
|
||||
#network:hover,
|
||||
#pulseaudio:hover,
|
||||
#clock:hover,
|
||||
#battery:hover,
|
||||
#custom-update:hover,
|
||||
#custom-power:hover {
|
||||
background-color: #A4A0AC;
|
||||
color: #18161d;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
background-color: #18161d;
|
||||
color: #A4A0AC;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background-color: #A4A0AC;
|
||||
color: #18161d;
|
||||
}
|
||||
|
||||
#workspaces button.focused.current_output {
|
||||
background-color: #A4A0AC;
|
||||
color: #18161d;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue