From 2afe70564700a4ab5c9099d9b19a89ad9875eee8 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 1 Apr 2016 09:08:46 +0200 Subject: [PATCH] clean up scripts --- local/bin/bundle | 1 - local/bin/connect | 4 ++-- local/bin/eztv_add_selection.sh | 3 --- local/bin/intellij | 3 --- local/bin/nyaa_add_selection.sh | 1 - local/bin/profile_bash.sh | 0 local/bin/sambamount.sh | 1 - local/bin/sleepless.sh | 6 ------ local/bin/vimus | 1 - local/bin/zeven.sh | 2 -- 10 files changed, 2 insertions(+), 20 deletions(-) delete mode 120000 local/bin/bundle delete mode 100755 local/bin/eztv_add_selection.sh delete mode 100755 local/bin/intellij delete mode 100755 local/bin/nyaa_add_selection.sh mode change 100644 => 100755 local/bin/profile_bash.sh delete mode 100755 local/bin/sambamount.sh delete mode 100755 local/bin/sleepless.sh delete mode 120000 local/bin/vimus delete mode 100755 local/bin/zeven.sh diff --git a/local/bin/bundle b/local/bin/bundle deleted file mode 120000 index 335fb63..0000000 --- a/local/bin/bundle +++ /dev/null @@ -1 +0,0 @@ -/home/felix/.gem/ruby/2.3.0/bin/bundle \ No newline at end of file diff --git a/local/bin/connect b/local/bin/connect index 53d7cc6..f9cfe0b 100755 --- a/local/bin/connect +++ b/local/bin/connect @@ -1,3 +1,3 @@ #!/bin/bash -profile="$(netctl list | dmenu | sed 's/.* //')" -urxvtc -e sudo netctl switch-to "$profile" +profile="$(wifish list 2>&1 | sed '1,/SSID/d' | sed 's/"\([^"]*\)".*/\1/' | dmenu)" +[ -z "$profile" ] && wifish connect "$profile" diff --git a/local/bin/eztv_add_selection.sh b/local/bin/eztv_add_selection.sh deleted file mode 100755 index bde0159..0000000 --- a/local/bin/eztv_add_selection.sh +++ /dev/null @@ -1,3 +0,0 @@ -wget "$(xclip -o)" -O "eztv_add_selection.html" -cat "eztv_add_selection.html" | grep 'class="magnet"' | sed 's/.*\("magnet:[^"]*"\).*/\1/' | xargs transmission-remote --add -rm "eztv_add_selection.html" diff --git a/local/bin/intellij b/local/bin/intellij deleted file mode 100755 index 6f89085..0000000 --- a/local/bin/intellij +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -_JAVA_AWT_WM_NONREPARENTING=1 exec idea.sh diff --git a/local/bin/nyaa_add_selection.sh b/local/bin/nyaa_add_selection.sh deleted file mode 100755 index aa34036..0000000 --- a/local/bin/nyaa_add_selection.sh +++ /dev/null @@ -1 +0,0 @@ -xclip -o | sed -n 's/view/download/p' | xargs transmission-remote --add diff --git a/local/bin/profile_bash.sh b/local/bin/profile_bash.sh old mode 100644 new mode 100755 diff --git a/local/bin/sambamount.sh b/local/bin/sambamount.sh deleted file mode 100755 index e8fbf1a..0000000 --- a/local/bin/sambamount.sh +++ /dev/null @@ -1 +0,0 @@ -sudo mount -t cifs //files.ugent.be/fvdrjeug /home/felix/samba -o user=fvdrjeug,password="$(twpcalc.sh)" diff --git a/local/bin/sleepless.sh b/local/bin/sleepless.sh deleted file mode 100755 index 7537704..0000000 --- a/local/bin/sleepless.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -pkill redshift -xautolock -disable -xset dpms 0 0 0 - diff --git a/local/bin/vimus b/local/bin/vimus deleted file mode 120000 index b50933f..0000000 --- a/local/bin/vimus +++ /dev/null @@ -1 +0,0 @@ -/home/felix/Programming/vimus/dist/dist-sandbox-b7985571/build/vimus/vimus \ No newline at end of file diff --git a/local/bin/zeven.sh b/local/bin/zeven.sh deleted file mode 100755 index e20eac7..0000000 --- a/local/bin/zeven.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -PULSE_SERVER=ZEVEN rofi -show run