Fix stuff

This commit is contained in:
Marco Thomas
2022-02-03 06:35:42 +01:00
parent 1f7db961d8
commit fd31cdf2ca
13 changed files with 164 additions and 305 deletions

View File

@@ -1,10 +1,8 @@
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"
# only show on internal display
if [ "$m" == "eDP-1" ]; then
pos="right"
fi
MON=$m TRAYPOS=$pos polybar --reload bar &
pos=

View File

@@ -138,4 +138,5 @@ except Exception as e:
if isinstance(e, dbus.exceptions.DBusException):
print('')
else:
print(e)
# i dont want long exceptions strings in my bar
print('')