making eww work more like waybar workspaces
This commit is contained in:
parent
789fa95abf
commit
a32286fc67
4 changed files with 25 additions and 18 deletions
|
@ -1,5 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id'
|
||||
active (){
|
||||
hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id'
|
||||
}
|
||||
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
||||
active
|
||||
done
|
||||
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
|
||||
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'
|
||||
|
|
|
@ -7,5 +7,5 @@ spaces (){
|
|||
|
||||
spaces
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
||||
spaces
|
||||
hyprctl workspaces -j
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue