big xinit fix
This commit is contained in:
parent
09632e19ce
commit
0acdb5b950
1 changed files with 25 additions and 15 deletions
40
.xinitrc
40
.xinitrc
|
@ -1,16 +1,8 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# xinitrc runs automatically when you run startx.
|
# xinitrc runs automatically when you run startx.
|
||||||
|
|
||||||
# There are some small but important commands that need to be run when we start
|
guesswm() {
|
||||||
# the graphical environment. I keep those commands in ~/.xprofile because that
|
|
||||||
# file is run automatically if someone uses a display manager (login screen)
|
|
||||||
# and so they are needed there. To prevent doubling up commands, I source them
|
|
||||||
# here with the line below.
|
|
||||||
|
|
||||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
|
||||||
|
|
||||||
startlarbs() {
|
|
||||||
# Here, LARBS decides whether to boot dwm or i3. It will boot what is manually
|
# Here, LARBS decides whether to boot dwm or i3. It will boot what is manually
|
||||||
# set in ~/.local/share/larbs/wm, otherwise it will test to see if dwm is
|
# set in ~/.local/share/larbs/wm, otherwise it will test to see if dwm is
|
||||||
# installed, in which case it will load dwm. It will assume i3 otherwise.
|
# installed, in which case it will load dwm. It will assume i3 otherwise.
|
||||||
|
@ -30,17 +22,35 @@ startlarbs() {
|
||||||
dwm)
|
dwm)
|
||||||
export FILE="lf"
|
export FILE="lf"
|
||||||
export STATUSBAR="dwmblocks"
|
export STATUSBAR="dwmblocks"
|
||||||
# The loop is just to enable dwm's "restart" feature (mod+F2).
|
startlarbs() { # The loop is just to enable dwm's "restart" feature (mod+F2).
|
||||||
while :; do
|
while :; do
|
||||||
ssh-agent dwm || break
|
ssh-agent dwm || break
|
||||||
done
|
done ;}
|
||||||
;;
|
;;
|
||||||
i3)
|
i3)
|
||||||
export FILE="ranger"
|
export FILE="ranger"
|
||||||
export STATUSBAR="i3blocks"
|
export STATUSBAR="i3blocks"
|
||||||
exec i3
|
startlarbs() { exec i3 ;}
|
||||||
;;
|
;;
|
||||||
*) echo "No valid LARBS window manager detected." ;;
|
*) echo "No valid LARBS window manager detected." ;;
|
||||||
esac ;}
|
esac ;}
|
||||||
|
|
||||||
|
guesswm
|
||||||
|
|
||||||
|
# There are some small but important commands that need to be run when we start
|
||||||
|
# the graphical environment. I keep those commands in ~/.xprofile because that
|
||||||
|
# file is run automatically if someone uses a display manager (login screen)
|
||||||
|
# and so they are needed there. To prevent doubling up commands, I source them
|
||||||
|
# here with the line below.
|
||||||
|
|
||||||
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||||
|
|
||||||
|
# There are some small but important commands that need to be run when we start
|
||||||
|
# the graphical environment. I keep those commands in ~/.xprofile because that
|
||||||
|
# file is run automatically if someone uses a display manager (login screen)
|
||||||
|
# and so they are needed there. To prevent doubling up commands, I source them
|
||||||
|
# here with the line below.
|
||||||
|
|
||||||
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||||
|
|
||||||
startlarbs
|
startlarbs
|
||||||
|
|
Loading…
Reference in a new issue