1
0
Fork 0

some fixes for x initialization

This commit is contained in:
Luca Bilke 2023-02-07 14:42:14 +01:00
parent 0c777c4d5d
commit 0b6da97fa9
3 changed files with 5 additions and 3 deletions

View file

@ -1,8 +1,5 @@
#!/bin/sh
# Use $XINITRC variable if file exists.
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
# sudo not required for some system commands
for command in mount umount sv pacman apt updatedb su shutdown poweroff reboot ; do
alias $command="sudo $command"

View file

@ -49,3 +49,8 @@ export LESS_TERMCAP_ue="$(printf '%b' '')"
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
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