This forum has been archived. All content is frozen. Please use KDE Discuss instead.

shortcut to iconify/show a window

Tags: None
(comma "," separated)
novazur
Registered Member
Posts
41
Karma
0
OS

shortcut to iconify/show a window

Tue Dec 13, 2016 8:35 pm
Hi,

I play a game (wow) in a "windowed full screen" mode, and I don't want to change it.

I have a dashbord (I don't know if it's the right translation for french "tableau de bord") automatically hidden .

But, if wow is started, when I put my mouse on the dashbord, it doesn't automatically appear.

So, the only solution I found is to "hide" the wow window to access the dashbord.
With KDE4, I was used to use the function : hide/show the desktop I assigned a shortcut. All was fine.

But after upgrading to plasma, hide/show desktop doesn't affect the "windowed full screen" wow window. All others windows are hidden, but not wow window.

So, I think the solution could be to assign a shortcut to toggle iconify/show to a *named* window.
I found a plasma shortcut that permit to iconify the current window, but I'd prefer it only affect THIS window.
If not possible natively, the solution can be a xbinkeys configuration if I'm able to make a script that make the right action like :
Code: Select all
if [ kde_test_window_iconify( Wow-64.exe ) ] ; then
kde_show_window( Wow-64.exe )
else
kde_iconify_window( Wow-64.exe )
fi


Thanks by advance and sorry for my poor english.
novazur
Registered Member
Posts
41
Karma
0
OS

Re: shortcut to iconify/show a window

Tue Dec 13, 2016 11:38 pm
novazur wrote:I have a dashbord (I don't know if it's the right translation for french "tableau de bord") automatically hidden .


Of course, the best solution would be to have a shortcut to show the hidden panel, but I can't find how.

So, for the moment, I'll do it with a xbindkeys and :
Code: Select all
#!/bin/bash
TMPID=/tmp/xdotool_wow.pid
ID=$(xdotool search --name "World of Warcraft")
if [ -f "${TMPID}" ] ; then
        xdotool windowactivate $ID
        rm -f "${TMPID}"
else
        xdotool windowminimize $ID
        echo $ID > "${TMPID}"
fi

Let me know if you have a better idea.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]