From dd77482b54cf27b8e2425e7d5f3371c677b7522d Mon Sep 17 00:00:00 2001 From: Gwendolyn Quasebarth Date: Mon, 14 Apr 2025 12:04:49 +0200 Subject: [PATCH] fix: keyboard shortcuts for left/right workspaces Add keyboard shortcuts for left/right workspace switching & window moving. Fix #1776 --- scripts/configure.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/configure.sh b/scripts/configure.sh index 4953fc85..c6c72b7f 100644 --- a/scripts/configure.sh +++ b/scripts/configure.sh @@ -47,9 +47,9 @@ set_keybindings() { # Show the activities overview: disable s dconf write ${KEYS_GNOME_SHELL}/toggle-overview "@as []" # Switch to workspace left: disable Left - dconf write ${KEYS_GNOME_WM}/switch-to-workspace-left "@as []" + dconf write ${KEYS_GNOME_WM}/switch-to-workspace-left "@as ['Left','${left}']" # Switch to workspace right: disable Right - dconf write ${KEYS_GNOME_WM}/switch-to-workspace-right "@as []" + dconf write ${KEYS_GNOME_WM}/switch-to-workspace-right "@as ['Right','${right}']" # Maximize window: disable Up dconf write ${KEYS_GNOME_WM}/maximize "@as []" # Restore window: disable Down @@ -62,12 +62,12 @@ set_keybindings() { # Super + direction keys, move window left and right monitors, or up and down workspaces # Move window one monitor to the left dconf write ${KEYS_GNOME_WM}/move-to-monitor-left "@as []" + # Move window one monitor to the right + dconf write ${KEYS_GNOME_WM}/move-to-monitor-right "@as []" # Move window one workspace down dconf write ${KEYS_GNOME_WM}/move-to-workspace-down "@as []" # Move window one workspace up dconf write ${KEYS_GNOME_WM}/move-to-workspace-up "@as []" - # Move window one monitor to the right - dconf write ${KEYS_GNOME_WM}/move-to-monitor-right "@as []" # Super + Ctrl + direction keys, change workspaces, move focus between monitors # Move to workspace below @@ -75,6 +75,12 @@ set_keybindings() { # Move to workspace above dconf write ${KEYS_GNOME_WM}/switch-to-workspace-up "['Up','${up}']" + # Super + Ctrl + Shift + direction keys, move window left and right workspaces + # Move to workspace left + dconf write ${KEYS_GNOME_WM}/move-to-workspace-left "@as ['Left', '${left}']" + # Move to workspace right + dconf write ${KEYS_GNOME_WM}/move-to-workspace-right "@as ['Right', '${right}']" + # Disable tiling to left / right of screen dconf write ${KEYS_MUTTER}/toggle-tiled-left "@as []" dconf write ${KEYS_MUTTER}/toggle-tiled-right "@as []"