diff --git a/config/git/ignore b/config/git/ignore index 15c98fe..2d9bd54 100644 --- a/config/git/ignore +++ b/config/git/ignore @@ -30,6 +30,7 @@ target/ *.pdf *.bbl *.blg +*.out # Python __pycache__ diff --git a/local/bin/.gitignore b/local/bin/.gitignore index f6f4463..9d78f1f 100644 --- a/local/bin/.gitignore +++ b/local/bin/.gitignore @@ -32,6 +32,7 @@ alot xmonad shelltest mmime +snakeviz # shouldn't share this one with the world macaddress diff --git a/local/bin/dockmode b/local/bin/dockmode index e8a149b..0957ecd 100755 --- a/local/bin/dockmode +++ b/local/bin/dockmode @@ -8,14 +8,12 @@ dp1_2="$(xrandr | grep '^DP1-2 connected')" dp1_3="$(xrandr | grep '^DP1-3 connected')" if [ -n "$dp1" -a -z "$dp1_1" -a -z "$dp1_2" -a -z "$dp1_3" ]; then - xrandr --output DP1 --auto --above eDP1 + xrandr --output DP1 --auto --primary --above eDP1 elif [ -z "$dp1" -a -n "$dp1_1" -a -z "$dp1_2" -a -z "$dp1_3" ]; then - xrandr --output DP1-1 --auto --above eDP1 + xrandr --output DP1-1 --auto --primary --above eDP1 elif [ -z "$dp1" -a -n "$dp1_1" -a -n "$dp1_2" -a -z "$dp1_3" ]; then xrandr --output DP1-1 --auto --left-of eDP1 \ --output DP1-2 --auto --right-of eDP1 elif [ -z "$dp1" -a -z "$dp1_1" -a -z "$dp1_2" -a -n "$dp1_3" ]; then - xrandr --output DP1-3 --auto --above eDP1 + xrandr --output DP1-3 --auto --primary --above eDP1 fi - -~/.fehbg diff --git a/local/bin/icetea b/local/bin/icetea index deb4d6a..5ede15e 100755 --- a/local/bin/icetea +++ b/local/bin/icetea @@ -6,6 +6,6 @@ token="$(pass show ugent/zeus/tap)" curl --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header "Authorization: Token token=$token" \ - --data '{"order":{"order_items_attributes":[{"count":1,"product_id":180}]}}' \ + --data '{"order":{"order_items_attributes":[{"count":1,"product_id":1}]}}' \ --location \ "$base/users/$user/orders.json" diff --git a/local/bin/lock b/local/bin/lock new file mode 100755 index 0000000..d05ba9d --- /dev/null +++ b/local/bin/lock @@ -0,0 +1,6 @@ +#!/bin/sh +{ + sleep 1 + xset dpms force off +} & +slock diff --git a/local/bin/lock.sh b/local/bin/lock.sh deleted file mode 100755 index f781ca5..0000000 --- a/local/bin/lock.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -{ - sleep 1 - xset dpms force off -} & -killall -SIGUSR1 dunst # pause -slock -killall -SIGUSR2 dunst # resume diff --git a/local/bin/munsubscribe b/local/bin/munsubscribe new file mode 100755 index 0000000..82eeaef --- /dev/null +++ b/local/bin/munsubscribe @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -z "$*" ]; then + exec munsubscribe . +else + for url in $(mshow -qh list-unsubscribe "$@" | grep -o ']*>' | sed -e 's/^$//'); do + curl -w '%{http_code}' -s -o /dev/null "$url" + done +fi