aboutsummaryrefslogtreecommitdiff
path: root/posts/dwm-gnome.md
blob: 7b5ecee6777e9db5d87e9ec77dcd4052bbee8020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Bringing dwm Shortcuts to GNOME

2023-11-02

The `dwm` window manager is my standard "go-to" for most of my personal laptop environments. For desktops with larger, higher resolution monitors I tend to lean towards using GNOME. The GNOME DE is fairly solid for my own purposes. This article isn't going to deep dive into GNOME itself, but instead highlight some minor configuration changes I make to mimic a few `dwm` shortcuts.

For reference, I'm running GNOME 45.0 on Ubuntu 23.10

## Setting Up Fixed Workspaces

When I use `dwm` I tend to have a hard-set amount of `tags` to cycle through (normally 4-5). Unfortunately, dynamic rendering is the default for workspaces (ie. tags) in GNOME. For my personal preference I set this setting to `fixed`. We can achieve this by opening **Settings** >  **Multitasking** and selecting "Fixed number of workspaces".

<figure>
    <img src="/public/images/gnome-1.png" alt="Screenshot of GNOME's Multitasking Settings GUI">
    <figcaption>Screenshot of GNOME's Multitasking Settings GUI</figcaption>
</figure>

## Setting Our Keybindings

Now all that is left is to mimic `dwm` keyboard shortcuts, in this case: <kbd>ALT</kbd> + <kbd>$num</kbd> for switching between workspaces and <kbd>ALT</kbd> + <kbd>SHIFT</kbd> + <kbd>$num</kbd> for moving windows across workspaces. These keyboard shortcuts can be altered under **Settings** > **Keyboard** > **View and Customize Shortcuts** > **Navigation**.

You'll want to make edits to both the "Switch to workspace *n*" and "Move window to workspace *n*". 

<figure>
    <img src="/public/images/gnome-2.png" alt="Screenshot of GNOME's keyboard shortcut GUI">
    <figcaption>Screenshot of GNOME's keyboard shortcut GUI: switch to workspace</figcaption>
</figure>

<figure>
    <img src="/public/images/gnome-3.png" alt="Screenshot of GNOME's keyboard shortcut GUI">
    <figcaption>Screenshot of GNOME's keyboard shortcut GUI: move window to workspace</figcaption>
</figure>

That's it. You're free to include even more custom keyboard shortcuts (open web browser, lock screen, hibernate, etc.) but this is a solid starting point. Enjoy tweaking GNOME!