23 lines
563 B
Bash
Executable File
23 lines
563 B
Bash
Executable File
#!/bin/bash
|
|
# Install kwin-scratchpad KWin script
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PACKAGE_DIR="$SCRIPT_DIR/"
|
|
|
|
echo "Installing kwin-scratchpad..."
|
|
|
|
# Remove old version if present
|
|
kpackagetool6 --type=KWin/Script -r kwin-scratchpad 2>/dev/null || true
|
|
|
|
# Install
|
|
kpackagetool6 --type=KWin/Script -i "$PACKAGE_DIR"
|
|
|
|
# Enable the script
|
|
kwriteconfig6 --file kwinrc --group Plugins --key kwin-scratchpadEnabled true
|
|
|
|
# Reload KWin
|
|
qdbus6 org.kde.KWin /KWin reconfigure
|
|
|
|
echo "Done. Shortcut: Meta+- (configurable in System Settings > Shortcuts)"
|