Regenerated

This commit is contained in:
2026-04-02 21:40:21 +02:00
parent d37e8c84f2
commit 423ea4d6a1
6 changed files with 332 additions and 318 deletions
+308 -308
View File
File diff suppressed because it is too large Load Diff
+6 -6
View File
@@ -1127,7 +1127,7 @@ in
This sets up the zsh in the terminal
#+BEGIN_SRC bash :tangle generated/.config/zsh/.zshrc :noweb yes :mkdirp yes :eval never
# Path to syntax highlighting installed by Nix
ZSH_SYNTAX_HIGHLIGHTING="${HOME}/.nix-pwofile/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
ZSH_SYNTAX_HIGHLIGHTING="${HOME}/.nix-profile/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# Load syntax highlighting if available
if [ -f "$ZSH_SYNTAX_HIGHLIGHTING" ]; then
@@ -2621,8 +2621,8 @@ in
force = true;
executable = true;
};
".config/waybar/scripts/hyprscroll-overflow.sh" = {
text = builtins.readFile "${assetPath}/scripts/hyprscroll-overflow.sh";
".config/waybar/scripts/workspaces_content.sh" = {
text = builtins.readFile "${assetPath}/scripts/workspaces_content.sh";
force = true;
executable = true;
};
@@ -2676,7 +2676,7 @@ These are config files for waybar
],
"custom/workspaces_content": {
"exec": "~/.config/waybar/scripts/hyprscroll-overflow.sh",
"exec": "~/.config/waybar/scripts/workspaces_content.sh",
"interval": 2,
"return-type": "json",
"format": "{}",
@@ -2921,9 +2921,9 @@ fi
printf '{"text": "%s", "tooltip": "%s"}\n' "$icon" "$tooltip"
#+END_SRC
** =.config/waybar/scripts/hyprscroll-overflow.sh=
** =.config/waybar/scripts/workspaces_content.sh=
These are config files for waybar
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/hyprscroll-overflow.sh :noweb yes :mkdirp yes :eval never
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/workspaces_content.sh :noweb yes :mkdirp yes :eval never
#!/usr/bin/env bash
# Get active workspace ID
+1 -1
View File
@@ -17,7 +17,7 @@
],
"custom/workspaces_content": {
"exec": "~/.config/waybar/scripts/hyprscroll-overflow.sh",
"exec": "~/.config/waybar/scripts/workspaces_content.sh",
"interval": 2,
"return-type": "json",
"format": "{}",
@@ -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
+1 -1
View File
@@ -1,5 +1,5 @@
# Path to syntax highlighting installed by Nix
ZSH_SYNTAX_HIGHLIGHTING="${HOME}/.nix-pwofile/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
ZSH_SYNTAX_HIGHLIGHTING="${HOME}/.nix-profile/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# Load syntax highlighting if available
if [ -f "$ZSH_SYNTAX_HIGHLIGHTING" ]; then
@@ -24,8 +24,8 @@ in
force = true;
executable = true;
};
".config/waybar/scripts/hyprscroll-overflow.sh" = {
text = builtins.readFile "${assetPath}/scripts/hyprscroll-overflow.sh";
".config/waybar/scripts/workspaces_content.sh" = {
text = builtins.readFile "${assetPath}/scripts/workspaces_content.sh";
force = true;
executable = true;
};