kbd notif in awesome

This commit is contained in:
Simonas Narbutas
2018-07-30 14:57:54 +02:00
parent 2e41d7601d
commit fd56f2ca1c
4 changed files with 46 additions and 10 deletions

View File

@@ -1,12 +1,15 @@
#!/bin/sh
DISPLAY_COUNT=$(xrandr -d :0 -q | grep ' connected' | wc -l)
if [ "$DISPLAY_COUNT" == 2 ]
if [ "$DISPLAY_COUNT" == 3 ]
then
xrandr --output HDMI2 --set "Broadcast RGB" "Full" --off --output HDMI1 --mode 2560x1440 --pos 1920x0 --rotate normal --output DP1 --set "Broadcast RGB" "Full" --off --output eDP1 --primary --mode 1920x1080 --pos 0x360 --rotate normal --output VIRTUAL1 --off
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x360 --rotate normal
xrandr --output DP1-2 --mode 2560x1440 --pos 4480x0 --rotate normal
xrandr --output DP1-1 --mode 2560x1440 --pos 1920x0 --rotate normal
elif [ "$DISPLAY_COUNT" == 1 ]
then
xrandr --output HDMI2 --off --output HDMI1 --off --output DP1 --off --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off
elif [ "$DISPLAY_COUNT" == 3 ]
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
elif [ "$DISPLAY_COUNT" == 2 ]
then
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1920x1080 --pos 0x360 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --off --output DP1-2 --mode 2560x1440 --pos 4480x0 --rotate normal --output DP1-1 --mode 2560x1440 --pos 1920x0 --rotate normal
xrandr --output HDMI1 --mode 2560x1440 --pos 1920x0 --rotate normal
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x360 --rotate normal
fi