oups
This commit is contained in:
1 parent
9eb6226619
commit
06f5b28291
26 files changed
No files matched your search
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Retourne le cwd de la fenetre qui a le focus
|
||||
|
||||
pid=$(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
|
||||
Reference in new issue
Block a user