From 464bc14f5cefc760ebd7ec5baa514074070acbbc Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 17 Aug 2021 09:59:41 +0200 Subject: [PATCH 1/6] use larger screen as primary --- local/bin/dockmode | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 From f7e18bd1985ff3c3bd9ed57521fbed6a0672609a Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 17 Aug 2021 10:00:21 +0200 Subject: [PATCH 2/6] drink 330ml ice tea again --- local/bin/icetea | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From fd73f301d200964b77e531fe8324dc473b5ce0ac Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 17 Aug 2021 10:01:22 +0200 Subject: [PATCH 3/6] don't pause dunst when it's not running anyway --- local/bin/lock | 6 ++++++ local/bin/lock.sh | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100755 local/bin/lock delete mode 100755 local/bin/lock.sh 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 From 1311fb6ff492d59692ee2474b55824177531dfd7 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 17 Aug 2021 10:03:27 +0200 Subject: [PATCH 4/6] ignore latex out files --- config/git/ignore | 1 + 1 file changed, 1 insertion(+) 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__ From e20322ef12f63cf99dfe8012e3f53f66d1e9e2d8 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 17 Aug 2021 10:04:19 +0200 Subject: [PATCH 5/6] unsubscribe from github notifications via script --- local/bin/munsubscribe | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 local/bin/munsubscribe 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 From 6158a0967dfad1293f231879e611f97688d48fb8 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 17 Aug 2021 10:07:06 +0200 Subject: [PATCH 6/6] add snakeviz to executables --- local/bin/.gitignore | 1 + 1 file changed, 1 insertion(+) 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