You are not logged in.

#1 2022-05-15 12:02:51

mikch
Member
Registered: 2022-05-15
Posts: 3

[SOLVED]Cannot start DWM properly from SDDM session menu

Hello all.  I recently installed Arch with dwm and KDE plasma. In SDDM before login when I choose dwm from the session dropdown menu i see the SDDM interface in the place of my wallpaper and many things does not work properly. Now, when i boot without desktop environment and use startx dwm works fine.

In /usr/share/xsessions/ directory I created a dwm.desktop file:

[Desktop Entry]
Encoding=UTF-8
Name=DWM
Comment=Log in using the Dynamic Window Manager
Exec=/usr/local/bin/dwm
Icon=/usr/local/bin/dwm.png
TryExec=/usr/local/bin/dwm
Type=XSession

and in my ~/.xinitrc file I have added these lines:

# DWM Status
dwmstatus 2>&1 >/dev/null &

# Keyboard Layout
setxkbmap -layout us,gr -option grp:alt_caps_toggle &

# Compositor
picom -f &

#Add Wallpaper
nitrogen --restore &

#Execute DWM
exec dwm

Last edited by mikch (2022-05-15 18:11:34)

Offline

#2 2022-05-15 13:22:36

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [SOLVED]Cannot start DWM properly from SDDM session menu

Please use code tags, https://bbs.archlinux.org/help.php#bbcode

The xinitrc won't be sourced by SDDM, move that stuff (MINUS the "exec dwm"!) to ~/.xprofile

Edit: though it will then also be sourced by plasma.
In doubt create a /usr/local/bin/dwm.sh wrapper and run that instead.

Last edited by seth (2022-05-15 13:23:32)

Offline

#3 2022-05-15 16:40:55

mikch
Member
Registered: 2022-05-15
Posts: 3

Re: [SOLVED]Cannot start DWM properly from SDDM session menu

First of all thank you for your reply. I tried your suggestions but havent found a stable solution. At first using ~/.xprofile but when i login into KDE some functions appear to be broken like the window minimize and close option.  Also I created dwm.sh into /usr/local/bin/ and used this in the session manager but I couldnt even see it as an options to the login menu.

Last edited by mikch (2022-05-15 16:42:38)

Offline

#4 2022-05-15 18:15:32

mikch
Member
Registered: 2022-05-15
Posts: 3

Re: [SOLVED]Cannot start DWM properly from SDDM session menu

After some tries I figured out that I forgot to make the dwm.sh file an executable, so now its all good. Thank you again. Im marking the post as "solved".

Offline

Board footer

Powered by FluxBB