feat: Arbeitsflaechen-Keybinds Win+1..4 / Win+Shift+1..4

This commit is contained in:
humocs-man committed 2026-10-11 13:06:16 +02:00
1 parent 07cc206c7e
commit f127da0bce
2 files changed
+59

No files matched your search

+26
View File
@@ -99,6 +99,32 @@
<keybind key="C-A-t"> <keybind key="C-A-t">
<action name="Execute" command="gnome-terminal" /> <action name="Execute" command="gnome-terminal" />
</keybind> </keybind>
<!-- Arbeitsflaechen: Win+1..4 springen, Win+Shift+1..4 schickt das
Fenster mit (labwc-Standardbelegung, 4 Desktops). -->
<keybind key="W-1">
<action name="GoToDesktop" to="1" />
</keybind>
<keybind key="W-2">
<action name="GoToDesktop" to="2" />
</keybind>
<keybind key="W-3">
<action name="GoToDesktop" to="3" />
</keybind>
<keybind key="W-4">
<action name="GoToDesktop" to="4" />
</keybind>
<keybind key="W-S-1">
<action name="SendToDesktop" to="1" />
</keybind>
<keybind key="W-S-2">
<action name="SendToDesktop" to="2" />
</keybind>
<keybind key="W-S-3">
<action name="SendToDesktop" to="3" />
</keybind>
<keybind key="W-S-4">
<action name="SendToDesktop" to="4" />
</keybind>
<!-- Fenster schliessen --> <!-- Fenster schliessen -->
<keybind key="A-F4"> <keybind key="A-F4">
<action name="Close" /> <action name="Close" />
+33
View File
@@ -314,6 +314,39 @@ if [[ -f "${RC_XML}" ]] && ! grep -q 'key="A-Tab"' "${RC_XML}"; then
EOF EOF
fi fi
# Migration: Arbeitsflaechen-Wechsel (Win+1..4 springen, Win+Shift+1..4
# schickt das Fenster mit). labwc-Standardbelegung.
if [[ -f "${RC_XML}" ]] && ! grep -q 'key="W-1"' "${RC_XML}"; then
insert_before "${RC_XML}" '<keybind key="A-F4">' "Arbeitsflaechen-Keybinds ergaenzt" <<'EOF' || true
<!-- Arbeitsflaechen: Win+1..4 springen, Win+Shift+1..4 schickt das
Fenster mit (labwc-Standardbelegung, 4 Desktops). -->
<keybind key="W-1">
<action name="GoToDesktop" to="1" />
</keybind>
<keybind key="W-2">
<action name="GoToDesktop" to="2" />
</keybind>
<keybind key="W-3">
<action name="GoToDesktop" to="3" />
</keybind>
<keybind key="W-4">
<action name="GoToDesktop" to="4" />
</keybind>
<keybind key="W-S-1">
<action name="SendToDesktop" to="1" />
</keybind>
<keybind key="W-S-2">
<action name="SendToDesktop" to="2" />
</keybind>
<keybind key="W-S-3">
<action name="SendToDesktop" to="3" />
</keybind>
<keybind key="W-S-4">
<action name="SendToDesktop" to="4" />
</keybind>
EOF
fi
# Migration: Screenshot-Tasten (Print = Bereich, Shift+Print = Vollbild). # Migration: Screenshot-Tasten (Print = Bereich, Shift+Print = Vollbild).
if [[ -f "${RC_XML}" ]] && ! grep -q 'key=".*Print' "${RC_XML}"; then if [[ -f "${RC_XML}" ]] && ! grep -q 'key=".*Print' "${RC_XML}"; then
insert_before "${RC_XML}" '<keybind key="A-F4">' "Screenshot-Tasten ergaenzt" <<'EOF' || true insert_before "${RC_XML}" '<keybind key="A-F4">' "Screenshot-Tasten ergaenzt" <<'EOF' || true