You are not logged in.

#1 2023-02-09 12:14:02

mabalenk
Member
Registered: 2017-04-28
Posts: 36

How to add Yakuake to Alt+Tab switching menu

By default the terminal emulator Yakuake is not shown in the application switching menu (Alt+Tab) in KDE Plasma. Would it be possible to add it there? How do I do that? Thank you!

Offline

#2 2023-02-09 14:47:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,293

Re: How to add Yakuake to Alt+Tab switching menu

why? The point of yakuake is to be a dropdown window you can invoke via a dedicated shortcut in whichever context you are in?

Offline

#3 2023-02-09 14:53:21

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

I know, you are right. But sometimes, I find it helpful to switch context with Alt+Tab.

Offline

#4 2023-02-09 15:26:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

Post the output of "xprop" on the window.
nb. that even if this works, it'll imply that the window also shows up in the taskbar

Online

#5 2023-02-09 18:33:36

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

Please find below the output of xprop:

WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_FOCUSED, _NET_WM_STATE_ABOVE, _NET_WM_STATE_STAYS_ON_TOP, _NET_WM_STATE_STICKY, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_NET_WM_USER_TIME(CARDINAL) = 7979927
WM_TRANSIENT_FOR(WINDOW): window id # 0x40000f
_KDE_SLIDE(_KDE_SLIDE) = 0x0, 0x1, 0xaa, 0xaa
WM_WINDOW_ROLE(STRING) = "MainWindow#1"
_NET_WM_ICON_NAME(UTF8_STRING) = 
_KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) = "org.kde.yakuake"
_NET_WM_ICON(CARDINAL) =
        Icon (20 x 20): (not shown)
        Icon (28 x 28): (not shown)
        Icon (40 x 40): (not shown)
        Icon (60 x 60): (not shown)
        Icon (80 x 80): (not shown)
        Icon (160 x 160): (not shown)
XdndAware(ATOM) = BITMAP
WM_NAME(STRING) = "perl-5.36.0 : xprop"
_NET_WM_NAME(UTF8_STRING) = "perl-5.36.0 : xprop \342\200\224 Yakuake"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x1, 0x0, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_UTILITY, _KDE_NET_WM_WINDOW_TYPE_OVERRIDE, _NET_WM_WINDOW_TYPE_NORMAL
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x40000f
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                window id # of group leader: 0x40000f
WM_CLIENT_MACHINE(STRING) = "smolya"
_NET_WM_PID(CARDINAL) = 4331
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 4194318
WM_CLASS(STRING) = "yakuake", "yakuake"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified location: 0, 0
                user specified size: 2560 by 1380
                program specified resize increment: 1 by 1
                program specified base size: -1 by -1
                window gravity: Static

Last edited by mabalenk (2023-02-10 11:01:15)

Offline

#6 2023-02-09 20:00:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

Please edit your post and wrap the output in "code" tags, https://bbs.archlinux.org/help.php#bbcode

xprop wrote:

_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_FOCUSED, _NET_WM_STATE_ABOVE, _NET_WM_STATE_STAYS_ON_TOP, _NET_WM_STATE_STICKY, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER

wmctrl -x -r yakuake -b remove,skip_taskbar
seth wrote:

nb. that even if this works, it'll imply that the window also shows up in the taskbar

Online

#7 2023-02-10 11:07:13

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

Thank you for your suggestion. Please check my edits. I tried executing:

wmctrl -x -r yakuake -b remove,skip_taskbar

But it didn't have any effect. I attempted to prefix it with sudo, but it didn't change anything.

Offline

#8 2023-02-10 12:11:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

Stop yellung sudo when stuff doesn't work - that's a recipe for disaster.

You can expect the command to remove the _NET_WM_STATE_SKIP_TASKBAR flag, check xprop on whether it does.
This does unfortunately not guarantee that the WM tracks _NET_WM_STATE in general or the flag in particular.
Can you activate the window w/

wmctrl -xa yakuake

Online

#9 2023-02-10 12:29:27

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

Thank you for your suggestions! I can confirm, the _NET_WM_STATE_SKIP_TASKBAR flag is deactivated with:

wmctrl -x -r yakuake -b remove,skip_taskbar

However, executing

wmctrl -xa yakuake

does not make Yakuake appear in the context switching menu (Alt+Tab).

Offline

#10 2023-02-10 12:33:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

It's not supposed to make it "appear in the context switching menu (Alt+Tab)" (whatever that is) but to show and focus the window.
Sanity check:

loginctl session-status | head -24

Online

#11 2023-02-10 12:55:43

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

Executing wmctrl -xa yakuake does not show and focus on the window.

Please find below the output of loginctl:

