Skip to content

Instantly share code, notes, and snippets.

@rudicode
Created July 21, 2021 02:00
Show Gist options
  • Save rudicode/c91a4ead62ad73b2bf11cb436fce5aec to your computer and use it in GitHub Desktop.
Save rudicode/c91a4ead62ad73b2bf11cb436fce5aec to your computer and use it in GitHub Desktop.
Install or update kwin script to kde 5.x
#!/bin/bash
# This script tested only on KDE 5.x
# install script, first time only
# plasmapkg2 --type kwinscript -i ~/code/kwin-scripts/RCTiler/
# update script ( anytime after first install )
plasmapkg2 --type kwinscript -u ~/code/kwin-scripts/RCTiler/
# Disable plugin to take effect
kwriteconfig5 --file kwinrc --group Plugins --key RCTilerEnabled false
qdbus-qt5 org.kde.KWin /KWin reconfigure
# pause so that the reconfigure command takes effect
sleep 0.5
# Enable plugin to take effect
kwriteconfig5 --file kwinrc --group Plugins --key RCTilerEnabled true
qdbus-qt5 org.kde.KWin /KWin reconfigure
# if you changed the shortcut keys they may not take effect right away if the same keys were already defined.
# edit ~/.config/kglobalshortcutsrc and remove any conflicting entries.
# you may need to logout and then edit that above file and then log back in.
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment