From 358fc1cf93d2091b9f600ac32838ebc8706bcb7d Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 19 Dec 2014 00:26:04 +0100 Subject: [PATCH] add scripts and improve structure --- .../herbstluftwm}/autostart | 0 .../herbstluftwm}/panel.sh | 0 local/bin/eztv_add_selection.sh | 3 +++ local/bin/nyaa_add_selection.sh | 1 + local/bin/plop.mp3 | Bin 0 -> 17037 bytes local/bin/pwcalc.sh | 18 ++++++++++++++++++ local/bin/shoot.sh | 11 +++++++++++ local/bin/sound_control.sh | 12 ++++++++++++ local/bin/sound_notification.sh | 4 ++++ local/bin/spawn | 3 +++ 10 files changed, 52 insertions(+) rename {herbstluftwm => config/herbstluftwm}/autostart (100%) rename {herbstluftwm => config/herbstluftwm}/panel.sh (100%) create mode 100755 local/bin/eztv_add_selection.sh create mode 100755 local/bin/nyaa_add_selection.sh create mode 100644 local/bin/plop.mp3 create mode 100755 local/bin/pwcalc.sh create mode 100755 local/bin/shoot.sh create mode 100755 local/bin/sound_control.sh create mode 100755 local/bin/sound_notification.sh create mode 100755 local/bin/spawn diff --git a/herbstluftwm/autostart b/config/herbstluftwm/autostart similarity index 100% rename from herbstluftwm/autostart rename to config/herbstluftwm/autostart diff --git a/herbstluftwm/panel.sh b/config/herbstluftwm/panel.sh similarity index 100% rename from herbstluftwm/panel.sh rename to config/herbstluftwm/panel.sh diff --git a/local/bin/eztv_add_selection.sh b/local/bin/eztv_add_selection.sh new file mode 100755 index 0000000..bde0159 --- /dev/null +++ b/local/bin/eztv_add_selection.sh @@ -0,0 +1,3 @@ +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/nyaa_add_selection.sh b/local/bin/nyaa_add_selection.sh new file mode 100755 index 0000000..aa34036 --- /dev/null +++ b/local/bin/nyaa_add_selection.sh @@ -0,0 +1 @@ +xclip -o | sed -n 's/view/download/p' | xargs transmission-remote --add diff --git a/local/bin/plop.mp3 b/local/bin/plop.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..b0bbe06df93d84c40c95d0fb8c7c73bb00bcec2c GIT binary patch literal 17037 zcmeIZWmg`+nQ|AM9Fd zR#&Z>?&+SRuj)(AmY3p!27I(&Ej>Lw@D>vQfC8D>JG+^fyO}vz0xZqkZ2|vh4&!6a z&Ivr{W##5>=j;Sv|G!hj;3*4dkc*jzow=jcfBU)v?A)DsK`z`J04+^TY4E{O!QWCc z^RnjQW#wk&VCVSw;s4X#U&a1!_y2P%?_})^o`eH`=m7u;XaE8N8X67`4lyw$B_%yQ z8yg!B&!(-#s;Y*D zhW7T}-rnKi$;rw2`PJ3cot>kjqx19Y>+AdbKY#wbzyH6UF7^LC#rM|~O8@|}A5A5b zeHg$^4%b{91Hc~mEG$qJ0;mO;e*=&M05HY0R1+@L2+*TYP+b3~v40!^o?I*pdbK%# z4DJg+3>_MR{iFBuqX$s>=)Lv^uaJ!$g^*tc&xRlUdH)Qa6ZrD;A3P+S$W751dH7(l z7#ZB?-O=x0{r8U@-G)OGy2;(tu)sS99=)@oMgJ{X)FXGNzdb_@hW_&NHx4A+d+_`F z{%@2OB$T0TWrhb_MSUdEq7q`ruwOC*n4Y6M=y+VnptzUX3U2@O%3dyBRSY2Pr!L1I z4|U7|!|SF7=}t=nRksw|gG&sADLh9$x6knoLC8KokB0Y;%&tN5T}=($8rllbz1~KTnfmSrse_w=P_W zd1L(a&^YLF01RW_z$^re!K2VfsaKgkGtVfQeyrcT%S1E02EwBzq-K*G}YNXiIdvPnh?5DILe^pVtZmYe#q0(_Q$i!4W zN_cl99oDEpjkkcr>(;jGv7?|?bK;lziHGu8%W$GE)Y9dLa^erxhUh&=QG%2H7>naPFg2wx092|yc&XHKGS zm}(9&69W^{$^aG8q?l$VS=!hT*Rw8APFo7aaahA+x09iNGsl>zut>7LFnis%3ua_h z&MDQ^5vt{$EWi%*M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Q(Wm<;?ob-giERb}{VXWMYywerj36>(W&eY#L`7mQ&J`6xhGdoh`IAA|(LAAW#6 zg#<-6_K)HNB>xO1?eAESE_`mYuNZD-%hZ{x8s; z>7zW(g8AmV-07Ms^UgX&TnSI#D0U;R2`{lOmk}$2%B zMb2J!CfYX}v|(oeL@LM-)op?jiodfj7TSms(CjgQIqG)Cb^)+Ex%;hO_S>FsV z&@c`c1CCc`4K--Jn>uUm|E7!o?w^3hS>EUkYYscJ7~*XCOs3-Khne{)kGX&j@+*D` z0+(I$v_X7r*)HJ?vt#&JXBi`p($DW>{}=7~8vIpZk`Cmo?xr8GQ7rX(W&q^`MoYhrW=!EoF$ z1q(yuh3sd2p8Q;&D3q}xGnPym+D^4-))K+7n6n5K`D=Q?hfD*eh7UqK02l%r`36^V z03$iPOECaII2|a^(-i^;4KbGlzX_h@KF`Td+nT@tWBvF|P<~nyw|y(^Pgk>cMlZ|Q zErCpEdrf<=w=UhUIK%b9*Pu_$&H?5#PZ{8MSP`&v=m!r=Y`q6a+d61?b*}n=_82M; zYO^FAq|-$=OvI7%s6>>;X4LLi;cu>ql`puBl9`iI+V{j4ttIku=)~m8H3+KY7pW~>}*|E~7kPPlZflDM)o7ps5(D^KnJ-~Rgt{vWhAV%7iv literal 0 HcmV?d00001 diff --git a/local/bin/pwcalc.sh b/local/bin/pwcalc.sh new file mode 100755 index 0000000..5a83eb9 --- /dev/null +++ b/local/bin/pwcalc.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Reading input {{{ + +# Terminal +#read -p "Alias: " alias_ +#read -s -p "Secret: " secret + +# GUI +pair="$(zenity --password --username --title="Password Calculator")" +alias_="${pair%|*}" +secret="${pair#*|}" + +pass="$(echo -n "$secret$alias_" | shasum | xxd -r -p | base64 | colrm 17)" + +echo -n "$pass" | xclip +notify-send "xclip set to ${pass:0:3}...${pass:(-3):3}" + diff --git a/local/bin/shoot.sh b/local/bin/shoot.sh new file mode 100755 index 0000000..7f6304a --- /dev/null +++ b/local/bin/shoot.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +file="$(mktemp XXXXXX.png)" +scrot $* "$file" +chmod 755 $file +scp -P 2222 "$file" ftper@178.116.153.116:'~/Pictures' +rm "$file" +url="http://178.116.153.116:8080/$file" +notify-send "Screenshot uploaded to $url" +echo "$url" | xclip -sel c + diff --git a/local/bin/sound_control.sh b/local/bin/sound_control.sh new file mode 100755 index 0000000..f2acf78 --- /dev/null +++ b/local/bin/sound_control.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +command="${1:=toggle}" + +current="$(amixer get Master | sed -n '/%/s/.*\[\(.*\)%\].*/\1/p' | head -1)" + +case $command in + toggle) amixer set Master toggle ;; + down) amixer set Master "$((current - 5))%" ;; + up) amixer set Master "$((current + 5))%" ;; + *) notify-send "learn to volume" ;; +esac diff --git a/local/bin/sound_notification.sh b/local/bin/sound_notification.sh new file mode 100755 index 0000000..6323825 --- /dev/null +++ b/local/bin/sound_notification.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +mpv ./plop.mp3 + diff --git a/local/bin/spawn b/local/bin/spawn new file mode 100755 index 0000000..459994d --- /dev/null +++ b/local/bin/spawn @@ -0,0 +1,3 @@ +#!/bin/bash + +herbstclient spawn $@