1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-12-23 19:29:44 +01:00

Compare commits

...

4 Commits

3 changed files with 12 additions and 4 deletions

View File

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

View File

@@ -21,5 +21,6 @@ then
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 "$(cat /sys/class/net/e*/operstate | sed "s/down/^b#282828^^c#ff0000^  /;s/up/^b#282828^^c#dfdfdf^ 󰈀 /")" "$wifiicon"
echo "$lanicon" "$wifiicon"

View File

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