Is there a CLI window management tool for KDE

Forum rules
Before you post please read how to get help
Post Reply
nullsteph
Level 1
Level 1
Posts: 10
Joined: Tue Nov 07, 2017 9:45 pm

Is there a CLI window management tool for KDE

Post by nullsteph » Fri May 04, 2018 10:22 pm

I had used `wmctrl` but that doesn't seem to work with KDE Plasma. Are there any equivalent alternatives?

User avatar
kc1di
Level 13
Level 13
Posts: 4723
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Is there a CLI window management tool for KDE

Post by kc1di » Sun May 06, 2018 9:16 am

Mint 18.x uses SDDM windows manager , which I do not believe is in the list of supported Windows managers for wmcrtl. I not aware of any other similar app that does the same job. Though KDE does have a lot of gui programs that will do similar changes.
Good luck in your search.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

aes2011
Level 5
Level 5
Posts: 504
Joined: Wed Jul 06, 2011 10:39 pm

Re: Is there a CLI window management tool for KDE

Post by aes2011 » Sun May 06, 2018 9:40 am

I think SDDM, LightDM, GDM, etc are "display managers" and that nullsteph wants to know about whether wmctrl will work with KWin which is KDE's window manager.

Since there aren't any specific aspects, I can only say that wmctrl does work in the following (not very useful) example in Kubuntu 18.04.

I assigned a shortcut key combo of Ctrl+Super+R to the following script:

Code: Select all

#!/bin/sh

wmctrl -r :ACTIVE: -b remove,maximized_vert
wmctrl -r :ACTIVE: -b remove,maximized_horz
wmctrl -r :ACTIVE: -e 1,510,21,510,700
And,just to be clear, this is not in a Wayland session.

User avatar
kc1di
Level 13
Level 13
Posts: 4723
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Is there a CLI window management tool for KDE

Post by kc1di » Sun May 06, 2018 9:53 am

aes2011 wrote:
Sun May 06, 2018 9:40 am
I think SDDM, LightDM, GDM, etc are "display managers" and that nullsteph wants to know about whether wmctrl will work with KWin which is KDE's window manager.

Since there aren't any specific aspects, I can only say that wmctrl does work in the following (not very useful) example in Kubuntu 18.04.

I assigned a shortcut key combo of Ctrl+Super+R to the following script:

Code: Select all

#!/bin/sh

wmctrl -r :ACTIVE: -b remove,maximized_vert
wmctrl -r :ACTIVE: -b remove,maximized_horz
wmctrl -r :ACTIVE: -e 1,510,21,510,700
And,just to be clear, this is not in a Wayland session.
you may be right according to the wmctrl web site it works with the follow wm's
Please note that wmctrl only works with window managers which implement the EWMH specification. The program is known to work - either fully or partially - with the following window managers:

blackbox >= 0.70
icewm
kwin (the default WM for KDE)
metacity (the default WM for GNOME)
openbox >= 3
sawfish
fvwm >= 2.5
waimea
pekwm
enlightenment >= 0.16.6
xfce >= 4
fluxbox >= 0.9.6
matchbox
window maker >= 0.91
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

aes2011
Level 5
Level 5
Posts: 504
Joined: Wed Jul 06, 2011 10:39 pm

Re: Is there a CLI window management tool for KDE

Post by aes2011 » Sun May 06, 2018 10:49 am

nullsteph wrote:
Fri May 04, 2018 10:22 pm
I had used `wmctrl` but that doesn't seem to work with KDE Plasma. Are there any equivalent alternatives?
So what exactly did you try that doesn't work?

Post Reply

Return to “KDE”