update
parent
94d366992d
commit
70f8e5f6db
146
bin/mb-jgtools
146
bin/mb-jgtools
|
@ -13,14 +13,14 @@ case $jgmenu_theme in
|
||||||
[[ -f $ob_file ]] && wm_theme=$(awk '/<theme>/ {while (getline n) {if (match(n, /<name>/)){l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$ob_file")
|
[[ -f $ob_file ]] && wm_theme=$(awk '/<theme>/ {while (getline n) {if (match(n, /<name>/)){l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$ob_file")
|
||||||
while read -r a b c
|
while read -r a b c
|
||||||
do
|
do
|
||||||
[[ -n "$a" && "$a" != [[:blank:]#]* ]] && export "$a$b$c";echo "$a$b$c"
|
[[ -n "$a" && "$a" != [[:blank:]#]* ]] && export "$a$b$c"
|
||||||
done < $HOME/.config/mabox/jgobthemes/$wm_theme.colorrc
|
done < $HOME/.config/mabox/jgobthemes/$wm_theme.colorrc
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
export color_norm_fg="#FFFFFF "
|
export color_norm_fg="#FFFFFF "
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo "BG$color_menu_bg"
|
#echo "BG$color_menu_bg"
|
||||||
|
|
||||||
|
|
||||||
gtkbookmarks() {
|
gtkbookmarks() {
|
||||||
|
@ -99,7 +99,7 @@ color_scroll_ind = ${COLOR_SCROLL_IND:-#504e65 100}
|
||||||
sep_markup = weight="bold" foreground="${color_title_fg% *}"
|
sep_markup = weight="bold" foreground="${color_title_fg% *}"
|
||||||
font = ${font:-Noto Sans Medium 9}
|
font = ${font:-Noto Sans Medium 9}
|
||||||
icon_size = ${ICON_SIZE:-0}
|
icon_size = ${ICON_SIZE:-0}
|
||||||
icon_theme = Numix-Square
|
icon_theme = ${jgmenu_icon_theme:-Numix-Square}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
unset font
|
unset font
|
||||||
|
@ -165,7 +165,6 @@ Centrum Sterowania Mabox,mcc,distributor-logo-mabox
|
||||||
System i sprzęt,^root(system),audiocard
|
System i sprzęt,^root(system),audiocard
|
||||||
Wygląd i zachowanie,^root(wyglad),preferences-color
|
Wygląd i zachowanie,^root(wyglad),preferences-color
|
||||||
|
|
||||||
|
|
||||||
^sep(Pomoc)
|
^sep(Pomoc)
|
||||||
Skróty klawiszowe,mb-kb --gui &>/dev/null,key_bindings
|
Skróty klawiszowe,mb-kb --gui &>/dev/null,key_bindings
|
||||||
Zasoby online,^root(weblinks),web-browser
|
Zasoby online,^root(weblinks),web-browser
|
||||||
|
@ -174,13 +173,9 @@ Zasoby online,^root(weblinks),web-browser
|
||||||
Zrzut ekranu,mb-jgtools screenshot,emblem-photos
|
Zrzut ekranu,mb-jgtools screenshot,emblem-photos
|
||||||
|
|
||||||
. $HOME/.config/mabox/right-append.csv
|
. $HOME/.config/mabox/right-append.csv
|
||||||
|
|
||||||
. $HOME/.config/mabox/exit.csv
|
. $HOME/.config/mabox/exit.csv
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
^tag(system)
|
^tag(system)
|
||||||
|
|
||||||
^sep(System i sprzęt)
|
^sep(System i sprzęt)
|
||||||
Język i formaty,manjaro-settings-manager -m msm_locale,
|
Język i formaty,manjaro-settings-manager -m msm_locale,
|
||||||
Pakiety językowe,manjaro-settings-manager -m msm_language_packages,
|
Pakiety językowe,manjaro-settings-manager -m msm_language_packages,
|
||||||
|
@ -201,19 +196,19 @@ Najbliższe (wg GEOIP),^term(sudo pacman-mirrors -i --geoip)
|
||||||
|
|
||||||
^tag(wyglad)
|
^tag(wyglad)
|
||||||
^sep(Wygląd i zachowanie)
|
^sep(Wygląd i zachowanie)
|
||||||
Wystrój i ikony,lxappearance,
|
Wystrój i ikony,lxappearance,preferences-desktop-theme
|
||||||
Wybór tapety,nitrogen,
|
Wybór tapety,nitrogen,nitrogen
|
||||||
Menadżer konfiguracji OpenBox,obconf,
|
Menadżer konfiguracji OpenBox,obconf,obconf
|
||||||
Konfiguracja powiadomień,xfce4-notifyd-config
|
Konfiguracja powiadomień,xfce4-notifyd-config,xfce4-notifyd
|
||||||
Preferowane aplikacje,exo-preferred-applications
|
Preferowane aplikacje,exo-preferred-applications,preferences-desktop-default-applications
|
||||||
#Ustawienia Menedżera logowania,pkexec lightdm-settings,
|
Ustawienia Menedżera logowania,lightdm-gtk-greeter-settings-pkexec,lightdm-gtk-greeter-settings
|
||||||
Ustawienia zasilania,xfce4-power-manager-settings
|
Ustawienia zasilania,xfce4-power-manager-settings,xfce4-power-manager-settings
|
||||||
^sep(Elementy pulpitu Mabox)
|
^sep(Elementy pulpitu Mabox)
|
||||||
Conky,^pipe(jgmenu_run ob --cmd=mabox-conky-pipemenu)
|
Conky,^pipe(jgmenu_run ob --cmd=mabox-conky-pipemenu),desktop-effects
|
||||||
Panele Tint2,^pipe(jgmenu_run ob --cmd=mabox-tint2-pipemenu)
|
Panele Tint2,^pipe(jgmenu_run ob --cmd=mabox-tint2-pipemenu),tint2conf
|
||||||
Kompozytor,^pipe(jgmenu_run ob --cmd='mabox-compositor' --tag='Kompo'),compton
|
Kompozytor,^pipe(jgmenu_run ob --cmd='mabox-compositor' --tag='Kompo'),compton
|
||||||
^sep(Predefiniowane konfiguracje pulpitu)
|
^sep(Predefiniowane konfiguracje pulpitu)
|
||||||
Menadżer schematów,mb-obthemes
|
Menadżer schematów,mb-obthemes,preferences-desktop-theme
|
||||||
^sep()
|
^sep()
|
||||||
wróć,^back()
|
wróć,^back()
|
||||||
|
|
||||||
|
@ -221,9 +216,9 @@ Menadżer schematów,mb-obthemes
|
||||||
^sep(Zasoby online)
|
^sep(Zasoby online)
|
||||||
^sep(Mabox)
|
^sep(Mabox)
|
||||||
Mabox - pierwsze kroki,exo-open --launch WebBrowser https://pl.maboxlinux.org/przewodnik-uzytkownika/,distributor-logo-mabox
|
Mabox - pierwsze kroki,exo-open --launch WebBrowser https://pl.maboxlinux.org/przewodnik-uzytkownika/,distributor-logo-mabox
|
||||||
Forum Maboxa,exo-open --launch WebBrowser https://forum.maboxlinux.org/,distributor-logo-mabox
|
Forum Mabox,exo-open --launch WebBrowser https://forum.maboxlinux.org/,distributor-logo-mabox
|
||||||
^sep(Manjaro)
|
^sep(Manjaro)
|
||||||
Strona domowa,exo-open --launch WebBrowser https://manjaro.org,distributor-logo-manjaro
|
Home site,exo-open --launch WebBrowser https://manjaro.org,distributor-logo-manjaro
|
||||||
Wiki,exo-open --launch WebBrowser https://wiki.manjaro.org,distributor-logo-manjaro
|
Wiki,exo-open --launch WebBrowser https://wiki.manjaro.org,distributor-logo-manjaro
|
||||||
Forum,exo-open --launch WebBrowser https://forum.manjaro.org,distributor-logo-manjaro
|
Forum,exo-open --launch WebBrowser https://forum.manjaro.org,distributor-logo-manjaro
|
||||||
Manjaro PL,exo-open --launch WebBrowser https://manjaro.pl,distributor-logo-manjaro
|
Manjaro PL,exo-open --launch WebBrowser https://manjaro.pl,distributor-logo-manjaro
|
||||||
|
@ -231,15 +226,14 @@ Forum Manjaro PL,exo-open --launch WebBrowser https://forum.manjaro.pl,distribut
|
||||||
^sep(ArchLinux)
|
^sep(ArchLinux)
|
||||||
ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/,distributor-logo-archlinux
|
ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/,distributor-logo-archlinux
|
||||||
^sep(Openbox)
|
^sep(Openbox)
|
||||||
Strona domowa OpenBox,exo-open --launch WebBrowser http://openbox.org/wiki/Help:Contents
|
OpenBox,exo-open --launch WebBrowser http://openbox.org/wiki/Help:Contents,openbox
|
||||||
OpenBox na ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Openbox
|
OpenBox ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Openbox,openbox
|
||||||
OpenBox na ArchWiki PL,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Openbox_(Polski)
|
|
||||||
^sep(Dokumentacja Tint2)
|
^sep(Dokumentacja Tint2)
|
||||||
Tint2 na ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Tint2
|
Tint2 ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Tint2,tint2
|
||||||
^sep(Dokumentacja Conky)
|
^sep(Dokumentacja Conky)
|
||||||
Dokumentacja Conky,exo-open --launch WebBrowser http://conky.sourceforge.net/documentation.html
|
Conky Doc,exo-open --launch WebBrowser http://conky.sourceforge.net/documentation.html,conky
|
||||||
Conky na Github,exo-open --launch WebBrowser https://github.com/brndnmtthws/conky/wiki
|
Conky Github,exo-open --launch WebBrowser https://github.com/brndnmtthws/conky/wiki,conky
|
||||||
Conky na ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Conky
|
Conky ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Conky,conky
|
||||||
^sep()
|
^sep()
|
||||||
wróć,^back()
|
wróć,^back()
|
||||||
|
|
||||||
|
@ -253,6 +247,19 @@ CONFIG_FILE=$(mktemp)
|
||||||
MENU_ITEMS=$(mktemp)
|
MENU_ITEMS=$(mktemp)
|
||||||
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
||||||
|
|
||||||
|
case $LANG in
|
||||||
|
pl*)
|
||||||
|
QUICK_NAV="Szybka nawigacja"
|
||||||
|
HOME_DIR="Katalog Domowy"
|
||||||
|
ROOTDIR="Katalog główny"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
QUICK_NAV="Quick Navigation"
|
||||||
|
HOME_DIR="Home Directory"
|
||||||
|
ROOTDIR="Main Directory"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
MENU_HEIGHT_MIN=$(xdpyinfo | awk '/^ +dimensions/ {print $2}' | cut -d 'x' -f2)
|
MENU_HEIGHT_MIN=$(xdpyinfo | awk '/^ +dimensions/ {print $2}' | cut -d 'x' -f2)
|
||||||
JGWIDTH=250
|
JGWIDTH=250
|
||||||
ITEM_HEIGHT=20
|
ITEM_HEIGHT=20
|
||||||
|
@ -268,9 +275,9 @@ cat <<EOF > ${MENU_ITEMS}
|
||||||
|
|
||||||
. $HOME/.config/mabox/places-prepend.csv
|
. $HOME/.config/mabox/places-prepend.csv
|
||||||
<big></big> Wyszukiwarka plików, fsearch
|
<big></big> Wyszukiwarka plików, fsearch
|
||||||
^sep(Szybka nawigacja)
|
^sep($QUICK_NAV)
|
||||||
Katalog główny,^pipe(jgbrowser /)
|
$ROOTDIR,^pipe(jgbrowser /)
|
||||||
Katalog domowy,^pipe(jgbrowser)
|
$HOME_DIR,^pipe(jgbrowser)
|
||||||
|
|
||||||
$(basename $(xdg-user-dir DESKTOP)),^pipe(jgbrowser $(xdg-user-dir DESKTOP))
|
$(basename $(xdg-user-dir DESKTOP)),^pipe(jgbrowser $(xdg-user-dir DESKTOP))
|
||||||
$(basename $(xdg-user-dir DOWNLOAD)),^pipe(jgbrowser $(xdg-user-dir DOWNLOAD))
|
$(basename $(xdg-user-dir DOWNLOAD)),^pipe(jgbrowser $(xdg-user-dir DOWNLOAD))
|
||||||
|
@ -280,7 +287,6 @@ cat <<EOF > ${MENU_ITEMS}
|
||||||
$(basename $(xdg-user-dir MUSIC)),^pipe(jgbrowser $(xdg-user-dir MUSIC))
|
$(basename $(xdg-user-dir MUSIC)),^pipe(jgbrowser $(xdg-user-dir MUSIC))
|
||||||
$(basename $(xdg-user-dir PICTURES)),^pipe(jgbrowser $(xdg-user-dir PICTURES))
|
$(basename $(xdg-user-dir PICTURES)),^pipe(jgbrowser $(xdg-user-dir PICTURES))
|
||||||
$(basename $(xdg-user-dir VIDEOS)),^pipe(jgbrowser $(xdg-user-dir VIDEOS))
|
$(basename $(xdg-user-dir VIDEOS)),^pipe(jgbrowser $(xdg-user-dir VIDEOS))
|
||||||
#^sep(Zakładki)
|
|
||||||
|
|
||||||
$(gtkbookmarks)
|
$(gtkbookmarks)
|
||||||
. $HOME/.config/mabox/vboxes.csv
|
. $HOME/.config/mabox/vboxes.csv
|
||||||
|
@ -303,7 +309,7 @@ MENU_PADDING_TOP=213
|
||||||
TABS="250"
|
TABS="250"
|
||||||
ITEM_HEIGHT="30"
|
ITEM_HEIGHT="30"
|
||||||
ICON_SIZE="24"
|
ICON_SIZE="24"
|
||||||
FONT="Noto Sans Medium 12"
|
font="Noto Sans Medium 11"
|
||||||
MENU_RADIUS=${RADIUS:-0}
|
MENU_RADIUS=${RADIUS:-0}
|
||||||
|
|
||||||
mkconfigfile
|
mkconfigfile
|
||||||
|
@ -329,14 +335,40 @@ CONFIG_FILE=$(mktemp)
|
||||||
MENU_ITEMS=$(mktemp)
|
MENU_ITEMS=$(mktemp)
|
||||||
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
||||||
|
|
||||||
|
case $LANG in
|
||||||
|
pl*)
|
||||||
|
SCRNSHOTS="Zrzuty ekranu"
|
||||||
|
FULLSCR="Pełny ekran"
|
||||||
|
ACTIVE_WIN="Aktywne okno"
|
||||||
|
ACTIVE_WIN_NO_DECOR="Aktywne okno (bez dekoracji)"
|
||||||
|
SELECTED="Zaznaczony obszar lub okno"
|
||||||
|
NOW="Teraz"
|
||||||
|
SEC5="Za 5 sekund"
|
||||||
|
SEC10="Za 10 sekund"
|
||||||
|
BACK="wróć"
|
||||||
|
CANCEL="Anuluj"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
SCRNSHOTS="Screenshot tool"
|
||||||
|
FULLSCR="Full screen"
|
||||||
|
ACTIVE_WIN="Active window"
|
||||||
|
ACTIVE_WIN_NO_DECOR="Active window (no decorations)"
|
||||||
|
SELECTED="Selected Area or Window"
|
||||||
|
NOW="Now"
|
||||||
|
SEC5="In 5 seconds"
|
||||||
|
SEC10="In 10 seconds"
|
||||||
|
BACK="back"
|
||||||
|
CANCEL="Cancel"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
#Lokalne zmienne;
|
#Lokalne zmienne;
|
||||||
JGWIDTH="340"
|
JGWIDTH="340"
|
||||||
MENU_PADDING_TOP=213
|
MENU_PADDING_TOP=213
|
||||||
MENU_HALIGN="center"
|
MENU_HALIGN="center"
|
||||||
MENU_VALIGN="center"
|
MENU_VALIGN="center"
|
||||||
TABS="280"
|
TABS="280"
|
||||||
ITEM_HEIGHT="25"
|
ITEM_HEIGHT=25
|
||||||
FONT="Noto Sans Medium 10"
|
font='Noto Sans Medium 10'
|
||||||
MENU_RADIUS=${RADIUS:-0}
|
MENU_RADIUS=${RADIUS:-0}
|
||||||
|
|
||||||
IMG="$(xdg-user-dir PICTURES)/Mabox_%Y-%m-%d-%H:%M:%s.png"
|
IMG="$(xdg-user-dir PICTURES)/Mabox_%Y-%m-%d-%H:%M:%s.png"
|
||||||
|
@ -348,35 +380,35 @@ mkconfigfile
|
||||||
|
|
||||||
cat <<EOF > ${MENU_ITEMS}
|
cat <<EOF > ${MENU_ITEMS}
|
||||||
@icon,,0,0,340,100,4,left,top,,,$THUMB
|
@icon,,0,0,340,100,4,left,top,,,$THUMB
|
||||||
^sep(Zrzuty ekranu)
|
^sep($SCRNSHOTS)
|
||||||
Pełny ekran,^root(full)
|
$FULLSCR,^root(full)
|
||||||
Aktywne okno,^root(window)
|
$ACTIVE_WIN,^root(window)
|
||||||
Aktywne okno (bez dekoracji),^root(borderless)
|
$ACTIVE_WIN_NO_DECOR,^root(borderless)
|
||||||
Zaznaczony obszar lub okno,scrot -s $IMG -e $VIEW
|
$SELECTED,scrot -s $IMG -e $VIEW
|
||||||
Multimonitor, scrot -m $IMG -e $VIEW
|
# Multimonitor, scrot -m $IMG -e $VIEW
|
||||||
^sep()
|
^sep()
|
||||||
Anuluj <small>esc</small>,exit 1
|
$CANCEL <small>esc</small>,exit 1
|
||||||
^tag(full)
|
^tag(full)
|
||||||
^sep(Pełny ekran )
|
^sep($FULLSCR )
|
||||||
Teraz,scrot $IMG -e $VIEW
|
$NOW,scrot $IMG -e $VIEW
|
||||||
Za 5 sekund,scrot -d 5 $IMG -e $VIEW
|
$SEC5,scrot -d 5 $IMG -e $VIEW
|
||||||
Za 10 sekund,scrot -d 10 $IMG -e $VIEW
|
$SEC10,scrot -d 10 $IMG -e $VIEW
|
||||||
^sep()
|
^sep()
|
||||||
wróć,^back()
|
$BACK,^back()
|
||||||
^tag(window)
|
^tag(window)
|
||||||
^sep(Aktywne Okno )
|
^sep($ACTIVE_WIN )
|
||||||
Teraz,scrot -d 1 -u -b $IMG -e $VIEW
|
$NOW,scrot -d 1 -u -b $IMG -e $VIEW
|
||||||
Za 5 sekund,scrot -d 5 -u -b $IMG -e $VIEW
|
$SEC5,scrot -d 5 -u -b $IMG -e $VIEW
|
||||||
Za 10 sekund,scrot -d 10 -u -b $IMG -e $VIEW
|
$SEC10,scrot -d 10 -u -b $IMG -e $VIEW
|
||||||
^sep()
|
^sep()
|
||||||
wróć,^back()
|
$BACK,^back()
|
||||||
^tag(borderless)
|
^tag(borderless)
|
||||||
^sep(Aktywne Okno - bez dekoracji)
|
^sep($ACTIVE_WIN_NO_DECOR)
|
||||||
Teraz,scrot -d 1 -u $IMG -e $VIEW
|
$NOW,scrot -d 1 -u $IMG -e $VIEW
|
||||||
Za 5 sekund,scrot -d 5 -u $IMG -e $VIEW
|
$SEC5,scrot -d 5 -u $IMG -e $VIEW
|
||||||
Za 10 sekund,scrot -d 10 -u $IMG -e $VIEW
|
$SEC10,scrot -d 10 -u $IMG -e $VIEW
|
||||||
^sep()
|
^sep()
|
||||||
wróć,^back()
|
$BACK,^back()
|
||||||
EOF
|
EOF
|
||||||
jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null
|
jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null
|
||||||
}
|
}
|
||||||
|
@ -395,7 +427,7 @@ MENU_HEIGHT_MIN="210"
|
||||||
#MENU_HEIGHT_MAX="210"
|
#MENU_HEIGHT_MAX="210"
|
||||||
TABS="280"
|
TABS="280"
|
||||||
ITEM_HEIGHT="50"
|
ITEM_HEIGHT="50"
|
||||||
FONT="Noto Sans Medium 12"
|
font="Noto Sans Medium 10"
|
||||||
COLUMNS="1"
|
COLUMNS="1"
|
||||||
|
|
||||||
mkconfigfile
|
mkconfigfile
|
||||||
|
|
Loading…
Reference in New Issue