From 31cdb5233cb5bff7dd7e5ed2521ae3f269c60a51 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 27 May 2024 19:14:36 -0700 Subject: [PATCH] Set hotkeys in its own installer --- install/gnome-hotkeys.sh | 27 +++++++++++++++++++++++++++ install/gnome-tailoring.sh | 10 ---------- 2 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 install/gnome-hotkeys.sh diff --git a/install/gnome-hotkeys.sh b/install/gnome-hotkeys.sh new file mode 100644 index 0000000..33eb36a --- /dev/null +++ b/install/gnome-hotkeys.sh @@ -0,0 +1,27 @@ +# Alt+F4 is very cumbersome +gsettings set org.gnome.desktop.wm.keybindings close ['w'] + +# Full-screen with title/navigation bar +gsettings set org.gnome.desktop.wm.keybindings toggle-fullscreen ['F11'] + +# Expand from 4 to 6 default workspaces +gsettings set org.gnome.desktop.wm.preferences num-workspaces 6 + +# Use alt for pinned apps +gsettings set org.gnome.shell.keybindings switch-to-application-1 "['1']" +gsettings set org.gnome.shell.keybindings switch-to-application-2 "['2']" +gsettings set org.gnome.shell.keybindings switch-to-application-3 "['3']" +gsettings set org.gnome.shell.keybindings switch-to-application-4 "['4']" +gsettings set org.gnome.shell.keybindings switch-to-application-5 "['5']" +gsettings set org.gnome.shell.keybindings switch-to-application-6 "['6']" +gsettings set org.gnome.shell.keybindings switch-to-application-7 "['7']" +gsettings set org.gnome.shell.keybindings switch-to-application-8 "['8']" +gsettings set org.gnome.shell.keybindings switch-to-application-9 "['9']" + +# Use super for workspaces +gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 ['1'] +gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 ['2'] +gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 ['3'] +gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 ['4'] +gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 ['5'] +gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 ['6'] diff --git a/install/gnome-tailoring.sh b/install/gnome-tailoring.sh index 19f5dd3..089a7ce 100644 --- a/install/gnome-tailoring.sh +++ b/install/gnome-tailoring.sh @@ -6,16 +6,6 @@ if ! command -v gnome-tweak-tool &>/dev/null; then gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-purple-dark' gsettings set org.gnome.desktop.interface icon-theme 'Yaru-purple' - # Use alt for pinned apps - gsettings set org.gnome.shell.keybindings switch-to-application-1 "['1']" - gsettings set org.gnome.shell.keybindings switch-to-application-2 "['2']" - gsettings set org.gnome.shell.keybindings switch-to-application-3 "['3']" - gsettings set org.gnome.shell.keybindings switch-to-application-4 "['4']" - gsettings set org.gnome.shell.keybindings switch-to-application-5 "['5']" - gsettings set org.gnome.shell.keybindings switch-to-application-6 "['6']" - gsettings set org.gnome.shell.keybindings switch-to-application-7 "['7']" - gsettings set org.gnome.shell.keybindings switch-to-application-8 "['8']" - gsettings set org.gnome.shell.keybindings switch-to-application-9 "['9']" gsettings set org.gnome.desktop.wm.preferences num-workspaces 6