Closed Cybolic closed 1 year ago
Going to bump this, since no one has replied and I really like spectrwm.
Are you sure you put the quirk
in right? It has to exactly match and sometimes people flip class and instance around too.
I dont think its possible unless the polybar guys add support for spectrwm in wm-restack (or do you have any workarounds?) The workaround I have is, use bartoggle for full screen and have the same sized built in bar underneath,toggle that alongside polybar.I have bartoggle keybinigs as "toggle polybar && xdotool key (key to toggle built int bar)"
In case anyone is still following this, Arcolinux has a good setup for polybar/spectrwm, including toggling polybar off/on using sxhkd to assign shortcuts to a script. You can puzzle it all out by browsing through their config files for sxhkd, polybar, and .spectrwm.conf
I ran into this issue too, never found good solution, but at the end I managed to hack it by using xdotool
to send fake Super+b
to Spectrwm to toggle original bar. That was the only way I could think of to trigger toggle_bar
event in Spectrwm and some other command at the same time. Once I figured that out, the rest was easy.... removed reserved margin ot top for Polybar; activated old Spectrwm bar again with minimal settings (it serves as dynamic top margin); wrote script to toggle both bars at the same time; bind another keybinding to execute script.
Details are here if anybody needs it: https://dev.to/psiho/how-to-toggle-polybar-on-spectrwm-tiling-wm-3o3d
Thanks Mirko for the information. I have always used a conky in place of a bar on my SpectrWm and not a defualt bar at all. Never could get it to work right. I use Polybar on LeftWm and I saw where Archlinux is polybar with SpectrWm and have been thinking about giving it a try. Thanks again LLAP -Bruce
On Tue, Feb 8, 2022 at 9:52 PM Mirko Vukušić @.***> wrote:
I ran into this issue too, never found good solution so managed to hack by using xdotool to send fake Super+b to Spectrwm to toggle original bar. That was the only way I could think of to trigger toggle_bar event in Spectrwm and some other command at the same time. Once I figured that out, the rest was easy.... removed reserved margin ot top for Polybar; activated old Spectrwm bar again with minimal settings (it serves as "dynamic top margin); wrote script to toggle both bars at the same time; bind another keybinding to execute script.
Details are here if anybody needs it: https://dev.to/psiho/how-to-toggle-polybar-on-spectrwm-tiling-wm-3o3d
— Reply to this email directly, view it on GitHub https://github.com/conformal/spectrwm/issues/306#issuecomment-1033289988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFNDUMRBCB4Q7GJVLPKS5DU2HJFLANCNFSM4MQPHBXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Bruce E. Scott / IDX-396
@bescott9944, I also don't like the default bar, but as far as I know, toggling it and full screen works only with the defult bar. So this is a trick to use it as "dynamic padding" for Polybar (or any other bar) instead of classic fixed padding in region
setting of Spectrwm.
I use Super+f
to toggle it manually because I don't always want full screen (Super+e
) without a bar. If you want fullscreen to always hide bar, you can do similar hack with Super+e
too.
Point is... this is the only way I know (with xdotool
) to execute SpectrWm specific actions like bar_toggle
together with some other command (hiding polybar in this case). I'm not aware of any other way to execute bar_toggle
through shell script nor that there are any SpectrWm events available to hook to for that purpose.
Thanks for the information once again. :-) You know way more than I do. 98% of this stuff is over my head a bunch. Lol That is why I have not tackled trying to get ploybar to work in SpectrWm. I don't know why at 68 I decided to learn Linux and bash scripts and the like, but it has been interesting to say the least! :-) Take Care... -Bruce
On Thu, Feb 10, 2022 at 3:56 AM Mirko Vukušić @.***> wrote:
@bescott9944 https://github.com/bescott9944, I also don't like the default bar, but as far as I know, toggling it and full screen works only with the defult bar. So this is a trick to use it as "dynamic padding" for Polybar (or any other bar) instead of classic fixed padding in region setting of Spectrwm.
I use Super+f to toggle it manually because I don't always want full screen (Super+e) without a bar. If you want fullscreen to always hide bar, you can do similar hack with Super+e too.
Point is... this is the only way I know (with xdotool) to execute SpectrWm specific actions like bar_toggle together with some other command. I'm not aware of any otgher way to execute bar_toggle through shell script nor that there are any SpectrWm events available to hook to for that purpose.
— Reply to this email directly, view it on GitHub https://github.com/conformal/spectrwm/issues/306#issuecomment-1034655156, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFNDUIS53QNTAFBLWFDYRTU2N4SRANCNFSM4MQPHBXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
-- Bruce E. Scott / IDX-396
I'm trying out spectrwm and have been keeping my polybar setup which has been functioning great in i3 and dwm but I'm encountering issues in spectrwm.
The first issue is that the window type doesn't seem supported, making focus erratic (#151) but polybar can work around that with its
override-redirect
option, so that's manageable. The more immediate problem is that the polybar window is still shown on top when an application is fullscreen. I've tried addingquirk[Polybar:polybar] = FLOAT + ANYWHERE + MINIMALBORDER + NOFOCUSCYCLE + NOFOCUSONMAP
to my config, but it (not surprisingly) doesn't make a difference; neither does polybar's own work-around for the issuewm-restack
.Is there a recommended way to handle docks so they aren't treated as windows, stay on every workspace and aren't placed on top?