From 4e481cc5e724f12c14bec495668bc0e6c39d9c80 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 10 Dec 2023 13:53:01 -0500 Subject: [PATCH] Allow windows screenshot shortcut to work in gnome --- configs/gnome/desktop-settings.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/gnome/desktop-settings.sh b/configs/gnome/desktop-settings.sh index 634ab70..c9b2de1 100644 --- a/configs/gnome/desktop-settings.sh +++ b/configs/gnome/desktop-settings.sh @@ -37,6 +37,9 @@ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['2 gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['3']" # Switch to ws 3 gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['4']" # Switch to ws 4 +# Match the Windows screenshot behavior while also allowing the regular print screen key to work +gsettings set org.gnome.shell.keybindings show-screenshot-ui "['s', 'Print']" + # Generate custom keybinds if they do not yet exist keybindings=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) if [ "$keybindings" = "[]" ] || [ "$keybindings" = "@as []" ]; then