47 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2024-04-04 11:37:35 +02:00
---
title: Workspace Matrix
tags: article software linux productivity
created: 2024-03-01T21:57:39Z
published: true
---
I use a 3 x 3 workspace matrix with the numbers on my numpad bound to each workspace.
My wife also started using the same workflow and she has been pretty fond of it ever since.
I wanted to share this method in case anyone else wants to try this on GNOME or Hyprland.
For KDE users: I believe the settings menu lets you configure this out of the box.
## Gnome
Normally, you can only set 4 workspace shortcuts in the GNOME settings menu.
However, by accessing the dconf settings you can circumvent this restriction.
```bash
export WS=/org/gnome/desktop/wm/keybindings/switch-to-workspace
dconf write $WS-1 "['KP_7']"
dconf write $WS-2 "['KP_8']"
dconf write $WS-3 "['KP_9']"
dconf write $WS-4 "['KP_4']"
dconf write $WS-5 "['KP_5']"
dconf write $WS-6 "['KP_6']"
dconf write $WS-7 "['KP_1']"
dconf write $WS-8 "['KP_2']"
dconf write $WS-9 "['KP_3']"
```
## Hyprland
Simply add this to your config file.
```ini
bind = , KP_Home, workspace, 1
bind = , KP_Up, workspace, 2
bind = , KP_Prior, workspace, 3
bind = , KP_Left, workspace, 4
bind = , KP_Begin, workspace, 5
bind = , KP_Right, workspace, 6
bind = , KP_End, workspace, 7
bind = , KP_Down, workspace, 8
bind = , KP_Next, workspace, 9
```