Browse Source

Updated waybar config

master
chodak166 5 days ago
parent
commit
03d799581b
  1. 54
      .config/waybar/config.jsonc
  2. 64
      .config/waybar/style.css

54
.config/waybar/config.jsonc

@ -6,52 +6,20 @@
"modules-left": [ "modules-left": [
"sway/workspaces", "sway/workspaces",
"custom/right-arrow-dark" "sway/window"
],
"modules-center": [
"custom/left-arrow-dark",
"sway/window",
"custom/right-arrow-dark"
], ],
"modules-center": [],
"modules-right": [ "modules-right": [
"custom/left-arrow-dark",
"pulseaudio", "pulseaudio",
"custom/left-arrow-light", "custom/network",
"custom/left-arrow-dark", "custom/disk",
"custom/network",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"custom/disk",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"memory", "memory",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"custom/top", "custom/top",
"custom/left-arrow-light", "battery",
"custom/left-arrow-dark",
"battery",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"clock#0", "clock#0",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"tray" "tray"
], ],
"custom/left-arrow-dark": {
"format": "<span size='x-large' rise='-1500'></span>",
"tooltip": false
},
"custom/left-arrow-light": {
"format": "<span size='x-large' rise='-1500'></span>",
"tooltip": false
},
"custom/right-arrow-dark": {
"format": "<span size='x-large' rise='-1500'></span>",
"tooltip": false
},
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"format": "{name}" "format": "{name}"
@ -69,14 +37,6 @@
"tooltip": true "tooltip": true
}, },
"clock#2": {
"format": "{:%H:%M}",
"tooltip": false
},
"clock#3": {
"format": "{:%d/%m}",
"tooltip": false
},
"clock#0": { "clock#0": {
"format": "{:%H:%M %d/%m/%y}", "format": "{:%H:%M %d/%m/%y}",
"tooltip": false "tooltip": false
@ -84,7 +44,7 @@
"pulseaudio": { "pulseaudio": {
"format": "<span size='x-large' rise='-1500'>{icon}</span> {volume:2}%", "format": "<span size='x-large' rise='-1500'>{icon}</span> {volume:2}%",
"format-bluetooth": "<span size='x-large' rise='-1500'>{icon}</span> {volume}%", "format-bluetooth": "<span size='x-large' rise='-1500'>{icon}</span> {volume}%",
"format-muted": "MUTE", "format-muted": "MUTE",
"format-icons": { "format-icons": {
"headphones": "", "headphones": "",
@ -99,7 +59,7 @@
}, },
"memory": { "memory": {
"interval": 5, "interval": 5,
"format": "<span size='x-large' rise='-1500'></span> {}%" "format": "<span size='x-large' rise='-1500'></span> {}%"
}, },
"custom/top": { "custom/top": {
"exec": "~/.config/waybar/top.sh", "exec": "~/.config/waybar/top.sh",

64
.config/waybar/style.css

@ -1,6 +1,6 @@
* { * {
font-size: 13px; font-size: 13px;
font-family: monospace; font-family: JetBrainsMono NFP;
} }
window#waybar { window#waybar {
@ -8,21 +8,10 @@ window#waybar {
color: #fbf1c7; color: #fbf1c7;
} }
#custom-right-arrow-dark, /* All widgets share a stylized rounded background */
#custom-left-arrow-dark {
color: #1d2021;
}
#custom-right-arrow-light,
#custom-left-arrow-light {
color: #282828;
background: #1d2021;
}
#workspaces, #workspaces,
#window, #window,
#clock.0, #clock,
#clock.2,
#clock.3,
#pulseaudio, #pulseaudio,
#memory, #memory,
#custom-top, #custom-top,
@ -31,47 +20,30 @@ window#waybar {
#custom-network, #custom-network,
#tray { #tray {
background: #1d2021; background: #1d2021;
border-radius: 6px;
margin: 4px 3px;
padding: 0 10px;
color: #f5d67b;
}
#tray {
padding: 0 6px;
} }
/* Workspaces: dimmed inactive, bold yellow active */
#workspaces button { #workspaces button {
padding: 0 2px; padding: 0 6px;
color: #a89984; color: #a89984;
background: transparent;
border-radius: 4px;
} }
#workspaces button.focused { #workspaces button.focused {
color: #fabd2f; color: #f5d67b;
background: transparent;
font-weight: bold; font-weight: bold;
/* border-bottom: 2px solid #fabd2f; */
} }
#workspaces button:hover { #workspaces button:hover {
box-shadow: inherit; box-shadow: inherit;
text-shadow: inherit; text-shadow: inherit;
} background: #32302f;
#workspaces button:hover {
background: #1d2021;
border: #1d2021;
padding: 0 3px;
}
/* Right-side widgets: lighter sandy yellow */
#window,
#clock,
#pulseaudio,
#memory,
#custom-top,
#battery,
#custom-disk,
#custom-network,
#tray {
color: #f5d67b;
}
#window,
#clock,
#pulseaudio,
#memory,
#custom-top,
#battery,
#custom-disk,
#custom-network {
padding: 0 10px;
} }

Loading…
Cancel
Save