Kscreen Config Scripts And Docs
Some scripts for saving good multiscreen configs for easy shortcutting and DPMS
About This Project
KScreen-Config-Scripts-And-Docs is a shell-based project that documents and automates the saving and restoring of multi-monitor layouts in KDE Plasma running on Wayland. It addresses the tendency of KDE to lose display arrangements, particularly with setups of more than three physical displays. The workflow covers configuring the layout through the graphical display settings, exporting the active configuration with kscreen-doctor in both human-readable and JSON formats, and reapplying it through a single atomic kscreen-doctor command. The README explains how to identify only the relevant output properties (port, mode, and X/Y position) when reconstructing a layout, and how to account for rotation and disabled outputs.
The project is built around kscreen-doctor's JSON export and command syntax, with Bash wrapper scripts such as a default layout script intended to be bound to keyboard shortcuts or hardware macropad keys. It also recommends storing configurations in the default KScreen directory and a dedicated scripts folder, keeping separate profiles for different setups, and maintaining a single-screen fallback configuration for recovery. The notes were validated on Ubuntu.
The project will be most useful to Linux users on KDE Plasma with Wayland who regularly work with three or more displays and want repeatable layouts that can be switched quickly, such as users who alternate between a full workstation and a reduced setup. It may also serve as a reference for anyone scripting kscreen-doctor for display management.