diff options
author | Tom Willemse | 2020-04-26 21:01:48 -0700 |
---|---|---|
committer | Tom Willemse | 2020-04-26 21:34:57 -0700 |
commit | 5bb0014265536ee59a9d63625f716257bdd2785c (patch) | |
tree | 90843b8d8f1c1d48440cf1514ff0f045b1e0b2f2 /x11/.config/X11 | |
parent | 81c8b04af6f4d7db98be014e10f84dcdfbd363b9 (diff) | |
download | new-dotfiles-5bb0014265536ee59a9d63625f716257bdd2785c.tar.gz new-dotfiles-5bb0014265536ee59a9d63625f716257bdd2785c.zip |
Reorganize xsession and Xresources
- Add xsession. Instead of requiring each of my machines to setup their own
‘.xsession’ add one that should work for all of them.
- Use M4 for the Xresources database. I didn’t want the X11 project to be aware
of all the configuration files that could be added in there and I was able to
figure out how to have it load all of the configuration files in the
‘Xresources.d’ directory. Now each configuration can inject properties into the
X resources database.
- Have ‘.xsession’ load all of the scripts in ‘.config/X11/Xsession.d’. Each
configuration can now inject some script to run when X starts.
- Have ‘.xsession’ load a machine-specific script so that each machine can
override what it does when X starts.
Diffstat (limited to 'x11/.config/X11')
-rw-r--r-- | x11/.config/X11/Xresources | 35 | ||||
-rw-r--r-- | x11/.config/X11/Xresources.d/Xcursor.conf | 1 | ||||
-rw-r--r-- | x11/.config/X11/machines/drd.sh | 4 |
3 files changed, 40 insertions, 0 deletions
diff --git a/x11/.config/X11/Xresources b/x11/.config/X11/Xresources new file mode 100644 index 0000000..a3f34cb --- /dev/null +++ b/x11/.config/X11/Xresources @@ -0,0 +1,35 @@ +define(`prefix', `$HOME/.config/X11/Xresources.d/')dnl +define(`resources', `esyscmd(`ls -m ' prefix ` | tr -d \\n')')dnl +define(`includeall', `ifelse($1, `', `', `include($1)includeall(shift($@))')')dnl +dnl +dnl Background colors +define(`bgdefault', `#111414')dnl +define(`bgbright', `#3d3d3d')dnl +define(`bgdim', `#222222')dnl +define(`bgred', `#3f1a1a')dnl +define(`bgorange', `#3f321f')dnl +define(`bgyellow', `#343922')dnl +define(`bggreen', `#263f1f')dnl +define(`bgturquoise', `#1f3f2c')dnl +define(`bgcyan', `#1f3f3f')dnl +define(`bgblue', `#1f2c3f')dnl +define(`bgpurple', `#2f2a3f')dnl +define(`bgmagenta', `#381f3f')dnl +define(`bgpink', `#3f1f32')dnl +dnl +dnl Foreground colors +define(`fgdefault', `#bfbfbf')dnl +define(`fgbright', `#ededed')dnl +define(`fgdim', `#969696')dnl +define(`fgred', `#a85454')dnl +define(`fgorange', `#a88654')dnl +define(`fgyellow', `#8d995c')dnl +define(`fggreen', `#65a854')dnl +define(`fgturquoise', `#54a875')dnl +define(`fgcyan', `#54a8a8')dnl +define(`fgblue', `#5476a8')dnl +define(`fgpurple', `#7d71a8')dnl +define(`fgmagenta', `#9754a8')dnl +define(`fgpink', `#a85487')dnl +dnl +includeall(resources) diff --git a/x11/.config/X11/Xresources.d/Xcursor.conf b/x11/.config/X11/Xresources.d/Xcursor.conf new file mode 100644 index 0000000..4ad1649 --- /dev/null +++ b/x11/.config/X11/Xresources.d/Xcursor.conf @@ -0,0 +1 @@ +Xcursor.theme: pixelfun3 diff --git a/x11/.config/X11/machines/drd.sh b/x11/.config/X11/machines/drd.sh new file mode 100644 index 0000000..72eeb2e --- /dev/null +++ b/x11/.config/X11/machines/drd.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +xrandr --output HDMI-0 --auto --primary \ + --output DVI-I-1 --auto --right-of HDMI-0 --rotate left |