You are not logged in.
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.
Last edited by zhenliyaxf (2021-03-07 12:21:02)
Offline
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
[ Generated in 0.022 seconds, 7 queries executed - Memory usage: 533.03 KiB (Peak: 544.59 KiB) ]