6 Commits

Author SHA1 Message Date
bb862e0f89 apps: add Notejot 2023-12-30 11:38:35 +00:00
92b077aa67 sxmo_open: just call xdg-open
xdg-open understands the user's mime preferences more reliably than this SXMO re-implementation
2023-12-30 11:33:48 +00:00
be5021e9d8 only alias jq=gojq if the latter is available 2023-12-30 11:33:48 +00:00
3ba6345b5a sxmo_hook_apps: launch apps via the window manager 2023-12-30 11:33:48 +00:00
12e3906e6b sxmo_migrate: add option to disable configversion checks 2023-12-30 11:33:48 +00:00
54948ab328 apps: add Lemoa 2023-12-30 11:33:48 +00:00
4 changed files with 18 additions and 4 deletions

View File

@@ -15,8 +15,13 @@ write_line_app() {
executable="$1"
label="$2"
command="$3"
inline="$4"
if command -v "$executable" >/dev/null; then
if [ "$inline" != "" ]; then
write_line "$label" "$command"
else
write_line "$label" "sxmo_wm.sh exec $command"
fi
fi
}
@@ -78,6 +83,7 @@ write_line_app konversation "$icon_msg Konversation" "konversation"
write_line_app koreader "$icon_bok KOReader" "koreader"
write_line_app kwrite "$icon_edt Kwrite" "kwrite"
write_line_app lagrange "$icon_glb Lagrange" "lagrange"
write_line_app lemoa "$icon_grp Lemoa" "lemoa"
write_line_app lf "$icon_dir Lf" "sxmo_terminal.sh lf"
write_line_app librewolf "$icon_glb Librewolf" "librewolf"
write_line_app lollypop "$icon_mus Lollypop" "lollypop"
@@ -98,6 +104,7 @@ write_line_app netsurf "$icon_glb Netsurf" "netsurf"
write_line_app newsboat "$icon_rss Newsboat" "sxmo_terminal.sh newsboat"
write_line_app com.gitlab.newsflash "$icon_rss Newsflash" com.gitlab.newsflash
write_line_app nnn "$icon_dir Nnn" "sxmo_terminal.sh nnn"
write_line_app io.github.lainsce.Notejot "$icon_drw Notejot" io.github.lainsce.Notejot
write_line_app numberstation "$icon_clc Numberstation" "numberstation"
write_line_app osmin "$icon_map Osmin" "osmin"
write_line_app pidgin "$icon_msg Pidgin" "pidgin"
@@ -144,4 +151,4 @@ write_line_app vte-2.91-gtk4 "$icon_trm VTE 3 (GTK-4)" "vte-2.91-gtk4"
write_line_app xournal "$icon_bok Xournal" "xournal"
write_line_app xournalpp "$icon_bok Xournalpp" "xournalpp"
write_line_app zathura "$icon_bok Zathura" "zathura"
write_line_app j4-dmenu-desktop "$icon_grd All apps" "j4-dmenu-desktop --dmenu=sxmo_dmenu.sh --term=sxmo_terminal.sh"
write_line_app j4-dmenu-desktop "$icon_grd All apps" "j4-dmenu-desktop --dmenu=sxmo_dmenu.sh --term=sxmo_terminal.sh --wrapper='sxmo_wm.sh exec'" "inline"

View File

@@ -15,7 +15,7 @@ command -v shopt > /dev/null && shopt -s expand_aliases
alias dmenu="sxmo_dmenu.sh"
alias bemenu="sxmo_dmenu.sh"
alias jq="gojq" # better performances
command -v gojq > /dev/null && alias jq="gojq" # better performances
if ! command -v sxmobar > /dev/null; then
sxmobar() {

View File

@@ -109,6 +109,9 @@ resolvedifference() {
}
checkconfigversion() {
if [ -n "$SXMO_DISABLE_CONFIGVERSION_CHECK" ]; then
return 0
fi
userfile="$1"
reffile="$2"
if [ ! -e "$userfile" ] || [ ! -e "$reffile" ]; then

View File

@@ -336,5 +336,9 @@ fi
if [ $# -gt 0 ]; then
set -- "${1#file://}"
run "$@"
if [ "$attached" = "1" ]; then
xdg-open "$@"
else
xdg-open "$@" &
fi
fi