Fix stuff
This commit is contained in:
@@ -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=
|
||||
|
||||
@@ -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('')
|
||||
|
||||
Reference in New Issue
Block a user