mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 04:04:09 +02:00
A float button in every window's title bar
Frametop's own window decoration (decoration/), a QML decoration for KWin's Aurorae engine drawn like Breeze, puts a float button left of Close. It's the Keep Below button with its own glyph: the KWin script floats a window when keep-below is set and docks it when it's cleared, and keeps the flag set on every floating window, so the button shows "back to the desktop" there. The session script installs the decoration for the Frametop desktop only; decoration/apply.sh switches a running desktop to it or back to Breeze. Not yet tried in a running KWin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86c89f90af
commit
f32187824a
9 files changed
+498
-5
No files matched your search
@@ -196,4 +196,23 @@ else
|
||||
rm -f "$autostart"
|
||||
fi
|
||||
|
||||
# With floating windows, the session's windows get Frametop's own decoration: Breeze's look
|
||||
# plus a float button left of Close (decoration/, a QML decoration KWin's Aurorae engine
|
||||
# loads; docs/floating-windows.md). It's copied, not linked: KPackage doesn't list linked
|
||||
# packages. Desktop Mode keeps its own kwinrc, so it keeps Breeze.
|
||||
deco=kwin4_decoration_qml_frametop
|
||||
deco_dir=${XDG_DATA_HOME:-$HOME/.local/share}/kwin/decorations/$deco
|
||||
kwinrc=$XDG_CONFIG_HOME/kwinrc
|
||||
if [ "$float_slots" -gt 0 ]; then
|
||||
rm -rf "$deco_dir"
|
||||
mkdir -p "$(dirname "$deco_dir")"
|
||||
cp -r "$here/../decoration" "$deco_dir"
|
||||
rm -f "$deco_dir/apply.sh"
|
||||
kwriteconfig6 --file "$kwinrc" --group org.kde.kdecoration2 --key library org.kde.kwin.aurorae
|
||||
kwriteconfig6 --file "$kwinrc" --group org.kde.kdecoration2 --key theme "$deco"
|
||||
elif [ "$(kreadconfig6 --file "$kwinrc" --group org.kde.kdecoration2 --key theme)" = "$deco" ]; then
|
||||
kwriteconfig6 --file "$kwinrc" --group org.kde.kdecoration2 --key library --delete
|
||||
kwriteconfig6 --file "$kwinrc" --group org.kde.kdecoration2 --key theme --delete
|
||||
fi
|
||||
|
||||
dbus-run-session startplasma-wayland
|
||||
Reference in new issue
Block a user