diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-24 17:07:33 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-24 17:07:33 +0100 |
| commit | 468a789dbc4b1928c035d8590895efc533520a27 (patch) | |
| tree | 74cb056c37eaa50cd50491a7665608488ed4feb1 /config/startx/xinitrc | |
| parent | f9883d2c3b3699d91e98feeffd7eece546f7c57e (diff) | |
| download | dotfiles-468a789dbc4b1928c035d8590895efc533520a27.tar.gz dotfiles-468a789dbc4b1928c035d8590895efc533520a27.tar.bz2 dotfiles-468a789dbc4b1928c035d8590895efc533520a27.zip | |
Updated file tree to match XDG base directory specification
Diffstat (limited to 'config/startx/xinitrc')
| -rwxr-xr-x | config/startx/xinitrc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/config/startx/xinitrc b/config/startx/xinitrc new file mode 100755 index 0000000..860fed2 --- /dev/null +++ b/config/startx/xinitrc @@ -0,0 +1,25 @@ +#!/usr/bin/env sh + +# xinput disable 'ETPS/2 Elantech Touchpad' & + +echo 'Starting redshift' +redshift -c $HOME/.config/redshift.conf & +echo 'Starting dunst' +dunst & +xset r rate 200 50 + +case "$(cat /etc/hostname)" in + cacharle-main) + xrandr --output DVI-0 --auto --left-of DVI-1 \ + --output DVI-1 --mode 1920x1080 --primary --left-of HDMI-0 \ + --output HDMI-0 --mode 1920x1080 + ;; + + charles-laptop) + xrandr | grep 'VGA1.*connected' && + xrandr --output LVDS1 --primary --left-of VGA1 \ + --output VGA1 --mode 1280x1024 + ;; +esac + +exec xmonad |
