refactor(eww): Move hypr-related scripts to hypr/
dir
In case I'm planning to stop using Hyprland
This commit is contained in:
parent
1aef655bc2
commit
b3437a55b2
4 changed files with 4 additions and 4 deletions
|
@ -3,10 +3,10 @@
|
|||
|
||||
;; Listeners
|
||||
(deflisten active-workspace
|
||||
`stdbuf -oL ./scripts/workspace-active-listener`)
|
||||
`stdbuf -oL ./scripts/hypr/workspace-active-listener`)
|
||||
|
||||
(deflisten workspace-list :initial '[1]'
|
||||
`stdbuf -oL ./scripts/workspace-list-listener`)
|
||||
`stdbuf -oL ./scripts/hypr/workspace-list-listener`)
|
||||
|
||||
(deflisten datetime
|
||||
`stdbuf -oL ./scripts/datetime-listener`)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# REF: https://github.com/Mango0x45/dotfiles/blob/d62026673b0b833f27b85f8a551cb646ae2bd751/.config/eww/scripts/active-workspace-listener
|
||||
|
||||
readonly IPC=$(./scripts/hyprland-getsocket)
|
||||
readonly IPC=$(./scripts/hypr/hyprland-getsocket)
|
||||
|
||||
hyprctl -j activeworkspace | jq -r '.name'
|
||||
socat -u UNIX-CONNECT:"$IPC" - | sed -n 's/^workspace>>//p'
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# REF: https://github.com/Mango0x45/dotfiles/blob/d620266/.config/eww/scripts/workspace-list-listener
|
||||
|
||||
readonly IPC=$(./scripts/hyprland-getsocket)
|
||||
readonly IPC=$(./scripts/hypr/hyprland-getsocket)
|
||||
|
||||
ws="`hyprctl -j workspaces | jq -r 'sort_by(.id) | .[] | .name'`"
|
||||
jo -a $ws
|
Loading…
Add table
Add a link
Reference in a new issue