upload
This commit is contained in:
35
bin/run_wallpaperslideshow
Executable file
35
bin/run_wallpaperslideshow
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
case $LANG in
|
||||
pl*)
|
||||
TITLE="Tapetowy pokaz slajdów"
|
||||
TEXT="Uruchomiony został tapetowy pokaz slajdów.\nAby zakończyć kliknij ikonę w zasobniku systemowym."
|
||||
CLICK="Kliknij aby zatrzymać tapetowy pokaz slajdów"
|
||||
;;
|
||||
*)
|
||||
TITLE="Wallpaper Slideshow"
|
||||
TEXT="Wallpaper Slideshow started!\nTo quit just click icon in systemtray."
|
||||
CLICK="Click to stop Wallpaper slideshow"
|
||||
;;
|
||||
esac
|
||||
|
||||
COLORIZER_CONF="$HOME/.config/colorizer/colorizer.conf"
|
||||
source ${COLORIZER_CONF}
|
||||
if [[ "$wall2themes" == "yes" ]];then
|
||||
mb-setvar wall2themes=no "$COLORIZER_CONF"
|
||||
fi
|
||||
|
||||
|
||||
mbwallpaper -s &
|
||||
mbwallpaper_pid=$!
|
||||
notify-send.sh -i emblem-photos "$TITLE" "$TEXT"
|
||||
yad --notification --image emblem-photos --text "$CLICK"
|
||||
kill -9 $mbwallpaper_pid
|
||||
|
||||
if [[ "$wall2themes" == "yes" ]];then
|
||||
mb-setvar wall2themes=yes "$COLORIZER_CONF"
|
||||
fi
|
||||
|
||||
|
||||
#wait $mbwallpaper_pid
|
||||
Reference in New Issue
Block a user