mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Use new helper
This commit is contained in:
+2
-8
@@ -43,12 +43,6 @@ menu() {
|
|||||||
echo -e "$options" | omarchy-launch-walker --dmenu --width 295 --minheight 1 --maxheight 630 -p "$prompt…" "${args[@]}" 2>/dev/null
|
echo -e "$options" | omarchy-launch-walker --dmenu --width 295 --minheight 1 --maxheight 630 -p "$prompt…" "${args[@]}" 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
input() {
|
|
||||||
local prompt="$1"
|
|
||||||
|
|
||||||
omarchy-launch-walker --dmenu --inputonly --width 295 --minheight 1 --maxheight 1 -p "$prompt…" 2>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
terminal() {
|
terminal() {
|
||||||
xdg-terminal-exec --app-id=org.omarchy.terminal "$@"
|
xdg-terminal-exec --app-id=org.omarchy.terminal "$@"
|
||||||
}
|
}
|
||||||
@@ -121,7 +115,7 @@ show_reminder_menu() {
|
|||||||
|
|
||||||
show_custom_reminder_input() {
|
show_custom_reminder_input() {
|
||||||
local minutes
|
local minutes
|
||||||
minutes=$(input "Remind in minutes")
|
minutes=$(omarchy-menu-input "Remind in minutes")
|
||||||
|
|
||||||
if [[ $minutes =~ ^[0-9]+$ ]] && ((minutes > 0)); then
|
if [[ $minutes =~ ^[0-9]+$ ]] && ((minutes > 0)); then
|
||||||
show_reminder_message_input "$minutes"
|
show_reminder_message_input "$minutes"
|
||||||
@@ -136,7 +130,7 @@ show_custom_reminder_input() {
|
|||||||
show_reminder_message_input() {
|
show_reminder_message_input() {
|
||||||
local minutes="$1"
|
local minutes="$1"
|
||||||
local message
|
local message
|
||||||
message=$(input "Reminder message")
|
message=$(omarchy-menu-input "Reminder message")
|
||||||
|
|
||||||
if [[ -n $message ]]; then
|
if [[ -n $message ]]; then
|
||||||
omarchy-reminder "$minutes" "$message"
|
omarchy-reminder "$minutes" "$message"
|
||||||
|
|||||||
Reference in New Issue
Block a user