Regenerated
This commit is contained in:
+382
-320
File diff suppressed because it is too large
Load Diff
+66
-16
@@ -2809,13 +2809,33 @@ window#waybar {
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
/* Shared workspace-like button */
|
||||
.workspace-like {
|
||||
padding: 0px 1px;
|
||||
min-width: 80px;
|
||||
background-color: transparent;
|
||||
color: @text;
|
||||
border: 2px solid @inactive;
|
||||
border-radius: 10px;
|
||||
border: 2px solid @inactive;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Hover */
|
||||
.workspace-like:hover {
|
||||
background-color: @surface1;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
/* Active (same as workspace active but reused) */
|
||||
.workspace-like.active {
|
||||
font-weight: bold;
|
||||
border: 1px solid transparent;
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)) padding-box,
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
@apply .workspace-like;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
@@ -2837,23 +2857,40 @@ window#waybar {
|
||||
}
|
||||
|
||||
/* Hyprland workspaces with transparency */
|
||||
#custom-hypr-workspaces button {
|
||||
background-color: rgba(0, 0, 0, 0.5); /* 50% transparent background */
|
||||
#custom-hypr-workspaces {
|
||||
padding: 0px 1px;
|
||||
min-width: 80px;
|
||||
color: @text;
|
||||
border-radius: 10px;
|
||||
padding: 0 10px;
|
||||
min-width: 80px;
|
||||
border: 2px solid @inactive;
|
||||
|
||||
/* 50% transparency */
|
||||
background-color: rgba(30, 30, 46, 0.5);
|
||||
}
|
||||
|
||||
#custom-hypr-workspaces button.active {
|
||||
/* Hover */
|
||||
#custom-hypr-workspaces:hover {
|
||||
background-color: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* Active (same gradient but dimmed) */
|
||||
#custom-hypr-workspaces.active {
|
||||
font-weight: bold;
|
||||
border: 1px solid transparent;
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)) padding-box,
|
||||
linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) padding-box,
|
||||
linear-gradient(45deg, @blue, @green) border-box;
|
||||
}
|
||||
|
||||
#custom-hypr-workspaces.hidden {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#idle_inhibitor,
|
||||
#battery,
|
||||
@@ -2941,13 +2978,26 @@ These are config files for waybar
|
||||
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/hypr-workspaces.sh :noweb yes :mkdirp yes :eval never
|
||||
#!/usr/bin/env bash
|
||||
# ~/.config/waybar/scripts/hypr-workspaces.sh
|
||||
|
||||
# Example: count windows and generate tooltip
|
||||
win_count=4
|
||||
tooltip="• scripts - Thunar\n• Droidnix — config\n• Waybar Workspace Customization — Zen Browser\n• henrov@traveldroid: ~/.config/waybar/scripts"
|
||||
|
||||
# Output compact JSON
|
||||
jq -c -n --arg text "$win_count" --arg tooltip "$tooltip" '{text: $text, tooltip: $tooltip}'
|
||||
# Get active workspace ID
|
||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||
# Get clients in active workspace
|
||||
clients=$(hyprctl clients -j | jq -r \
|
||||
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||
# Count clients
|
||||
count=$(echo "$clients" | grep -c .)
|
||||
# If no clients → hide module
|
||||
if [ "$count" -eq 0 ]; then
|
||||
jq -c -n '{text:"", class:"hidden"}'
|
||||
exit 0
|
||||
fi
|
||||
# Build tooltip (newline separated)
|
||||
tooltip=$(echo "$clients" | sed 's/^/• /' | paste -sd '\n' -)
|
||||
# Output JSON
|
||||
jq -c -n \
|
||||
--arg text "$count" \
|
||||
--arg tooltip "$tooltip" \
|
||||
--arg class "active" \
|
||||
'{text:$text, tooltip:$tooltip, class:$class}'
|
||||
#+END_SRC
|
||||
|
||||
** =.config/waybar/scripts/hypr-workspacesmenu.sh=
|
||||
|
||||
@@ -1,9 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
# ~/.config/waybar/scripts/hypr-workspaces.sh
|
||||
|
||||
# Example: count windows and generate tooltip
|
||||
win_count=4
|
||||
tooltip="• scripts - Thunar\n• Droidnix — config\n• Waybar Workspace Customization — Zen Browser\n• henrov@traveldroid: ~/.config/waybar/scripts"
|
||||
|
||||
# Output compact JSON
|
||||
jq -c -n --arg text "$win_count" --arg tooltip "$tooltip" '{text: $text, tooltip: $tooltip}'
|
||||
# Get active workspace ID
|
||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||
# Get clients in active workspace
|
||||
clients=$(hyprctl clients -j | jq -r \
|
||||
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||
# Count clients
|
||||
count=$(echo "$clients" | grep -c .)
|
||||
# If no clients → hide module
|
||||
if [ "$count" -eq 0 ]; then
|
||||
jq -c -n '{text:"", class:"hidden"}'
|
||||
exit 0
|
||||
fi
|
||||
# Build tooltip (newline separated)
|
||||
tooltip=$(echo "$clients" | sed 's/^/• /' | paste -sd '\n' -)
|
||||
# Output JSON
|
||||
jq -c -n \
|
||||
--arg text "$count" \
|
||||
--arg tooltip "$tooltip" \
|
||||
--arg class "active" \
|
||||
'{text:$text, tooltip:$tooltip, class:$class}'
|
||||
|
||||
Reference in New Issue
Block a user