1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-17 23:37:47 +02:00

Compare commits

..

No commits in common. "dd24dbd0d7df061d6b4168c4ccae884a1bdceea5" and "ead803572fa98b041532fa329bb3f7b569710783" have entirely different histories.

3 changed files with 4 additions and 12 deletions

View File

@ -49,9 +49,6 @@ super + Return
Print Print
screenshot screenshot
super + space
touchpad toggle
super + shift + space super + shift + space
dunstctl close-all dunstctl close-all

View File

@ -21,6 +21,5 @@ then
fi fi
fi fi
[ -f /sys/class/net/e*/operstate ] && lanicon=$(cat /sys/class/net/e*/operstate | sed "s/down/^b#282828^^c#ff0000^  /;s/up/^b#282828^^c#dfdfdf^ 󰈀 /") || lanicon="^b#282828^^c#ff0000^  "
echo "$lanicon" "$wifiicon" echo "$(cat /sys/class/net/e*/operstate | sed "s/down/^b#282828^^c#ff0000^  /;s/up/^b#282828^^c#dfdfdf^ 󰈀 /")" "$wifiicon"

View File

@ -4,17 +4,13 @@
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
case "$1" in case "$1" in
on) synclient TouchpadOff=0 && notify-send "TouchPad activated." ;; toggle) (synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && notify-send "TouchPad reactivated." && exit
off) synclient TouchpadOff=1 && notify-send "TouchPad deactivated." ;; synclient TouchpadOff=1 && notify-send "TouchPad deactivated." ;;
toggle) (synclient | grep "TouchpadOff.*1") && touchpad on && exit
touchpad off ;;
*) cat << EOF *) cat << EOF
touchpad: cli script to enable and disable the touchpad. touchpad: cli script to enable and disable the touchpad.
Allowed options: Allowed options:
on Turn touchpad on toggle Toggle the touchpad on and off
off Turn touchpad off
toggle Toggle the touchpad on or off
all else Print this message all else Print this message
EOF EOF