2024-11-12 14:11:40 +03:00
|
|
|
{
|
|
|
|
__findFile,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-11-04 04:37:29 +03:00
|
|
|
text = ''
|
|
|
|
# Find currently active SWAYSOCK paths.
|
|
|
|
function _sway_find_sockets() {
|
|
|
|
ls /run/user/''${UID}/sway-ipc.''${UID}.*.sock
|
|
|
|
}
|
2024-05-08 18:26:33 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
function _sway_iterate_sockets() {
|
|
|
|
local IFS=$'\n'
|
|
|
|
for socket in $(_sway_find_sockets); do
|
|
|
|
SWAYSOCK="''${socket}" ''${1}
|
|
|
|
done
|
|
|
|
}
|
|
|
|
'';
|
2024-05-08 18:26:33 +03:00
|
|
|
}
|