How to toogle tiling window manager with shortcuts?

I’d like to enable and disable tiling windows with a shortcut. I thought about enabling/disabling Polonium, but I don’t know how.

1 Like

Dunno about polonium and whether you’re on 5 or 6 but I use a little bash script for bismuth on 5.
You can then make a shortcut or a desktop application if you like.

#!/bin/bash
current=kreadconfig5 --file kwinrc --group Plugins --key bismuthEnabled

if [ $current = “true” ]; then
kwriteconfig5 --file kwinrc --group Plugins --key bismuthEnabled false
elif [ $current = “false” ]; then
kwriteconfig5 --file kwinrc --group Plugins --key bismuthEnabled true
fi

qdbus org.kde.KWin /KWin reconfigure

1 Like

Hi again! The script is working amazing! I’m lacking this feature, though: Is there any way to also toggle the window manager appearance between Dark Breeze and Bismuth?

I’ve tried following the same structure, but it doesn’t seem to work:

kreadconfig5 --file kwinrc --group org.kde.kdecoration2 --key theme "Brisa"
Usage: kreadconfig5 [options]

Options:
  -h, --help         Displays help on commandline options.
  --help-all         Displays help including Qt specific options.
  --file <file>      Use <file> instead of global config
  --group <group>    Group to look in. Use "<default>" for the root group, or
                     use repeatedly for nested groups.
  --key <key>        Key to look for
  --default <value>  Default value
  --type <type>      Type of variable

PS: “Brisa” is how is called “breeze” theme on Spanish. When I set it up through ksystem-settings, this is the name it appears in ~/.config/kwinrc; I also realized that the library name is different too:

library=org.kde.breeze
theme=Brisa
library=org.kde.bismuth.decoration
theme=Bismuth

Guess youd have to add “plasma-apply-colorscheme” somehow, either to the script or the desktop application. Not sure about that one.

Edit: Just gave it a shot and adding “&& plasma-apply-colorscheme whatevercolor” to the desktop application ( the Exec line) should work.