Switch to gnu stow and add emacs pdf-tools

This commit is contained in:
Marco Thomas
2022-01-24 09:23:32 +01:00
parent 8632359365
commit 888c9819e9
35 changed files with 714 additions and 87 deletions

14
scripts/polybar/polybar.sh Executable file
View File

@@ -0,0 +1,14 @@
connected=$(xrandr --query | grep "DP-3" | grep " connected" | cut -d" " -f1)
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
# workaround to always show tray, when external mon is connected
if [ "$m" == "eDP-1" ] && [ "$connected" == "DP-3" ]; then
pos="none"
fi
MON=$m TRAYPOS=$pos polybar --reload bar &
pos=
done
else
polybar --reload bar &
fi