Compare commits

...

6 Commits

Author SHA1 Message Date
Felix Van der Jeugt 6158a0967d
add snakeviz to executables 2021-08-17 10:07:06 +02:00
Felix Van der Jeugt e20322ef12
unsubscribe from github notifications via script 2021-08-17 10:04:19 +02:00
Felix Van der Jeugt 1311fb6ff4
ignore latex out files 2021-08-17 10:03:27 +02:00
Felix Van der Jeugt fd73f301d2
don't pause dunst when it's not running anyway 2021-08-17 10:02:57 +02:00
Felix Van der Jeugt f7e18bd198
drink 330ml ice tea again 2021-08-17 10:02:57 +02:00
Felix Van der Jeugt 464bc14f5c
use larger screen as primary 2021-08-17 10:02:57 +02:00
7 changed files with 21 additions and 14 deletions

View File

@ -30,6 +30,7 @@ target/
*.pdf
*.bbl
*.blg
*.out
# Python
__pycache__

View File

@ -32,6 +32,7 @@ alot
xmonad
shelltest
mmime
snakeviz
# shouldn't share this one with the world
macaddress

View File

@ -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

View File

@ -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"

6
local/bin/lock Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
{
sleep 1
xset dpms force off
} &
slock

View File

@ -1,8 +0,0 @@
#!/bin/sh
{
sleep 1
xset dpms force off
} &
killall -SIGUSR1 dunst # pause
slock
killall -SIGUSR2 dunst # resume

9
local/bin/munsubscribe Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
if [ -z "$*" ]; then
exec munsubscribe .
else
for url in $(mshow -qh list-unsubscribe "$@" | grep -o '<http[^>]*>' | sed -e 's/^<//' -e 's/>$//'); do
curl -w '%{http_code}' -s -o /dev/null "$url"
done
fi