nix-configs/other/scripts/desktop/macros/play-loop.sh
2023-04-22 13:10:34 +02:00

9 lines
226 B
Bash

mkdir -p $HOME/xmacros
register=$(ls $HOME/xmacros | rofi -dmenu)
count=$(echo "2;5;10;20;50;100" | rofi -dmenu -sep ";" -l 5)
for i in $(seq $count); do
echo $i
xmacroplay "$DISPLAY" < $HOME/xmacros/$register
done