Update waybar config to new setup

This commit is contained in:
Vladan Popovic 2021-06-17 09:49:51 +02:00
parent 6b156d7e63
commit 306edf4ad8
2 changed files with 21 additions and 8 deletions

View File

@ -5,7 +5,7 @@
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": [], "modules-center": [],
"modules-right": ["network", "battery", "pulseaudio", "cpu", "temperature", "clock", "tray"], "modules-right": ["network", "battery", "pulseaudio", "backlight", "cpu", "memory", "temperature", "custom/layout", "clock", "tray"],
// Module config // Module config
"sway/mode": { "sway/mode": {
"tooltip": false, "tooltip": false,
@ -45,6 +45,11 @@
// "format-full": "" // "format-full": ""
// "format-icons": ["", "", "", "", "", "", ""] // "format-icons": ["", "", "", "", "", "", ""]
}, },
"backlight": {
"device": "amdgpu_bl0",
"format": "{icon} {percent}%",
"format-icons": ["", ""]
},
"pulseaudio": { "pulseaudio": {
"tooltip": true, "tooltip": true,
"scroll-step": 1, // %, can be a float "scroll-step": 1, // %, can be a float
@ -60,8 +65,8 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
// //
"default": [""] "default": [""]
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
@ -70,13 +75,21 @@
"tooltip": false, "tooltip": false,
"format": " {usage}%" "format": " {usage}%"
}, },
"memory": {
"format": " {}%"
},
"custom/layout": {
"exec": "~/.config/waybar/keyboard-layout.py",
"return-type": "json",
"format": "| <span color='#ef9f33'>{}</span>"
},
"clock": { "clock": {
"tooltip": false, "tooltip": false,
"format": "| {:%d.%m.%Y %H:%M}" "format": "| {:%d.%m.%Y %H:%M}"
}, },
"tray": { "tray": {
"tooltip": false, "tooltip": false,
// "icon-size": 21, "icon-size": 18,
"spacing": 10 "spacing": 5
} }
} }

View File

@ -44,14 +44,14 @@ window#waybar.solo {
#workspaces button { #workspaces button {
padding: 0 5px; padding: 0 5px;
background-color: transparent; background-color: transparent;
border-bottom: 2px solid rgba(100, 114, 125, 0.5); border-bottom: 2px solid rgba(180, 14, 25, 0.5);
color: #999999; color: #999999;
} }
#workspaces button.focused { #workspaces button.focused {
color: #ffffff; color: #ffffff;
background-color: #333333; background-color: #333333;
border-bottom: 2px solid #00ff96; border-bottom: 2px solid #ff9600;
} }
#workspaces button.urgent { #workspaces button.urgent {
@ -72,7 +72,7 @@ window#waybar.solo {
padding: 0 5px; padding: 0 5px;
margin: 0 4px; margin: 0 4px;
background-color: transparent; background-color: transparent;
border-bottom: 2px solid #00ff96; border-bottom: 2px solid #bdbd45;
color: #ffffff; color: #ffffff;
} }