refactor(eww): Move hypr-related scripts to hypr/ dir

In case I'm planning to stop using Hyprland
This commit is contained in:
Ahmad Ansori Palembani 2024-05-15 10:36:16 +07:00
parent 1aef655bc2
commit b3437a55b2
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
4 changed files with 4 additions and 4 deletions

View file

@ -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`)

View file

@ -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'

View file

@ -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