Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/omarchy-cmd-screensaver
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

screensaver_in_focus() {
hyprctl activewindow -j | jq -e '.class == "com.omarchy.Screensaver"' >/dev/null 2>&1
hyprctl activewindow -j | jq -e '.class == "org.omarchy.screensaver"' >/dev/null 2>&1
}

exit_screensaver() {
hyprctl keyword cursor:invisible false
pkill -x tte 2>/dev/null
pkill -f com.omarchy.Screensaver 2>/dev/null
pkill -f org.omarchy.screensaver 2>/dev/null
exit 0
}

Expand Down
2 changes: 1 addition & 1 deletion bin/omarchy-launch-about
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

exec setsid uwsm-app -- xdg-terminal-exec --app-id=com.omarchy.Omarchy -e bash -c 'fastfetch; read -n 1 -s'
exec setsid uwsm-app -- xdg-terminal-exec --app-id=org.omarchy.terminal -e bash -c 'fastfetch; read -n 1 -s'
2 changes: 1 addition & 1 deletion bin/omarchy-launch-editor
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ omarchy-cmd-present "$EDITOR" || EDITOR=nvim

case "$EDITOR" in
nvim | vim | nano | micro | hx | helix)
exec setsid uwsm-app -- xdg-terminal-exec "$EDITOR" "$@"
exec omarchy-launch-tui "$EDITOR" "$@"
;;
*)
exec setsid uwsm-app -- "$EDITOR" "$@"
Expand Down
2 changes: 1 addition & 1 deletion bin/omarchy-launch-floating-terminal-with-presentation
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

cmd="$*"
exec setsid uwsm-app -- xdg-terminal-exec --app-id=com.omarchy.Omarchy --title=Omarchy -e bash -c "omarchy-show-logo; $cmd; omarchy-show-done"
exec setsid uwsm-app -- xdg-terminal-exec --app-id=org.omarchy.terminal --title=Omarchy -e bash -c "omarchy-show-logo; $cmd; omarchy-show-done"
8 changes: 4 additions & 4 deletions bin/omarchy-launch-screensaver
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if ! command -v tte &>/dev/null; then
fi

# Exit early if screensave is already running
pgrep -f com.omarchy.Screensaver && exit 0
pgrep -f org.omarchy.screensaver && exit 0

# Allow screensaver to be turned off but also force started
if [[ -f ~/.local/state/omarchy/toggles/screensaver-off ]] && [[ $1 != "force" ]]; then
Expand All @@ -22,19 +22,19 @@ for m in $(hyprctl monitors -j | jq -r '.[] | .name'); do
case $terminal in
*Alacritty*)
hyprctl dispatch exec -- \
alacritty --class=com.omarchy.Screensaver \
alacritty --class=org.omarchy.screensaver \
--config-file ~/.local/share/omarchy/default/alacritty/screensaver.toml \
-e omarchy-cmd-screensaver
;;
*ghostty*)
hyprctl dispatch exec -- \
ghostty --class=com.omarchy.Screensaver \
ghostty --class=org.omarchy.screensaver \
--font-size=18 \
-e omarchy-cmd-screensaver
;;
*kitty*)
hyprctl dispatch exec -- \
kitty --class=com.omarchy.Screensaver \
kitty --class=org.omarchy.screensaver \
--override font_size=18 \
-e omarchy-cmd-screensaver
;;
Expand Down
3 changes: 3 additions & 0 deletions bin/omarchy-launch-tui
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec setsid uwsm-app -- xdg-terminal-exec --app-id=org.omarchy.$(basename $1) -e "$1" "${@:2}"
2 changes: 1 addition & 1 deletion bin/omarchy-launch-wifi
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

exec setsid omarchy-launch-or-focus com.omarchy.Impala "uwsm-app -- xdg-terminal-exec --app-id=com.omarchy.Impala -e impala"
exec setsid omarchy-launch-or-focus org.omarchy.impala "omarchy-launch-tui impala"
2 changes: 1 addition & 1 deletion bin/omarchy-lock-screen
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ if pgrep -x "1password" >/dev/null; then
fi

# Avoid running screensaver when locked
pkill -f com.omarchy.Screensaver
pkill -f org.omarchy.screensaver
4 changes: 2 additions & 2 deletions bin/omarchy-menu
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ menu() {
}

terminal() {
xdg-terminal-exec --app-id=com.omarchy.Omarchy "$@"
xdg-terminal-exec --app-id=org.omarchy.terminal "$@"
}

