geany -> xdg-open

This commit is contained in:
Daniel Napora 2022-08-17 14:19:31 +02:00
parent fddbbcaac1
commit 3fd8339675
15 changed files with 29 additions and 30 deletions

View File

@ -78,7 +78,7 @@ EditMenu(){
CPATH=$(echo "$session" | awk '{print $3}')
#CONKY=$(echo "$CPATH" | awk -F"/" '{print $(NF-1)"/"$NF }')
CONKY=${CPATH##*/}
out2+=("$CONKY,geany $CPATH")
out2+=("$CONKY,xdg-open $CPATH")
done < "$CSESSIONFILE"
else

View File

@ -80,7 +80,7 @@ ROWS=${rows:-12}
me="jgdeskgrid -s"
out+=("^sep(DesktopGrid)")
out+=("$ABOUT,notify-send.sh -u critical -i mbcc '$title' '$help' -o '$SHOW_IMGHELPER:drawgrid' -o '$EDITCONF:geany ~/.config/deskgrid/deskgrid.cfg'")
out+=("$ABOUT,notify-send.sh -u critical -i mbcc '$title' '$help' -o '$SHOW_IMGHELPER:drawgrid' -o '$EDITCONF:xdg-open ~/.config/deskgrid/deskgrid.cfg'")
out+=("$SHOW_IMGHELPER,drawgrid")
out+=("$QUICK_TILE,yhtml /usr/share/mabox/help/Quick_tiling.html 'Mabox Quick tiling trainer - Ctrl + Shift + click'")
out+=("^sep($CONFIGURATION)")
@ -90,7 +90,7 @@ out+=("$LGAP [ <b>$GAP</b> ],^checkout(gap)")
out+=("$OUTER_GAP [ <b>$show_outer_gap</b> ],^checkout(outer)")
out+=("$NOTIFY [ <b>$notifications</b> ],^checkout(notify)")
out+=("^sep()")
out+=("$EDITCONF,geany $CONFIG_FILE")
out+=("$EDITCONF,xdg-open $CONFIG_FILE")
#out2+=("^tag(columns)")
#for i in 8 12 16 24 32; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar columns=${i} $CONFIG_FILE;$me")");done

View File

@ -94,7 +94,7 @@ out2+=("^sep($RESTORE_TO)")
out2+=("\"\"\" ${dname/&/&amp;}\"\"\",deskmngr -r $name.desk $ID")
done < <(wmctrl -d|awk '{print $1}')
out2+=("^sep()" "  $OVERWRITE <b>${name//_/ }</b>,deskmngr save $name")
out2+=("^sep()" "  $EDIT <b>${name//_/ }</b>,geany $SESSIONDIR$name.desk")
out2+=("^sep()" "  $EDIT <b>${name//_/ }</b>,xdg-open $SESSIONDIR$name.desk")
out2+=("^sep()" "  $DELETE <b>${name//_/ }</b>,rm -f $SESSIONDIR$name.desk;$me")
((i=i+1))
done < <(deskmngr -l)

View File

@ -41,7 +41,7 @@ else
echo "@search,,10,5,292,20,4,left,top,auto,#262626,\"\"\"<big></big> <i>$TYPE_TO_SEARCH</i>\"\"\"" >/tmp/espanso_list.csv
echo "^sep(Espanso - text expander)" >>/tmp/espanso_list.csv
echo "^sep($CONFIGURE)" >>/tmp/espanso_list.csv
echo "$EDITCONF, geany ~/.config/espanso/default.yml" >>/tmp/espanso_list.csv
echo "$EDITCONF, xdg-open ~/.config/espanso/default.yml" >>/tmp/espanso_list.csv
echo "$OPENCONFDIR,pcmanfm ~/.config/espanso/user/" >>/tmp/espanso_list.csv
echo "$DOCU,exo-open --launch WebBrowser https://espanso.org/docs/" >>/tmp/espanso_list.csv
echo "^sep($LIST)" >>/tmp/espanso_list.csv

View File

@ -94,7 +94,7 @@ else
out+=("$DESK,mb-setvar screenlocker=i3lock $SCRNLOCKCFG;mbscreenlocker")
fi
out+=("^sep()")
out+=("$EDITCONF ,geany $SCRNLOCKCFG")
out+=("$EDITCONF ,xdg-open $SCRNLOCKCFG")
out2+=("^tag(interval)")
for i in 3 5 10 30 60 120 300 600 1800 3600; do out2+=("$(printf "<tt> %4s</tt>,%s" "$i" "mb-setvar interval=${i} $CONFIG_FILE;$me")");done

View File

@ -232,8 +232,8 @@ out+=("$EXITMENU,^checkout(exit_edit)")
out2+=("^tag(mainmenu_edit)")
out2+=("^sep($MAINMENU)")
out2+=("$EDIT $FAVORITES, geany $HOME/.config/mabox/favorites.csv, geany")
out2+=("$EDIT $BELOW_APPS, geany $HOME/.config/mabox/mainmenu_below_apps.csv, geany")
out2+=("$EDIT $FAVORITES, xdg-open $HOME/.config/mabox/favorites.csv, geany")
out2+=("$EDIT $BELOW_APPS, xdg-open $HOME/.config/mabox/mainmenu_below_apps.csv, geany")
out2+=("^sep($APPS_POS)")
out2+=("$APPS_MAIN,mb-setvar apps_in_submenu=false;mb-jgtools main ipc")
out2+=("$APPS_SUB,mb-setvar apps_in_submenu=true;mb-jgtools main ipc")
@ -241,7 +241,7 @@ out2+=("^sep(Reset)")
out2+=("$RESET,mb-reset mainmenu")
out2+=("^tag(left_edit)")
out2+=("^sep($LEFTPANEL)")
out2+=("$EDIT $OWN_COMMANDS ($TOP), geany $HOME/.config/mabox/places-prepend.csv, geany")
out2+=("$EDIT $OWN_COMMANDS ($TOP), xdg-open $HOME/.config/mabox/places-prepend.csv, geany")
#out2+=("^sep()")
out2+=("^sep($MODULES)")
@ -268,20 +268,20 @@ out2+=("^sep($PIPEMENUS)")
[[ $places_conkypipe = false ]] && out2+=("<i><s>$CONKY</s></i>,mb-setvar places_conkypipe=true;$L") || out2+=("$CONKY,mb-setvar places_conkypipe=false;$L")
out2+=("^sep()")
out2+=("$EDIT $OWN_COMMANDS ($BOTTOM), geany $HOME/.config/mabox/places-append.csv, geany")
out2+=("$EDIT $OWN_COMMANDS ($BOTTOM), xdg-open $HOME/.config/mabox/places-append.csv, geany")
out2+=("^sep(Reset)")
out2+=("$RESET,mb-reset leftpanel")
out2+=("^tag(right_edit)")
out2+=("^sep($RIGHTPANEL)")
out2+=("$EDIT $OWN_COMMANDS ($TOP), geany $HOME/.config/mabox/right-prepend.csv, geany")
out2+=("$EDIT $OWN_COMMANDS ($BOTTOM), geany $HOME/.config/mabox/right-append.csv, geany")
out2+=("$EDIT $OWN_COMMANDS ($TOP), xdg-open $HOME/.config/mabox/right-prepend.csv, geany")
out2+=("$EDIT $OWN_COMMANDS ($BOTTOM), xdg-open $HOME/.config/mabox/right-append.csv, geany")
out2+=("^sep(Reset)")
out2+=("$RESET,mb-reset rightpanel")
out2+=("^tag(exit_edit)")
out2+=("^sep($EXITMENU)")
out2+=("$EDIT $EXITMENU, geany $HOME/.config/mabox/exit.csv, geany")
out2+=("$EDIT $EXITMENU, xdg-open $HOME/.config/mabox/exit.csv, geany")
out2+=("^sep(Reset)")
out2+=("$RESET,mb-reset logout")
@ -382,7 +382,7 @@ ob_file=$HOME/.config/openbox/rc.xml
if [ $jgmenu_theme != obtheme ]; then #INNY NIŻ OB THEME
. $HOME/.config/mabox/jgobthemes/${jgmenu_theme}.colorrc > /dev/null 2>&1 &
out+=("$CHOOSE [<b>$jgmenu_theme</b>],^checkout(motywy)")
out+=("$EDIT_CURRENT: (<b>$jgmenu_theme</b>),geany $HOME/.config/mabox/jgobthemes/$jgmenu_theme.colorrc,geany")
out+=("$EDIT_CURRENT: (<b>$jgmenu_theme</b>),xdg-open $HOME/.config/mabox/jgobthemes/$jgmenu_theme.colorrc,geany")
out+=("$RANDTHEME,mb-setvar jgmenu_theme=$(basename -s .colorrc $(ls ~/.config/mabox/jgobthemes/*.colorrc | shuf -n 1));$me")
out+=("<s>$FOLLOW_OB</s>,mb-setvar jgmenu_theme=obtheme;$me
^sep()")
@ -395,7 +395,7 @@ else
. $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc > /dev/null 2>&1 &
#out+=("#${menu_gradient_pos}\n")
out+=("$CHOOSE [<b>${wm_theme// /_}</b>],^checkout(motywy)")
out+=("$EDIT_CURRENT: (<b>${wm_theme// /_}</b>),geany $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc,geany")
out+=("$EDIT_CURRENT: (<b>${wm_theme// /_}</b>),xdg-open $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc,geany")
out+=("$RANDTHEME,mb-setvar jgmenu_theme=$(basename -s .colorrc $(ls ~/.config/mabox/jgobthemes/*.colorrc | shuf -n 1));$me")
out+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;$me
^sep()")

View File

@ -80,7 +80,7 @@ done
out+=("^sep($EDIT_TITLE)")
if [ -f "$CONFFFILE" ];then
if [ ! "$(readlink $CONFFILE)" -ef "/dev/null" ];then
out+=("$EDIT,geany $CONFFILE")
out+=("$EDIT,xdg-open $CONFFILE")
fi
fi
out+=("$OPENDIR,exo-open --launch FileManager $CONFDIR")

View File

@ -49,7 +49,7 @@ out2+=("<big></big> $TERM,^term(ssh $host)")
out2+=(" $FM,pcmanfm $HOME sftp://$host/")
done
out+=("^sep()")
out+=("$EDIT <i>~/.ssh/config</i>, geany $HOME/.ssh/config")
out+=("$EDIT <i>~/.ssh/config</i>, xdg-open $HOME/.ssh/config")
}
__removable() {

View File

@ -298,7 +298,7 @@ out+=("^sep($TINT2_CONFIGURE)")
getvalues
qactions
out+=("$CONFIGURE <i>$TINT2</i>,tint2conf $TINT")
out+=("$EDIT_TINT2 <i>$TINT2</i>,geany $TINT")
out+=("$EDIT_TINT2 <i>$TINT2</i>,xdg-open $TINT")
fi

View File

@ -85,13 +85,13 @@ out+=("^sep(<i>$SLIDESHOW</i>)")
out+=("$STOPS,killall mbwallpaper;$me")
fi
#out+=("About Wallpaper changer,\"\"\"notify-send.sh -u critical -i mbcc 'Wallpaper Changer - rotate desktop wallpaper every n-seconds' '$help' -o 'Edit configuration file:geany ~/.config/mbwallpaper/mbwallpaper.conf'\"\"\"")
#out+=("About Wallpaper changer,\"\"\"notify-send.sh -u critical -i mbcc 'Wallpaper Changer - rotate desktop wallpaper every n-seconds' '$help' -o 'Edit configuration file:xdg-open ~/.config/mbwallpaper/mbwallpaper.conf'\"\"\"")
out+=("^sep()")
out+=("$WALLDIR: <small>[ <b>$wallpaper_dir</b> ]</small>,geany $CONFIG_FILE")
out+=("$WALLDIR: <small>[ <b>$wallpaper_dir</b> ]</small>,xdg-open $CONFIG_FILE")
out+=("$INTERVAL [ <b>$interval</b> ] <small>($SEC)</small>,^checkout(interval)")
out+=("^sep()")
out+=("$EDITCONF ,geany $CONFIG_FILE")
out+=("$EDITCONF ,xdg-open $CONFIG_FILE")
out+=("$OPENDIR,pcmanfm -n $wallpaper_dir")
out2+=("^tag(interval)")

View File

@ -50,8 +50,8 @@ if [[ $1 = '--edit' ]]; then
[[ ! -f $HOME/.config/picom.conf ]] &&
cp '/etc/xdg/picom.conf' "$HOME/.config/picom.conf"
if [[ -x /usr/bin/geany ]]; then
geany "$HOME/.config/picom.conf" &
if [[ -x /usr/bin/xdg-open ]]; then
xdg-open "$HOME/.config/picom.conf" &
else
terminator --command='nano "$HOME/.config/picom.conf"'
fi

View File

@ -126,7 +126,6 @@ loadPinMenu(){
}
loadEditMenu(){
#menuItem "$DEFAULT_CONKYRC" "geany $CONKYDEFAULT"
if [[ $(pidof conky) ]];then
menuSubmenu "RunningConky" "$RUNNING_CONKY"
menuSeparator "$RUNNING_CONKY"
@ -134,7 +133,7 @@ loadEditMenu(){
[[ -z $session ]] && continue
CPATH=$(echo "$session" | awk '{print $3}')
CONKY=$(echo "$CPATH" | awk -F"/" '{print $(NF-1)"/"$NF }')
menuItem "$CONKY" "geany $CPATH"
menuItem "$CONKY" "xdg-open $CPATH"
done < "$CSESSIONFILE"
menuSubmenuEnd
else

View File

@ -71,7 +71,7 @@ if [[ $1 = '--rcedit' ]];then # "Backup & Edit rc.xml" is chosen in menu
NOW=$(date +"%Y%m%d-%H%M")
RCBKP="$RCPATH.$NOW"
cp "$RCPATH" "$RCBKP"
geany "$RCPATH" # open rc.xml in default editor
xdg-open "$RCPATH" # open rc.xml in default editor
fi

View File

@ -60,7 +60,7 @@ esac
loadTEditmenu(){
menuSeparator
menuItem "$DEFAULT_TINT2RC" "geany $TINT2RC"
menuItem "$DEFAULT_TINT2RC" "xdg-open $TINT2RC"
if [ "$(pidof tint2)" ];then
menuSubmenu "RunningTint2" "$RUNNING_TINT2"
menuSeparator "$RUNNING_TINT2"
@ -72,7 +72,7 @@ loadTEditmenu(){
TINT="$TINT2RC"
TINT2="$DEFAULT_TINT2RC"
fi
menuItem "$TINT2" "geany $TINT"
menuItem "$TINT2" "xdg-open $TINT"
fi
done
menuSubmenuEnd

View File

@ -80,10 +80,10 @@ fi
edit() {
if [[ -f "$HOME/.config/mabox/mbhelper.csv" ]];then
geany "$HOME/.config/mabox/mbhelper.csv"
xdg-open "$HOME/.config/mabox/mbhelper.csv"
else
cp "/usr/share/mabox/lang/${LNGDIR}/.config/mabox/mbhelper.csv" "$HOME/.config/mabox/mbhelper.csv"
geany "$HOME/.config/mabox/mbhelper.csv"
xdg-open "$HOME/.config/mabox/mbhelper.csv"
fi
}