diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2017-12-12 03:36:25 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2017-12-12 11:25:16 -0500 |
commit | 3cd1167d6205479e4197585a2ac729be228d80ad (patch) | |
tree | bf27468f3944c13f9f575e3dddb0198f7e2445a8 | |
parent | 550cabfe63fe47a69f1c89dcc504f90190e59326 (diff) |
dynamic welcome/news notices and desktop background
* autostart.sh script will display any new ~/news.txt
* default desktop background is a symlink
l--------- | backgrounds/parabola-laf.png | 1 | ||||
-rwxr-xr-x | skel/.config/autostart/autostart.sh | 14 | ||||
-rw-r--r-- | skel/.config/pcmanfm/LXDE/desktop-items-0.conf | 2 | ||||
-rw-r--r-- | skel/.themes/Parabola/index.theme | 2 | ||||
-rw-r--r-- | skel/welcome.txt | 1 |
5 files changed, 12 insertions, 8 deletions
diff --git a/backgrounds/parabola-laf.png b/backgrounds/parabola-laf.png new file mode 120000 index 0000000..ce2686f --- /dev/null +++ b/backgrounds/parabola-laf.png @@ -0,0 +1 @@ +parabola-wallpaper-bluewhirl.png
\ No newline at end of file diff --git a/skel/.config/autostart/autostart.sh b/skel/.config/autostart/autostart.sh index 2cfc1d6..82bcc6a 100755 --- a/skel/.config/autostart/autostart.sh +++ b/skel/.config/autostart/autostart.sh @@ -1,10 +1,14 @@ #!/bin/bash +XML_ESCAPE_REGEX="s|^//\(.*\)||; s|\&|\&|g; s|>|\>|g; s|<|\<|g; s|'|\'|g;" -[ -f ~/welcome.txt ] && zenity --question --width=620 \ - --title="_EDITION_TITLE_" \ - --text="$(cat ~/welcome.txt)" \ - --ok-label="OK" \ - --cancel-label="Don't show this again" || rm ~/welcome.txt & + +for notice in ~/welcome.txt ~/news.txt +do [ -f $notice ] && zenity --forms --width=620 \ + --title="_EDITION_TITLE_" \ + --text="$(sed "$XML_ESCAPE_REGEX" $notice)" \ + --ok-label="OK" \ + --cancel-label="Don't show this again" || rm $notice & +done ~/.config/autostart/autostart-lxde.sh & diff --git a/skel/.config/pcmanfm/LXDE/desktop-items-0.conf b/skel/.config/pcmanfm/LXDE/desktop-items-0.conf index a23b29e..b7203e4 100644 --- a/skel/.config/pcmanfm/LXDE/desktop-items-0.conf +++ b/skel/.config/pcmanfm/LXDE/desktop-items-0.conf @@ -2,7 +2,7 @@ wallpaper_mode=stretch wallpaper_common=1 wallpapers_configured=1 -wallpaper=/usr/share/backgrounds/parabola-laf/parabola-wallpaper-bluewhirl.png +wallpaper=/usr/share/backgrounds/parabola-laf/parabola-laf.png desktop_bg=#000000 desktop_fg=#ffffff desktop_shadow=#000000 diff --git a/skel/.themes/Parabola/index.theme b/skel/.themes/Parabola/index.theme index d6b2393..3e3bcab 100644 --- a/skel/.themes/Parabola/index.theme +++ b/skel/.themes/Parabola/index.theme @@ -10,4 +10,4 @@ IconTheme=RAVE-X-Dark-Purple GtkColorScheme=base_color:#ffffff,fg_color:#4c4c4c,tooltip_fg_color:#ffffff,selected_bg_color:#7E5BC5,selected_fg_color:#FFFFFF,text_color:#3C3C3C,bg_color:#F6F6F6,tooltip_bg_color:#000000,link_color:#9D7EDA CursorTheme=mate CursorSize=18 -BackgroundImage=/etc/wallpaper.png +BackgroundImage=/usr/share/backgrounds/parabola-laf/parabola-laf.png diff --git a/skel/welcome.txt b/skel/welcome.txt deleted file mode 100644 index c9b3515..0000000 --- a/skel/welcome.txt +++ /dev/null @@ -1 +0,0 @@ -Parabola is now fully installed with the LXDE desktop environment. Please do report any bugs that you may find to the Parabola "Packages" bug tracker (the "Report a Bug" desktop shortcut). If you are connected to the internet and have any other questions or comments, feel free to join the Parabola support chat (the "Parabola IRC Channel" desktop shortcut). |