The officially official Devuan Forum!

You are not logged in.

#1 Today 11:28:29

druid
Member
Registered: Yesterday
Posts: 5  

Devuan+dwm+xinitrc: how to start properly?

Hello everyone,

I installed Devuan without a desktop environment, downloaded and compiled dwm, which I'm starting via .xinitrc.

I'd like to know the recommended command to launch dwm, is it:

dbus-run-session -- /usr/local/bin/dwm 

or

dbus-launch --exit-with-session /usr/local/bin/dwm

or maybe a third one?

Thank you in advance for your answers.

Offline

#2 Today 12:08:28

unixuser
Member
Registered: 2024-09-13
Posts: 53  

Re: Devuan+dwm+xinitrc: how to start properly?

hi, do you have specific use of dbus there ? the normal way is to put dwm at the end of .xinitrc.

exemple :

setxkbmap -option caps:swapescape &
xset s 480 dpms 600 600 600 &
xset b off &

dwm

dwm (or any wm) MUST BE AT THE END

edit : i assume dwm is in you PATH, so you don't need to write the full path (/usr/bin/... or anything else)

Last edited by unixuser (Today 12:10:24)

Offline

#3 Today 12:18:56

druid
Member
Registered: Yesterday
Posts: 5  

Re: Devuan+dwm+xinitrc: how to start properly?

Yes, I use Thunar as graphical file manager and dbus allows it to display other disks.

Offline

#4 Today 12:41:52

unixuser
Member
Registered: 2024-09-13
Posts: 53  

Re: Devuan+dwm+xinitrc: how to start properly?

Yes ok but dbus is launched at boot time; so just start dwm as I suggested, doesn't it work ?

Offline

#5 Today 13:03:08

druid
Member
Registered: Yesterday
Posts: 5  

Re: Devuan+dwm+xinitrc: how to start properly?

No, it doesn't. I think that you must create a dbus session within .xinitrc to benefit from this service...

Last edited by druid (Today 13:03:30)

Offline

#6 Today 13:19:34

unixuser
Member
Registered: 2024-09-13
Posts: 53  

Re: Devuan+dwm+xinitrc: how to start properly?

No... I use this since decades lol... did you downloaded xorg-xinit ? how do you startx ?

Offline

#7 Today 13:31:26

druid
Member
Registered: Yesterday
Posts: 5  

Re: Devuan+dwm+xinitrc: how to start properly?

Like this: (.xinitrc)

setxkbmap be -option terminate:ctrl_alt_bksp
numlockx
xset b off
xset dpms 720 900 1200
xsetroot -solid "#282828"
redshift -m randr -t 4500:3200 &
dunst &
xfce4-clipman &
gnome-keyring-daemon --start --components=pkcs11
gnome-keyring-daemon --start --components=secrets
gnome-keyring-daemon --start --components=ssh
lxpolkit &

EIP=$(curl -s ifconfig.me)
HOST=$(hostname -s)
LIP=$(hostname -I)

showhomefreespace() {
	df -h $HOME | tail -n 1 | awk '{print $4}'
}

while true; do
    xsetroot -name " 💻 $HOST   $LIP  🌍 $EIP   $(showhomefreespace)  $(date +' %a %e %B %Y   %H:%M') "
    sleep 1m
done &

#exec /usr/local/bin/dwm
#dbus-run-session -- /usr/local/bin/dwm
dbus-launch --exit-with-session /usr/local/bin/dwm

I should clarify that X11 and dwm launch correctly. What doesn't work without creating a dbus session is mounting local disks in Thunar.

Last edited by druid (Today 13:50:14)

Offline

#8 Today 13:52:23

unixuser
Member
Registered: 2024-09-13
Posts: 53  

Re: Devuan+dwm+xinitrc: how to start properly?

I mean, do you use a display manager or do you start X from .bash_profile

Offline

#9 Today 14:08:42

druid
Member
Registered: Yesterday
Posts: 5  

Re: Devuan+dwm+xinitrc: how to start properly?

No, I start X from tty with the startx command (no lightdm)...

Offline

Board footer