2023-01-28 21:49:10 +01:00
|
|
|
self:
|
|
|
|
with self; ''
|
2021-05-30 21:10:28 +02:00
|
|
|
pid=$(${sway}/bin/swaymsg -t get_tree | jq '.. | select(.type?) | select(.type=="con") | select(.focused==true).pid')
|
|
|
|
ppid=$(pgrep --newest --parent ''${pid})
|
|
|
|
readlink /proc/''${ppid}/cwd || echo $HOME
|
|
|
|
''
|