aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tag-music2
-rwxr-xr-xbin/touchpad-toggle7
2 files changed, 6 insertions, 3 deletions
diff --git a/bin/tag-music b/bin/tag-music
index e801132..826a83a 100755
--- a/bin/tag-music
+++ b/bin/tag-music
@@ -25,7 +25,7 @@ do
song="$(echo "$song" | cut -d '-' -f 2-)"
fi
# echo $track $song
- echo $song_file
+ # echo $song_file
taffy --artist "$artist" --album "$album" --title "$song" --track "$track" "$song_file"
done
done
diff --git a/bin/touchpad-toggle b/bin/touchpad-toggle
index f0a86a1..e4dc959 100755
--- a/bin/touchpad-toggle
+++ b/bin/touchpad-toggle
@@ -4,6 +4,9 @@ touchpad_name='ETPS/2 Elantech Touchpad'
active="$(xinput list-props "$touchpad_name" | grep 'Device Enabled' | cut -f 3)"
-[ "$active" -eq 1 ] &&
- xinput disable "$touchpad_name" ||
+if [ "$active" -eq 1 ]
+then
+ xinput disable "$touchpad_name"
+else
xinput enable "$touchpad_name"
+fi