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

Kwin script toggle

Tags: None
(comma "," separated)
dzon
Registered Member
Posts
493
Karma
3

Kwin script toggle

Sat Jan 22, 2022 1:56 pm
I often switch to a tiled layout, in my case, Krohnkite. It's a bit annoying that there is no toggle for it. Going into system settings to activate it is kinda stupid so I have this script and made a panel launcher for it. Switching from a regular desktop layout to a tiled one is a breeze now. In case someone is interested:

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

if [ $current = "true" ]; then
kwriteconfig5 --file kwinrc --group Plugins --key krohnkiteEnabled false
elif [ $current = "false" ]; then
kwriteconfig5 --file kwinrc --group Plugins --key krohnkiteEnabled true
fi

qdbus org.kde.KWin /KWin reconfigure

After which you make a desktop file in ~/.local/share/applications in order to have a launcher in the menu or panel.
https://imgur.com/a/szJOeLB


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]