screenshot tool and logout improved
This commit is contained in:
parent
6b6166bfbb
commit
431e9d3f53
@ -157,7 +157,7 @@ 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 Menedżera logowania,pkexec lightdm-settings,
|
||||
Ustawienia zasilania,xfce4-power-manager-settings
|
||||
^sep(Elementy pulpitu Mabox)
|
||||
Conky,^pipe(jgmenu_run ob --cmd=mabox-conky-pipemenu)
|
||||
@ -252,23 +252,29 @@ trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
||||
JGWIDTH="340"
|
||||
MENU_HALIGN="center"
|
||||
MENU_VALIGN="center"
|
||||
MENU_PADDING_TOP=213
|
||||
TABS="280"
|
||||
ITEM_HEIGHT="40"
|
||||
FONT="Noto Sans Medium 12"
|
||||
MENU_RADIUS=20
|
||||
ITEM_HEIGHT="30"
|
||||
FONT="Noto Sans Medium 11"
|
||||
MENU_RADIUS=10
|
||||
THUMB="$(DISPLAY=:0 scrot -t 340x213 -0 /tmp/mblogout.png -e 'echo $m')"
|
||||
|
||||
mkconfigfile
|
||||
|
||||
cat <<EOF > ${MENU_ITEMS}
|
||||
@icon,,0,0,340,100,4,left,top,,,$THUMB
|
||||
@icon,,10,20,48,48,4,left,top,,,/usr/share/icons/hicolor/48x48/apps/mbcc.png
|
||||
@text,,70,10,220,20,4,left,top,#EEEEEE,#111111,$OSNAME $OSVERSION <sup> $OSCODE</sup>
|
||||
@text,,70,30,240,20,4,left,top,#666666,#444444,<small>Jądro: $KERNEL $HOSTTYPE</small>
|
||||
@text,,70,50,200,20,4,left,top,#666666,#444444,<small>$USER@$HOSTNAME</small>
|
||||
@text,,120,150,220,20,4,left,top,#EEEEEE,#111111,$OSNAME $OSVERSION <sup> $OSCODE</sup>
|
||||
@text,,120,170,240,20,4,left,top,#660000,#444444,<small>Jądro: $KERNEL $HOSTTYPE</small>
|
||||
@text,,120,190,200,20,4,left,top,#DDDDDD,#DDDDDD,<small>$USER@$HOSTNAME</small>
|
||||
^sep(Wylogować?)
|
||||
Wyloguj,openbox --exit
|
||||
Uśpij,systemctl suspend
|
||||
Hibernuj,systemctl hibernate
|
||||
Uruchom ponownie,systemctl reboot
|
||||
Wyłącz,systemctl poweroff
|
||||
Zablokuj ekran, betterlockscreen -l
|
||||
^sep()
|
||||
Anuluj <small>esc</small>,exit 1
|
||||
EOF
|
||||
jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null
|
||||
@ -281,7 +287,7 @@ trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
||||
|
||||
#Lokalne zmienne;
|
||||
JGWIDTH="340"
|
||||
MENU_PADDING_TOP=10
|
||||
MENU_PADDING_TOP=213
|
||||
MENU_HALIGN="center"
|
||||
MENU_VALIGN="center"
|
||||
TABS="280"
|
||||
@ -292,10 +298,13 @@ MENU_RADIUS=10
|
||||
IMG="$(xdg-user-dir PICTURES)/Mabox_%Y-%m-%d-%H:%M:%s.png"
|
||||
VIEW="'viewnior $IMG'"
|
||||
|
||||
THUMB="$(DISPLAY=:0 scrot -t 340x213 -o /tmp/jgscrot.png -e 'echo $m')"
|
||||
|
||||
mkconfigfile
|
||||
|
||||
cat <<EOF > ${MENU_ITEMS}
|
||||
^sep(Zrzut ekranu)
|
||||
@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)
|
||||
|
Loading…
Reference in New Issue
Block a user