Trying Out Umbriel
I have been using Noctalia as the desktop shell for a while now. My window manager of choice is niri. Before niri I used to use Hyprland and before that i3. I have always like tiling window managers which is how I started with i3. Later I wanted to move to Wayland instead of X11 because supposedly it is future. So I switched to Hyprland which has slick animations as a bonus. However, I was hitting a limitation with all these tiling window managers which is that I have way more windows than can fit even in 10 workspaces.
Of course I can add more workspaces, but my keybindings will become more complicated. Ten workspaces is a good limit. Which is when I switched to niri for its scrolling tiling window management. Now I have more space in each of the workspaces. I just love it and have been using it for a long time. Since I was using Noctalia on top of niri, I was wondering how their new Umbriel project works. It is also a scrolling and tiling window manager just like niri, but with more features and uses less memory.
So I gave it a try. In NixOS it is as simple as adding the following to my nix flake:
{
programs = {
umbriel.enable = true;
xwayland.enable = true; # needed to run X11 apps in Wayland
};
}
Everything looks good after switching to Umbriel. However, I had to rewrite all the configurations from niri to Umbriel. Here is my config:
[include]
files = [
"/run/current-system/sw/share/umbriel/effects/cursor/trail/effect.toml",
]
[include.optional]
files = []
[input.keyboard]
repeat_rate = 30
repeat_delay = 250
[input.touchpad]
natural_scroll = true
[input.mouse]
# accel_profile = "flat"
sensitivity = -0.05
[input.focus]
follows_mouse = true
[input.cursor]
theme = "Bibata-Modern-Ice"
size = 24
hardware_cursor = true
hide_when_typing = true
hide_timeout_ms = 7000
[workspaces]
back_and_forth = true
[output.eDP-1]
direct_scanout = true
position = [1920, 0]
[output."Lenovo Group Limited LOQ 27Q-10 URW1NT4P"]
mode = "2560x1440@120"
bit_depth = 8
# 10 bit colors only work at 60Hz refresh rate with the right cable
#mode = "2560x1440@60"
#bit_depth = 10
# prefer to disable direct scanout when bit_depth is 10-bit
# see https://docs.noctalia.dev/umbriel/outputs/?section=direct-scanout-with-10-bit#direct-scanout-with-10-bit
direct_scanout = true
# HDR only works with the right cable
#hdr = "on"
#sdr_transfer = "srgb"
#vrr = "fullscreen"
focus_at_startup = true
[layout]
gap = 12
mode = "scrolling"
extent_presets = [0.333, 0.5, 0.75, 1.0]
[colors.border]
focused = "#7AA3FFFF"
unfocused = "#292933FF"
outer = "#1A1A1FFF"
[appearance]
corner_radius = 8
[appearance.shadow]
softness = 15
[overview]
shortcuts = false
workspace_wallpaper = false
[hot_corners.top_left]
enabled = true
delay_ms = 300
action = "overview-open"
[animation]
duration_ms = 350
[animation.workspaces]
style = "slide"
enabled = true
#curve = "spring:1,500"
curve = "snappy"
[[workspace]]
name = ""
layout.gap = 0
[[workspace]]
name = ""
[[workspace]]
name = ""
layout.gap = 0
[[workspace]]
name = ""
layout.gap = 0
[[workspace]]
name = ""
[[workspace]]
name = ""
[[workspace]]
name = ""
[[workspace]]
name = ""
[[workspace]]
name = ""
[[workspace]]
name = ""
[keybinds]
# Applications and session
"Mod+Slash" = { action = "cheatsheet-toggle", repeat = false }
"Mod+Return" = { action = "spawn kitty", repeat = false }
"Mod+D" = "spawn noctalia msg panel-toggle launcher"
"Mod+Shift+Q" = { action = "window-close", repeat = false }
"Mod+Shift+E" = "session-quit"
"Ctrl+Alt+Delete" = "session-quit skip-confirmation"
"Mod+L" = "spawn noctalia msg session lock"
# Allow keys that would trigger ordinary bindings reach the client (for example in games)
"Mod+Shift+Escape" = { action = "shortcuts-inhibit-toggle", allow_when_inhibited = true, repeat = false }
"Mod+O" = { action = "overview-toggle", repeat = false }
# Switching to monitors
"Mod+Ctrl+Left" = { action = "output-focus-left", repeat = false }
"Mod+Ctrl+Down" = { action = "output-focus-down", repeat = false }
"Mod+Ctrl+Up" = { action = "output-focus-up", repeat = false }
"Mod+Ctrl+Right" = { action = "output-focus-right", repeat = false }
# Moving windows to monitors
"Mod+Shift+Ctrl+Left" = "column-move-to-output-left"
"Mod+Shift+Ctrl+Down" = "column-move-to-output-down"
"Mod+Shift+Ctrl+Up" = "column-move-to-output-up"
"Mod+Shift+Ctrl+Right" = "column-move-to-output-right"
# Switching to workspaces
# "Mod+1" = "workspace-switch "
# "Mod+2" = "workspace-switch "
# "Mod+3" = "workspace-switch "
# "Mod+4" = "workspace-switch "
# "Mod+5" = "workspace-switch "
# "Mod+6" = "workspace-switch "
# "Mod+7" = "workspace-switch "
# "Mod+8" = "workspace-switch "
# "Mod+9" = "workspace-switch "
# "Mod+0" = "workspace-switch "
# "Mod+Tab" = "workspace-focus-last"
# "Mod+WheelUp" = "workspace-previous"
# "Mod+WheelDown" = "workspace-next"
"Mod+1" = "workspace-switch 1"
"Mod+2" = "workspace-switch 2"
"Mod+3" = "workspace-switch 3"
"Mod+4" = "workspace-switch 4"
"Mod+5" = "workspace-switch 5"
"Mod+6" = "workspace-switch 6"
"Mod+7" = "workspace-switch 7"
"Mod+8" = "workspace-switch 8"
"Mod+9" = "workspace-switch 9"
"Mod+0" = "workspace-switch 10"
"Mod+Tab" = "workspace-focus-last"
"Mod+WheelUp" = "workspace-previous"
"Mod+WheelDown" = "workspace-next"
# Moving windows to workspaces
"Mod+Shift+1" = "window-move-to-workspace 1"
"Mod+Shift+2" = "window-move-to-workspace 2"
"Mod+Shift+3" = "window-move-to-workspace 3"
"Mod+Shift+4" = "window-move-to-workspace 4"
"Mod+Shift+5" = "window-move-to-workspace 5"
"Mod+Shift+6" = "window-move-to-workspace 6"
"Mod+Shift+7" = "window-move-to-workspace 7"
"Mod+Shift+8" = "window-move-to-workspace 8"
"Mod+Shift+9" = "window-move-to-workspace 9"
"Mod+Shift+0" = "window-move-to-workspace 10"
# Changing window focus
"Mod+Left" = "window-focus-left"
"Mod+Down" = "window-focus-down"
"Mod+Up" = "window-focus-up"
"Mod+Right" = "window-focus-right"
"Mod+C" = "column-center"
"Alt+Tab" = "spawn noctalia msg window-switcher hold"
# Moving windows
"Mod+Shift+Left" = "column-move-left"
"Mod+Shift+Down" = "window-move-down"
"Mod+Shift+Up" = "window-move-up"
"Mod+Shift+Right" = "column-move-right"
"Mod+BracketLeft" = "window-move-left"
"Mod+BracketRight" = "window-move-right"
# Resizing windows
"Mod+R" = "window-cycle-primary-extent"
"Mod+Shift+R" = "window-cycle-secondary-extent"
"Mod+F" = { action = "window-toggle-maximize", repeat = false }
"Mod+Shift+F" = { action = "window-toggle-fullscreen", repeat = false }
"Mod+Ctrl+F" = { action = "window-toggle-maximize-to-edges", repeat = false }
# Floating windows
"Mod+Shift+space" = "window-toggle-floating"
"Mod+Shift+V" = "window-focus-switch-floating"
# Media key
"XF86AudioMute" = { action = "spawn noctalia msg volume-mute", allow_when_locked = true, repeat = false }
"XF86AudioLowerVolume" = { action = "spawn noctalia msg volume-down", allow_when_locked = true }
"XF86AudioRaiseVolume" = { action = "spawn noctalia msg volume-up", allow_when_locked = true }
"XF86AudioPlay" = { action = "spawn noctalia msg media toggle", allow_when_locked = true, repeat = false }
"XF86AudioNext" = { action = "spawn noctalia msg media next", allow_when_locked = true }
"XF86AudioPrev" = { action = "spawn noctalia msg media previous", allow_when_locked = true }
"XF86MonBrightnessUp" = { action = "spawn noctalia msg brightness-up", allow_when_locked = true }
"XF86MonBrightnessDown" = { action = "spawn noctalia msg brightness-down", allow_when_locked = true }
"Mod+F3" = { action = "spawn noctalia msg brightness-down", allow_when_locked = true }
"Mod+F4" = { action = "spawn noctalia msg brightness-up", allow_when_locked = true }
"Mod+F9" = { action = "spawn noctalia msg volume-mute", allow_when_locked = true, repeat = false }
"Mod+F10" = { action = "spawn noctalia msg volume-down", allow_when_locked = true }
"Mod+F11" = { action = "spawn noctalia msg volume-up", allow_when_locked = true }
# Screenshot and video recording
"Print" = "spawn noctalia msg screenshot-fullscreen --save-to-file --copy-to-clipboard --directory=~/ --filename-pattern='screenshot_%Y-%m-%d_%H.%M.%S'"
"Ctrl+Print" = "spawn noctalia msg screenshot-region --remember-last-region --save-to-file --copy-to-clipboard --directory=~/ --filename-pattern='screenshot_%Y-%m-%d_%H.%M.%S'"
"Alt+Print" = "spawn noctalia msg screenshot-annotate --confirm-region --remember-last-region --save-to-file --copy-to-clipboard --directory=~/ --filename-pattern='screenshot_%Y-%m-%d_%H.%M.%S'"
"Shift+Print" = "spawn noctalia msg screenshot-region --confirm-region --remember-last-region --annotate --save-to-file --copy-to-clipboard --directory=~/ --filename-pattern='screenshot_%Y-%m-%d_%H.%M.%S'"
# Tabbed windows
"Mod+W" = { action = "column-toggle-tabbed", repeat = false }
"Mod+Alt+Right" = "column-focus-tab-next"
"Mod+Alt+Left" = "column-focus-tab-previous"
# Scratchpad
"Mod+Alt+Space" = { action = "window-move-to-scratchpad", repeat = false }
"Mod+Space" = "scratchpad-toggle"
"Mod+Ctrl+Space" = { action = "window-restore-from-scratchpad", repeat = false }
[general]
show_cheatsheet = false
autostart = [
"import-gsettings",
"noctalia",
"eww open-many topbar_monitor0 topbar_monitor1",
"$HOME/.config/umbriel/restore-session.sh"
]
[effects]
cursor = "trail"
# Floating windows
[[window_rule]]
match.app_id = "pavucontrol"
default_floating = true
[[window_rule]]
match.app_id = "org.gnome.Calculator"
default_floating = true
# Specific properties for certain windows
[[window_rule]]
match.app_id = "org.gnome.Nautilus"
default_scrolling_extent = 0.5
[[window_rule]]
match.app_id = "kitty"
default_scrolling_extent = 0.5
[[window_rule]]
match.app_id = "org.pwmt.zathura"
default_scrolling_extent = 0.5
[[window_rule]]
match.app_id = "mpv"
default_scrolling_extent = 0.5
#hdr = "on"
# default_floating = true
# default_floating_size = { width = 0.7, height = 0.7 }
# Open certain windows only in certain workspaces
[[window_rule]]
match.app_id = "codium"
default_workspace = 1
default_maximize_to_edges = true
[[window_rule]]
match.app_id = "jetbrains-studio"
default_workspace = 1
default_maximize_to_edges = true
[[window_rule]]
match.app_id = "obsidian"
default_workspace = 6
default_scrolling_extent = 0.7
[[window_rule]]
match.app_id = "SourceGit"
default_workspace = 6
default_maximize_to_edges = true
[[window_rule]]
match.app_id = "chrome-web.whatsapp.com__-Default"
default_workspace = 8
default_scrolling_extent = 0.7
I also have a script that restores my workspaces to the way I like it after a reboot. I had to port that script to Umbriel.
# only run this on the current dev machine
if [[ $HOSTNAME != "laptop-2021-acer" ]]; then
exit
fi
function workspace {
sleep 0.3
umbriel msg workspace-switch $1
}
function run {
umbriel msg spawn "$1"
}
function wait {
while [[ `umbriel windows | grep -i $1 | wc -l` < $2 ]]; do sleep 0.1; done
}
sleep 1
workspace 2
run "kitty ~/workspace/projects/retired_at_37/blog"
wait "kitty" 1
run "kitty ~/workspace/projects/investment/flutter/past"
wait "kitty" 2
workspace 6
run "obsidian"
wait "md.obsidian.Obsidian" 1
run "SourceGit ~/workspace/projects/investment/flutter/past"
wait "SourceGit" 1
workspace 8
run "~/bin/msgs.sh"
wait "msgs" 1
workspace 9
run "nautilus --new-window"
wait "org.gnome.Nautilus" 1
run "nautilus --new-window ~/temp"
wait "org.gnome.Nautilus" 2
workspace 10
run "kitty ~/temp/t2"
wait "kitty" 3
run "kitty ~/workspace/flake"
wait "kitty" 4
workspace 3
run "google-chrome-stable"
So good so far. Unfortunately however, I did not stick with Umbriel. It has a very weird workspace behavior. Each output (monitor) has a different set of workspaces even though I named all my workspaces. So if I boot into my laptop without any external monitor connected, I have 10 workspaces. When I connect an external monitor and turn off the laptop display, I would have expected the workspaces from my laptop screen to move over to my external display. But it does not work that way. The external monitor has its own set of 10 workspaces and then another 10 workspaces from my laptop are appended to that list. It is just very weird. Niri does not have this problem.
Moreover, screen recording (gpu-screen-recorder) did not work out of the box. I did not want to figure out the issue. It has already been more than 4 hours making this whole thing work. Things that I liked are the low memory footprint and animations. May be I will try it again in the future once these issues are fixed.