Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-03-07 12:19:06

zhenliyaxf
Member
Registered: 2021-03-07
Posts: 1

I have an idea to close the window quickly

I have an idea to close the window quickly:
In the upper right corner of the screen, add a button to close the current window.

The convenience of this is that you don't need to confirm the position of "x" to close the current window, and you don't need to move the mouse to "x" deliberately, just flip the mouse to the upper right and press it again.

I basically realized this function by adding a script button on the panel: every time I click the button in the upper right corner of the screen, I send alt+F4

I think this is very efficient and Save worry, and maybe the developers are willing to implement it better.

FluxBB bbcode test

Last edited by zhenliyaxf (2021-03-07 12:21:02)

Offline

#2 2021-03-07 14:04:24

PaperNick
Member
From: Bulgaria
Registered: 2013-05-26
Posts: 86

Re: I have an idea to close the window quickly

Great idea! I played around with xdotool and came up with "Minimize" and "Maximize" also:

Minimize command:

sh -c 'xdotool windowminimize $(xdotool getactivewindow)'

Maximize command:

xdotool key alt+space && xdotool key x

If it doesn't work try adding some delay between commands:

sh -c 'xdotool key alt+space && sleep 0.1 && xdotool key x'

I remember using using xfce4-windowck-plugin in the past, but I think it's not maintained anymore:
https://goodies.xfce.org/projects/panel … wck-plugin

Offline

Board footer

Powered by FluxBB