hyprland-community / pyprland

Scratchpads & many goodies for Hyprland [maintainer=@fdev31]
MIT License
345 stars 15 forks source link

[FEAT] scratchpads: pypr hide * #106

Closed dafitt closed 3 months ago

dafitt commented 3 months ago

Is your feature request related to a problem? Please describe. I tried scratchpads for the first time and was expecting that ESC would hide any currently open scratchpad.

Describe the solution you'd like I would like to hide all / any scratchpads with one command / keybinding like for example bind=, escape, exec, pypr hide *

Describe alternatives you've considered No known alternative, at least i found nothing in the wiki

Additional context pypr hide command

fdev31 commented 3 months ago

I thought about it before, but wasn't sure it would be useful... About the ESC it can't be done unfortunately, but for the hide "" it should be quite easy. Do you think "show " also makes sense ?

dafitt commented 3 months ago

ESC was just the explaination for what i would use hide *.

Do you think "show *" also makes sense ?

Personally: Yes, why not? And if there is a hide *, users would also expect there to be a show *. And if its easy to implement it doesn't hurt i think?

fdev31 commented 3 months ago

Are you able to test the latest git version to provide some feedback?

dafitt commented 3 months ago

Works flawlessly, thank you.

One note (mabe for the wiki): When you are using the fish shell you must use "*" or '*' instead of *, because fish will expand * with all the files in the current directory before the arguments gets passed to the pypr command. "*" works on bash too.