nix/module/sway/script/Util.nix

20 lines
393 B
Nix
Raw Normal View History

{ ... }: {
text = ''
# Find currently active SWAYSOCK paths.
function _sway_find_sockets() {
ls /run/user/1000/sway-ipc.1000.*.sock
}
function _sway_iterate_sockets() {
local IFS=$'\n'
for socket in $(_sway_find_sockets); do
SWAYSOCK="''${socket}" ''${1}
done
echo FUCKME | systemd-cat
ls /run/user/ | systemd-cat
ls /run/user/1000 | systemd-cat
}
'';
}