瀏覽代碼

Add fish functions for switching screens

Colin Powell 6 年之前
父節點
當前提交
df07e6f896

+ 3 - 0
fish/.config/fish/functions/1screen.fish

@@ -0,0 +1,3 @@
+function 1screen
+	~/.screenlayout/single.sh
+end

+ 3 - 0
fish/.config/fish/functions/3screens.fish

@@ -0,0 +1,3 @@
+function 3screens
+	~/.screenlayout/three.sh
+end

+ 2 - 2
screenlayout/.screenlayout/single.sh

@@ -1,5 +1,5 @@
 #!/bin/sh
 xrandr --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --off --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-2 --off
 setxkbmap -option caps:escape &
-xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics ClickPad" 0 &
-xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 &
+#xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics ClickPad" 0 &
+#xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 &

+ 2 - 1
screenlayout/.screenlayout/three.sh

@@ -1,2 +1,3 @@
 #!/bin/sh
-xrandr --output HDMI-2 --off --output HDMI-1 --mode 1920x1080 --pos 4480x0 --rotate left --output DP-1 --off --output eDP-1 --primary --mode 1920x1080 --pos 2560x232 --rotate normal --output DP-2 --mode 2560x1440 --pos 0x0 --rotate normal
+xrandr --output HDMI-2 --off --output HDMI-1 --mode 1920x1080 --pos 1920x0 --rotate left --output DP-1 --off --output eDP-1 --primary --mode 1920x1080 --pos 0x304 --rotate normal --output DP-2 --mode 1920x1080 --pos 3000x840 --rotate normal
+setxkbmap -option caps:escape &