Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.01 KB

File metadata and controls

39 lines (28 loc) · 1.01 KB

KWin-WezTerm-Toggle

This is a KWin script for toggling the visibility of WezTerm.

Works with KWin 6 + Wayland. There is also a KWin 5 branch.

Useful before it is natively provided: wezterm/wezterm#1751

Installation

# This script does not start WezTerm. It is up to you how you start WezTerm.

# 1. Clone this repo
cd $ThisRepo

# 2. Adjust `KEY_SEQUENCE` in `main.js` if you want.
head contents/code/main.js

# 3. Install kwin script
kpackagetool6 --type=KWin/Script --install .

Other commands

# Uninstall
kpackagetool6 --type=KWin/Script --remove wezterm-toggle # Needs logout, because KWin wouldn't unregister old hotkey and its callback.

# Debug
plasma-interactiveconsole --kwin
busctl call --user org.kde.KWin /KWin org.kde.KWin showDebugConsole # Alternatively: qdbus org.kde.KWin /KWin showDebugConsole
journalctl --user --boot 0 --follow --identifier kwin_wayland

# List
kpackagetool6 --type=KWin/Script --list # --global

License

MIT License.