Page 1 of 1
Installation of Multiple Window Managers
Posted: Sun Sep 15, 2019 11:12 am
by smittyvanilli
I heard great details about MX-Linux and I'm kind of tired of getting things like unexpected boot up errors in Archlinux. I like it better when something works out of the box! At least I tried, I suppose!
Anyway, that was to explain my background. Additionally, I've tried several other distributions, but never "a home" I completely enjoyed. I love the community I've heard about and the documentation. This, I believe, tells a lot about the distro in hand. Stablity is a must!
My question is, does MX-Linux allow to install multiple window managers for me to install, such as Openbox, i3, and Awesome? I would love to have all of those three installed! As you may tell, I enjoy minimalism.
Re: Installation of Multiple Window Managers
Posted: Sun Sep 15, 2019 11:18 am
by Jerry3904
There are users running those here. Just install, then select up at the top on the login screen.
Re: Installation of Multiple Window Managers
Posted: Sun Sep 15, 2019 11:47 am
by gimcrack
Jerry3904 wrote: Sun Sep 15, 2019 11:18 am
There are users running those here. Just install, then select up at the top on the login screen.
Some don't automatically show up on your login screen(Display Manager). These three might, I haven't check them out, if they do or not. But if they don't show up after logging out, I always add them to my xsession. So they all will appear on my Display Manager.
Re: Installation of Multiple Window Managers
Posted: Sun Sep 15, 2019 12:07 pm
by smittyvanilli
That is confirmation I needed.
I could be wrong, however perhaps it was installing the latest KDE Plasma that was at fault, as I've read it has great ability for customization and part of me wanted me to see if I could install it! I also have read about KWin, which is a seperate, but installable window manager within the KDE Desktop Environment.
For new users, I would say Archlinux really is best for those who know a lot more about Linux, in my personal view. I still have much in Linux to learn!
Also, having experienced the many DEs out there, I have the most liking for XFCE and enjoy Openbox, as well as learning the others I mentioned out there, such as i3, and AwesomeWM.
Re: Installation of Multiple Window Managers
Posted: Sun Sep 15, 2019 12:11 pm
by Paul..
We all have extraordinary respect for Arch here. The Arch Wiki is a fantastic, deep technical resource.
Re: Installation of Multiple Window Managers
Posted: Sun Sep 15, 2019 1:32 pm
by smittyvanilli
Yes, I agree the
Arch Wiki and also the
Gentoo Wiki are great resources to learn from and are great distros. One can learn even by installing Archlinux in a VM (Virtual Machine for new users) , which I will be doing in the future. Perhaps I can replicate what I did wrong if it was my own doing, however I'm strung for time in the process!
This is the beauty of Linux, in my opinion. The education never ceases! And I haven't even mentioned the
Linux From Scratch project, as well as
Nutyx distro, which is based on LFS. At some point, for education, I would love to learn from the LFS project.
Re: Installation of Multiple Window Managers
Posted: Sun Sep 15, 2019 1:46 pm
by gimcrack
smittyvanilli wrote: Sun Sep 15, 2019 1:32 pm
Yes, I agree the
Arch Wiki and also the
Gentoo Wiki are great resources to learn from and are great distros. One can learn even by installing Archlinux in a VM (Virtual Machine for new users) , which I will be doing in the future. Perhaps I can replicate what I did wrong if it was my own doing, however I'm strung for time in the process!
This is the beauty of Linux, in my opinion. The education never ceases! And I haven't even mentioned the
Linux From Scratch project, as well as
Nutyx distro, which is based on LFS. At some point, for education, I would love to learn from the LFS project.
Install the three Window Managers and tell us if they appear in your Display Manager after you log out. If not, we can tell you how to make them appear in your Display Manager. Or you can just have Arch WiKi tell you. Arch WiKi ain't just for Arch users you know.
Session configuration
Many display managers read available sessions from /usr/share/xsessions/ directory. It contains standard desktop entry files for each DM/WM.
To add/remove entries to your display manager's session list; create/remove the .desktop files in /usr/share/xsessions/ as desired. A typical .desktop file will look something like:
[Desktop Entry]
Name=Openbox
Comment=Log in using the Openbox window manager (without a session manager)
Exec=/usr/bin/openbox-session
TryExec=/usr/bin/openbox-session
Icon=openbox.png
Type=Application
Which you also can created ~/.Xsession in $HOME so you don't have to worry about permissions. There is also your Debian WiKi as well.
https://wiki.debian.org/Xsession
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 9:16 am
by smittyvanilli
I am so thankful that I've went to this distro, as I learned something I didn't even know, including about what was going on with my experience in Archlinux. I thought I'd share it with the community.
If I'm not mistaken, I might have tried to install the latest video drivers, which I made the same exact mistake here! I've found the solution to this related problem in MX-Linux:
https://forum.mxlinux.org/viewtopic.php?t=43509
However, I new something was wrong when upon installing the MX Test NVidia proprietary graphics driver install went with flaw, as when I rebooted, all kinds of messages were coming up in a different resolution and I knew that was a "red flag" about something. Why did I install this? I thought there were prior bugs fixed and enhancements in the drivers made.
This was the command on that post that fixed the issue:
Having said that, today, I just happened to glance on page 20/182 of the MX-18.3 Users Manual, under "The Black Screen" section where it states something about getting the blinking cursor. This was my exact situation in ArchLinux 2019! To paraphrase from the manual:
This represents a failure to start X, the windows system used by Linux, and is most often due to problems with the graphics driver being used
If I had simply used the Failsafe Mode, I would have been saved! However, I did do that as well as a last resort in Archlinux 2019, however my resolution changed when that happened and I didn't know how to get my graphics driver back to the original state, which I believe used the latest kernel drivers on a default Arch install. It uses open source nvidia drivers, if my understanding is correct. I tried to look for the solution, based on the wrong keywords to use on a Arch / Google search at the time, of course.
My graphics card is an NVidia Geforce GTX-1050 (i.e. btw, it is not considered a legacy video card yet, as far as I know, based on documentation from using other distros).
I am so thankful that there was a solution for this and it means I was meant to learn from MX-Linux. My journey of learning still continues. For reference, I actually started with Linux Mint distro, however I wanted to learn more from other distros, at the time.
Any thoughts or experiences about this will be appreciated. Some may say I may have been in the wrong mind for going head on with a distro that I was just not ready for yet and I will say based on this experience, it's true. I thought I was ready! Also, based on this MX-Linux experience, I learned to never use test versions for graphic drivers. *smiles*
I will be updating about installing the 3 WMs mentioned in this or another post. My question also is, should I install that on separate accounts due to unique configurations?
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 12:51 pm
by gimcrack
>My question also is, should I install that on separate accounts due to unique configurations?
No need to with Window Managers. I never recommend more then one DE on one account. But Window Managers are pretty much separated from each other.
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 2:02 pm
by smittyvanilli
Now that makes me wonder. I installed Gnome and KDE desktop environments on Arch and I wonder if that conflicted with some things. I always kept the default GDM as the DM, though. That what you speak of I didn't know, though!
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 2:24 pm
by malspa
smittyvanilli wrote: Sun Sep 15, 2019 1:32 pmThis is the beauty of Linux, in my opinion. The education never ceases!
So true!
gimcrack wrote: Mon Sep 16, 2019 12:51 pmI never recommend more then one DE on one account.
I take the same approach here. More than one DE can get to be a bit of a hassle. Not the case with having more than one WM, in my experience.
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 3:13 pm
by manyroads
I am one of very few bspwm users here.
I can say that I have no problem running i3wm and xfce from the same user account with bspwm (on MX 18.3 and antiX19b3). Though, i3wm & bspwm need to have different versions of ploybar &/or tint2 if you choose to use those. That is not an MX or antiX issue but rather differences between the 2 wms.
Once both MX & antiX release their new versions I will build bspwm respins of both and will likely include i3wm, as well. In the meantime should you decide to dip your toe in the water, you will encounter currency issues with dunst, polybar, bspwm & i3wm. The repo team here is great and support those of us on the 'fringe' really very well. It's just that the timing with both MX & antiX betas out makes things slow. I assume you are not averse to building pieces when you need to do that, just be cautious. You don't want to build a frankendebian install.
If you want to follow my adventures, I publish them on my site at:
http://eirenicon.org/

Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 3:24 pm
by Stevo
If you install fusion-icon, you can also use its taskbar icon to switch GTK window managers in a given GTK desktop. It doesn't seem to see Qt-based ones like Kwin.
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 3:53 pm
by smittyvanilli
Well, I have installed the 3 desktop WMs mentioned and they all seem to work. I have to learn how to use them! I even included others, such bwspm, dwm, herbluftwm, and xmonad. That's a lot of window managers! It is my hope to get experience in all of these, eventually. Productivity in coding and development is my game and I think if one is using much of the shell and using multiple windows / workspaces, one can benefit from using these WMs.
All your responses have been helpful. I'm learning quite a bit already just from having these experiences.
Also, I think I can say that I have "a home", for at least 2 years, including really enjoying the XFCE DE (i.e. home is MX). And I'm sure I'll have more new questions raised based on this fact!
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 4:03 pm
by smittyvanilli
manyroads wrote: Mon Sep 16, 2019 3:13 pm
I am one of very few bspwm users here.
I can say that I have no problem running i3wm and xfce from the same user account with bspwm (on MX 18.3 and antiX19b3). Though, i3wm & bspwm need to have different versions of ploybar &/or tint2 if you choose to use those. That is not an MX or antiX issue but rather differences between the 2 wms.
Once both MX & antiX release their new versions I will build bspwm respins of both and will likely include i3wm, as well. In the meantime should you decide to dip your toe in the water, you will encounter currency issues with dunst, polybar, bspwm & i3wm. The repo team here is great and support those of us on the 'fringe' really very well. It's just that the timing with both MX & antiX betas out makes things slow. I assume you are not averse to building pieces when you need to do that, just be cautious. You don't want to build a frankendebian install.
If you want to follow my adventures, I publish them on my site at:
http://eirenicon.org/
Bwspm is one of the WMs I would like to experience in a matter of time. Isn't that close to be one of the most advanced WMs out there?
What is the difference between polybar and tint2?
And finally, are you saying you are making your own distro based off of MX & antix on top of bwspm / i3? If so, that may be an interesting project, I'm sure!
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 4:26 pm
by manyroads
smittyvanilli wrote: Mon Sep 16, 2019 4:03 pm
[...]
Bwspm is one of the WMs I would like to experience in a matter of time. Isn't that close to be one of the most advanced WMs out there?
What is the difference between polybar and tint2?
And finally, are you saying you are making your own distro based off of MX & antix on top of bwspm / i3? If so, that may be an interesting project, I'm sure!
You can see early versions of my bspwm efforts, with detailed explanations, here:
https://eirenicon.org/knowledge-base/bu ... p-a-guide/
Actually a respin is a 'lot' less than a distro. :lipsrsealed:
Have fun!

Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 4:51 pm
by gimcrack
smittyvanilli wrote: Mon Sep 16, 2019 3:53 pm
Well, I have installed the 3 desktop WMs mentioned and they all seem to work. I have to learn how to use them! I even included others, such bwspm, dwm, herbluftwm, and xmonad. That's a lot of window managers! It is my hope to get experience in all of these, eventually. Productivity in coding and development is my game and I think if one is using much of the shell and using multiple windows / workspaces, one can benefit from using these WMs.
All your responses have been helpful. I'm learning quite a bit already just from having these experiences.
Also, I think I can say that I have "a home", for at least 2 years, including really enjoying the XFCE DE (i.e. home is MX). And I'm sure I'll have more new questions raised based on this fact!
Your start out with to many WM. I started with openbox while I was using Crunchbang. That was my very first experience with a WM. It's been a while before I try out a tiling window manager. I went with i3 and glad I did. Their website has all the info to become very productive with i3. Then I try out bspwm, which is different then i3, which has two config files one are for the keybindings. Took a while to get it going. As it wasn't as easy as setting up i3. Then later on I try out herbluftwm, which was very easy to deal with since I dealt with previous ones. The really different one I try out was dwm. Since you have to recompile every time you make a change. It's not hard to do, it was just different then the others. I'm currently using Pekwm as my window manager. I'm just saying learn one before you move on to the next one. Don't jump around to soon. I mean spend sometime with one window manager and understand it, even try to have a good workflow before moving onto the next one. I like to experiment with other things as well. But I at least understand what is in front of me, before I move one and just carry that experience to the next project.
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 5:47 pm
by smittyvanilli
manyroads wrote: Mon Sep 16, 2019 4:26 pm
smittyvanilli wrote: Mon Sep 16, 2019 4:03 pm
[...]
Bwspm is one of the WMs I would like to experience in a matter of time. Isn't that close to be one of the most advanced WMs out there?
What is the difference between polybar and tint2?
And finally, are you saying you are making your own distro based off of MX & antix on top of bwspm / i3? If so, that may be an interesting project, I'm sure!
You can see early versions of my bspwm efforts, with detailed explanations, here:
https://eirenicon.org/knowledge-base/bu ... p-a-guide/
Actually a respin is a 'lot' less than a distro. :lipsrsealed:
Have fun!
I have bookmarked that link and once I learn bspwm, I will definitely check those resources out. It seems you have quite the experience. *smiles*
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 5:54 pm
by smittyvanilli
gimcrack wrote: Mon Sep 16, 2019 4:51 pm
smittyvanilli wrote: Mon Sep 16, 2019 3:53 pm
Well, I have installed the 3 desktop WMs mentioned and they all seem to work. I have to learn how to use them! I even included others, such bwspm, dwm, herbluftwm, and xmonad. That's a lot of window managers! It is my hope to get experience in all of these, eventually. Productivity in coding and development is my game and I think if one is using much of the shell and using multiple windows / workspaces, one can benefit from using these WMs.
All your responses have been helpful. I'm learning quite a bit already just from having these experiences.
Also, I think I can say that I have "a home", for at least 2 years, including really enjoying the XFCE DE (i.e. home is MX). And I'm sure I'll have more new questions raised based on this fact!
Your start out with to many WM. I started with openbox while I was using Crunchbang. That was my very first experience with a WM. It's been a while before I try out a tiling window manager. I went with i3 and glad I did. Their website has all the info to become very productive with i3. Then I try out bspwm, which is different then i3, which has two config files one are for the keybindings. Took a while to get it going. As it wasn't as easy as setting up i3. Then later on I try out herbluftwm, which was very easy to deal with since I dealt with previous ones. The really different one I try out was dwm. Since you have to recompile every time you make a change. It's not hard to do, it was just different then the others. I'm currently using Pekwm as my window manager. I'm just saying learn one before you move on to the next one. Don't jump around to soon. I mean spend sometime with one window manager and understand it, even try to have a good workflow before moving onto the next one. I like to experiment with other things as well. But I at least understand what is in front of me, before I move one and just carry that experience to the next project.
Openbox seems a good one to start with. When I get the experience of that more, I will learn i3. After that, herbstluftwm, dwm, bspwm, awesome, and last would be xmonad. That last seems very interesting and quite for the advanced user.
How has your experience been with Pekwm?
Not to mention, I found the following resource for WMs:
https://www.gilesorr.com/wm/table.html
Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 6:13 pm
by manyroads
If you are looking to learn window managers... remember there are two primary styles:
1. stacking (the more popular)
2. tiling (more on edge due to its less common interface style).
The most popular stacking wm is probably OpenBox (OB). iceWM & fluxbox are close behind. My unofficial ratings.
The most popular tiler is i3wm (and variants).
Most people would recommend you start with some combination of those, I think. Before starting, you might want to investigate the types of wms and see which sounds like a good fit for you and what you want to do. Remember this is linux. You can choose; you can change. But I recommend whatever you do, learn & have fun.

