From df07e6f896eb0092070eb2b0ef731d320bb191b3 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 25 Jul 2019 15:41:03 -0400 Subject: [PATCH] Add fish functions for switching screens --- fish/.config/fish/functions/1screen.fish | 3 +++ fish/.config/fish/functions/3screens.fish | 3 +++ screenlayout/.screenlayout/single.sh | 4 ++-- screenlayout/.screenlayout/three.sh | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 fish/.config/fish/functions/1screen.fish create mode 100644 fish/.config/fish/functions/3screens.fish diff --git a/fish/.config/fish/functions/1screen.fish b/fish/.config/fish/functions/1screen.fish new file mode 100644 index 0000000..084ab02 --- /dev/null +++ b/fish/.config/fish/functions/1screen.fish @@ -0,0 +1,3 @@ +function 1screen + ~/.screenlayout/single.sh +end diff --git a/fish/.config/fish/functions/3screens.fish b/fish/.config/fish/functions/3screens.fish new file mode 100644 index 0000000..e10aa08 --- /dev/null +++ b/fish/.config/fish/functions/3screens.fish @@ -0,0 +1,3 @@ +function 3screens + ~/.screenlayout/three.sh +end diff --git a/screenlayout/.screenlayout/single.sh b/screenlayout/.screenlayout/single.sh index 943222e..de0cd8e 100755 --- a/screenlayout/.screenlayout/single.sh +++ b/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 & diff --git a/screenlayout/.screenlayout/three.sh b/screenlayout/.screenlayout/three.sh index 691bc82..aa3adf8 100755 --- a/screenlayout/.screenlayout/three.sh +++ b/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 &