some fixes for x initialization
This commit is contained in:
parent
0c777c4d5d
commit
0b6da97fa9
3 changed files with 5 additions and 3 deletions
.config
|
@ -1,8 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Use $XINITRC variable if file exists.
|
|
||||||
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
|
|
||||||
|
|
||||||
# sudo not required for some system commands
|
# sudo not required for some system commands
|
||||||
for command in mount umount sv pacman apt updatedb su shutdown poweroff reboot ; do
|
for command in mount umount sv pacman apt updatedb su shutdown poweroff reboot ; do
|
||||||
alias $command="sudo $command"
|
alias $command="sudo $command"
|
||||||
|
|
|
@ -49,3 +49,8 @@ export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||||||
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
||||||
export ANSIBLE_NOCOWS=1 # Stop those fucking cows in Ansible
|
export ANSIBLE_NOCOWS=1 # Stop those fucking cows in Ansible
|
||||||
|
|
||||||
|
xcommand=${XDG_CONFIG_HOME:-$HOME/.config}/X11/startgraphical
|
||||||
|
|
||||||
|
[ ! -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && shortcuts >/dev/null 2>&1 &
|
||||||
|
|
||||||
|
[ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && ! pidof -s Xorg >/dev/null 2>&1 && exec $xcommand
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue