Manipulate waybar a bit more to reach parity with my old polybar setup

This commit is contained in:
Salt 2024-02-15 03:48:54 -06:00
parent 737dd52eaf
commit 188486ff0c
3 changed files with 15 additions and 5 deletions

View File

@ -36,8 +36,8 @@ workspace $w9 output $monsec
## WINDOW RULES ## WINDOW RULES
for_window { for_window {
[app_id="org.mozilla.firefox"] move container to workspace $w1 [app_id="org.mozilla.firefox"] move container to workspace $w1
[app_id="org.keepassxc.KeePassXC"] move container to workspace $w7 [app_id="org.mozilla.Thunderbird"] move container to workspace $w7
[app_id="org.mozilla.Thunderbird"] move container to workspace $w8 [app_id="org.keepassxc.KeePassXC"] move container to workspace $w8
[app_id="com.discordapp.Discord"] move container to workspace $w9 [app_id="com.discordapp.Discord"] move container to workspace $w9
[app_id="com.discordapp.Discord"] inhibit_idle visible [app_id="com.discordapp.Discord"] inhibit_idle visible
[class="Element"] move container to workspace $w9 [class="Element"] move container to workspace $w9

View File

@ -2,8 +2,8 @@
"layer": "top", "layer": "top",
"height": 40, "height": 40,
"modules-left": ["sway/workspaces", "sway/mode"], "modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["tray"], "modules-center": ["clock"],
"modules-right": ["mpris", "idle_inhibitor", "pulseaudio", "battery", "clock"], "modules-right": ["mpris", "idle_inhibitor", "pulseaudio", "backlight", "battery", "tray"],
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"persistent_workspaces": { "persistent_workspaces": {
@ -46,6 +46,10 @@
"format-plugged": "{icon} {capacity}%", "format-plugged": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["", ""]
},
"mpris": { "mpris": {
"interval": 1, "interval": 1,
"format": "{player_icon}", "format": "{player_icon}",

View File

@ -48,6 +48,9 @@ window#waybar {
padding: 0 1em; padding: 0 1em;
color: #ebdbb2; color: #ebdbb2;
} }
#tray {
padding: 0 1em;
}
#mpris { #mpris {
padding: 0 1em; padding: 0 1em;
} }
@ -69,6 +72,10 @@ window#waybar {
#idle_inhibitor.activated { #idle_inhibitor.activated {
background: #fb4934; background: #fb4934;
} }
#backlight {
padding: 0 1em;
color: #fabd2f;
}
#battery { #battery {
padding: 0 1em; padding: 0 1em;
} }
@ -85,7 +92,6 @@ window#waybar {
color: #fb4934; color: #fb4934;
} }
#clock { #clock {
border-left: 1px solid #32302f;
color: #ebdbb2; color: #ebdbb2;
padding: 0 1em; padding: 0 1em;
} }