On my new laptop, I have decided to keep the f keys as f keys which
requires hitting the fn key to get additional functions such as
play/pause etc. I did this because I often found myself hitting mute
(for example) by mistake. However, I don't use f10 for anything else so
rather than pushing fn+f10 (prt sc on my keyboard), I just want to push
f10. The shift / ctrl modifiers were implemented.
This involved the patch from here:
https://lists.suckless.org/dev/1104/7590.html
I use this on the pinephone with win+left and win+right bound to a swipe
left or right on the bottom edge of the screen
A single push will turn off the screen
A double push or a push and hold will open the power menu, allowing you
to turn off, restart, logout or suspend (CRUST)
This allows me to have the same key do different things based on the
number of times it is pushed.
This is going to be useful on the pinephone so I can have double click
or click and hold on the limited number of physical buttons
I'm going to be using dwm on my new pinephone and need the ability to
type.
Almost all the code for this has come from minego:
https://github.com/minego/dwm-customized
- unify multi-line expression alignment style.
- unify multi-line function call alignment style.
- simplify client moving on monitor count decrease.
- clarify comment for focusin().
- remove old confusing comment about input focus fix in focusmon(). The
explanation is already in the old commit message, so no need to keep it in the
code.
- remove old comment describing even older state of the code in focus().
- unify comment style.
- break up some long lines.
- fix some typos and grammar.