dot/.config/xinitrc

33 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
# xinitrc runs automatically when you run startx.
# There are some small but important commands that need to be run when we start
# the graphical environment. I keep those commands in ~/config/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.
# export STATUSBAR="i3blocks" # Uncomment this line when using i3.
# Here Xfce is kept as default
session=${1:-bspwm}
case $session in
bspwm ) bash ~/.xprofile && ssh-agent bspwm;;
xfce|xfce4 ) exec xfce4-session;;
# No known session, try to run it as command
* ) exec $1;;
esac
# Your default LARBS WM is determined in your `~/.profile` on login. Here we
# run the proper command to run when the graphical environment starts.
# Comment/uncomment these lines depending on what wm you want to use. Also
# check the i3blocks line above.
# ssh-agent bspwm
# ssh-agent xfce4-session
# ssh-agent xmonad
# ssh-agent dwm
# ssh-agent i3