-
Is there any way to bring up a window to the foreground when a specific button on the keyboard is pressed? I want to make a media player that can appear over a window on command, and send it back to background when done. Only reason is because its annoying to go back to the desktop to change songs and stuff. So is there a way to do it on X11? |
Beta Was this translation helpful? Give feedback.
Answered by
theNoof
Aug 23, 2025
Replies: 1 comment 10 replies
-
i dont have a full solution for you, but maybe something like this:
and change |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you need triple backticks for code like so:
the code snippet seems right.
tested a smaller, simpler example myself:
getting the same error.
@elkowar is that a bug? if not, why is this not working?
also, maybe as a quick fix, you could create two identical windows with the only difference being that they have
bg
andfg
and toggle them using a small shell script