myhome/.local/bin/mouse-set
Marcin Woźniak b82dc58f26
Added programs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-22 21:27:54 +01:00

11 lines
336 B
Bash
Executable File

#!/bin/bash
choices="Off\nCycle"
chosen=$(echo -e "$choices" | dmenu -i)
mouse=$(sudo ratbag-command list | awk '{print $1}' | sed 's/://')
case "$chosen" in
Off) sudo ratbag-command led 0 set mode off $mouse ;;
Cycle) sudo ratbag-command led 0 set mode cycle $mouse && sudo ratbag-command led 0 set rate 25000 $mouse ;;
esac