present_terminal() {
Expand Down Expand Up @@ -180,7 +180,7 @@ show_setup_menu() {
options="$options\n Defaults\n󰱔 DNS\n Security\n Config"

case $(menu "Setup" "$options") in
*Audio*) xdg-terminal-exec --app-id=com.omarchy.Wiremix -e wiremix ;;
*Audio*) omarchy-launch-or-focus org.omarchy.wiremix "omarchy-launch-tui wiremix" ;;
*Wifi*)
rfkill unblock wifi
omarchy-launch-wifi
Expand Down
4 changes: 2 additions & 2 deletions config/hypr/bindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ bindd = SUPER SHIFT, B, Browser, exec, $browser
bindd = SUPER SHIFT ALT, B, Browser (private), exec, $browser --private
bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify
bindd = SUPER SHIFT, N, Editor, exec, omarchy-launch-editor
bindd = SUPER SHIFT, T, Activity, exec, $terminal -e btop
bindd = SUPER SHIFT, D, Docker, exec, $terminal -e lazydocker
bindd = SUPER SHIFT, T, Activity, exec, omarchy-launch-tui btop
bindd = SUPER SHIFT, D, Docker, exec, omarchy-launch-tui lazydocker
bindd = SUPER SHIFT, G, Signal, exec, omarchy-launch-or-focus signal "uwsm-app -- signal-desktop"
bindd = SUPER SHIFT, O, Obsidian, exec, omarchy-launch-or-focus obsidian "uwsm-app -- obsidian -disable-gpu --enable-wayland-ime"
bindd = SUPER SHIFT, W, Typora, exec, uwsm-app -- typora --enable-wayland-ime
Expand Down
4 changes: 2 additions & 2 deletions config/waybar/config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"cpu": {
"interval": 5,
"format": "󰍛",
"on-click": "xdg-terminal-exec btop"
"on-click": "omarchy-launch-or-focus org.omarchy.btop \"omarchy-launch-tui btop\""
},
"clock": {
"format": "{:L%A %H:%M}",
Expand Down Expand Up @@ -105,7 +105,7 @@
},
"pulseaudio": {
"format": "{icon}",
"on-click": "xdg-terminal-exec --app-id=com.omarchy.Wiremix -e wiremix",
"on-click": "omarchy-launch-or-focus org.omarchy.wiremix \"omarchy-launch-tui wiremix\"",
"on-click-right": "pamixer -t",
"tooltip-format": "Playing at {volume}%",
"scroll-step": 5,
Expand Down
4 changes: 2 additions & 2 deletions default/hypr/apps/system.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ windowrule = float, tag:floating-window
windowrule = center, tag:floating-window
windowrule = size 875 600, tag:floating-window

windowrule = tag +floating-window, class:(blueberry.py|com.omarchy.Impala|com.omarchy.Wiremix|com.omarchy.Omarchy|org.gnome.NautilusPreviewer|com.gabm.satty|Omarchy|About|TUI.float)
windowrule = tag +floating-window, class:(blueberry.py|org.omarchy.impala|org.omarchy.wiremix|org.omarchy.terminal|org.gnome.NautilusPreviewer|com.gabm.satty|Omarchy|About|TUI.float)
windowrule = tag +floating-window, class:(xdg-desktop-portal-gtk|sublime_text|DesktopEditors|org.gnome.Nautilus), title:^(Open.*Files?|Open [F|f]older.*|Save.*Files?|Save.*As|Save|All Files|.*wants to [open|save].*|[C|c]hoose.*)
windowrule = float, class:org.gnome.Calculator

# Fullscreen screensaver
windowrule = fullscreen, class:com.omarchy.Screensaver
windowrule = fullscreen, class:org.omarchy.screensaver

# No transparency on media windows
windowrule = opacity 1 1, class:^(zoom|vlc|mpv|org.kde.kdenlive|com.obsproject.Studio|com.github.PintaProject.Pinta|imv|org.gnome.NautilusPreviewer)$
Expand Down
8 changes: 8 additions & 0 deletions migrations/1763386443.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
echo "Uniquely identify terminal apps with custom app-ids using omarchy-launch-tui"

# Replace terminal -e calls with omarchy-launch-tui in bindings
sed -i 's/\$terminal -e \([^ ]*\)/omarchy-launch-tui \1/g' ~/.config/hypr/bindings.conf

# Update waybar to use omarchy-launch-or-focus with omarchy-launch-tui for TUI apps
sed -i 's/xdg-terminal-exec btop/omarchy-launch-or-focus org.omarchy.btop "omarchy-launch-tui btop"/' ~/.config/waybar/config.jsonc
sed -i 's/xdg-terminal-exec --app-id=com\.omarchy\.Wiremix -e wiremix/omarchy-launch-or-focus org.omarchy.wiremix "omarchy-launch-tui wiremix"/' ~/.config/waybar/config.jsonc