aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-22 22:29:46 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-22 22:29:46 +0100
commit4cd7fa7d212d11a40b20f21cbfcd74f5863ce23a (patch)
tree10dff49a28788bfb8bbabf4fa380de817352767c /bin
parent9a57b5a5bb5c48bc76bc10c9cbc0809019d91e61 (diff)
parentabe2b612c9f672039894766e72fbba356c7bcfdc (diff)
downloaddotfiles-4cd7fa7d212d11a40b20f21cbfcd74f5863ce23a.tar.gz
dotfiles-4cd7fa7d212d11a40b20f21cbfcd74f5863ce23a.tar.bz2
dotfiles-4cd7fa7d212d11a40b20f21cbfcd74f5863ce23a.zip
Merge remote-tracking branch 'origin/carbon'
Diffstat (limited to 'bin')
-rwxr-xr-xbin/project-open9
-rwxr-xr-xbin/tag-music2
-rwxr-xr-xbin/touchpad-toggle7
3 files changed, 11 insertions, 7 deletions
diff --git a/bin/project-open b/bin/project-open
index 955d31d..adb27a4 100755
--- a/bin/project-open
+++ b/bin/project-open
@@ -34,12 +34,13 @@ else
"clone")
while [ -z "$remote_choice" ]
do
- remote_choice=$(printf 'github.com\ncacharle.xyz\nother' | dmenu -p "Remote location")
+ remote_choice=$(printf 'github.com\ncacharle.xyz\nclipboard\nother' | dmenu -p "Remote location")
done
case "$remote_choice" in
- "github.com") prefix='git@github.com:cacharle/' ;;
- "cacharle.xyz") prefix='git@cacharle.xyz:/srv/git/' ;;
- "other") ;;
+ github.com) prefix='git@github.com:cacharle/' ;;
+ cacharle.xyz) prefix='git@cacharle.xyz:/srv/git/' ;;
+ clipboard) dest="$(xclip -selection clipboard -o)" ;;
+ other) ;;
esac
url="$prefix$(echo "$dest" | dmenu -p "Enter repository url: $prefix")"
st -e /bin/sh -c "git clone --recursive '$url' '$dest_path' && cd '$dest_path' && exec $SHELL" ||
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