Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-08-19 23:09:16

advice1010
Member
Registered: 2023-02-19
Posts: 105

Window Manager hotkeys as part of the command

I do not think this is possible but just wanted to make sure.
I was wondering if commands for the Window Manager can include some kind of access to hotkeys / actions you can assign to hotkeys in Window Manager - Keyboard.
The solution for this is probably to use a tool such as xdotool but was just curious if it could be done without it in some way.

Just to give a couple of examples....
Say you wanted to run a CL based command to use the "Cycle Window" action.
Want to run as a command, not a hotkey that applies the action.

Or

Say you have a program that you are running in full screen and you want to use your Super key + Right arrow to snap that program to the right side of your screen.
For example MPV allows user to be able to assign CL commands to a hotkey and run them within MPV.  Wanted to try to see if running MPV in full screen that I can create commands to allow window snapping action to occur, because as mentioned full screen mode does not have access.

Again probably can only be done with something like xdotool.
If anyone could confirm this either way.

Thank you to anyone who reads this

Offline

#2 2024-08-20 09:45:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: Window Manager hotkeys as part of the command

Yes, you can use xdotool to automate key presses. For example:

xdotool key Alt+Tab
xdotool key Super+Right

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#3 2024-08-24 22:04:37

advice1010
Member
Registered: 2023-02-19
Posts: 105

Re: Window Manager hotkeys as part of the command

Thank you ToZ
As mentioned that is what I figured, would need to be done using a separate tool such as xdotool.
Was just curious if there was any tricks that would eliminated the need for a 3rd party tool.
Okay, thank you again

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 524.2 KiB (Peak: 530.77 KiB) ]