From 3fed8bf7b2915d2d00b830f5103a4962a29be4c7 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 7 Nov 2019 12:39:12 +0000 Subject: Add scripts and services --- scripts/hdmi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 scripts/hdmi (limited to 'scripts/hdmi') diff --git a/scripts/hdmi b/scripts/hdmi new file mode 100755 index 0000000..702c947 --- /dev/null +++ b/scripts/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 + -- cgit