
$ uname -a
OpenBSD openbsd-garry.my.domain 6.0 GENERIC#1917 i386
synclient vertedgescroll=1 verttwofingerscroll=0 horizedgescroll=1 horizscrolldelta=10 # configure touchpad
xset s 300 -dpms # screensaver
xsetroot -solid "#002b36" # "wallpaper"
while true; do xsetroot -name "$(date +"%A %B %d, %T")"; sleep 1; done & # status box
exec dwm
[[ -z $DISPLAY ]] && exec startx
I don't use xdm(1) but instead have this line in ~/.profile to launch the desktop automatically after a console login:
- Code: Select all
[[ -z $DISPLAY ]] && exec startx
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
sleep 1s && exec startx >/dev/null 2>&1
fi
Nili wrote:I think may work on BSD aswell
[[ -z $DISPLAY && $(tty) = /dev/ttyC0 ]] && exec startx
Nili wrote:I use this @user .profile --> skiping startX MOTD
- Code: Select all
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
sleep 1s && exec startx >/dev/null 2>&1
fi
On Debian, I think may work on BSD aswell.
Edit: startX on tty1
debiman wrote:why sleep 1?
[[ -z $DISPLAY && $(tty) = /dev/tty1 ]] && exec startx >/dev/null 2>&1
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
bester69 wrote:Can anyone please, post some good and innovate design?
Users browsing this forum: No registered users and 10 guests