Monitor switching
This commit is contained in:
父節點
45734badcb
當前提交
1b348f1b60
|
@ -11,7 +11,7 @@ getMouseX() {
|
|||
getMouveNextX() {
|
||||
if [ $(getMouseX) -lt $MONITOR1_WIDTH ]; then
|
||||
echo $(($MONITOR1_WIDTH + $MONITOR2_WIDTH / 2 - 10))
|
||||
elif [ $(getMouseX) -lt $(($MONITOR1_WIDTH + $MONITOR2_WIDTH)) ]; then
|
||||
elif [ -n "$MONITOR3_WIDTH" -a $(getMouseX) -lt $(($MONITOR1_WIDTH + $MONITOR2_WIDTH)) ]; then
|
||||
echo $(($MONITOR1_WIDTH + $MONITOR2_WIDTH + $MONITOR3_WIDTH / 2 - 10))
|
||||
else
|
||||
echo $((MONITOR1_WIDTH / 2 - 10))
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec ~/bin/i3_switch_monitor.sh 1920 1920 1024
|
||||
exec ~/bin/i3_switch_monitor.sh $(xrandr | grep ' connected' | sed 's/ primary//' | awk '{print $3}' | cut -dx -f1)
|
||||
|
|
載入中…
新增問題並參考