Re: Installation of Multiple Window Managers
Posted: Mon Sep 16, 2019 6:23 pm
by gimcrack
I really like Pekwm. It's a stacking WM, really love the middle mouse click feature. Pekwm is a discontinue project. But it's still good as it stands. Many good webpages with lots of Pekwm tips and tricks. You have to really search for them though. Many themes for Pekwm as well.
For a list of Window Manager I use the Arch WiKi for that.
https://wiki.archlinux.org/index.php/window_manager
Enjoy learning and have fun with your experience with each WM you try out.
Re: Installation of Multiple Window Managers
Posted: Tue Sep 17, 2019 4:00 pm
by smittyvanilli
gimcrack wrote: Mon Sep 16, 2019 4:51 pm
smittyvanilli wrote: Mon Sep 16, 2019 3:53 pm
Well, I have installed the 3 desktop WMs mentioned and they all seem to work. I have to learn how to use them! I even included others, such bwspm, dwm, herbluftwm, and xmonad. That's a lot of window managers! It is my hope to get experience in all of these, eventually. Productivity in coding and development is my game and I think if one is using much of the shell and using multiple windows / workspaces, one can benefit from using these WMs.
All your responses have been helpful. I'm learning quite a bit already just from having these experiences.
Also, I think I can say that I have "a home", for at least 2 years, including really enjoying the XFCE DE (i.e. home is MX). And I'm sure I'll have more new questions raised based on this fact!
Your start out with to many WM. I started with openbox while I was using Crunchbang. That was my very first experience with a WM. It's been a while before I try out a tiling window manager. I went with i3 and glad I did. Their website has all the info to become very productive with i3. Then I try out bspwm, which is different then i3, which has two config files one are for the keybindings. Took a while to get it going. As it wasn't as easy as setting up i3. Then later on I try out herbluftwm, which was very easy to deal with since I dealt with previous ones. The really different one I try out was dwm. Since you have to recompile every time you make a change. It's not hard to do, it was just different then the others. I'm currently using Pekwm as my window manager. I'm just saying learn one before you move on to the next one. Don't jump around to soon. I mean spend sometime with one window manager and understand it, even try to have a good workflow before moving onto the next one. I like to experiment with other things as well. But I at least understand what is in front of me, before I move one and just carry that experience to the next project.
That's the process I'm doing now. Starting out with Openbox and start to master and tackle that. Many of these others seem to have certain key combinations I don't know about, or just something not in my experience to know what to do! I'm sure many of these WMs out there are powerful once you start to use them.
DistroTube on YouTube, which I know many will say he's opinionated, reviews many WMs. He never created a video of which one to start with and so on. One could argue that even some of the WMs he reviews, he many not have the experience to be a master, but he can get around and give his opinion, based on installing them in a VM and working with them for awhile.
Yes, learning / mastering one before the next is something I would enjoy to do. What will one learn by simply hopping around WMs, knowing they have their own way of programming / customizing it?
Re: Installation of Multiple Window Managers
Posted: Tue Sep 17, 2019 4:36 pm
by smittyvanilli
manyroads wrote: Mon Sep 16, 2019 6:13 pm
If you are looking to learn window managers... remember there are two primary styles:
1. stacking (the more popular)
2. tiling (more on edge due to its less common interface style).
The most popular stacking wm is probably OpenBox (OB). iceWM & fluxbox are close behind. My unofficial ratings.
The most popular tiler is i3wm (and variants).
Most people would recommend you start with some combination of those, I think. Before starting, you might want to investigate the types of wms and see which sounds like a good fit for you and what you want to do. Remember this is linux. You can choose; you can change. But I recommend whatever you do, learn & have fun.
This is a very helpful post to realize and understanding.
For me, I like to be keyboard centered, so Tiling WMs may be better for me, in my case. However, It doesn't hurt to start with something like Openbox and then jump to i3.
By the way, this discussion explains reasons why some users enjoy Tiling Window Managers
https://news.ycombinator.com/item?id=20800978
https://www.reddit.com/r/unixporn/comme ... and_their/
https://www.reddit.com/r/linux/comments ... g/dez3tyc/
For Stacking Window Mangers, I like what one user from that second link stated. To paraphrase it,
Stacking Window Managers allow you to move, resize, minimize, open, select,send-to-workspace, etc... floating windows using the mouse, the same way DEs do, but without all the additional software DEs bring. Many of them have many built-in, often (but not always) configurable keyboard shortcuts, with some tiling capabilities. Good stacking WMs are: 2bwm, Openbox, fvwm, CWM, Fluxbox, JWM, IceWM, PekWM, xfwm, Compiz
Also, i3-gaps looks like something great to check out and later use:
https://github.com/Airblader/i3
Upon discovery, there's also Debian's WIKI about Window Managers:
https://wiki.debian.org/WindowManager
and the following which allowed me to understand even more:
https://www.engadget.com/2012/10/30/how ... ger-linux/
https://www.reddit.com/r/unixporn/comme ... w_manager/
https://www.reddit.com/r/unixporn/comme ... ggestions/
Of course, I can go on and on, however now I have a direction with this and know that I can install window managers at ease, and learn the ones I choose at my own pace!
Re: Installation of Multiple Window Managers
Posted: Wed Apr 15, 2020 5:31 pm
by tonyB
How in the world does the startup work in MX19? I keep coming back because its the only modern distro that has not crashed or overheated my laptop. It does work great if you stick with xfce. I was on arch for a week before I realized that for whatever reason arch was not using my fan and I was close to overheating. I got used to the very simple .xinitrc way of doing things. But what is going on here? I patch dwm with autostart diff nothing. Yes its in the correct spot of ~/.dwm. I use awesome autostart.sh nothing. Yes I added the line at the bottom to source it. MX is not respecting much of my configs. Before that I was pulling my hair out trying to make it source my .local/bin. I mean it even has a bit of code to do it that fails miserably. Well I did get that to work after replacing the code and using a .xsessionrc (sheesh). I cannot follow the logic in the startup for other sessions. It makes no sense. Is it the DM? I did not use one on arch. I had a simple tty login and the thing would automatically startx when I input correct password. I can see that the fluxbox autostart has no problems. But that has some magical configuration I cannot figure out why. Seems to me if i start awesome with it calling to the autostart.sh it should autostart.sh. But MX refuses.
Yes I am mostly a noob, only 3 months on linux but am very keyboard orientated. I must use a tiler. I love this distro for many reasons, but for me it has been the hardest one to customize a different session. Absolutely true. Sure I can customize xfce to my hearts content no problem. Anything else...
I cannot do relatively simple things that I have got to work on arch. I am done distro hoping. My laptop likes MX the best. I just want to use a tiler is all. I got a pretty sweet awesome setup and I want the thing to work as expected. I should be clear awesome does work otherwise, just not loading startup stuff. Same with dwm. It is definitely something screwy going on the other end. Its beyond me. Learning Lua or C is easier then figuring the startup.
Re: Installation of Multiple Window Managers
Posted: Wed Apr 15, 2020 5:58 pm
by eriefisher
After you install a new window manager or desktop environment you should just be able to log out and before you log back in at the top right of the screen there should be a menu to select the session type. Choose your session and continue to log in.
You mention your on MX-19, I'm on 18 but unless it has completely changed or you changed from Lightdm to some other log in manager it should be accurate.
Re: Installation of Multiple Window Managers
Posted: Wed Apr 15, 2020 6:19 pm
by tonyB
Thanks for the reply. That is not the problem. I can login to awesome and dwm. I see the session switcher at the top of login, and use it. However each of these WM have features that allow them to start up some stuff. Like the polkit for example. Or systray icon thingys. With dwm you must patch it with the autostart diff. Then create ~/.dwm and put autostart.sh in it. Awesome is similar but a bit easier with a line of lua at the bottom that points to autostart.sh. One could even just put the lines at the bottom of rc.lua but its easier to have a seperate file and its less typing. I am saying MX does not seem to respect it. I get awesome and thats it. I get dwm and thats it. Won't load up the autostarts. Not even one. Fluxbox has something identical in its folder and works perfectly. Clearly I must be doing something wrong here but it is not with the WM themselves as I had them working fine on other distros. Well arch I mean, the only other one I really tried. I'm just frustrated that I cannot understand why. I realize that DM do things differently than if one does the startx. I don't like it. Cause I don't get it. Needlessly complex I says.
Re: Installation of Multiple Window Managers
Posted: Wed Apr 15, 2020 6:26 pm
by anticapitalista
arch is not the same as Debian/MX when it comes to how apps are packaged.
Re: Installation of Multiple Window Managers
Posted: Wed Apr 15, 2020 6:46 pm
by tonyB
Thanks for the reply. No doubt that awesome is probably different. But in fact I am using the same exact source code that I used on arch for dwm. I only installed dwm from the package installer to rip off the .desktop file to put it in the xsession place in usr/share. Then I uninstalled it and built it from source. If your using dwm, you probably want to patch it and well, the package manager does not give you the source code or at least I did not see it. Unless you don't know dwm has no regular config. You must change the code and rebuild. That is not the problem. With the both of these, one being built from source and the other from the MX package installer, neither one will load up the autostart scripts that the WM is configured to load. That leads me to believe that the problem is not with them at all or how they are packaged. The problem seems to be with the session manager or something else I don't understand.
Re: Installation of Multiple Window Managers
Posted: Wed Apr 15, 2020 7:02 pm
by manyroads
@tonyb dwm is not really very hard to work with and is quite popular on debian. I have published a how-to guide here (but beware it is on an arch-based distro. I'm pretty certain it would work here).
https://eirenicon.org/dwm-learning-how- ... ice-setup/
Re: Installation of Multiple Window Managers
Posted: Wed Apr 15, 2020 7:17 pm
by tonyB
Manyroads! I will check out your link. I have read your other article about bspwm. Good stuff but I tried awesome and it was over. I just like it more. Only forcing myself with dwm cause I'm learning C in my freetime.
Re: Installation of Multiple Window Managers
Posted: Thu Apr 16, 2020 8:31 am
by tonyB
I did say I'm a noob. But I can admit when I mess up. First, only half of the problem is resolved as dwm still is not behaving. But I don't care about it nearly as much as awesome wm.
At the bottom of the rc.lua I put a comment and the code for the script-
-- Autorun some apps
awful.spawn.with_shell("~/.config/awesome/autorun.sh")
Whoops! The script is named autostart.sh, yep. Laugh and point. I do deserve after taking up so much forum real estate. I can only guess that after I wrote the "Autorun some apps" comment I had autorun on autotype in my brain. I don't know how I missed that again after even looking at it several times, but I think that my eyes got crossed as the offending Autorun comment was right there to anchor me. I have also changed the comment to Autostart some apps. Also, when dwm was doing seemingly the same thing, I assumed it was some mystical startup process that I was not initiated in. I think that I may have mild dyslexia.
It really helps to sleep on it and approach it again with a fresh and not frustrated brain.
Oh, and with the initial .profile sourcing of ~/.local/bin utterly failing, I think that helped in my assumption that the startup is broken.. Really that should be fixed.
Re: Installation of Multiple Window Managers
Posted: Thu Apr 16, 2020 9:17 am
by anticapitalista
~/.local/bin doesn't exist on MX. You have to create it.
Re: Installation of Multiple Window Managers
Posted: Thu Apr 16, 2020 10:06 am
by Head_on_a_Stick
tonyB wrote: Thu Apr 16, 2020 8:31 amOh, and with the initial .profile sourcing of ~/.local/bin utterly failing, I think that helped in my assumption that the startup is broken.. Really that should be fixed.
~/.profile isn't read when logging it via LightDM, you'll have to either source it in ~/.xsessionrc or drop LightDM and run with a console login instead.
EDIT: and you don't need to patch dwm, just create your own .desktop file in /usr/share/xsessions/ that calls a custom startup script for dwm in it's Exec= line.
I use this:
Code: Select all
# /usr/share/xsessions/dwm.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=Dynamic window manager
Exec=dwm-session
Icon=dwm
Type=XSession
With this at /usr/local/bin/dwm-session:
Code: Select all
#!/bin/sh
xset s 300 -dpms b off
if [ -f "${HOME}/Pictures/wallpaper.png" ]
then
hsetroot -cover "${HOME}/Pictures/wallpaper.png"
else
xsetroot -solid "#101112"
fi
slstatus &
exec dwm
But note that the Debian dwm package also provides /usr/share/xsessions/dwm.desktop and so will conflict.
Re: Installation of Multiple Window Managers
Posted: Thu Apr 16, 2020 11:53 am
by tonyB
@ Head_on_a_Stick
Hey thanks that works great. I must admit I am still a bit lost on what the .desktop files can do. I'm 3 months in to linux and the amount of info one needs is enormous. That and I am more interested in learning actual coding. My first try dropped me info a default session and I'm like oh yeah.. I did forget something obvious.. sudo cmod 755 /usr/local/bin/dwm-session then it worked just fine. I will just use this for the autostart. Plus I can use this tip for other various sessions I'm sure. Great! Also I don't use the package managers build for dwm but one I am slowly working on. I did install the one from the PM but only to copy the .desktop file and icon because as I said I don't know much about them. Then I uninstall, put the .desktop file back in .xsessions and build from source. And it won't conflict as I just now copied it over with your good advice. As for uninstalling LightDM, I have experimented with that on a VM and got some strange results when I do a snapshot and try to install it again. In a VM of course. Or one time it would get stuck just loading. I think it seems to be pretty tied into the MX installer functions unless I am mistaken. I don't want to mess with all of that. The MX installer and snapshots and remastercc are why I love MX. Quite simply the best linux tools on the internet I say.
@ anticapitalista
I could create ~/.local/bin all day long and .profile still won't read it. The only thing I have found to work
export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
in the .xsessionrc that is not there by default. Yet the .profile is with a message that say its not read if you have a .bash_profile or .bash_login. Well I don't and still does not read the thing. So its broken. Needs fixing or remove the thing as its misleading. Or add a line that say it needs to be sourced elsewhere if you use LightDM cause you are as you just installed MX, for new users. Like me. So back to the .xsessionrc and
[ -f ~/.profile ] && . ~/.profile