loginctl session-status | head -24
2 - mabalenk (1000)
	   Since: Fri 2023-02-10 11:47:21 GMT; 1h 3min ago
	  Leader: 3901 (sddm-helper)
	    Seat: seat0; vc1
	 Display: :0
	 Service: sddm; type x11; class user
	 Desktop: KDE
	   State: active
	    Unit: session-2.scope
		  |-3901 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-authb15d0ed9-2ebc-4b0f-b676-af0a290e6420 --id 1 --start /usr/bin/startplasma-x11 --user mabalenk
		  |-3914 /usr/bin/kwalletd5 --pam-login 6 8
		  `-3915 /usr/bin/startplasma-x11

Feb 10 11:47:22 smolya sddm-helper[3913]: pam_kwallet5: final socket path: /run/user/1000/kwallet5.socket
Feb 10 11:47:22 smolya sddm-helper[3915]: Adding cookie to "/home/mabalenk/.Xauthority"
Feb 10 11:47:22 smolya kwalletd5[3914]: kf.wallet.kwalletd: Wallet failed to get opened by PAM, error code is -9
Feb 10 12:23:30 smolya kwalletd5[3914]: Application ' "Opera" ' using kwallet without parent window!

Offline

#12 2023-02-10 13:03:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

What's the output of "wmctrl -l" when the yakuake window is *not* visible?

Online

#13 2023-02-10 13:25:04

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

Please find below the output of wmctrl -l. I called it from Alacritty, when Yakuake is running minimised in the background.

mabalenk@smolya:~$ wmctrl -l
0x0160001d -1 smolya Desktop — Plasma
0x01600030 -1 smolya Plasma
0x03000003  0 smolya How to add Yakuake to Alt+Tab switching menu / Applications & Desktop Environments / Arch Linux Forums - Opera
0x0400000c  0 smolya mabalenk--python2c.pdf  — Okular
0x04400002  0 smolya mabalenk@smolya:~

Offline

#14 2023-02-10 13:27:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

Ah, blast. (It doesn't print the class by default and one cannot say whether one of those is yakuake)

wmctrl -xl

Online

#15 2023-02-10 14:02:10

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

No, it is still not in the list:

mabalenk@smolya:~$ wmctrl -xl
0x0160001d -1 plasmashell.plasmashell  smolya Desktop — Plasma
0x01600030 -1 plasmashell.plasmashell  smolya Plasma
0x03000003  0 Opera.Opera           smolya How to add Yakuake to Alt+Tab switching menu / Applications & Desktop Environments / Arch Linux Forums - Opera
0x0400000c  0 okular.okular         smolya mabalenk--python2c.pdf  — Okular
0x04400002  0 Alacritty.Alacritty   smolya mabalenk@smolya:~

Offline

#16 2023-02-10 14:07:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

Yakuake probably destroys and re-creates the window, for a sanity check

xwininfo

on yakuake, but regardless whether it's override redirect or recreated, you'll not be getting it into the list of managed windows - therefore not into the tabbox.
Unless you patch yakuake or it has a relevant option.

Online

#17 2023-02-10 14:15:00

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

Please find the output of xwininfo on Yakuake below:

xwininfo: Window id: 0x40000d " (failure in conversion from UTF8_STRING to ANSI_X3.4-1968)"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 2560
  Height: 1380
  Depth: 32
  Visual: 0x6aa
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x40000c (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: yes
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-60  +0-60
  -geometry 2561x1381+0+0

Offline

#18 2023-02-10 14:18:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

Not override-redirect.
Does yakuake show up in "wmctrl -xl" when it's visible?

Online

#19 2023-02-10 14:57:05

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

No, it only shows up when I execute wmctrl -xl in Yakuake itself:

wmctrl -xl
0x0160001d -1 plasmashell.plasmashell  smolya Desktop — Plasma
0x01600030 -1 plasmashell.plasmashell  smolya Plasma
0x03000003  0 Opera.Opera           smolya How to add Yakuake to Alt+Tab switching menu / Applications & Desktop Environments / Arch Linux Forums - Opera
0x0400000c  0 okular.okular         smolya mabalenk--python2c.pdf  — Okular
0x04400002  0 Alacritty.Alacritty   smolya mabalenk@smolya:~/Downloads
0x0500000d  0 konsole.konsole       smolya 04-dudx_dudy : bash — Konsole
0x0040000d  0 yakuake.yakuake       smolya 01-avgstddev : bash — Yakuake

Offline

#20 2023-02-10 15:00:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

That's not very likely, but it means that yakuake recreates the window every time you open it (I assume the _NET_WM_STATE_SKIP_TASKBAR flag re-appears?)

seth wrote:

you'll not be getting it into the list of managed windows - therefore not into the tabbox.
Unless you patch yakuake or it has a relevant option.

Online

#21 2023-02-10 16:01:56

mabalenk
Member
Registered: 2017-04-28
Posts: 36

Re: How to add Yakuake to Alt+Tab switching menu

Yes, I can confirm that the _NET_WM_STATE_SKIP_TASKBAR flag re-appears. Are we in a stalemate position? Thank you for all your time and help!

Offline

#22 2023-02-10 16:07:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,097

Re: How to add Yakuake to Alt+Tab switching menu

You'll have to look around whether yakuake allows you to run it as a somewhat more normal window.
With its current behavior, you'll otherwise not be able to get it into the tabbox w/o patching yakuake.

Online

Board footer

Powered by FluxBB