refactor(dotfiles): separate desktop configuration
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
#chooser="walker -d"
|
||||
chooser="rofi -i -dmenu -display-columns 1"
|
||||
selected=$(hyprctl clients -j | jq -r 'to_entries | .[] | select(.value.hidden == false) | "\(.value.title) \t\(.value.class)::\(.value.address)"' | $chooser -p 'Client to Focus')
|
||||
address=$(echo $selected | awk -F'::' '{print $NF}')
|
||||
if [ -z "$address" ]; then
|
||||
notify-send "No client selected"
|
||||
exit 1
|
||||
fi
|
||||
hyprctl dispatch "focus_or_launch({ match = '$address', field = 'address', cmd = 'notify-send \"$selected not found\"'})"
|
||||
Reference in New Issue
Block a user