Regenerated

This commit is contained in:
2026-04-02 21:49:44 +02:00
parent 58fcf2ca1e
commit 27e1bf8018
7 changed files with 387 additions and 365 deletions
+324 -324
View File
File diff suppressed because it is too large Load Diff
+24 -24
View File
@@ -2621,13 +2621,13 @@ in
force = true; force = true;
executable = true; executable = true;
}; };
".config/waybar/scripts/workspaces_content.sh" = { ".config/waybar/scripts/workspaceswindows.sh" = {
text = builtins.readFile "${assetPath}/scripts/workspaces_content.sh"; text = builtins.readFile "${assetPath}/scripts/workspaceswindows.sh";
force = true; force = true;
executable = true; executable = true;
}; };
".config/waybar/scripts/hyprscroll-menu.sh" = { ".config/waybar/scripts/workspaceswindowsmenu.sh" = {
text = builtins.readFile "${assetPath}/scripts/hyprscroll-menu.sh"; text = builtins.readFile "${assetPath}/scripts/workspaceswindowsmenu.sh";
force = true; force = true;
executable = true; executable = true;
}; };
@@ -2662,7 +2662,7 @@ These are config files for waybar
"height": 34, "height": 34,
"modules-center": [ "modules-center": [
"custom/workspaces_content" "custom/workspaceswindows"
], ],
"modules-right": [ "modules-right": [
@@ -2675,12 +2675,12 @@ These are config files for waybar
"clock" "clock"
], ],
"custom/workspaces_content": { "custom/workspaceswindows": {
"exec": "~/.config/waybar/scripts/workspaces_content.sh", "exec": "~/.config/waybar/scripts/workspaceswindows.sh",
"interval": 2, "interval": 2,
"return-type": "json", "return-type": "json",
"format": "{}", "format": "{}",
"on-click": "~/.config/waybar/scripts/hyprscroll-menu.sh", "on-click": "~/.config/waybar/scripts/workspaceswindowsmenu.sh",
"tooltip": true "tooltip": true
}, },
@@ -2793,7 +2793,7 @@ window#waybar {
* Always filled gradient * Always filled gradient
* ========================================================= */ * ========================================================= */
#custom-workspaces_content { #custom-workspaceswindows {
display: inline-block; display: inline-block;
padding: 0px 4px; /* some horizontal padding */ padding: 0px 4px; /* some horizontal padding */
min-width: 80px; min-width: 80px;
@@ -2811,14 +2811,14 @@ window#waybar {
} }
/* Hover effect: subtle overlay */ /* Hover effect: subtle overlay */
#custom-workspaces_content:hover { #custom-workspaceswindows:hover {
background: background:
linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) padding-box, linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) padding-box,
linear-gradient(45deg, @blue, @green) border-box; linear-gradient(45deg, @blue, @green) border-box;
} }
/* Optional hidden state */ /* Optional hidden state */
#custom-workspaces_content.hidden { #custom-workspaceswindows.hidden {
padding: 0; padding: 0;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
@@ -2922,9 +2922,9 @@ fi
printf '{"text": "%s", "tooltip": "%s"}\n' "$icon" "$tooltip" printf '{"text": "%s", "tooltip": "%s"}\n' "$icon" "$tooltip"
#+END_SRC #+END_SRC
** =.config/waybar/scripts/workspaces_content.sh= ** =.config/waybar/scripts/workspaceswindows.sh=
These are config files for waybar These are config files for waybar
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/workspaces_content.sh :noweb yes :mkdirp yes :eval never #+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/workspaceswindows.sh :noweb yes :mkdirp yes :eval never
#!/usr/bin/env bash #!/usr/bin/env bash
# Get active workspace ID # Get active workspace ID
@@ -2942,9 +2942,9 @@ fi
#+END_SRC #+END_SRC
** =.config/waybar/scripts/hyprscroll-menu.sh= ** =.config/waybar/scripts/workspaceswindowsmenu.sh=
These are config files for waybar These are config files for waybar
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/hyprscroll-menu.sh :noweb yes :mkdirp yes :eval never #+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/workspaceswindowsmenu.sh :noweb yes :mkdirp yes :eval never
#!/usr/bin/env bash #!/usr/bin/env bash
active_ws=$(hyprctl activeworkspace -j | jq -r '.id') active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
clients=$(hyprctl clients -j | jq -r \ clients=$(hyprctl clients -j | jq -r \
@@ -3398,7 +3398,7 @@ window#waybar {
linear-gradient(45deg, @blue, @green) border-box; linear-gradient(45deg, @blue, @green) border-box;
} }
#custom-workspaces_content.overflow { #custom-workspaceswindows.overflow {
padding: 0px 1px; padding: 0px 1px;
min-width: 80px; min-width: 80px;
color: @text; color: @text;
@@ -3411,14 +3411,14 @@ window#waybar {
linear-gradient(45deg, @blue, @green) border-box; linear-gradient(45deg, @blue, @green) border-box;
} }
#custom-workspaces_content.overflow { #custom-workspaceswindows.overflow {
background: background:
linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))
padding-box, padding-box,
linear-gradient(45deg, @blue, @green) border-box; linear-gradient(45deg, @blue, @green) border-box;
} }
#custom-workspaces_content.hidden { #custom-workspaceswindows.hidden {
padding: 0; padding: 0;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
@@ -3502,12 +3502,12 @@ window#waybar {
} }
/* ========================================================= /* =========================================================
* Hyprscroll overflow indicator (custom/workspaces_content) * Hyprscroll overflow indicator (custom/workspaceswindows)
* States: .ok, .overflow, .error * States: .ok, .overflow, .error
* ========================================================= */ * ========================================================= */
/* Default (no overflow): subtle pill, still hoverable for tooltip */ /* Default (no overflow): subtle pill, still hoverable for tooltip */
#custom-workspaces_content.ok { #custom-workspaceswindows.ok {
padding: 0px 1px; padding: 0px 1px;
min-width: 80px; min-width: 80px;
color: @subtext1; color: @subtext1;
@@ -3519,7 +3519,7 @@ window#waybar {
} }
/* Make it feel interactive (hover) */ /* Make it feel interactive (hover) */
#custom-workspaces_content.ok:hover { #custom-workspaceswindows.ok:hover {
color: @text; color: @text;
background-color: @surface1; background-color: @surface1;
border: 1px solid rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.18);
@@ -3527,7 +3527,7 @@ window#waybar {
/* Overflow state: you already have this; keep it. /* Overflow state: you already have this; keep it.
Optional: add hover tweak so it "pops" a bit. */ Optional: add hover tweak so it "pops" a bit. */
#custom-workspaces_content.overflow:hover { #custom-workspaceswindows.overflow:hover {
background: background:
linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1))
padding-box, padding-box,
@@ -3535,7 +3535,7 @@ window#waybar {
} }
/* Error state: clear but not screaming */ /* Error state: clear but not screaming */
#custom-workspaces_content.error { #custom-workspaceswindows.error {
padding: 0px 1px; padding: 0px 1px;
min-width: 80px; min-width: 80px;
color: @text; color: @text;
@@ -3547,7 +3547,7 @@ window#waybar {
} }
/* Optional: if you keep .hidden in the script for any reason */ /* Optional: if you keep .hidden in the script for any reason */
#custom-workspaces_content.hidden { #custom-workspaceswindows.hidden {
padding: 0; padding: 0;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
+4 -4
View File
@@ -3,7 +3,7 @@
"height": 34, "height": 34,
"modules-center": [ "modules-center": [
"custom/workspaces_content" "custom/workspaceswindows"
], ],
"modules-right": [ "modules-right": [
@@ -16,12 +16,12 @@
"clock" "clock"
], ],
"custom/workspaces_content": { "custom/workspaceswindows": {
"exec": "~/.config/waybar/scripts/workspaces_content.sh", "exec": "~/.config/waybar/scripts/workspaceswindows.sh",
"interval": 2, "interval": 2,
"return-type": "json", "return-type": "json",
"format": "{}", "format": "{}",
"on-click": "~/.config/waybar/scripts/hyprscroll-menu.sh", "on-click": "~/.config/waybar/scripts/workspaceswindowsmenu.sh",
"tooltip": true "tooltip": true
}, },
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Get active workspace ID
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Count clients in the active workspace
clients=$(hyprctl -j clients | jq --argjson w "$active_ws" '[.[] | select(.workspace.id==$w)] | length')
# Output valid JSON for Waybar
if [ "$clients" -eq 0 ]; then
echo "{\"text\":\"$active_ws\"}"
else
echo "{\"text\":\"$active_ws$clients\"}"
fi
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
clients=$(hyprctl clients -j | jq -r \
".[] | select(.workspace.id==$active_ws) | \"\(.address)|\(.title)\"")
choice=$(echo "$clients" | cut -d'|' -f2 | wofi -dmenu -j -p "Windows")
[ -z "$choice" ] && exit 0
addr=$(echo "$clients" | grep "|$choice" | head -n1 | cut -d'|' -f1)
hyprctl dispatch focuswindow address:$addr
+9 -9
View File
@@ -66,7 +66,7 @@ window#waybar {
linear-gradient(45deg, @blue, @green) border-box; linear-gradient(45deg, @blue, @green) border-box;
} }
#custom-workspaces_content.overflow { #custom-workspaceswindows.overflow {
padding: 0px 1px; padding: 0px 1px;
min-width: 80px; min-width: 80px;
color: @text; color: @text;
@@ -79,14 +79,14 @@ window#waybar {
linear-gradient(45deg, @blue, @green) border-box; linear-gradient(45deg, @blue, @green) border-box;
} }
#custom-workspaces_content.overflow { #custom-workspaceswindows.overflow {
background: background:
linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))
padding-box, padding-box,
linear-gradient(45deg, @blue, @green) border-box; linear-gradient(45deg, @blue, @green) border-box;
} }
#custom-workspaces_content.hidden { #custom-workspaceswindows.hidden {
padding: 0; padding: 0;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
@@ -170,12 +170,12 @@ window#waybar {
} }
/* ========================================================= /* =========================================================
* Hyprscroll overflow indicator (custom/workspaces_content) * Hyprscroll overflow indicator (custom/workspaceswindows)
* States: .ok, .overflow, .error * States: .ok, .overflow, .error
* ========================================================= */ * ========================================================= */
/* Default (no overflow): subtle pill, still hoverable for tooltip */ /* Default (no overflow): subtle pill, still hoverable for tooltip */
#custom-workspaces_content.ok { #custom-workspaceswindows.ok {
padding: 0px 1px; padding: 0px 1px;
min-width: 80px; min-width: 80px;
color: @subtext1; color: @subtext1;
@@ -187,7 +187,7 @@ window#waybar {
} }
/* Make it feel interactive (hover) */ /* Make it feel interactive (hover) */
#custom-workspaces_content.ok:hover { #custom-workspaceswindows.ok:hover {
color: @text; color: @text;
background-color: @surface1; background-color: @surface1;
border: 1px solid rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.18);
@@ -195,7 +195,7 @@ window#waybar {
/* Overflow state: you already have this; keep it. /* Overflow state: you already have this; keep it.
Optional: add hover tweak so it "pops" a bit. */ Optional: add hover tweak so it "pops" a bit. */
#custom-workspaces_content.overflow:hover { #custom-workspaceswindows.overflow:hover {
background: background:
linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1))
padding-box, padding-box,
@@ -203,7 +203,7 @@ window#waybar {
} }
/* Error state: clear but not screaming */ /* Error state: clear but not screaming */
#custom-workspaces_content.error { #custom-workspaceswindows.error {
padding: 0px 1px; padding: 0px 1px;
min-width: 80px; min-width: 80px;
color: @text; color: @text;
@@ -215,7 +215,7 @@ window#waybar {
} }
/* Optional: if you keep .hidden in the script for any reason */ /* Optional: if you keep .hidden in the script for any reason */
#custom-workspaces_content.hidden { #custom-workspaceswindows.hidden {
padding: 0; padding: 0;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
@@ -24,13 +24,13 @@ in
force = true; force = true;
executable = true; executable = true;
}; };
".config/waybar/scripts/workspaces_content.sh" = { ".config/waybar/scripts/workspaceswindows.sh" = {
text = builtins.readFile "${assetPath}/scripts/workspaces_content.sh"; text = builtins.readFile "${assetPath}/scripts/workspaceswindows.sh";
force = true; force = true;
executable = true; executable = true;
}; };
".config/waybar/scripts/hyprscroll-menu.sh" = { ".config/waybar/scripts/workspaceswindowsmenu.sh" = {
text = builtins.readFile "${assetPath}/scripts/hyprscroll-menu.sh"; text = builtins.readFile "${assetPath}/scripts/workspaceswindowsmenu.sh";
force = true; force = true;
executable = true; executable = true;
}; };