This commit is contained in:
Hannes
2026-06-09 19:48:10 +02:00
parent 28c28da83a
commit 98057ae01e
13 changed files with 51 additions and 432 deletions
-41
View File
@@ -1,41 +0,0 @@
#!/bin/bash
# Dependencies: hyprctl
# Wait until the window exists
floorp &
NAME="Floorp"
CLASS="floorp"
WORKSPACE=2
while true; do
WIN=$(hyprctl clients -j | jq -r '.[] | select(.class == "'$CLASS'") | .address')
if [ -n "$WIN" ]; then
echo "Found window: $WIN"
break
fi
echo "Waiting for $NAME window..."
sleep 0.5
done
# Move to workspace
while true; do
# Focus the window
hyprctl dispatch focuswindow address:$WIN
sleep 0.1
ACTIVE=$(hyprctl activewindow -j | jq -r '.address')
if [ "$ACTIVE" = "$WIN" ]; then
echo "Window is now focused: $WIN"
hyprctl dispatch movetoworkspace $WORKSPACE
break
fi
echo "Waiting for focus..."
sleep $((RANDOM % 3))
done
-41
View File
@@ -1,41 +0,0 @@
#!/bin/bash
# Dependencies: hyprctl
# Wait until the window exists
keepassxc &
NAME="KeePassXC"
CLASS="org.keepassxc.KeePassXC"
WORKSPACE=10
while true; do
WIN=$(hyprctl clients -j | jq -r '.[] | select(.class == "'$CLASS'") | .address')
if [ -n "$WIN" ]; then
echo "Found window: $WIN"
break
fi
echo "Waiting for $NAME window..."
sleep 0.5
done
# Move to workspace
while true; do
# Focus the window
hyprctl dispatch focuswindow address:$WIN
sleep 0.1
ACTIVE=$(hyprctl activewindow -j | jq -r '.address')
if [ "$ACTIVE" = "$WIN" ]; then
echo "Window is now focused: $WIN"
hyprctl dispatch movetoworkspace $WORKSPACE
break
fi
echo "Waiting for focus..."
sleep $((RANDOM % 3))
done