Start i3 using startx (no DM anymore)

This commit is contained in:
Thomas Dehaeze 2020-12-09 22:14:58 +01:00
parent 2e29d7d8bd
commit cb52184f0b
2 changed files with 19 additions and 20 deletions

View File

@ -114,16 +114,6 @@ 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'
@ -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

View File

@ -397,10 +397,20 @@ Merge in defaults and keymaps
fi
#+END_SRC
Start =gnome-keyring-daemon=.
#+begin_src bash
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
#+end_src
#+begin_src bash
[ -f ~/.xprofile ] && . ~/.xprofile
#+end_src
#+begin_src bash
exec i3
#+end_src
* Xprofile
:PROPERTIES:
:header-args: :tangle ~/.xprofile
@ -440,16 +450,8 @@ Start programs related to display.
picom --daemon &
#+end_src
Start other applications
#+begin_src bash
# Start Power Manager
xfce4-power-manager &
# Aria2c daemon
# aria2c &
# Mopidy
# mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 &
systemctl --user start mopidy
#+end_src