mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Simplify with a launch or focus variaty for tui
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
exec setsid uwsm-app -- xdg-terminal-exec --app-id=org.omarchy.terminal -e bash -c 'fastfetch; read -n 1 -s'
|
exec omarchy-launch-or-focus-tui "bash -c 'fastfetch; read -n 1 -s'"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
rfkill unblock bluetooth
|
rfkill unblock bluetooth
|
||||||
exec setsid omarchy-launch-or-focus org.omarchy.bluetui "omarchy-launch-tui bluetui"
|
exec omarchy-launch-or-focus-tui bluetui
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ WINDOW_ADDRESS=$(hyprctl clients -j | jq -r --arg p "^$WINDOW_PATTERN$" '.[]|sel
|
|||||||
if [[ -n $WINDOW_ADDRESS ]]; then
|
if [[ -n $WINDOW_ADDRESS ]]; then
|
||||||
hyprctl dispatch focuswindow "address:$WINDOW_ADDRESS"
|
hyprctl dispatch focuswindow "address:$WINDOW_ADDRESS"
|
||||||
else
|
else
|
||||||
eval exec $LAUNCH_COMMAND
|
eval exec setsid $LAUNCH_COMMAND
|
||||||
fi
|
fi
|
||||||
|
|||||||
6
bin/omarchy-launch-or-focus-tui
Executable file
6
bin/omarchy-launch-or-focus-tui
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
APP_ID="org.omarchy.$(basename $1)"
|
||||||
|
LAUNCH_COMMAND="omarchy-launch-tui $@"
|
||||||
|
|
||||||
|
exec omarchy-launch-or-focus "$APP_ID" "$LAUNCH_COMMAND"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
rfkill unblock wifi
|
rfkill unblock wifi
|
||||||
exec setsid omarchy-launch-or-focus org.omarchy.impala "omarchy-launch-tui impala"
|
omarchy-launch-or-focus-tui impala
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ show_setup_menu() {
|
|||||||
options="$options\n Defaults\n DNS\n Security\n Config"
|
options="$options\n Defaults\n DNS\n Security\n Config"
|
||||||
|
|
||||||
case $(menu "Setup" "$options") in
|
case $(menu "Setup" "$options") in
|
||||||
*Audio*) omarchy-launch-or-focus org.omarchy.wiremix "omarchy-launch-tui wiremix" ;;
|
*Audio*) omarchy-launch-or-focus-tui wiremix ;;
|
||||||
*Wifi*) omarchy-launch-wifi ;;
|
*Wifi*) omarchy-launch-wifi ;;
|
||||||
*Bluetooth*) omarchy-launch-bluetooth ;;
|
*Bluetooth*) omarchy-launch-bluetooth ;;
|
||||||
*Power*) show_setup_power_menu ;;
|
*Power*) show_setup_power_menu ;;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
"cpu": {
|
"cpu": {
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": "",
|
"format": "",
|
||||||
"on-click": "omarchy-launch-or-focus org.omarchy.btop \"omarchy-launch-tui btop\""
|
"on-click": "omarchy-launch-or-focus-tui btop"
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": "{:L%A %H:%M}",
|
"format": "{:L%A %H:%M}",
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"on-click": "omarchy-launch-or-focus org.omarchy.wiremix \"omarchy-launch-tui wiremix\"",
|
"on-click": "omarchy-launch-or-focus-tui wiremix",
|
||||||
"on-click-right": "pamixer -t",
|
"on-click-right": "pamixer -t",
|
||||||
"tooltip-format": "Playing at {volume}%",
|
"tooltip-format": "Playing at {volume}%",
|
||||||
"scroll-step": 5,
|
"scroll-step": 5,
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ echo "Uniquely identify terminal apps with custom app-ids using omarchy-launch-t
|
|||||||
sed -i 's/\$terminal -e \([^ ]*\)/omarchy-launch-tui \1/g' ~/.config/hypr/bindings.conf
|
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
|
# 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 btop|omarchy-launch-or-focus-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
|
sed -i 's|xdg-terminal-exec --app-id=com\.omarchy\.Wiremix -e wiremix|omarchy-launch-or-focus-tui wiremix|' ~/.config/waybar/config.jsonc
|
||||||
|
|||||||
Reference in New Issue
Block a user