You are not logged in.
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/dwmor maybe a third one?
Thank you in advance for your answers.
Offline
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 &
dwmdwm (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
Yes, I use Thunar as graphical file manager and dbus allows it to display other disks.
Offline
Yes ok but dbus is launched at boot time; so just start dwm as I suggested, doesn't it work ?
Offline
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
No... I use this since decades lol... did you downloaded xorg-xinit ? how do you startx ?
Offline
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/dwmI 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
I mean, do you use a display manager or do you start X from .bash_profile
Offline
No, I start X from tty with the startx command (no lightdm)...
Offline