dwm: add .xinitrc and .Xresources to enable auto run in startx

This commit is contained in:
masterzu 2019-01-25 14:22:18 +01:00
parent 8393bc2f16
commit 8517ba6699
4 changed files with 33 additions and 0 deletions

3
.Xresources Normal file
View File

@ -0,0 +1,3 @@
Xft.dpi: 180
Xft.autohint: 1
Xft.antialias: 1

27
.xinitrc Normal file
View File

@ -0,0 +1,27 @@
# hiDPI
test -f ~/.Xresources && xrdb -merge -I$HOME ~/.Xresources
# my keyboards
test -f ~/.xinitrc-keyboard && ~/.xinitrc-keyboard
# my monitors
test -f ~/.xinitrc-xrandr && ~/.xinitrc-xrandr
# add ssh keys at
eval $(ssh-agent)
# tools
# status
slstatus &
# restart with Alt-Shift-Q
# while true
# do
# dwm 2> ~/.dwm.log
# done
# or do a simple exec
exec ssh-agent dwm 2> ~/.dwm.log

1
.xinitrc-keyboard Executable file
View File

@ -0,0 +1 @@
setxkbmap -layout us,us -variant ,intl -option grp:rctrl_rshift_toggle

2
.xinitrc-xrandr Executable file
View File

@ -0,0 +1,2 @@
xrandr --output DVI-D-1 --primary --mode 1920x1080 --scale 1x1
xrandr --output HDMI-0 --mode 3840x2160 --scale 1x1 --right-of DVI-D-1