Benjamin Yule Bädorf
56ea689de6
This used to live in the old pub-solar/os repository in the `momo/main` branch. This commit changes that so this repository has all code from terraform to nix.
7 lines
231 B
Nix
7 lines
231 B
Nix
self:
|
|
with self; ''
|
|
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
|
|
''
|