Add right-click for emergency terminal

This commit is contained in:
Ryan Hughes
2025-10-23 22:32:43 -04:00
parent 7437c73113
commit 7882893a23
2 changed files with 9 additions and 0 deletions

View File

@@ -41,6 +41,7 @@
"custom/omarchy": {
"format": "<span font='omarchy'>\ue900</span>",
"on-click": "omarchy-menu",
"on-click-right": "omarchy-launch-terminal",
"tooltip-format": "Omarchy Menu\n\nSuper + Alt + Space"
},
"custom/update": {

8
migrations/1761269603.sh Normal file
View File

@@ -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