-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update bar.sh #201
base: main
Are you sure you want to change the base?
Update bar.sh #201
Conversation
Solved the sddm crash problem by changing script to bash Changed some of the glyphs (some of them were non scalable so looked small on laptops) Slightly changed the pkg_updates to work on arch linux only (as I don't know how to do it on void linux)
am not logged in dwm rn, can someone test this? @MinePro120 |
Will do. Always wondered why chadwm used dash (@siduck any insights?). |
dash is the fastest+lightest shell in existence |
As it is an extra dependency (for most systems), we will have to assess if the speed difference is worth it. |
its there on most distros by default i think. the speed is worth it and the script runs so frequently so it must be lightweight |
I do not approve of this PR at all, for the following reasons:
These changes may work for you, but I don't see why they should be pushed. You are free to change your own |
Kept the default glyphs removed the volume applet changed update status to update every 1 hour
I updated the script as you said |
as for the time measurements, you are right I didn't knew that. I take my words back |
but i will not move to bash, i want dash to be used |
pure posix! |
I appreciate your emphasis on speed and everything but the problem is that it crashes sddm on XF86XK_AudioMute. I don't even know why I tried everything in script but it didn't work |
Bash can be made to be posix compliant if that's needed. The performance boost with dash is close to nonexistent. There is absolutely no reason not to use the default shell imho. Changing shells with such a simple script won't increase performance. Optimizing it, on the other hand, will. @prateekshukla1108 can you open a new issue describing your problem in greater detail? |
There is a difference, dash is the lightest in ram too and its minimal, is the fastest shell https://codeberg.org/tplasdio/benchmarks/src/branch/main/noop_startup |
An arbitrary benchmark is of little value to the current scenario. You can measure the performance of each shell yourself, using |
|
The function of |
users can change the shebang themselves if they dont like dash |
Anyway, OP should be more specific so we can make sure dash is the problem indeed (which I doubt). |
Initially I doubted it too, so I started removing each part of the script one by one and see if the wm was crashing but I got no results after countless hours of trying, then I tried changing the script to bash and it instantly worked out. You can reproduce it by running it from sddm and then pressing XF86XK_AudioMute repeatedly for 3 or 4 times. |
I cannot reproduce it on a clean EndeavourOS VM. I suggest the following steps:
|
I am getting error but it is not conclusive - Dec 27 23:14:23 archlinux sddm[841]: Session started true Only thing that have worked for me is changing the shell |
I don't see any error, it seems like chadwm stopped, one way or another. Did you try the steps I mentioned? |
Yeah, I tried what you said, I reinstalled everything and tried doing it but there was no progress. |
Very weird. I would suggest opening an issue so that other users can possibly contribute. And close this PR, since we aren't switching to bash. |
@prateekshukla1108 can you show a video of the bug and after the fix? |
https://drive.google.com/file/d/1LNsLcBMX-lLiIc7myJm8AtRuXZFzcIzV/view?usp=sharing here's the video. I also included the same activity in another window manager to show that this is not because of some driver issue or something else but issue with dash. |
Solved the sddm crash problem by changing script to bash which also increased the speed
Changed some of the glyphs (some of them were non scalable so looked small on laptops) Slightly changed the pkg_updates to work on arch linux only (as I don't know how to do it on void linux)
Feel free to modify it