diff options
author | Yann Herklotz <git@yannherklotz.com> | 2019-11-07 12:39:12 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2019-11-07 12:39:12 +0000 |
commit | 3fed8bf7b2915d2d00b830f5103a4962a29be4c7 (patch) | |
tree | 41e64a9f70fcaa57bf55d95a9928edbd2c57c186 /scripts/hdmi | |
parent | acedbb6a814796ee5b7e8f4e355b1757443dae22 (diff) | |
download | dotfiles-3fed8bf7b2915d2d00b830f5103a4962a29be4c7.tar.gz dotfiles-3fed8bf7b2915d2d00b830f5103a4962a29be4c7.zip |
Add scripts and services
Diffstat (limited to 'scripts/hdmi')
-rwxr-xr-x | scripts/hdmi | 30 |
1 files changed, 30 insertions, 0 deletions
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 + |