mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
* 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>
29 lines
841 B
Bash
Executable File
29 lines
841 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Exit early if we don't have the tte show
|
|
if ! command -v tte &>/dev/null; then
|
|
exit 1
|
|
fi
|
|
|
|
# Exit early if screensave is already running
|
|
pgrep -f "$TERMINAL --class Screensaver" && exit 0
|
|
|
|
# Allow screensaver to be turned off but also force started
|
|
if [[ -f ~/.local/state/omarchy/toggles/screensaver-off ]] && [[ $1 != "force" ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
focused=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true).name')
|
|
|
|
for m in $(hyprctl monitors -j | jq -r '.[] | .name'); do
|
|
hyprctl dispatch focusmonitor $m
|
|
|
|
# FIXME: Find a way to make this generic where we it can work for kitty + ghostty
|
|
hyprctl dispatch exec -- \
|
|
alacritty --class Screensaver \
|
|
--config-file ~/.local/share/omarchy/default/alacritty/screensaver.toml \
|
|
-e omarchy-cmd-screensaver
|
|
done
|
|
|
|
hyprctl dispatch focusmonitor $focused
|