mirror of
https://github.com/arcan1s/dotfiles.git
synced 2026-11-19 17:49:30 +00:00
edited twinmon function
This commit is contained in:
1 parent
6f17727208
commit
7611aff35b
1 file changed
+2
-4
@@ -321,13 +321,11 @@ projctl () {
|
|||||||
|
|
||||||
twinmon () {
|
twinmon () {
|
||||||
FIRSTMON="LVDS1"
|
FIRSTMON="LVDS1"
|
||||||
FIRSTMONRESOL="1366x768"
|
|
||||||
SECONDMON="VGA1"
|
SECONDMON="VGA1"
|
||||||
SECONDMONRESOL="1280x1024"
|
|
||||||
if [[ $1 == "off" ]]; then
|
if [[ $1 == "off" ]]; then
|
||||||
xrandr --output $FIRSTMON --mode $FIRSTMONRESOL --primary --output $SECONDMON --off
|
xrandr --output $FIRSTMON --auto --primary --output $SECONDMON --off
|
||||||
else
|
else
|
||||||
xrandr --output $FIRSTMON --mode $FIRSTMONRESOL --primary --output $SECONDMON --mode $SECONDMONRESOL --left-of $FIRSTMON
|
xrandr --output $FIRSTMON --auto --primary --output $SECONDMON --auto --left-of $FIRSTMON
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user