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")
|
||||
while read -r a b c
|
||||
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
|
||||
;;
|
||||
*)
|
||||
export color_norm_fg="#FFFFFF "
|
||||
;;
|
||||
esac
|
||||
echo "BG$color_menu_bg"
|
||||
#echo "BG$color_menu_bg"
|
||||
|
||||
|
||||
gtkbookmarks() {
|
||||
|
@ -99,7 +99,7 @@ color_scroll_ind = ${COLOR_SCROLL_IND:-#504e65 100}
|
|||
sep_markup = weight="bold" foreground="${color_title_fg% *}"
|
||||
font = ${font:-Noto Sans Medium 9}
|
||||
icon_size = ${ICON_SIZE:-0}
|
||||
icon_theme = Numix-Square
|
||||
icon_theme = ${jgmenu_icon_theme:-Numix-Square}
|
||||
EOF
|
||||
|
||||
unset font
|
||||
|
@ -165,7 +165,6 @@ Centrum Sterowania Mabox,mcc,distributor-logo-mabox
|
|||
System i sprzęt,^root(system),audiocard
|
||||
Wygląd i zachowanie,^root(wyglad),preferences-color
|
||||
|
||||
|
||||
^sep(Pomoc)
|
||||
Skróty klawiszowe,mb-kb --gui &>/dev/null,key_bindings
|
||||
Zasoby online,^root(weblinks),web-browser
|
||||
|
@ -174,13 +173,9 @@ Zasoby online,^root(weblinks),web-browser
|
|||
Zrzut ekranu,mb-jgtools screenshot,emblem-photos
|
||||
|
||||
. $HOME/.config/mabox/right-append.csv
|
||||
|
||||
. $HOME/.config/mabox/exit.csv
|
||||
|
||||
|
||||
|
||||
^tag(system)
|
||||
|
||||
^sep(System i sprzęt)
|
||||
Język i formaty,manjaro-settings-manager -m msm_locale,
|
||||
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)
|
||||
^sep(Wygląd i zachowanie)
|
||||
Wystrój i ikony,lxappearance,
|
||||
Wybór tapety,nitrogen,
|
||||
Menadżer konfiguracji OpenBox,obconf,
|
||||
Konfiguracja powiadomień,xfce4-notifyd-config
|
||||
Preferowane aplikacje,exo-preferred-applications
|
||||
#Ustawienia Menedżera logowania,pkexec lightdm-settings,
|
||||
Ustawienia zasilania,xfce4-power-manager-settings
|
||||
Wystrój i ikony,lxappearance,preferences-desktop-theme
|
||||
Wybór tapety,nitrogen,nitrogen
|
||||
Menadżer konfiguracji OpenBox,obconf,obconf
|
||||
Konfiguracja powiadomień,xfce4-notifyd-config,xfce4-notifyd
|
||||
Preferowane aplikacje,exo-preferred-applications,preferences-desktop-default-applications
|
||||
Ustawienia Menedżera logowania,lightdm-gtk-greeter-settings-pkexec,lightdm-gtk-greeter-settings
|
||||
Ustawienia zasilania,xfce4-power-manager-settings,xfce4-power-manager-settings
|
||||
^sep(Elementy pulpitu Mabox)
|
||||
Conky,^pipe(jgmenu_run ob --cmd=mabox-conky-pipemenu)
|
||||
Panele Tint2,^pipe(jgmenu_run ob --cmd=mabox-tint2-pipemenu)
|
||||
Conky,^pipe(jgmenu_run ob --cmd=mabox-conky-pipemenu),desktop-effects
|
||||
Panele Tint2,^pipe(jgmenu_run ob --cmd=mabox-tint2-pipemenu),tint2conf
|
||||
Kompozytor,^pipe(jgmenu_run ob --cmd='mabox-compositor' --tag='Kompo'),compton
|
||||
^sep(Predefiniowane konfiguracje pulpitu)
|
||||
Menadżer schematów,mb-obthemes
|
||||
Menadżer schematów,mb-obthemes,preferences-desktop-theme
|
||||
^sep()
|
||||
wróć,^back()
|
||||
|
||||
|
@ -221,9 +216,9 @@ Menadżer schematów,mb-obthemes
|
|||
^sep(Zasoby online)
|
||||
^sep(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)
|
||||
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
|
||||
Forum,exo-open --launch WebBrowser https://forum.manjaro.org,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)
|
||||
ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/,distributor-logo-archlinux
|
||||
^sep(Openbox)
|
||||
Strona domowa OpenBox,exo-open --launch WebBrowser http://openbox.org/wiki/Help:Contents
|
||||
OpenBox na ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Openbox
|
||||
OpenBox na ArchWiki PL,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Openbox_(Polski)
|
||||
OpenBox,exo-open --launch WebBrowser http://openbox.org/wiki/Help:Contents,openbox
|
||||
OpenBox ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Openbox,openbox
|
||||
^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)
|
||||
Dokumentacja Conky,exo-open --launch WebBrowser http://conky.sourceforge.net/documentation.html
|
||||
Conky na Github,exo-open --launch WebBrowser https://github.com/brndnmtthws/conky/wiki
|
||||
Conky na ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Conky
|
||||
Conky Doc,exo-open --launch WebBrowser http://conky.sourceforge.net/documentation.html,conky
|
||||
Conky Github,exo-open --launch WebBrowser https://github.com/brndnmtthws/conky/wiki,conky
|
||||
Conky ArchWiki,exo-open --launch WebBrowser https://wiki.archlinux.org/index.php/Conky,conky
|
||||
^sep()
|
||||
wróć,^back()
|
||||
|
||||
|
@ -253,6 +247,19 @@ CONFIG_FILE=$(mktemp)
|
|||
MENU_ITEMS=$(mktemp)
|
||||
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)
|
||||
JGWIDTH=250
|
||||
ITEM_HEIGHT=20
|
||||
|
@ -268,9 +275,9 @@ cat <<EOF > ${MENU_ITEMS}
|
|||
|
||||
. $HOME/.config/mabox/places-prepend.csv
|
||||
<big></big> Wyszukiwarka plików, fsearch
|
||||
^sep(Szybka nawigacja)
|
||||
Katalog główny,^pipe(jgbrowser /)
|
||||
Katalog domowy,^pipe(jgbrowser)
|
||||
^sep($QUICK_NAV)
|
||||
$ROOTDIR,^pipe(jgbrowser /)
|
||||
$HOME_DIR,^pipe(jgbrowser)
|
||||
|
||||
$(basename $(xdg-user-dir DESKTOP)),^pipe(jgbrowser $(xdg-user-dir DESKTOP))
|
||||
$(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 PICTURES)),^pipe(jgbrowser $(xdg-user-dir PICTURES))
|
||||
$(basename $(xdg-user-dir VIDEOS)),^pipe(jgbrowser $(xdg-user-dir VIDEOS))
|
||||
#^sep(Zakładki)
|
||||
|
||||
$(gtkbookmarks)
|
||||
. $HOME/.config/mabox/vboxes.csv
|
||||
|
@ -303,7 +309,7 @@ MENU_PADDING_TOP=213
|
|||
TABS="250"
|
||||
ITEM_HEIGHT="30"
|
||||
ICON_SIZE="24"
|
||||
FONT="Noto Sans Medium 12"
|
||||
font="Noto Sans Medium 11"
|
||||
MENU_RADIUS=${RADIUS:-0}
|
||||
|
||||
mkconfigfile
|
||||
|
@ -329,14 +335,40 @@ CONFIG_FILE=$(mktemp)
|
|||
MENU_ITEMS=$(mktemp)
|
||||
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;
|
||||
JGWIDTH="340"
|
||||
MENU_PADDING_TOP=213
|
||||
MENU_HALIGN="center"
|
||||
MENU_VALIGN="center"
|
||||
TABS="280"
|
||||
ITEM_HEIGHT="25"
|
||||
FONT="Noto Sans Medium 10"
|
||||
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"
|
||||
|
@ -348,35 +380,35 @@ mkconfigfile
|
|||
|
||||
cat <<EOF > ${MENU_ITEMS}
|
||||
@icon,,0,0,340,100,4,left,top,,,$THUMB
|
||||
^sep(Zrzuty ekranu)
|
||||
Pełny ekran,^root(full)
|
||||
Aktywne okno,^root(window)
|
||||
Aktywne okno (bez dekoracji),^root(borderless)
|
||||
Zaznaczony obszar lub okno,scrot -s $IMG -e $VIEW
|
||||
Multimonitor, scrot -m $IMG -e $VIEW
|
||||
^sep($SCRNSHOTS)
|
||||
$FULLSCR,^root(full)
|
||||
$ACTIVE_WIN,^root(window)
|
||||
$ACTIVE_WIN_NO_DECOR,^root(borderless)
|
||||
$SELECTED,scrot -s $IMG -e $VIEW
|
||||
# Multimonitor, scrot -m $IMG -e $VIEW
|
||||
^sep()
|
||||
Anuluj <small>esc</small>,exit 1
|
||||
$CANCEL <small>esc</small>,exit 1
|
||||
^tag(full)
|
||||
^sep(Pełny ekran )
|
||||
Teraz,scrot $IMG -e $VIEW
|
||||
Za 5 sekund,scrot -d 5 $IMG -e $VIEW
|
||||
Za 10 sekund,scrot -d 10 $IMG -e $VIEW
|
||||
^sep($FULLSCR )
|
||||
$NOW,scrot $IMG -e $VIEW
|
||||
$SEC5,scrot -d 5 $IMG -e $VIEW
|
||||
$SEC10,scrot -d 10 $IMG -e $VIEW
|
||||
^sep()
|
||||
wróć,^back()
|
||||
$BACK,^back()
|
||||
^tag(window)
|
||||
^sep(Aktywne Okno )
|
||||
Teraz,scrot -d 1 -u -b $IMG -e $VIEW
|
||||
Za 5 sekund,scrot -d 5 -u -b $IMG -e $VIEW
|
||||
Za 10 sekund,scrot -d 10 -u -b $IMG -e $VIEW
|
||||
^sep($ACTIVE_WIN )
|
||||
$NOW,scrot -d 1 -u -b $IMG -e $VIEW
|
||||
$SEC5,scrot -d 5 -u -b $IMG -e $VIEW
|
||||
$SEC10,scrot -d 10 -u -b $IMG -e $VIEW
|
||||
^sep()
|
||||
wróć,^back()
|
||||
$BACK,^back()
|
||||
^tag(borderless)
|
||||
^sep(Aktywne Okno - bez dekoracji)
|
||||
Teraz,scrot -d 1 -u $IMG -e $VIEW
|
||||
Za 5 sekund,scrot -d 5 -u $IMG -e $VIEW
|
||||
Za 10 sekund,scrot -d 10 -u $IMG -e $VIEW
|
||||
^sep($ACTIVE_WIN_NO_DECOR)
|
||||
$NOW,scrot -d 1 -u $IMG -e $VIEW
|
||||
$SEC5,scrot -d 5 -u $IMG -e $VIEW
|
||||
$SEC10,scrot -d 10 -u $IMG -e $VIEW
|
||||
^sep()
|
||||
wróć,^back()
|
||||
$BACK,^back()
|
||||
EOF
|
||||
jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null
|
||||
}
|
||||
|
@ -395,7 +427,7 @@ MENU_HEIGHT_MIN="210"
|
|||
#MENU_HEIGHT_MAX="210"
|
||||
TABS="280"
|
||||
ITEM_HEIGHT="50"
|
||||
FONT="Noto Sans Medium 12"
|
||||
font="Noto Sans Medium 10"
|
||||
COLUMNS="1"
|
||||
|
||||
mkconfigfile
|
||||
|
|
Loading…
Reference in New Issue