master
Daniel Napora 2020-02-27 01:05:17 +01:00
parent 8668b41624
commit 254f626f23
1 changed files with 8 additions and 4 deletions

View File

@ -21,7 +21,6 @@ case $jgmenu_theme in
export color_norm_fg="#FFFFFF "
;;
esac
#echo "BG$color_menu_bg"
gtkbookmarks() {
@ -451,6 +450,7 @@ case $LANG in
SEC5="Za 5 sekund"
SEC10="Za 10 sekund"
BACK="wróć"
OPEN_SCR_DIR="Otwórz katalog ze zrzutami ekranu"
CANCEL="Anuluj"
;;
*)
@ -463,10 +463,10 @@ case $LANG in
SEC5="In 5 seconds"
SEC10="In 10 seconds"
BACK="back"
OPEN_SCR_DIR="Open screenshot directory"
CANCEL="Cancel"
;;
esac
#Lokalne zmienne;
JGWIDTH="340"
MENU_PADDING_TOP=213
MENU_HALIGN="center"
@ -476,7 +476,9 @@ ITEM_HEIGHT=25
font='Noto Sans Medium 10'
MENU_RADIUS=${RADIUS:-0}
IMG="$(xdg-user-dir PICTURES)/Mabox_%Y-%m-%d-%H:%M:%s.png"
[ -d $(xdg-user-dir PICTURES)/screenshots ] || mkdir -p $(xdg-user-dir PICTURES)/screenshots
IMG="$(xdg-user-dir PICTURES)/screenshots/Mabox_%Y-%m-%d-%H:%M:%s.png"
VIEW="'viewnior $IMG'"
THUMB="$(DISPLAY=:0 scrot -t 340x213 -o /tmp/jgscrot.png -e 'echo $m')"
@ -491,7 +493,9 @@ cat <<EOF > ${MENU_ITEMS}
 $ACTIVE_WIN_NO_DECOR,^root(borderless)
 $SELECTED,scrot -s $IMG -e $VIEW
#  Multimonitor, scrot -m $IMG -e $VIEW
^sep()
^sep()
 $OPEN_SCR_DIR,xdg-open $(xdg-user-dir PICTURES)/screenshots
^sep()
 $CANCEL <small>esc</small>,exit 1
^tag(full)
^sep($FULLSCR )