From 7882893a23cfec5bb0dd7dc716284764d905cb45 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Thu, 23 Oct 2025 22:32:43 -0400 Subject: [PATCH] Add right-click for emergency terminal --- config/waybar/config.jsonc | 1 + migrations/1761269603.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 migrations/1761269603.sh diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 8fe19a3c..54f74d63 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -41,6 +41,7 @@ "custom/omarchy": { "format": "\ue900", "on-click": "omarchy-menu", + "on-click-right": "omarchy-launch-terminal", "tooltip-format": "Omarchy Menu\n\nSuper + Alt + Space" }, "custom/update": { diff --git a/migrations/1761269603.sh b/migrations/1761269603.sh new file mode 100644 index 00000000..35a8b06c --- /dev/null +++ b/migrations/1761269603.sh @@ -0,0 +1,8 @@ +echo "Add right-click terminal action to waybar omarchy menu icon" + +WAYBAR_CONFIG="$HOME/.config/waybar/config.jsonc" + +if [[ -f "$WAYBAR_CONFIG" ]] && ! grep -A5 '"custom/omarchy"' "$WAYBAR_CONFIG" | grep -q '"on-click-right"'; then + sed -i '/"on-click": "omarchy-menu",/a\ "on-click-right": "omarchy-launch-terminal",' "$WAYBAR_CONFIG" + omarchy-state set restart-waybar-required +fi