Is there a CLI window management tool for KDE

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
nullsteph

Is there a CLI window management tool for KDE

Post by nullsteph »

I had used `wmctrl` but that doesn't seem to work with KDE Plasma. Are there any equivalent alternatives?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
kc1di
Level 18
Level 18
Posts: 8146
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Is there a CLI window management tool for KDE

Post by kc1di »

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://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
aes2011
Level 4
Level 4
Posts: 498
Joined: Wed Jul 06, 2011 10:39 pm

Re: Is there a CLI window management tool for KDE

Post by aes2011 »

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 18
Level 18
Posts: 8146
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Is there a CLI window management tool for KDE

Post by kc1di »

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://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
aes2011
Level 4
Level 4
Posts: 498
Joined: Wed Jul 06, 2011 10:39 pm

Re: Is there a CLI window management tool for KDE

Post by aes2011 »

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?
Locked

Return to “Software & Applications”