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;
|
transition-duration: 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
/* Shared workspace-like button */
|
||||||
|
.workspace-like {
|
||||||
padding: 0px 1px;
|
padding: 0px 1px;
|
||||||
min-width: 80px;
|
min-width: 80px;
|
||||||
background-color: transparent;
|
|
||||||
color: @text;
|
color: @text;
|
||||||
border: 2px solid @inactive;
|
|
||||||
border-radius: 10px;
|
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 {
|
#workspaces button:hover {
|
||||||
@@ -2837,23 +2857,40 @@ window#waybar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Hyprland workspaces with transparency */
|
/* Hyprland workspaces with transparency */
|
||||||
#custom-hypr-workspaces button {
|
#custom-hypr-workspaces {
|
||||||
background-color: rgba(0, 0, 0, 0.5); /* 50% transparent background */
|
padding: 0px 1px;
|
||||||
|
min-width: 80px;
|
||||||
color: @text;
|
color: @text;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 0 10px;
|
|
||||||
min-width: 80px;
|
|
||||||
border: 2px solid @inactive;
|
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;
|
font-weight: bold;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
background:
|
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;
|
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,
|
#clock,
|
||||||
#idle_inhibitor,
|
#idle_inhibitor,
|
||||||
#battery,
|
#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
|
#+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
|
||||||
# ~/.config/waybar/scripts/hypr-workspaces.sh
|
# ~/.config/waybar/scripts/hypr-workspaces.sh
|
||||||
|
# Get active workspace ID
|
||||||
# Example: count windows and generate tooltip
|
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||||
win_count=4
|
# Get clients in active workspace
|
||||||
tooltip="• scripts - Thunar\n• Droidnix — config\n• Waybar Workspace Customization — Zen Browser\n• henrov@traveldroid: ~/.config/waybar/scripts"
|
clients=$(hyprctl clients -j | jq -r \
|
||||||
|
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||||
# Output compact JSON
|
# Count clients
|
||||||
jq -c -n --arg text "$win_count" --arg tooltip "$tooltip" '{text: $text, tooltip: $tooltip}'
|
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
|
#+END_SRC
|
||||||
|
|
||||||
** =.config/waybar/scripts/hypr-workspacesmenu.sh=
|
** =.config/waybar/scripts/hypr-workspacesmenu.sh=
|
||||||
|
|||||||
@@ -1,9 +1,22 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# ~/.config/waybar/scripts/hypr-workspaces.sh
|
# ~/.config/waybar/scripts/hypr-workspaces.sh
|
||||||
|
# Get active workspace ID
|
||||||
# Example: count windows and generate tooltip
|
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||||
win_count=4
|
# Get clients in active workspace
|
||||||
tooltip="• scripts - Thunar\n• Droidnix — config\n• Waybar Workspace Customization — Zen Browser\n• henrov@traveldroid: ~/.config/waybar/scripts"
|
clients=$(hyprctl clients -j | jq -r \
|
||||||
|
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||||
# Output compact JSON
|
# Count clients
|
||||||
jq -c -n --arg text "$win_count" --arg tooltip "$tooltip" '{text: $text, tooltip: $tooltip}'
|
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