Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion bin/omarchy-install-preinstalls
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ if gum confirm "Are you sure you want to restore all preinstalled web apps, TUI
obs-studio \
kdenlive \
moonlight-qt \
lazydocker \
omacut \
Comment on lines 23 to 24

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Docker launcher is not restored

On an existing installation, Remove Preinstalls deletes the Docker app launcher along with other TUI launchers, but now leaves Lazydocker installed. Install Preinstalls cannot bring the launcher back: its refresh copies from applications/*.desktop, while this PR moves Docker.desktop to default/applications/. After using remove and restore, Lazydocker remains installed but its Docker app launcher is gone.

Knowledge Base Used: Launchers, menus, and application lifecycle

monologue \
omacalc \
Expand Down
1 change: 0 additions & 1 deletion bin/omarchy-remove-preinstalls
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ if gum confirm "Are you sure you want to remove all preinstalled web apps, TUI w
obs-studio \
kdenlive \
moonlight-qt \
lazydocker \
omacut \
monologue \
omacalc \
Expand Down
14 changes: 12 additions & 2 deletions bin/omarchy-upgrade-to-quattro
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,6 @@ remove_conflicting_legacy_packages() {
# after NetworkManager and the rest of the new stack are installed.
local conflicting_packages=(
asdcontrol-git
lazydocker-bin
localsend-bin
omarchy-chromium
omarchy-lazyvim
Expand Down Expand Up @@ -768,6 +767,17 @@ migrate_1password_beta_package() {
fi
}

migrate_lazydocker_package() {
if package_installed_exact lazydocker-bin; then
log "Replacing existing Lazydocker with the repo package"
if as_root pacman -S --needed --noconfirm --ask 4 lazydocker; then
mark_packages_explicit lazydocker
else
warn "Could not replace lazydocker-bin; leaving existing Lazydocker installed."
fi
fi
}

install_omarchy_quattro_packages() {
local omarchy_package=omarchy
local settings_package=omarchy-settings
Expand Down Expand Up @@ -874,7 +884,6 @@ remove_retired_default_packages() {
hyprlock
impala
iwd
lazydocker-bin
lmstudio
lmstudio-bin
localsend-bin
Expand Down Expand Up @@ -2419,6 +2428,7 @@ verify_kernel_cmdline_root
configure_snapper_policy
configure_lock_authentication
migrate_1password_beta_package
migrate_lazydocker_package
cleanup_legacy_user_paths
apply_system_transition
apply_user_transition
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion default/hypr/bindings/applications.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ if o.preinstalled_bindings_enabled() then
o.bind("SUPER + CTRL + RETURN", "Herdr", { omarchy = "terminal-herdr" })
o.bind("SUPER + SHIFT + M", "Music", { omarchy = "spotify" })
o.bind("SUPER + SHIFT + ALT + M", "Music TUI", { tui = "cliamp", focus = true })
o.bind("SUPER + SHIFT + D", "Docker", { tui = "omarchy-launch-docker-tui" })
if o.cmd_present("lazydocker") then
o.bind("SUPER + SHIFT + D", "Docker", { tui = "omarchy-launch-docker-tui" })
end
o.bind("SUPER + SHIFT + G", "Signal", { omarchy = "signal" })
o.bind("SUPER + SHIFT + O", "Obsidian", { launch = "obsidian", focus = "^obsidian$" })
o.bind("SUPER + SHIFT + W", "Omawrite", { launch = "omawrite" })
Expand Down
4 changes: 2 additions & 2 deletions docs/file-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ etc/xdg/kitty/kitty.conf ──► omarchy-settings /etc/xdg/kitty/kit

applications/*.desktop ──► omarchy-settings /etc/skel/.local/share/applications/
/usr/share/omarchy/applications/
default/applications/battlenet.desktop
default/applications/*.desktop
──► omarchy-settings /usr/share/omarchy/default/applications/
(installer-only launcher template)
(optional and legacy launcher templates)
applications/icons/* ──► omarchy-settings /usr/share/icons/hicolor/{48,256,scalable}/apps/

etc/** ──► omarchy-settings /etc/** (drop-ins we own outright)
Expand Down
1 change: 0 additions & 1 deletion install/omarchy-base.packages
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ networkmanager
jq
kdenlive
kernel-modules-hook
lazydocker
lazygit
less
libsecret
Expand Down
1 change: 0 additions & 1 deletion manual/07-hotkeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ You can see all the main keyboard bindings with `Super + K` (Tmux bindings with
| `Super + Shift + S` | Google Maps |
| `Super + Shift + Alt + G` | Messenger (WhatsApp) |
| `Super + Shift + Ctrl + G` | Messenger (Google) |
| `Super + Shift + D` | Docker (LazyDocker) |
| `Super + Shift + O` | Obsidian |
| `Super + Shift + W` | Writing (Omawrite) |
| `Super + Shift + X` | X |
Expand Down
4 changes: 1 addition & 3 deletions manual/18-development-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ To install, say, Ruby, you'd run `mise use -g ruby`, which will both install Rub

[Docker](https://www.docker.com/) hardly needs any introduction. It allows you to run isolated containers, and Omarchy installs everything needed to run it well, including Docker itself and [Docker Compose](https://docs.docker.com/compose/).

By default your user is *not* in the `docker` group. That group is effectively passwordless root — anything in it can `docker run -v /:/host` and take over the machine — so a single rogue script or dependency running as you would otherwise be one command away from root. So on the command line you run Docker with `sudo` (`sudo docker ps`, `sudo docker compose up`), and the graphical tools that talk to the daemon — the Docker TUI on `Super + Shift + D` and the Windows VM — ask for authorization when they need it. If you want the convenience of a groupless setup back and understand the tradeoff, enable it from **Setup > Security > Sudoless Docker** (or run `omarchy-setup-security-sudoless-docker`), which adds you to the `docker` group after a warning; then plain `docker` and the `d` alias work without `sudo` again.

Remember to checkout the Lazydocker command to manage your containers in a cool TUI using `Super + Shift + D`; it asks for authorization the first time unless you have enabled sudoless Docker.
By default your user is *not* in the `docker` group. That group is effectively passwordless root — anything in it can `docker run -v /:/host` and take over the machine — so a single rogue script or dependency running as you would otherwise be one command away from root. So on the command line you run Docker with `sudo` (`sudo docker ps`, `sudo docker compose up`), and the graphical tools that talk to the daemon — the Windows VM — ask for authorization when they need it. If you want the convenience of a groupless setup back and understand the tradeoff, enable it from **Setup > Security > Sudoless Docker** (or run `omarchy-setup-security-sudoless-docker`), which adds you to the `docker` group after a warning; then plain `docker` and the `d` alias work without `sudo` again.

You can setup the common databases for local development in Docker using _Install > Development > Docker DB_ in the Omarchy menu.

Expand Down
8 changes: 0 additions & 8 deletions manual/21-tuis.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ You can run it directly, by going to any directory managed by git and running `l

You hop between the different panes using `Tab`. In the Files pane, you select files for staging using `Space`, and then you can create a new commit using `c`. You can see all the commands available using `?`.

## Lazydocker

[Lazydocker](https://github.com/jesseduffield/lazydocker) is made in the same spirit like Lazygit, and also gives you a terminal interface for managing your containers and images.

You can start it with `Super + Shift + D`.

You stop a container using `s` or start/restart it using `r`. See all commands using `?`.

## Btop

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Optional Lazydocker guidance disappears The manual no longer explains how to install Lazydocker or use its Super + Shift + D shortcut, even though the shortcut remains available when Lazydocker is installed. This makes the optional TUI harder for new users to discover and leaves existing users without a reference for its shortcut.

Knowledge Base Used: Launchers, menus, and application lifecycle

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!


[Btop](https://github.com/aristocratos/btop) is a beautiful resource manager that shows memory, CPU, disk, and network usage. It also lists all active processes, and allows you to manage them.
Expand Down
2 changes: 1 addition & 1 deletion migrations/1787580187.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ fi
# (or runs directly under sudoless Docker). Refresh just that file.
dest="$HOME/.local/share/applications/Docker.desktop"
if [[ -f $dest ]]; then
cp "$OMARCHY_PATH/applications/Docker.desktop" "$dest"
cp "$OMARCHY_PATH/default/applications/Docker.desktop" "$dest"
fi
4 changes: 2 additions & 2 deletions test/shell.d/docker-group-migration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ trap 'rm -rf "$test_dir"' EXIT
home="$test_dir/home"
omarchy_path="$test_dir/omarchy"
stub_bin="$test_dir/bin"
mkdir -p "$home/.local/share/applications" "$omarchy_path/applications" "$stub_bin"
mkdir -p "$home/.local/share/applications" "$omarchy_path/default/applications" "$stub_bin"

printf 'NEW-LAUNCHER\n' >"$omarchy_path/applications/Docker.desktop"
printf 'NEW-LAUNCHER\n' >"$omarchy_path/default/applications/Docker.desktop"
printf 'OLD-LAUNCHER\n' >"$home/.local/share/applications/Docker.desktop"

# id reports a controllable group set; sudo just drops the prefix; gpasswd
Expand Down
16 changes: 16 additions & 0 deletions test/shell.d/hyprland-default-config-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,22 @@ if grep -Fq $'SUPER + CTRL + X Toggle dictation' <<<"$missing_voxtype_output"; t
fi
pass "missing Voxtype skips dictation bindings"

# Lazydocker is optional on new installs, while existing installs keep the hotkey.
lazydocker_bin="$tmpdir/lazydocker-bin"
mkdir -p "$lazydocker_bin"
touch "$lazydocker_bin/lazydocker"
chmod +x "$lazydocker_bin/lazydocker"
lazydocker_output=$(PATH="$lazydocker_bin:$PATH" run_application_bindings "$fresh_home")
grep -Fqx $'SUPER + SHIFT + D\tDocker' <<<"$lazydocker_output" ||
fail "installed Lazydocker keeps its Docker shortcut"
pass "installed Lazydocker keeps its Docker shortcut"

missing_lazydocker_output=$(PATH="$missing_bin" run_application_bindings "$fresh_home")
if grep -Fq $'SUPER + SHIFT + D\tDocker' <<<"$missing_lazydocker_output"; then
fail "missing Lazydocker skips its Docker shortcut"
fi
pass "missing Lazydocker skips its Docker shortcut"

# The Grave shortcuts are aliases, so the original SUPER + S pair has to keep
# working alongside them.
scratchpad_home="$tmpdir/scratchpad-home"
Expand Down
43 changes: 43 additions & 0 deletions test/shell.d/upgrade-to-quattro-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,46 @@ reboot_line=$(grep -n 'Rebooting because --reboot was passed' "$upgrade_to_quatt
[[ -n $unsafe_line && -n $reboot_line ]] || fail "reboot gate and reboot branch exist"
(( unsafe_line < reboot_line )) || fail "an unverified kernel cmdline blocks the reboot"
pass "Omarchy 4 upgrade verifies the UKIs and refuses to reboot unverified"

# Lazydocker is optional on fresh installs, but a pre-quattro install keeps it.
lazydocker_body=$(function_body migrate_lazydocker_package)
[[ -n $lazydocker_body ]] || fail "upgrade has a Lazydocker replacement step"
eval "migrate_lazydocker_package() { $lazydocker_body; }"
lazydocker_calls=""
package_installed_exact() { [[ $1 == "lazydocker-bin" && $legacy_lazydocker == "yes" ]]; }
log() { :; }
warn() { :; }
as_root() {
lazydocker_calls+="swap:$*"$'\n'
return "$lazydocker_swap_status"
}
mark_packages_explicit() { lazydocker_calls+="explicit:$*"$'\n'; }

legacy_lazydocker=no
lazydocker_swap_status=0
migrate_lazydocker_package
[[ -z $lazydocker_calls ]] || fail "upgrade does not install Lazydocker for users without the legacy package"
pass "upgrade does not install Lazydocker for users without the legacy package"

legacy_lazydocker=yes
migrate_lazydocker_package
grep -Fxq 'swap:pacman -S --needed --noconfirm --ask 4 lazydocker' <<<"$lazydocker_calls" ||
fail "upgrade replaces existing lazydocker-bin with lazydocker"
grep -Fxq 'explicit:lazydocker' <<<"$lazydocker_calls" || fail "upgrade retains Lazydocker as an explicit package"
pass "upgrade replaces existing lazydocker-bin with lazydocker and keeps it explicit"

lazydocker_calls=""
lazydocker_swap_status=1
migrate_lazydocker_package
if grep -Fq 'explicit:' <<<"$lazydocker_calls"; then
fail "failed Lazydocker replacement does not mark an absent package explicit"
fi
for cleanup in remove_conflicting_legacy_packages remove_retired_default_packages; do
if grep -qw lazydocker-bin <<<"$(function_body "$cleanup")"; then
fail "upgrade cleanup must not remove existing Lazydocker when replacement fails"
fi
done
pass "upgrade cleanup preserves existing Lazydocker when replacement fails"

grep -Fxq migrate_lazydocker_package "$upgrade_to_quattro" || fail "upgrade invokes the Lazydocker replacement step"
pass "upgrade invokes the Lazydocker replacement step"