diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2016-01-11 19:29:14 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2016-01-11 19:35:22 +0100 |
| commit | 6d2a88231a0257e8f21b29022f0b69c8a8f2231b (patch) | |
| tree | c13d64b86f4b9a09ca5265818747e2c11f10bfcd /scripts | |
| parent | 667eb047290f24ddd3f90a3034fba917f40c5f12 (diff) | |
| download | dotfiles-6d2a88231a0257e8f21b29022f0b69c8a8f2231b.tar.gz dotfiles-6d2a88231a0257e8f21b29022f0b69c8a8f2231b.zip | |
let scripts deciede on its own which shell they use
1) make all scripts executable
2) remove shells in exec calls
3) add toggle_touchpad script to repo
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 |
