improve structure; move stuff to relevant folders

This commit is contained in:
2025-12-31 14:53:07 +02:00
parent e4296a3251
commit e405894cc2
34 changed files with 1452 additions and 80 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
MODE=$(swaymsg -r -t get_binding_state 2>/dev/null | jq -r '.name // "default"')
ICON=""
if [ "$MODE" = "OSRS" ]; then
echo "$ICON ON"
else
echo "$ICON OFF"
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
MODE_NAME="OSRS"
CURRENT=$(swaymsg -r -t get_binding_state 2>/dev/null | jq -r '.name // "default"')
if [ "$CURRENT" = "$MODE_NAME" ]; then
swaymsg mode default >/dev/null
else
swaymsg mode "$MODE_NAME" >/dev/null
fi