From 8517ba66990e4772835d376a02fdf83b0be7be85 Mon Sep 17 00:00:00 2001 From: masterzu Date: Fri, 25 Jan 2019 14:22:18 +0100 Subject: [PATCH] dwm: add .xinitrc and .Xresources to enable auto run in startx --- .Xresources | 3 +++ .xinitrc | 27 +++++++++++++++++++++++++++ .xinitrc-keyboard | 1 + .xinitrc-xrandr | 2 ++ 4 files changed, 33 insertions(+) create mode 100644 .Xresources create mode 100644 .xinitrc create mode 100755 .xinitrc-keyboard create mode 100755 .xinitrc-xrandr diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..702e934 --- /dev/null +++ b/.Xresources @@ -0,0 +1,3 @@ +Xft.dpi: 180 +Xft.autohint: 1 +Xft.antialias: 1 diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..a44c645 --- /dev/null +++ b/.xinitrc @@ -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 + diff --git a/.xinitrc-keyboard b/.xinitrc-keyboard new file mode 100755 index 0000000..a48c4b4 --- /dev/null +++ b/.xinitrc-keyboard @@ -0,0 +1 @@ +setxkbmap -layout us,us -variant ,intl -option grp:rctrl_rshift_toggle diff --git a/.xinitrc-xrandr b/.xinitrc-xrandr new file mode 100755 index 0000000..c3f3d7a --- /dev/null +++ b/.xinitrc-xrandr @@ -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