Move xrandr from xprofile to bspwm
This commit is contained in:
parent
5461c70146
commit
0d4587d023
2 changed files with 11 additions and 6 deletions
|
@ -9,23 +9,28 @@ bspc config presel_feedback_color "#6272a4"
|
||||||
|
|
||||||
host_name=$(cat /proc/sys/kernel/hostname)
|
host_name=$(cat /proc/sys/kernel/hostname)
|
||||||
if [[ $host_name == "portalo" ]]; then
|
if [[ $host_name == "portalo" ]]; then
|
||||||
|
xrandr --output $MONITOR_SECONDARY --left-of $MONITOR_SECONDARY
|
||||||
|
xrandr --output $MONITOR_PRIMARY --mode 2560x1440 --refresh 144
|
||||||
#primary="HDMI-A-0"
|
#primary="HDMI-A-0"
|
||||||
#secondary="DVI-D-0"
|
#secondary="DVI-D-0"
|
||||||
|
|
||||||
bspc monitor $MONITOR_PRIMARY -d web terminal 3 4 5 6 game
|
bspc monitor $MONITOR_PRIMARY -d web terminal 3 4 5 6 game
|
||||||
bspc monitor $MONITOR_SECONDARY -d side-view voip messenger
|
bspc monitor $MONITOR_SECONDARY -d side-view voip messenger
|
||||||
|
|
||||||
sleep 0.1
|
sleep 1
|
||||||
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
|
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
|
||||||
|
|
||||||
elif [[ $host_name == *"laptop"* ]]; then
|
elif [[ $host_name == *"laptop"* ]]; then
|
||||||
|
xrandr --output $MONITOR_PRIMARY --auto
|
||||||
|
xrandr --output $MONITOR_SECONDARY --left-of $MONITOR_PRIMARY --auto
|
||||||
|
|
||||||
#primary="eDP-1"
|
#primary="eDP-1"
|
||||||
#secondary="HDMI-2"
|
#secondary="HDMI-2"
|
||||||
|
|
||||||
bspc monitor $MONITOR_PRIMARY -d web terminal 3 4 5 6 messenger
|
bspc monitor $MONITOR_PRIMARY -d web terminal 3 4 5 6 messenger
|
||||||
bspc monitor $MONITOR_SECONDARY -d side-view 9 10
|
bspc monitor $MONITOR_SECONDARY -d side-view 9 10
|
||||||
|
|
||||||
sleep 0.1
|
sleep 1
|
||||||
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
|
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
|
||||||
else
|
else
|
||||||
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
|
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
|
||||||
|
|
|
@ -15,14 +15,14 @@ fi
|
||||||
|
|
||||||
_autostart_portalo()
|
_autostart_portalo()
|
||||||
{
|
{
|
||||||
xrandr --output DVI-D-0 --left-of HDMI-A-0
|
#xrandr --output DVI-D-0 --left-of HDMI-A-0
|
||||||
xrandr --output HDMI-A-0 --mode 2560x1440 --refresh 144
|
#xrandr --output HDMI-A-0 --mode 2560x1440 --refresh 144
|
||||||
}
|
}
|
||||||
|
|
||||||
_autostart_laptop()
|
_autostart_laptop()
|
||||||
{
|
{
|
||||||
xrandr --output eDP-1 --auto
|
#xrandr --output eDP-1 --auto
|
||||||
xrandr --output HDMI-2 --left-of eDP-1 --auto
|
#xrandr --output HDMI-2 --left-of eDP-1 --auto
|
||||||
}
|
}
|
||||||
|
|
||||||
_autostart_defaults()
|
_autostart_defaults()
|
||||||
|
|
Loading…
Reference in a new issue