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

Alt+` not working.

Tags: None
(comma "," separated)
raul_l
Registered Member
Posts
20
Karma
0

Alt+` not working.

Thu Oct 12, 2017 2:45 pm
Alt+Tab works but Alt+` does nothing. I'm using Arch Linux and this issue appeared after the latest update. Is there a fix for this?

EDIT: Alt+` works for Gnome applications such as Gnome terminals. It does not for KDE applications such as when I have multiple Dolphin windows open.
raul_l
Registered Member
Posts
20
Karma
0

Re: Alt+` not working.

Thu Oct 19, 2017 3:46 pm
Temporary solution for now:

Code: Select all
#!/bin/bash

LEVEL=$1

# Determine desktop ID
DESKTOP=$(wmctrl -d | grep '\*' | cut -d ' ' -f1)
# Determine current window ID
ID=$(xprop -root _NET_ACTIVE_WINDOW | cut -d '#' -f2 | cut -d 'x' -f2)
# Determine current application name
APP=$(wmctrl -lx | grep $ID | awk '{print $3}')
# Find all IDs corresponding to that application in this desktop
IDs=$(wmctrl -lx | grep "$DESKTOP $APP" | awk '{print $1}')
# Find IDs of all apps in the order of recently focused
ALL_IDs=$(xprop -root|grep "^_NET_CLIENT_LIST_STACKING" | tr "," " ")
ALL_IDs=(${ALL_IDs##*#})
# Switch to the other window of the current application. If LEVEL==2,
# that would be the 2nd most recently focused one.
CURRENT_LEVEL=1
for (( i=${#ALL_IDs[@]}-1 ; i>=0 ; i-- )) ; do
    for x in $IDs; do
       (( "${ALL_IDs[i]}" == "$x" ))
       if [ $? == 0 ]; then
           if [ $CURRENT_LEVEL == $LEVEL ]; then
      wmctrl -ia $x
      exit 0
           else
          CURRENT_LEVEL=$((CURRENT_LEVEL+1))
      break
           fi
       fi
    done
done

exit 1


Create a shortcut (e.g., Alt+caret) that runs this script with the argument 2.
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Alt+` not working.

Mon Oct 23, 2017 7:16 pm
You might double-check the shortcuts in System Settings -> Window Behavior -> Task Switcher.
If that had the correct shortcuts listed but still isn't working then I'd recommend filing a bug to bugs.kde.org


airdrik, proud to be a member of KDE forums since 2008-Dec.
raul_l
Registered Member
Posts
20
Karma
0

Re: Alt+` not working.

Mon Oct 30, 2017 3:29 am
The shortcut seems to be correct. See the screenshot here. I have two Dolphin windows open. When I press the key combination to activate the application switcher for current window, only one Dolphin is shown. If I do the same thing on two Firefox windows, both are shown in the window switcher. This only happens with the application specific switcher. The regular Alt+Tab is fine.
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Alt+` not working.

Tue Oct 31, 2017 6:18 pm
Ok, so that sounds like a different bug, but still a bug. Please file on bugs.kde.org.


airdrik, proud to be a member of KDE forums since 2008-Dec.
raul_l
Registered Member
Posts
20
Karma
0


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]