From 664705af4fd426ebc880cb561ba2c21b96c73de5 Mon Sep 17 00:00:00 2001 From: Aney Date: Thu, 2 Jul 2020 18:37:35 +0100 Subject: [PATCH] Changes to config scripts --- config/keyboard_changes.sh | 2 +- config/sd_switch_display.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 config/sd_switch_display.sh diff --git a/config/keyboard_changes.sh b/config/keyboard_changes.sh index a6f822e..b52ecee 100755 --- a/config/keyboard_changes.sh +++ b/config/keyboard_changes.sh @@ -3,7 +3,7 @@ /usr/bin/setxkbmap -option caps:swapescape # I need this to be only for apple devices... -/usr/bin/setxkbmap -option altwin:swap_alt_win +#/usr/bin/setxkbmap -option altwin:swap_alt_win # Key Repeat Rate diff --git a/config/sd_switch_display.sh b/config/sd_switch_display.sh new file mode 100755 index 0000000..8846771 --- /dev/null +++ b/config/sd_switch_display.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# If the display is plugged in, change to that. +# If the display is not plugged in, use the laptop display + +if [ $1 == 1 ] +then + xrandr --output VGA-1 --auto --primary --output LVDS-1 --off +else + xrandr --output LVDS-1 --auto --primary --output VGA-1 --off +fi + +feh --bg-scale ~/pictures/wallpapers/mist_forrest.jpg