Regenerated
This commit is contained in:
+324
-324
File diff suppressed because it is too large
Load Diff
+24
-24
@@ -2621,13 +2621,13 @@ in
|
||||
force = true;
|
||||
executable = true;
|
||||
};
|
||||
".config/waybar/scripts/workspaces_content.sh" = {
|
||||
text = builtins.readFile "${assetPath}/scripts/workspaces_content.sh";
|
||||
".config/waybar/scripts/workspaceswindows.sh" = {
|
||||
text = builtins.readFile "${assetPath}/scripts/workspaceswindows.sh";
|
||||
force = true;
|
||||
executable = true;
|
||||
};
|
||||
".config/waybar/scripts/hyprscroll-menu.sh" = {
|
||||
text = builtins.readFile "${assetPath}/scripts/hyprscroll-menu.sh";
|
||||
".config/waybar/scripts/workspaceswindowsmenu.sh" = {
|
||||
text = builtins.readFile "${assetPath}/scripts/workspaceswindowsmenu.sh";
|
||||
force = true;
|
||||
executable = true;
|
||||
};
|
||||
@@ -2662,7 +2662,7 @@ These are config files for waybar
|
||||
"height": 34,
|
||||
|
||||
"modules-center": [
|
||||
"custom/workspaces_content"
|
||||
"custom/workspaceswindows"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
@@ -2675,12 +2675,12 @@ These are config files for waybar
|
||||
"clock"
|
||||
],
|
||||
|
||||
"custom/workspaces_content": {
|
||||
"exec": "~/.config/waybar/scripts/workspaces_content.sh",
|
||||
"custom/workspaceswindows": {
|
||||
"exec": "~/.config/waybar/scripts/workspaceswindows.sh",
|
||||
"interval": 2,
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
"on-click": "~/.config/waybar/scripts/hyprscroll-menu.sh",
|
||||
"on-click": "~/.config/waybar/scripts/workspaceswindowsmenu.sh",
|
||||
"tooltip": true
|
||||
},
|
||||
|
||||
@@ -2793,7 +2793,7 @@ window#waybar {
|
||||
* Always filled gradient
|
||||
* ========================================================= */
|
||||
|
||||
#custom-workspaces_content {
|
||||
#custom-workspaceswindows {
|
||||
display: inline-block;
|
||||
padding: 0px 4px; /* some horizontal padding */
|
||||
min-width: 80px;
|
||||
@@ -2811,14 +2811,14 @@ window#waybar {
|
||||
}
|
||||
|
||||
/* Hover effect: subtle overlay */
|
||||
#custom-workspaces_content:hover {
|
||||
#custom-workspaceswindows:hover {
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) padding-box,
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
/* Optional hidden state */
|
||||
#custom-workspaces_content.hidden {
|
||||
#custom-workspaceswindows.hidden {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
@@ -2922,9 +2922,9 @@ fi
|
||||
printf '{"text": "%s", "tooltip": "%s"}\n' "$icon" "$tooltip"
|
||||
#+END_SRC
|
||||
|
||||
** =.config/waybar/scripts/workspaces_content.sh=
|
||||
** =.config/waybar/scripts/workspaceswindows.sh=
|
||||
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
|
||||
|
||||
# Get active workspace ID
|
||||
@@ -2942,9 +2942,9 @@ fi
|
||||
|
||||
#+END_SRC
|
||||
|
||||
** =.config/waybar/scripts/hyprscroll-menu.sh=
|
||||
** =.config/waybar/scripts/workspaceswindowsmenu.sh=
|
||||
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
|
||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||
clients=$(hyprctl clients -j | jq -r \
|
||||
@@ -3398,7 +3398,7 @@ window#waybar {
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
#custom-workspaces_content.overflow {
|
||||
#custom-workspaceswindows.overflow {
|
||||
padding: 0px 1px;
|
||||
min-width: 80px;
|
||||
color: @text;
|
||||
@@ -3411,14 +3411,14 @@ window#waybar {
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
#custom-workspaces_content.overflow {
|
||||
#custom-workspaceswindows.overflow {
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))
|
||||
padding-box,
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
#custom-workspaces_content.hidden {
|
||||
#custom-workspaceswindows.hidden {
|
||||
padding: 0;
|
||||
margin: 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
|
||||
* ========================================================= */
|
||||
|
||||
/* Default (no overflow): subtle pill, still hoverable for tooltip */
|
||||
#custom-workspaces_content.ok {
|
||||
#custom-workspaceswindows.ok {
|
||||
padding: 0px 1px;
|
||||
min-width: 80px;
|
||||
color: @subtext1;
|
||||
@@ -3519,7 +3519,7 @@ window#waybar {
|
||||
}
|
||||
|
||||
/* Make it feel interactive (hover) */
|
||||
#custom-workspaces_content.ok:hover {
|
||||
#custom-workspaceswindows.ok:hover {
|
||||
color: @text;
|
||||
background-color: @surface1;
|
||||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||
@@ -3527,7 +3527,7 @@ window#waybar {
|
||||
|
||||
/* Overflow state: you already have this; keep it.
|
||||
Optional: add hover tweak so it "pops" a bit. */
|
||||
#custom-workspaces_content.overflow:hover {
|
||||
#custom-workspaceswindows.overflow:hover {
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1))
|
||||
padding-box,
|
||||
@@ -3535,7 +3535,7 @@ window#waybar {
|
||||
}
|
||||
|
||||
/* Error state: clear but not screaming */
|
||||
#custom-workspaces_content.error {
|
||||
#custom-workspaceswindows.error {
|
||||
padding: 0px 1px;
|
||||
min-width: 80px;
|
||||
color: @text;
|
||||
@@ -3547,7 +3547,7 @@ window#waybar {
|
||||
}
|
||||
|
||||
/* Optional: if you keep .hidden in the script for any reason */
|
||||
#custom-workspaces_content.hidden {
|
||||
#custom-workspaceswindows.hidden {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"height": 34,
|
||||
|
||||
"modules-center": [
|
||||
"custom/workspaces_content"
|
||||
"custom/workspaceswindows"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
@@ -16,12 +16,12 @@
|
||||
"clock"
|
||||
],
|
||||
|
||||
"custom/workspaces_content": {
|
||||
"exec": "~/.config/waybar/scripts/workspaces_content.sh",
|
||||
"custom/workspaceswindows": {
|
||||
"exec": "~/.config/waybar/scripts/workspaceswindows.sh",
|
||||
"interval": 2,
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
"on-click": "~/.config/waybar/scripts/hyprscroll-menu.sh",
|
||||
"on-click": "~/.config/waybar/scripts/workspaceswindowsmenu.sh",
|
||||
"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
|
||||
@@ -66,7 +66,7 @@ window#waybar {
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
#custom-workspaces_content.overflow {
|
||||
#custom-workspaceswindows.overflow {
|
||||
padding: 0px 1px;
|
||||
min-width: 80px;
|
||||
color: @text;
|
||||
@@ -79,14 +79,14 @@ window#waybar {
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
#custom-workspaces_content.overflow {
|
||||
#custom-workspaceswindows.overflow {
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))
|
||||
padding-box,
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
#custom-workspaces_content.hidden {
|
||||
#custom-workspaceswindows.hidden {
|
||||
padding: 0;
|
||||
margin: 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
|
||||
* ========================================================= */
|
||||
|
||||
/* Default (no overflow): subtle pill, still hoverable for tooltip */
|
||||
#custom-workspaces_content.ok {
|
||||
#custom-workspaceswindows.ok {
|
||||
padding: 0px 1px;
|
||||
min-width: 80px;
|
||||
color: @subtext1;
|
||||
@@ -187,7 +187,7 @@ window#waybar {
|
||||
}
|
||||
|
||||
/* Make it feel interactive (hover) */
|
||||
#custom-workspaces_content.ok:hover {
|
||||
#custom-workspaceswindows.ok:hover {
|
||||
color: @text;
|
||||
background-color: @surface1;
|
||||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||
@@ -195,7 +195,7 @@ window#waybar {
|
||||
|
||||
/* Overflow state: you already have this; keep it.
|
||||
Optional: add hover tweak so it "pops" a bit. */
|
||||
#custom-workspaces_content.overflow:hover {
|
||||
#custom-workspaceswindows.overflow:hover {
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1))
|
||||
padding-box,
|
||||
@@ -203,7 +203,7 @@ window#waybar {
|
||||
}
|
||||
|
||||
/* Error state: clear but not screaming */
|
||||
#custom-workspaces_content.error {
|
||||
#custom-workspaceswindows.error {
|
||||
padding: 0px 1px;
|
||||
min-width: 80px;
|
||||
color: @text;
|
||||
@@ -215,7 +215,7 @@ window#waybar {
|
||||
}
|
||||
|
||||
/* Optional: if you keep .hidden in the script for any reason */
|
||||
#custom-workspaces_content.hidden {
|
||||
#custom-workspaceswindows.hidden {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
|
||||
@@ -24,13 +24,13 @@ in
|
||||
force = true;
|
||||
executable = true;
|
||||
};
|
||||
".config/waybar/scripts/workspaces_content.sh" = {
|
||||
text = builtins.readFile "${assetPath}/scripts/workspaces_content.sh";
|
||||
".config/waybar/scripts/workspaceswindows.sh" = {
|
||||
text = builtins.readFile "${assetPath}/scripts/workspaceswindows.sh";
|
||||
force = true;
|
||||
executable = true;
|
||||
};
|
||||
".config/waybar/scripts/hyprscroll-menu.sh" = {
|
||||
text = builtins.readFile "${assetPath}/scripts/hyprscroll-menu.sh";
|
||||
".config/waybar/scripts/workspaceswindowsmenu.sh" = {
|
||||
text = builtins.readFile "${assetPath}/scripts/workspaceswindowsmenu.sh";
|
||||
force = true;
|
||||
executable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user