Skip to content
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

Keybindings for rootmenu(as traybutton) toggle like a winkey effect for windows startup menu? #607

Open
awupoh opened this issue Feb 16, 2024 · 1 comment

Comments

@awupoh
Copy link

awupoh commented Feb 16, 2024

Hi,
    I am using jwm 2.4.4 on debian 12. It's been good!
    I am curious if there is anyway to set a keybinding to winkey that toggles the rootmenu like winkey on windows ?

    I was able to add something like:

<Key mask="4" key="d">showdesktop</Key> <!-- show desktop -->
<Key keycode="133">exec: xdotool mousemove 0 $(expr $(xrandr | grep '*' | awk '{print $1}'|awk -F'x' '{print $2}') - 5) click 1</Key> <!-- toggle root menu -->

    The first line would mimic a "show desktop" feature like on windows perfectly!

    However, the second line "magic" can only trigger the menu to open, but not to close when it's already open(ESC can).
    Additionally, if I have the second line turned on along with the first line, and use winkey+d to trigger first line's showdesktop, jwm would just crash. (I am inside a vm. So I would just have to restart the vm). The first line alone works fine!

@BlackCodec
Copy link
Contributor

Try associate another hotkeys (for example alt + F1) and use xcape:
https://github.com/alols/xcape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants