diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x[-rw-r--r--] | scripts/audio_control.sh | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | scripts/media_control.sh | 5 | ||||
| -rwxr-xr-x[-rw-r--r--] | scripts/program_starter.sh | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | scripts/ssh_starter.sh | 0 | ||||
| -rwxr-xr-x | scripts/toggle_syn_touchpad.sh | 16 |
5 files changed, 20 insertions, 3 deletions
diff --git a/scripts/audio_control.sh b/scripts/audio_control.sh index 7bbf7df..7bbf7df 100644..100755 --- a/scripts/audio_control.sh +++ b/scripts/audio_control.sh diff --git a/scripts/media_control.sh b/scripts/media_control.sh index c0ce02a..f2e6612 100644..100755 --- a/scripts/media_control.sh +++ b/scripts/media_control.sh @@ -1,8 +1,9 @@ +#!/bin/bash + +#TODO # NOTE: # if spotify is running toggle is consumed by spotify. -#!/bin/bash - # arg parsing if [ "$1" = "toggle" ] then diff --git a/scripts/program_starter.sh b/scripts/program_starter.sh index afe2e6c..6da7710 100644..100755 --- a/scripts/program_starter.sh +++ b/scripts/program_starter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if type rofi &>/dev/null then diff --git a/scripts/ssh_starter.sh b/scripts/ssh_starter.sh index 41fbdc9..41fbdc9 100644..100755 --- a/scripts/ssh_starter.sh +++ b/scripts/ssh_starter.sh diff --git a/scripts/toggle_syn_touchpad.sh b/scripts/toggle_syn_touchpad.sh new file mode 100755 index 0000000..9cc88a9 --- /dev/null +++ b/scripts/toggle_syn_touchpad.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +STATE=`synclient -l | grep TouchpadOff | awk '{ print $3 }'`; + +if [ "$STATE" == "0" ]; then +synclient TouchpadOff=1; else +synclient TouchpadOff=0 +fi + + +# Forces break of touchpad functions while typing +# 1 second follow interval. +if [ "$STATE" == "1" ]; then +syndaemon -i 1 -d; else +killall syndaemon +fi |
