-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
holdbar
only when bar is hidden using togglebar
#35
Comments
Can't you just do the default As for having the bar show by default just keep the
Pressing and releasing the holdbar key hides the bar again. You can trigger That's at least how it works in my build. As far as I can see I haven't made any changes in this respect. |
Thanks for the quick reply. I tried to trigger |
Could it be because you have set the HOLDKEY as Super_L, same as MODKEY?
You can set the holdkey to something like |
Btw, I like your activetagindicatorbar showing at the bottom, might grab that. |
Oh yes, this was it. |
In the
Try changing that to:
|
Nope, didn't work :/ |
I think it should prevent the bar from disappearing if it is already enabled (i.e. on startup), i.e. if it is shown in full you can do That said you may need a non-Super keybinding to toggle the bar on and off. Actually one thing you may want to try as well is inside
I'm not 100% sure if this will work, but you could try changing it into:
Actually I'll try this myself and get back to you. |
That actually works beautifully, just also change your
|
This is working somewhat how I wanted. Problems I am facing after these changes is when bar is visible and I press mod key to do any other thing, bar disappears. What can I do to avoid this? 😅
It looks like I am troubling you a lot even though you do not have to do anything with this patch! But I couldn't find any other better source for my queries. So thanks for the help you are providing. I actually had been following since quite some time and you also suggested me tagswapmon on reddit. So thought you could help with this patch also!
…--
Regards,
Chinmay Chhajed
________________________________
From: Stein Gunnar Bakkeby <[email protected]>
Sent: Monday, June 29, 2020 11:29 PM
To: bakkeby/dwm-flexipatch <[email protected]>
Cc: Chinmay Chhajed <[email protected]>; Author <[email protected]>
Subject: Re: [bakkeby/dwm-flexipatch] `holdbar` only when bar is hidden using `togglebar` (#35)
That actually works beautifully, just also change your togglebar function to be simply this:
void
togglebar(const Arg *arg)
{
selmon->showbar = !selmon->showbar;
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#35 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKF4R5DNGLPZUWAGEEHR72DRZDI7RANCNFSM4OLISBHQ>.
|
No worries. I should have something for you soon. |
OK, this looks like what you'll have to do: In
in
in
you don't, but if you were to have the pertagbar patch then it would still work - just that it would be very unpractical and unintuitive to use when combined with holdbar. Another side effect of using holdbar worth noting is that if you use it with the super key, as in this case, then dwm will effectively block external applications such as |
Thanks a lot! These changes are working as expected. I also use pertag patch and it is in sync without any error (known until now!). |
Earlier when togglebar is triggered to show bar, it wouldn't work unless HOLDKEY is mapped to something other than MODKEY. After this commit MODKEY will also work for HOLDKEY. For more details see this issue bakkeby/dwm-flexipatch#35 (comment)
It would be great if you could add this at official dwm patches as many people would want this feature. It was a default behavior I expected after applying holdbar patch. |
Earlier when togglebar is triggered to show bar, it wouldn't work unless HOLDKEY is mapped to something other than MODKEY. After this commit MODKEY will also work for HOLDKEY. For more details see this issue bakkeby/dwm-flexipatch#35
Yes that's an idea. I added that now, will likely be up on the site within a week. |
patch -p1 fails on this dwm-holdbar-modkey-6.2 patch, I had a quick look at it, it wasn't obvious why patch -p1 would fail, can you please have a look? My system is gentoo, I put dwm patches in a local overlay that has higher priority than the official portage tree, which has been working great for all the dwm patches I have been using, until this one. Thanks. |
@antoniomokuzai you mean $ git status
HEAD detached at 6.2
nothing to commit, working tree clean
$ git apply ~/path/to/dwm-holdbar-modkey-6.2.diff
$ git status
HEAD detached at 6.2
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: config.def.h
modified: dwm.c
no changes added to commit (use "git add" and/or "git commit -a") vs $ git status
HEAD detached at 6.2
nothing to commit, working tree clean
$ patch -p1 < ~/path/to/dwm-holdbar-modkey-6.2.diff
patching file config.def.h
patching file dwm.c
$ git status
HEAD detached at 6.2
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: config.def.h
modified: dwm.c
no changes added to commit (use "git add" and/or "git commit -a") Both work fine, even on the latest master. Most likely you have applied other patches which means that the patch can not be applied cleanly. In general I recommend applying patches manually by hand even if it takes a lot more time to do - you learn practically nothing from using |
Hello,
Can you help me to modify holdbar patch to get into effect only when I have used
togglebar
to hide status bar and always show status bar when bar is visible usingtogglebar
? Holdbar patch is very useful but sometimes I need to see details on status bar constantly and that timetogglebar
doesn't show status bar and it is too tedious to hold down a key constantly.By looking at this repo, I though you could be the right person. Please suggest something. Thanks in advance! :)
Extra information
I use a custom bar using
xsetroot
.The text was updated successfully, but these errors were encountered: