update to use $TERMINAL instead of alacitty (#1648)

* update to use $TERMINAL instead of alacitty

* revert

* move env to hyprconfig

* Only set if we have alacritty

* Add launcher for wifi settings so it can be used in mako config

* Set system terminal in config/uwsm/env to ensure its available everywhere

* Ensure that $TERMINAL is available after update

* Didn't work to have the TERMINAL env in Hyprland

* Configure terminal settings against a full set of options

* Make About usable with any terminal

* One more alacritty-specific setting

* Use the new wifi launcher bin

* Only require the update/relaunch if TERMINAL isn't already set in config/uwsm/env

* More alacritty usage converted to $TERMINAL

* Use new launcher

* Change scrolltouchpad input rule to apply to all terminals

* Its a singular match

* Take current font from waybar, in case we don't have alacritty

* Only set font for alacritty if its being used

* Get ready to be terminal agnostic on the refresh of config too

* Use new launcher

* Note the last reliance we have on alacritty

* Make theme setting for terminals generic and include kitty

* Set font_family for kitty as well

* Quiet grep

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Ofir Miller
2025-09-16 15:32:40 +03:00
committed by GitHub
parent c8fa96f382
commit 7e1c88b932
25 changed files with 68 additions and 28 deletions

View File

@@ -37,7 +37,7 @@ menu() {
}
terminal() {
alacritty --class Omarchy -e "$@"
$TERMINAL --class Omarchy -e "$@"
}
present_terminal() {
@@ -46,7 +46,7 @@ present_terminal() {
edit_in_nvim() {
notify-send "Editing config file" "$1"
alacritty -e nvim "$1"
$TERMINAL -e nvim "$1"
}
install() {
@@ -174,10 +174,10 @@ show_setup_menu() {
options="$options\n󰱔 DNS\n Config\n󰈷 Fingerprint\n Fido2"
case $(menu "Setup" "$options") in
*Audio*) alacritty --class=Wiremix -e wiremix ;;
*Audio*) $TERMINAL --class=Wiremix -e wiremix ;;
*Wifi*)
rfkill unblock wifi
alacritty --class=Impala -e impala
omarchy-launch-wifi
;;
*Bluetooth*)
rfkill unblock bluetooth
@@ -445,7 +445,7 @@ go_to_menu() {
*remove*) show_remove_menu ;;
*update*) show_update_menu ;;
*learn*) show_learn_menu ;;
*about*) alacritty --class Omarchy -o font.size=9 -e bash -c 'fastfetch; read -n 1 -s' ;;
*about*) omarchy-launch-about ;;
*system*) show_system_menu ;;
esac
}