summaryrefslogtreecommitdiff
path: root/dot-config/waybar
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-12-31 17:24:05 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-12-31 17:24:05 +0800
commit3ec638f8b14433527f07649743b5ec97ae68fd12 (patch)
tree71773a4044e4a4da830bb3607012aa34d8c1bde2 /dot-config/waybar
parent9d3af2a43376d06d7ac7adf9a5f2692f22143108 (diff)
feat(waybar): minimized window counter
Diffstat (limited to 'dot-config/waybar')
-rw-r--r--dot-config/waybar/config.jsonc2
-rw-r--r--dot-config/waybar/modules.jsonc24
-rw-r--r--dot-config/waybar/style.css9
3 files changed, 24 insertions, 11 deletions
diff --git a/dot-config/waybar/config.jsonc b/dot-config/waybar/config.jsonc
index 0e9701f9..ac0f753a 100644
--- a/dot-config/waybar/config.jsonc
+++ b/dot-config/waybar/config.jsonc
@@ -11,5 +11,5 @@
"modules-left": ["group/musicworkspace", "cava"],
"modules-center": ["hyprland/window"],
"modules-right": ["cpu", "memory", "custom/gpu", "temperature", "network", "group/misc", "group/power"],
- "reload_style_on_change": true,
+ // "reload_style_on_change": true,
}
diff --git a/dot-config/waybar/modules.jsonc b/dot-config/waybar/modules.jsonc
index 78aca574..33117281 100644
--- a/dot-config/waybar/modules.jsonc
+++ b/dot-config/waybar/modules.jsonc
@@ -64,12 +64,12 @@
"playing": "⏸",
"paused": "▶"
},
- "dynamic-len": 50,
+ "dynamic-len": 75,
"interval": 1,
},
"group/musicworkspace": {
"orientation": "horizontal",
- "modules": ["hyprland/workspaces", "mpris"],
+ "modules": ["hyprland/workspaces", "custom/minimized-counter", "mpris"],
},
"memory": {
@@ -102,13 +102,19 @@
"icon-size": 16,
"spacing": 5
},
- "custom/launcher": {
- "format": "󰣇",
- // "on-click": "bash $HOME/.config/rofi/launcher.sh",
- // "on-click": "wofi --show drun -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css",
- // "on-click-right": "bash $HOME/.config/rofi/run.sh"
- // "on-click-right": "wofi --show run -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css"
- "on-click": "pkill rofi || $HOME/.config/rofi/scripts/rofi_launcher",
+ // "custom/launcher": {
+ // "format": "󰣇",
+ // // "on-click": "bash $HOME/.config/rofi/launcher.sh",
+ // // "on-click": "wofi --show drun -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css",
+ // // "on-click-right": "bash $HOME/.config/rofi/run.sh"
+ // // "on-click-right": "wofi --show run -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css"
+ // "on-click": "pkill rofi || $HOME/.config/rofi/scripts/rofi_launcher",
+ // },
+ "custom/minimized-counter": {
+ "format": "{}",
+ "exec": "hyprctl workspaces -j | jq '.[] | select(.name == \"special:minimized\") | .windows'",
+ "interval": "once",
+ "signal": 5,
},
"hyprland/window": {
// "on-click": "hyprctl dispatch focuswindow 'title:{title}'",
diff --git a/dot-config/waybar/style.css b/dot-config/waybar/style.css
index 8d68888c..f5f01412 100644
--- a/dot-config/waybar/style.css
+++ b/dot-config/waybar/style.css
@@ -83,7 +83,7 @@ tooltip * {
margin-right: -8px;
}
-#workspaces button {
+#workspaces button, #custom-minimized-counter {
background-color: @color4;
opacity: 0.8;
border-radius: 12px;
@@ -127,6 +127,13 @@ tooltip * {
/* font-size: 2.5rem; */
}
+#custom-minimized-counter {
+ margin-top: 8px;
+ margin-bottom: 8px;
+ margin-left: 2px;
+ margin-right: 2px;
+}
+
#temperature.critical {
color: @RED;
}