From a677d6b7a3166f82f19a0372c22db8a685fafeae Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 10:04:17 +0200 Subject: [PATCH 01/20] We don't need to set PATH here any more Closes #5472 --- bin/omarchy-menu | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 260a851e..174b4960 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -2,8 +2,6 @@ # Launch the Omarchy Menu or takes a parameter to jump straight to a submenu. -export PATH="$HOME/.local/share/omarchy/bin:$PATH" - # Set to true when going directly to a submenu, so we can exit directly BACK_TO_EXIT=false From 17ac8453b2dca3c4ef41bb44a1ecbde1d52b828b Mon Sep 17 00:00:00 2001 From: Timo Hubois <46505685+timohubois@users.noreply.github.com> Date: Thu, 30 Apr 2026 10:22:48 +0200 Subject: [PATCH 02/20] Fix refresh-config when target directory is missing (#5497) * Don't use the names here since they break the all-themes setup in omarchy-nvim * Fix refresh-config when target directory is missing --------- Co-authored-by: David Heinemeier Hansson --- bin/omarchy-refresh-config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/omarchy-refresh-config b/bin/omarchy-refresh-config index b293206a..c80ba663 100755 --- a/bin/omarchy-refresh-config +++ b/bin/omarchy-refresh-config @@ -22,6 +22,8 @@ user_config_file="${HOME}/.config/$config_file" default_config_file="${HOME}/.local/share/omarchy/config/$config_file" backup_config_file="$user_config_file.bak.$(date +%s)" +mkdir -p "$(dirname "$user_config_file")" + if [[ -f $user_config_file ]]; then # Create preliminary backup cp -f "$user_config_file" "$backup_config_file" 2>/dev/null From 768eabaaba043992c8dbb82e969fc9714096d75d Mon Sep 17 00:00:00 2001 From: Ben Smith <123131002+shmall03@users.noreply.github.com> Date: Thu, 30 Apr 2026 09:24:05 +0100 Subject: [PATCH 03/20] Refactor ThinkPad mic mute to use omarchy-swayosd-client (#5493) --- bin/omarchy-audio-input-mute-thinkpad | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/omarchy-audio-input-mute-thinkpad b/bin/omarchy-audio-input-mute-thinkpad index a6e551a7..2b8a6f74 100755 --- a/bin/omarchy-audio-input-mute-thinkpad +++ b/bin/omarchy-audio-input-mute-thinkpad @@ -17,7 +17,6 @@ fi brightnessctl --device="platform::micmute" set "$led_value" >/dev/null 2>&1 || true -swayosd-client \ - --monitor "$(omarchy-hyprland-monitor-focused)" \ +omarchy-swayosd-client \ --custom-message "$osd_message" \ --custom-icon "$osd_icon" From d8a0deb4005db709ac8bf68e30124de688bbfcac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Borejszo?= Date: Thu, 30 Apr 2026 10:25:28 +0200 Subject: [PATCH 04/20] Color man pages with bat (#5491) --- default/bash/envs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default/bash/envs b/default/bash/envs index ea8510e6..2fa2d721 100644 --- a/default/bash/envs +++ b/default/bash/envs @@ -5,3 +5,7 @@ export BAT_THEME=ansi # Duplicated from .config/uwsm/env so SSH works too export OMARCHY_PATH=$HOME/.local/share/omarchy export PATH=$OMARCHY_PATH/bin:$PATH:$HOME/.local/bin + +# Color man pages with bat +export MANROFFOPT="-c" +export MANPAGER="sh -c 'col -bx | bat -l man -p'" From 0aafd647e7122dd93a273476660c7e3d35a4b018 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 10:25:45 +0200 Subject: [PATCH 05/20] Better ordering --- default/bash/envs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/default/bash/envs b/default/bash/envs index 2fa2d721..a8d01dda 100644 --- a/default/bash/envs +++ b/default/bash/envs @@ -2,10 +2,10 @@ export SUDO_EDITOR="$EDITOR" export BAT_THEME=ansi -# Duplicated from .config/uwsm/env so SSH works too -export OMARCHY_PATH=$HOME/.local/share/omarchy -export PATH=$OMARCHY_PATH/bin:$PATH:$HOME/.local/bin - # Color man pages with bat export MANROFFOPT="-c" export MANPAGER="sh -c 'col -bx | bat -l man -p'" + +# Duplicated from .config/uwsm/env so SSH works too +export OMARCHY_PATH=$HOME/.local/share/omarchy +export PATH=$OMARCHY_PATH/bin:$PATH:$HOME/.local/bin From b8a4d0b2efbcc1ac203cefc86dd20b0daa09f094 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 11:47:18 +0200 Subject: [PATCH 06/20] Just use the direct packages now that there's a single bundle for elephant-all --- install/omarchy-base.packages | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index 20e6d817..03e89779 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -27,6 +27,7 @@ docker-compose dosfstools dotnet-runtime-9.0 dust +elephant-all evince exfatprogs expac @@ -92,7 +93,6 @@ nvim obs-studio obsidian omarchy-nvim -omarchy-walker pamixer pinta playerctl @@ -132,6 +132,7 @@ ufw-docker unzip usage uwsm +walker waybar whois wireless-regdb From c5784432e0c4311292b571a8257f34ab0d7b466c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 12:51:40 +0200 Subject: [PATCH 07/20] Replace coterie of individual Elephant packages with the single elephant-all package Closes https://github.com/omacom-io/omarchy-pkgs/issues/12 --- migrations/1777542438.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 migrations/1777542438.sh diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh new file mode 100644 index 00000000..0b9a52b8 --- /dev/null +++ b/migrations/1777542438.sh @@ -0,0 +1,14 @@ +echo "Replace coterie of individual Elephant packages with the single elephant-all package" + +if omarchy-pkg-present omarchy-walker; then + sudo pacman -R --noconfirm omarchy-walker +fi + +mapfile -t elephant_packages < <(pacman -Qq | grep '^elephant-' | grep -v '^elephant-all$' || true) + +if (( ${#elephant_packages[@]} > 0 )); then + sudo pacman -Rns --noconfirm "${elephant_packages[@]}" +fi + +omarchy-pkg-add elephant-all +omarchy-restart-walker From 6ce6f9464755fec25a119863f2afebaf01bc98c9 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:20:45 +0200 Subject: [PATCH 08/20] Ensure we don't lose walker and elephant when we swap around --- migrations/1777542438.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh index 0b9a52b8..8b1e17cc 100644 --- a/migrations/1777542438.sh +++ b/migrations/1777542438.sh @@ -10,5 +10,5 @@ if (( ${#elephant_packages[@]} > 0 )); then sudo pacman -Rns --noconfirm "${elephant_packages[@]}" fi -omarchy-pkg-add elephant-all +omarchy-pkg-add walker elephant elephant-all omarchy-restart-walker From 37b60e550513dc2fce720ee90c1e3345a8f70ba2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:23:02 +0200 Subject: [PATCH 09/20] Simplify the migration --- migrations/1777542438.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh index 8b1e17cc..b15596df 100644 --- a/migrations/1777542438.sh +++ b/migrations/1777542438.sh @@ -1,14 +1,7 @@ echo "Replace coterie of individual Elephant packages with the single elephant-all package" if omarchy-pkg-present omarchy-walker; then - sudo pacman -R --noconfirm omarchy-walker + omarchy-pkg-drop omarchy-walker + omarchy-pkg-add walker elephant-all + omarchy-restart-walker fi - -mapfile -t elephant_packages < <(pacman -Qq | grep '^elephant-' | grep -v '^elephant-all$' || true) - -if (( ${#elephant_packages[@]} > 0 )); then - sudo pacman -Rns --noconfirm "${elephant_packages[@]}" -fi - -omarchy-pkg-add walker elephant elephant-all -omarchy-restart-walker From 91af40fd7c37e44f467d4abee8de110a9a61e428 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:26:14 +0200 Subject: [PATCH 10/20] Enable fred=on on intel ptl machines --- install/config/all.sh | 1 + install/config/hardware/intel/fred.sh | 18 ++++++++++++++++++ migrations/1777546300.sh | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 install/config/hardware/intel/fred.sh create mode 100644 migrations/1777546300.sh diff --git a/install/config/all.sh b/install/config/all.sh index 78f249ec..2fd0f02c 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -44,6 +44,7 @@ run_logged $OMARCHY_INSTALL/config/hardware/intel/lpmd.sh run_logged $OMARCHY_INSTALL/config/hardware/intel/thermald.sh run_logged $OMARCHY_INSTALL/config/hardware/intel/ipu7-camera.sh run_logged $OMARCHY_INSTALL/config/hardware/intel/ptl-kernel.sh +run_logged $OMARCHY_INSTALL/config/hardware/intel/fred.sh run_logged $OMARCHY_INSTALL/config/hardware/intel/fix-wifi7-eht.sh run_logged $OMARCHY_INSTALL/config/hardware/dell/fix-xps-haptic-touchpad.sh diff --git a/install/config/hardware/intel/fred.sh b/install/config/hardware/intel/fred.sh new file mode 100644 index 00000000..c25e4c79 --- /dev/null +++ b/install/config/hardware/intel/fred.sh @@ -0,0 +1,18 @@ +# Enable Flexible Return and Event Delivery on Intel Panther Lake. + +DROP_IN="/etc/limine-entry-tool.d/intel-panther-lake-fred.conf" +DEFAULT_LIMINE="/etc/default/limine" + +if omarchy-hw-intel-ptl; then + if [[ ! -f $DROP_IN ]] || ! grep -q 'fred=on' "$DROP_IN"; then + sudo mkdir -p /etc/limine-entry-tool.d + cat </dev/null +# Intel Panther Lake FRED support +KERNEL_CMDLINE[default]+=" fred=on" +EOF + fi + + if [[ -f $DEFAULT_LIMINE ]] && ! grep -q 'fred=on' "$DEFAULT_LIMINE"; then + sudo tee -a "$DEFAULT_LIMINE" < "$DROP_IN" >/dev/null + fi +fi diff --git a/migrations/1777546300.sh b/migrations/1777546300.sh new file mode 100644 index 00000000..fc40e222 --- /dev/null +++ b/migrations/1777546300.sh @@ -0,0 +1,9 @@ +echo "Enable FRED on Intel Panther Lake systems" + +DEFAULT_LIMINE="/etc/default/limine" + +if omarchy-hw-intel-ptl && [[ -f $DEFAULT_LIMINE ]] && ! grep -q 'fred=on' "$DEFAULT_LIMINE"; then + source "$OMARCHY_PATH/install/config/hardware/intel/fred.sh" + + sudo limine-update +fi From 0a57fae5911a73a1397ba5d658a84e29cb54d6b2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:28:15 +0200 Subject: [PATCH 11/20] Revert "Simplify the migration" This reverts commit 37b60e550513dc2fce720ee90c1e3345a8f70ba2. --- migrations/1777542438.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh index b15596df..8b1e17cc 100644 --- a/migrations/1777542438.sh +++ b/migrations/1777542438.sh @@ -1,7 +1,14 @@ echo "Replace coterie of individual Elephant packages with the single elephant-all package" if omarchy-pkg-present omarchy-walker; then - omarchy-pkg-drop omarchy-walker - omarchy-pkg-add walker elephant-all - omarchy-restart-walker + sudo pacman -R --noconfirm omarchy-walker fi + +mapfile -t elephant_packages < <(pacman -Qq | grep '^elephant-' | grep -v '^elephant-all$' || true) + +if (( ${#elephant_packages[@]} > 0 )); then + sudo pacman -Rns --noconfirm "${elephant_packages[@]}" +fi + +omarchy-pkg-add walker elephant elephant-all +omarchy-restart-walker From e5536f3c4deb2cab3f77cd223ae9f14c97ad4214 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:28:20 +0200 Subject: [PATCH 12/20] Revert "Ensure we don't lose walker and elephant when we swap around" This reverts commit 6ce6f9464755fec25a119863f2afebaf01bc98c9. --- migrations/1777542438.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh index 8b1e17cc..0b9a52b8 100644 --- a/migrations/1777542438.sh +++ b/migrations/1777542438.sh @@ -10,5 +10,5 @@ if (( ${#elephant_packages[@]} > 0 )); then sudo pacman -Rns --noconfirm "${elephant_packages[@]}" fi -omarchy-pkg-add walker elephant elephant-all +omarchy-pkg-add elephant-all omarchy-restart-walker From 8ff1208bdd3d50a8ae26dc88c4d0ac1b04ea379c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:28:31 +0200 Subject: [PATCH 13/20] Revert "Replace coterie of individual Elephant packages with the single elephant-all package" This reverts commit c5784432e0c4311292b571a8257f34ab0d7b466c. --- migrations/1777542438.sh | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 migrations/1777542438.sh diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh deleted file mode 100644 index 0b9a52b8..00000000 --- a/migrations/1777542438.sh +++ /dev/null @@ -1,14 +0,0 @@ -echo "Replace coterie of individual Elephant packages with the single elephant-all package" - -if omarchy-pkg-present omarchy-walker; then - sudo pacman -R --noconfirm omarchy-walker -fi - -mapfile -t elephant_packages < <(pacman -Qq | grep '^elephant-' | grep -v '^elephant-all$' || true) - -if (( ${#elephant_packages[@]} > 0 )); then - sudo pacman -Rns --noconfirm "${elephant_packages[@]}" -fi - -omarchy-pkg-add elephant-all -omarchy-restart-walker From 14f155eecb7e04f316ebc668f2957dd986788e8c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:28:44 +0200 Subject: [PATCH 14/20] Revert "Just use the direct packages now that there's a single bundle for elephant-all" This reverts commit b8a4d0b2efbcc1ac203cefc86dd20b0daa09f094. --- install/omarchy-base.packages | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index 03e89779..20e6d817 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -27,7 +27,6 @@ docker-compose dosfstools dotnet-runtime-9.0 dust -elephant-all evince exfatprogs expac @@ -93,6 +92,7 @@ nvim obs-studio obsidian omarchy-nvim +omarchy-walker pamixer pinta playerctl @@ -132,7 +132,6 @@ ufw-docker unzip usage uwsm -walker waybar whois wireless-regdb From 175a22a04801eb4d6b5c14e9e5b93d39f475c093 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:30:38 +0200 Subject: [PATCH 15/20] Reapply "Just use the direct packages now that there's a single bundle for elephant-all" This reverts commit 14f155eecb7e04f316ebc668f2957dd986788e8c. --- install/omarchy-base.packages | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index 20e6d817..03e89779 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -27,6 +27,7 @@ docker-compose dosfstools dotnet-runtime-9.0 dust +elephant-all evince exfatprogs expac @@ -92,7 +93,6 @@ nvim obs-studio obsidian omarchy-nvim -omarchy-walker pamixer pinta playerctl @@ -132,6 +132,7 @@ ufw-docker unzip usage uwsm +walker waybar whois wireless-regdb From eca926b5a4bc7048a300805a81ef23cac0191415 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:30:40 +0200 Subject: [PATCH 16/20] Reapply "Replace coterie of individual Elephant packages with the single elephant-all package" This reverts commit 8ff1208bdd3d50a8ae26dc88c4d0ac1b04ea379c. --- migrations/1777542438.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 migrations/1777542438.sh diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh new file mode 100644 index 00000000..0b9a52b8 --- /dev/null +++ b/migrations/1777542438.sh @@ -0,0 +1,14 @@ +echo "Replace coterie of individual Elephant packages with the single elephant-all package" + +if omarchy-pkg-present omarchy-walker; then + sudo pacman -R --noconfirm omarchy-walker +fi + +mapfile -t elephant_packages < <(pacman -Qq | grep '^elephant-' | grep -v '^elephant-all$' || true) + +if (( ${#elephant_packages[@]} > 0 )); then + sudo pacman -Rns --noconfirm "${elephant_packages[@]}" +fi + +omarchy-pkg-add elephant-all +omarchy-restart-walker From 6ef510cc54ce190de701a9713dba396dbc272986 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:30:42 +0200 Subject: [PATCH 17/20] Reapply "Ensure we don't lose walker and elephant when we swap around" This reverts commit e5536f3c4deb2cab3f77cd223ae9f14c97ad4214. --- migrations/1777542438.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh index 0b9a52b8..8b1e17cc 100644 --- a/migrations/1777542438.sh +++ b/migrations/1777542438.sh @@ -10,5 +10,5 @@ if (( ${#elephant_packages[@]} > 0 )); then sudo pacman -Rns --noconfirm "${elephant_packages[@]}" fi -omarchy-pkg-add elephant-all +omarchy-pkg-add walker elephant elephant-all omarchy-restart-walker From 36026d78ed5d8c4ed7743fbd9071f57b1c68c6a4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:30:44 +0200 Subject: [PATCH 18/20] Reapply "Simplify the migration" This reverts commit 0a57fae5911a73a1397ba5d658a84e29cb54d6b2. --- migrations/1777542438.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh index 8b1e17cc..b15596df 100644 --- a/migrations/1777542438.sh +++ b/migrations/1777542438.sh @@ -1,14 +1,7 @@ echo "Replace coterie of individual Elephant packages with the single elephant-all package" if omarchy-pkg-present omarchy-walker; then - sudo pacman -R --noconfirm omarchy-walker + omarchy-pkg-drop omarchy-walker + omarchy-pkg-add walker elephant-all + omarchy-restart-walker fi - -mapfile -t elephant_packages < <(pacman -Qq | grep '^elephant-' | grep -v '^elephant-all$' || true) - -if (( ${#elephant_packages[@]} > 0 )); then - sudo pacman -Rns --noconfirm "${elephant_packages[@]}" -fi - -omarchy-pkg-add walker elephant elephant-all -omarchy-restart-walker From cbefe542386d2c404ae6e82bb20909c2c2c656f8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:31:32 +0200 Subject: [PATCH 19/20] Refresh the configs --- migrations/1777542438.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/1777542438.sh b/migrations/1777542438.sh index b15596df..3c1b75f0 100644 --- a/migrations/1777542438.sh +++ b/migrations/1777542438.sh @@ -3,5 +3,5 @@ echo "Replace coterie of individual Elephant packages with the single elephant-a if omarchy-pkg-present omarchy-walker; then omarchy-pkg-drop omarchy-walker omarchy-pkg-add walker elephant-all - omarchy-restart-walker + omarchy-refresh-walker fi From 5683b1bdbdc893ac90be4b28d1efaccdaa5caa20 Mon Sep 17 00:00:00 2001 From: Alexandre <17xande@gmail.com> Date: Thu, 30 Apr 2026 17:51:29 +0200 Subject: [PATCH 20/20] Fix internal monitor disable for non-eDP-1 systems (#5511) Detect the internal monitor name dynamically at runtime instead of hardcoding eDP-1 in a static toggle conf file. Uses the same pattern as omarchy-hyprland-monitor-internal-mirror. Fixes #5443 --- bin/omarchy-hyprland-monitor-internal | 15 ++++++++++----- .../hypr/toggles/internal-monitor-disable.conf | 2 -- 2 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 default/hypr/toggles/internal-monitor-disable.conf diff --git a/bin/omarchy-hyprland-monitor-internal b/bin/omarchy-hyprland-monitor-internal index bc5ee0b9..e869a9d2 100755 --- a/bin/omarchy-hyprland-monitor-internal +++ b/bin/omarchy-hyprland-monitor-internal @@ -1,8 +1,12 @@ #!/bin/bash TOGGLE="internal-monitor-disable" +TOGGLE_FLAG="$HOME/.local/state/omarchy/toggles/hypr/$TOGGLE.conf" MIRROR_TOGGLE="internal-monitor-mirror" +# Get internal monitor name dynamically +INTERNAL=$(hyprctl monitors -j | jq -r '.[] | select(.name | contains("eDP")).name' | head -n 1) + enable() { if omarchy-hyprland-toggle-enabled "$TOGGLE"; then omarchy-hyprland-toggle --disabled-notification "󰍹 Laptop display enabled" "$TOGGLE" @@ -10,14 +14,15 @@ enable() { } disable() { - if omarchy-hw-external-monitors; then - if omarchy-hyprland-toggle-disabled "$TOGGLE" && omarchy-hyprland-toggle-disabled "$MIRROR_TOGGLE"; then - omarchy-hyprland-toggle --enabled-notification "󰍹 Laptop display disabled" "$TOGGLE" - fi - else + if ! omarchy-hw-external-monitors; then notify-send -u low "󰍹 Can't disable the only active display" exit 1 fi + if omarchy-hyprland-toggle-disabled "$TOGGLE" && omarchy-hyprland-toggle-disabled "$MIRROR_TOGGLE"; then + echo "monitor=$INTERNAL,disable" >"$TOGGLE_FLAG" + notify-send -u low "󰍹 Laptop display disabled" + hyprctl reload + fi } recover() { diff --git a/default/hypr/toggles/internal-monitor-disable.conf b/default/hypr/toggles/internal-monitor-disable.conf deleted file mode 100644 index f5458f94..00000000 --- a/default/hypr/toggles/internal-monitor-disable.conf +++ /dev/null @@ -1,2 +0,0 @@ -# Disable the internal laptop monitor -monitor=eDP-1,disable