Skip to content

Commit 76a4511

Browse files
committed
[waybar] improve workspaces style
1 parent a90af06 commit 76a4511

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

waybar/.config/waybar/config.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"all-outputs": true,
3131
"format": "{name}",
3232
"format-icons": {
33-
"active": "{name}",
33+
"active": "{name}",
3434
"default": "{name}"
3535
}
3636
},

waybar/.config/waybar/module/taskwarrior.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def __init__(self):
4444
"waiting": "",
4545
"next": "",
4646
"timer": "",
47+
"main": "",
4748
}
4849

4950
def _exit_with_error(self, message):
@@ -99,7 +100,7 @@ def get_tasks(self):
99100
self.active_task = self.active_tasks[0] if self.active_tasks else None
100101

101102
def build_text(self):
102-
parts = []
103+
parts = [self._pango(f" {self.symbols['main']} ", weight="bold")]
103104

104105
# 1. Overdue Count
105106
if self.overdue_tasks:

waybar/.config/waybar/style.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,24 +89,28 @@ window#waybar.hidden {
8989
}
9090

9191
#workspaces button {
92-
padding: 0 10px;
92+
padding: 0 8px;
9393
margin: 4px 2px;
9494
background-color: @bg_module;
9595
color: @gray_med;
96-
border-radius: 10px;
97-
transition: all 0.2s ease;
96+
border-radius: 12px;
97+
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.68);
9898
border: 1px solid rgba(184, 184, 184, 0.05);
99+
min-width: 24px;
99100
}
100101

101102
#workspaces button:hover {
102103
background-color: @bg_hover;
103104
color: @gray_ultra_light;
105+
padding: 0 12px;
104106
}
105107

106108
#workspaces button.active {
107109
background-color: @bg_active;
108110
color: @black;
109111
font-weight: bold;
112+
padding: 0 4px;
113+
min-width: 48px;
110114
}
111115

112116
#workspaces button.urgent {

0 commit comments

Comments
 (0)