Start i3 using startx (no DM anymore)

This commit is contained in:
2020-12-09 22:14:58 +01:00
parent 2899365292
commit 566fac75b0
2 changed files with 19 additions and 20 deletions

View File

@@ -114,20 +114,10 @@ dircolors --print-database uses its own built-in database instead of using /etc/
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
#+END_SRC
** SSH Agent
#+begin_src bash
# if ! pgrep -u "$USER" ssh-agent > /dev/null; then
# ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
# fi
# if [[ ! "$SSH_AUTH_SOCK" ]]; then
# eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
# fi
#+end_src
** Rebind up and down arrow keys to search through bash history
#+BEGIN_SRC bash
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
#+END_SRC
** Aliases
@@ -387,6 +377,13 @@ This is important for termite to work when sshing in remote machines.
export PATH
#+END_SRC
** Automatically run =startx=
#+begin_src bash
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx
fi
#+end_src
* Input
:PROPERTIES:
:header-args: :tangle ~/.inputrc