Regenerated
This commit is contained in:
+315
-321
File diff suppressed because it is too large
Load Diff
+9
-15
@@ -1128,7 +1128,7 @@ in
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/.config/zsh/.zshrc
|
** =generated/.config/zsh/.zshrc=
|
||||||
This sets up the zsh in the terminal
|
This sets up the zsh in the terminal
|
||||||
#+BEGIN_SRC bash :tangle generated/.config/zsh/.zshrc :noweb yes :mkdirp yes :eval never
|
#+BEGIN_SRC bash :tangle generated/.config/zsh/.zshrc :noweb yes :mkdirp yes :eval never
|
||||||
# Path to syntax highlighting installed by Nix
|
# Path to syntax highlighting installed by Nix
|
||||||
@@ -2975,7 +2975,7 @@ window#waybar {
|
|||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
background: linear-gradient(45deg, @blue, @green);
|
background: linear-gradient(45deg, @blue, @green);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: @teal;
|
color: @base;
|
||||||
}
|
}
|
||||||
|
|
||||||
activeworkspaces:not(.active) {
|
activeworkspaces:not(.active) {
|
||||||
@@ -3084,27 +3084,21 @@ printf '{"text": "%s", "tooltip": "%s"}\n' "$icon" "$tooltip"
|
|||||||
These are config files for waybar
|
These are config files for waybar
|
||||||
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/hypr-workspaces.sh :noweb yes :mkdirp yes :eval never
|
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/hypr-workspaces.sh :noweb yes :mkdirp yes :eval never
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Get active workspace ID
|
# Get active workspace ID
|
||||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||||
|
|
||||||
# Get clients in active workspace
|
# Get clients in active workspace
|
||||||
clients=$(hyprctl clients -j | jq -r \
|
clients=$(hyprctl clients -j | jq -r \
|
||||||
".[] | select(.workspace.id==$active_ws) | .title")
|
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||||
|
|
||||||
# Count clients
|
# Count clients
|
||||||
count=$(echo "$clients" | grep -c .)
|
count=$(echo "$clients" | grep -c .)
|
||||||
|
# If no clients → hide module
|
||||||
# If less than 2 clients → hide module
|
if [ "$count" -eq 0 ]; then
|
||||||
if [ "$count" -lt 2 ]; then
|
jq -c -n '{text:"", class:"hidden"}'
|
||||||
jq -c -n '{text:"", class:"hidden"}'
|
exit 0
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build tooltip (newline separated)
|
# Build tooltip (newline separated)
|
||||||
tooltip=$(echo "$clients" | sed 's/^/• /' | paste -sd '\n' -)
|
tooltip=$(echo "$clients" | sed 's/^/• /' | paste -sd '\n' -)
|
||||||
|
# Output JSON
|
||||||
# Output JSON with dash
|
|
||||||
jq -c -n \
|
jq -c -n \
|
||||||
--arg text "$count" \
|
--arg text "$count" \
|
||||||
--arg tooltip "$tooltip" \
|
--arg tooltip "$tooltip" \
|
||||||
@@ -3633,7 +3627,7 @@ These are config files for .config/zed
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
** =~/.config/shared/colors.css=
|
** =.config/shared/colors.css=
|
||||||
These are config files for .config/wofi
|
These are config files for .config/wofi
|
||||||
#+BEGIN_SRC css :tangle generated/.config/shared/colors.css :noweb yes :mkdirp yes :eval never
|
#+BEGIN_SRC css :tangle generated/.config/shared/colors.css :noweb yes :mkdirp yes :eval never
|
||||||
/* Catppuccin Mocha Palette */
|
/* Catppuccin Mocha Palette */
|
||||||
|
|||||||
@@ -1,25 +1,19 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Get active workspace ID
|
# Get active workspace ID
|
||||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||||
|
|
||||||
# Get clients in active workspace
|
# Get clients in active workspace
|
||||||
clients=$(hyprctl clients -j | jq -r \
|
clients=$(hyprctl clients -j | jq -r \
|
||||||
".[] | select(.workspace.id==$active_ws) | .title")
|
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||||
|
|
||||||
# Count clients
|
# Count clients
|
||||||
count=$(echo "$clients" | grep -c .)
|
count=$(echo "$clients" | grep -c .)
|
||||||
|
# If no clients → hide module
|
||||||
# If less than 2 clients → hide module
|
if [ "$count" -eq 0 ]; then
|
||||||
if [ "$count" -lt 2 ]; then
|
jq -c -n '{text:"", class:"hidden"}'
|
||||||
jq -c -n '{text:"", class:"hidden"}'
|
exit 0
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build tooltip (newline separated)
|
# Build tooltip (newline separated)
|
||||||
tooltip=$(echo "$clients" | sed 's/^/• /' | paste -sd '\n' -)
|
tooltip=$(echo "$clients" | sed 's/^/• /' | paste -sd '\n' -)
|
||||||
|
# Output JSON
|
||||||
# Output JSON with dash
|
|
||||||
jq -c -n \
|
jq -c -n \
|
||||||
--arg text "$count" \
|
--arg text "$count" \
|
||||||
--arg tooltip "$tooltip" \
|
--arg tooltip "$tooltip" \
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ window#waybar {
|
|||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
background: linear-gradient(45deg, @blue, @green);
|
background: linear-gradient(45deg, @blue, @green);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: @teal;
|
color: @base;
|
||||||
}
|
}
|
||||||
|
|
||||||
activeworkspaces:not(.active) {
|
activeworkspaces:not(.active) {
|
||||||
|
|||||||
Reference in New Issue
Block a user