diff --git a/shellrc b/shellrc index b0d8871..518cfea 100644 --- a/shellrc +++ b/shellrc @@ -201,6 +201,10 @@ seconds-to-hr() { } tmuxrc() { tmux source-file "${HOME}/.tmux.conf"; tmux display-message "Config reloaded."; } + +if [[ -z "${DISPLAY}" ]]; then + x() { exec xinit -- :0 -nolisten tcp vt$XDG_VTNR; } +fi # }}} if is_zsh; then # zsh diff --git a/xinitrc b/xinitrc new file mode 100644 index 0000000..d929758 --- /dev/null +++ b/xinitrc @@ -0,0 +1,3 @@ +xrandr --output HDMI1 --primary --mode 1920x1080 --pos 0x0 --output VGA1 --mode 1280x1024 --pos 1920x56 +xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY +exec awesome