aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/.local/bin/hdmi
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.local/bin/hdmi')
-rwxr-xr-xscripts/.local/bin/hdmi30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/.local/bin/hdmi b/scripts/.local/bin/hdmi
new file mode 100755
index 0000000..702c947
--- /dev/null
+++ b/scripts/.local/bin/hdmi
@@ -0,0 +1,30 @@
+#!/usr/bin/bash
+
+case $1 in
+ -l|--left)
+ xrandr --output DP-1 --left-of eDP-1 --auto;;
+ -r|--right)
+ xrandr --output DP-1 --right-of eDP-1 --auto;;
+ -o|--off)
+ xrandr --output DP-1 --off --auto;;
+ -t|--rotate)
+ xrandr --output DP-1 --rotate left --right-of eDP-1 --auto;;
+ --reload);;
+ *)
+ echo <<- EOF
+hdmi: Simple wrapper around xrandr to set the external display
+ appropriately, with the options mostly premade.
+
+ Options:
+ -l,--left Screen to the left of main.
+ -r,--right Screen to the right of main.
+ -o,--off Turn the other screen off.
+ -r,--rotate Rotate the screen left.
+ --reload Only reload the session.
+EOF
+exit 0;;
+esac
+
+~/.config/bspwm/bspwmrc >/dev/null 2>&1 &
+~/.fehbg >/dev/null 2>&1
+