This commit is contained in:
jay
2026-03-22 20:46:20 +08:00
parent a4faab3db1
commit 35abfa07bc
17 changed files with 603 additions and 216 deletions
@@ -0,0 +1,6 @@
#!/bin/bash
cursorTheme=$(swaymsg -t get_inputs | jq -r '.[] | select(.type == "pointer") | .xcursor_theme' | head -n 1)
echo "Current cursor theme: $cursorTheme"
# swaymsg "seat seat0 xcursor_theme "
@@ -0,0 +1,15 @@
#!/bin/bash
# usage: scale-cursor.sh <cursor-theme> <bigSize> <originalSize>
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <cursor-theme> <bigSize> <originalSize>"
exit 1
fi
CURSOR_THEME="$1"
BIG_SIZE="$2"
ORIGINAL_SIZE="$3"
swaymsg "seat seat0 xcursor_theme $CURSOR_THEME $BIG_SIZE"
sleep 1
swaymsg "seat seat0 xcursor_theme $CURSOR_THEME $ORIGINAL_SIZE"