forked from Shinonome/dots-hyprland
stuff
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
getactivewin(){
|
||||
winname=$(hyprctl activewindow | grep -e 'title: ' | sed 's/title: //' | sed 's/\t//')
|
||||
echo "$winname"
|
||||
}
|
||||
|
||||
getactivewin
|
||||
|
||||
if [ "$1" == "--once" ]; then
|
||||
exit 0
|
||||
else
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/"$HYPRLAND_INSTANCE_SIGNATURE"/.socket2.sock - | while read -r line; do
|
||||
getactivewin
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user