From 4fcc58de2aeed094b2acaeb09197a66055295702 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 11 Apr 2026 18:08:31 -0400 Subject: [PATCH 1/3] Expose omarchy-restart-trackpad Until we have a permanent fix for the haptic trackpad in the XPS. Cc @spencerbull --- bin/omarchy-menu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 92fdd952..e845681f 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -557,10 +557,11 @@ show_update_config_menu() { } show_update_hardware_menu() { - case $(menu "Restart" " Audio\n󱚾 Wi-Fi\n󰂯 Bluetooth") in + case $(menu "Restart" " Audio\n󱚾 Wi-Fi\n󰂯 Bluetooth\n󰟸 Trackpad") in *Audio*) present_terminal omarchy-restart-pipewire ;; *Wi-Fi*) present_terminal omarchy-restart-wifi ;; *Bluetooth*) present_terminal omarchy-restart-bluetooth ;; + *Trackpad*) present_terminal omarchy-restart-trackpad ;; *) show_update_menu ;; esac } From 691b11901c8a4e8edb5c3f1c1b1bf1212e83ab1f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 11 Apr 2026 20:09:51 -0400 Subject: [PATCH 2/3] Set device appearance as the default for chromium So we will be switching correctly from light/dark mode depending on the theme. --- install/config/theme.sh | 3 +++ migrations/1775946416.sh | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 migrations/1775946416.sh diff --git a/install/config/theme.sh b/install/config/theme.sh index 8bb3c603..439ec08d 100644 --- a/install/config/theme.sh +++ b/install/config/theme.sh @@ -22,3 +22,6 @@ sudo chmod a+rw /etc/chromium/policies/managed sudo mkdir -p /etc/brave/policies/managed sudo chmod a+rw /etc/brave/policies/managed + +# Default Chromium to follow system appearance ("device") instead of dark +echo '{"browser":{"theme":{"color_scheme":0}}}' | sudo tee /usr/lib/chromium/initial_preferences >/dev/null diff --git a/migrations/1775946416.sh b/migrations/1775946416.sh new file mode 100644 index 00000000..8e537976 --- /dev/null +++ b/migrations/1775946416.sh @@ -0,0 +1,9 @@ +echo "Set Chromium appearance mode to device (follow system) by default" + +echo '{"browser":{"theme":{"color_scheme":0}}}' | sudo tee /usr/lib/chromium/initial_preferences >/dev/null + +# Update existing Chromium profiles to use "device" instead of "dark" +PREFS="$HOME/.config/chromium/Default/Preferences" +if [[ -f "$PREFS" ]] && command -v jq &>/dev/null; then + jq '.browser.theme.color_scheme = 0' "$PREFS" > "$PREFS.tmp" && mv "$PREFS.tmp" "$PREFS" +fi From 1732551873aae48a8418595ef9bc3b2cbb756b0c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 11 Apr 2026 20:41:42 -0400 Subject: [PATCH 3/3] Switch from makima to a straight copilot to omarchy menu mapping --- bin/omarchy-menu | 2 -- bin/omarchy-restart-makima | 5 ----- bin/omarchy-setup-makima | 22 ------------------- default/hypr/bindings/utilities.conf | 1 + .../makima/AT Translated Set 2 keyboard.toml | 7 ------ migrations/1775954402.sh | 11 ++++++++++ 6 files changed, 12 insertions(+), 36 deletions(-) delete mode 100755 bin/omarchy-restart-makima delete mode 100755 bin/omarchy-setup-makima delete mode 100644 default/makima/AT Translated Set 2 keyboard.toml create mode 100644 migrations/1775954402.sh diff --git a/bin/omarchy-menu b/bin/omarchy-menu index e845681f..3ee0ea5e 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -222,7 +222,6 @@ show_font_menu() { show_setup_menu() { local options=" Audio\n Wifi\n󰂯 Bluetooth\n󱐋 Power Profile\n System Sleep\n󰍹 Monitors" [[ -f ~/.config/hypr/bindings.conf ]] && options="$options\n Keybindings" - options="$options\n Key Remapping" [[ -f ~/.config/hypr/input.conf ]] && options="$options\n Input" options="$options\n󰱔 DNS\n Security\n Config" @@ -235,7 +234,6 @@ show_setup_menu() { *Monitors*) open_in_editor ~/.config/hypr/monitors.conf ;; *Keybindings*) open_in_editor ~/.config/hypr/bindings.conf ;; *Input*) open_in_editor ~/.config/hypr/input.conf ;; - *Key\ Remapping*) omarchy-setup-makima && open_in_editor "$HOME/.config/makima/AT Translated Set 2 keyboard.toml" && omarchy-restart-makima ;; *DNS*) present_terminal omarchy-setup-dns ;; *Security*) show_setup_security_menu ;; *Config*) show_setup_config_menu ;; diff --git a/bin/omarchy-restart-makima b/bin/omarchy-restart-makima deleted file mode 100755 index aa6ffa39..00000000 --- a/bin/omarchy-restart-makima +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# Restart makima - key remapping service for remapping Copilot key to Omarchy Menu - -sudo systemctl restart makima diff --git a/bin/omarchy-setup-makima b/bin/omarchy-setup-makima deleted file mode 100755 index 707465b4..00000000 --- a/bin/omarchy-setup-makima +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# Setup makima - key remapping service for remapping Copilot key to Omarchy Menu - -CONFIG_FILE="$HOME/.config/makima/AT Translated Set 2 keyboard.toml" - -if [[ ! -f $CONFIG_FILE ]]; then - omarchy-pkg-add makima-bin - - mkdir -p "$HOME/.config/makima" - cp "$OMARCHY_PATH/default/makima/AT Translated Set 2 keyboard.toml" "$CONFIG_FILE" - - sudo mkdir -p /etc/systemd/system/makima.service.d - sudo tee /etc/systemd/system/makima.service.d/override.conf >/dev/null </dev/null || true -fi diff --git a/default/hypr/bindings/utilities.conf b/default/hypr/bindings/utilities.conf index 55c293dd..3c3336a1 100644 --- a/default/hypr/bindings/utilities.conf +++ b/default/hypr/bindings/utilities.conf @@ -4,6 +4,7 @@ bindd = SUPER CTRL, E, Emoji picker, exec, omarchy-launch-walker -m symbols bindd = SUPER CTRL, C, Capture menu, exec, omarchy-menu capture bindd = SUPER CTRL, O, Toggle menu, exec, omarchy-menu toggle bindd = SUPER ALT, SPACE, Omarchy menu, exec, omarchy-menu +bindd = SUPER SHIFT, code:201, Omarchy menu (Copilot key), exec, omarchy-menu bindd = SUPER, ESCAPE, System menu, exec, omarchy-menu system bindld = , XF86PowerOff, Power menu, exec, omarchy-menu system bindd = SUPER, K, Show key bindings, exec, omarchy-menu-keybindings diff --git a/default/makima/AT Translated Set 2 keyboard.toml b/default/makima/AT Translated Set 2 keyboard.toml deleted file mode 100644 index 895e454f..00000000 --- a/default/makima/AT Translated Set 2 keyboard.toml +++ /dev/null @@ -1,7 +0,0 @@ -# Run omarchy-restart-makima after any changes - -[remap] -KEY_LEFTMETA-KEY_LEFTSHIFT-KEY_F23 = ["KEY_LEFTMETA", "KEY_LEFTALT", "KEY_SPACE"] - -[settings] -GRAB_DEVICE = "true" diff --git a/migrations/1775954402.sh b/migrations/1775954402.sh new file mode 100644 index 00000000..61101d5c --- /dev/null +++ b/migrations/1775954402.sh @@ -0,0 +1,11 @@ +echo "Remove makima key remapping service (Copilot key now handled natively by Hyprland)" + +if systemctl is-enabled makima &>/dev/null; then + sudo systemctl disable --now makima +fi + +sudo rm -rf /etc/systemd/system/makima.service.d +sudo rm -f /etc/udev/rules.d/99-uinput.rules +rm -rf "$HOME/.config/makima" + +omarchy-pkg-drop makima-bin