diff options
author | Guangxiong Lin <[email protected]> | 2021-10-20 14:54:30 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2021-10-20 14:54:54 +0800 |
commit | dd319bbce71fa643ea95fa9422b4c9a99661869f (patch) | |
tree | e44f567f254f73a3ea6b1c8627e6905f72c6708b /.xinitrc | |
parent | 935e3857808edea0b5ff3589f2462b400304f4f3 (diff) | |
download | dotfiles-dd319bbce71fa643ea95fa9422b4c9a99661869f.tar.gz dotfiles-dd319bbce71fa643ea95fa9422b4c9a99661869f.tar.bz2 dotfiles-dd319bbce71fa643ea95fa9422b4c9a99661869f.zip |
Add config of i3wm and dwm
Diffstat (limited to '.xinitrc')
-rw-r--r-- | .xinitrc | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..5e407c2 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,58 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + + + + + + + + xrdb -merge $sysresources + +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f "$userresources" ]; then + + + + + + + + xrdb -merge "$userresources" + +fi + +if [ -f "$usermodmap" ]; then + xmodmap "$usermodmap" +fi + +# start some nice programs + +if [ -d /etc/X11/xinit/xinitrc.d ] ; then + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +# twm & +# xclock -geometry 50x50-1+1 & +# xterm -geometry 80x50+494+51 & +# xterm -geometry 80x20+494-0 & +# exec xterm -geometry 80x66+0+0 -name login + +# exec startdwm +exec dbus-launch i3 |