From 9a450ed8656959760d4f22cbcbb40c2726b5d0b1 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Thu, 17 May 2018 11:25:52 -0400 Subject: misc panel and theme tweaks --- banners/parabola-lxde-logout-banner-dark.png | Bin 0 -> 14002 bytes bin/parabola-lxsession-logout.sh | 2 +- skel/.config/autostart/autostart.sh.new | 57 +++++++++++++++++++++++++++ skel/.config/gtk-3.0/settings.ini | 3 +- skel/.config/lxpanel/LXDE/panels/panel | 13 +++--- skel/.config/lxsession/LXDE/desktop.conf | 5 ++- skel/.config/openbox/lxde-rc.xml | 4 +- skel/.gtkrc-2.0 | 3 +- skel/.icons/default/index.theme | 5 +++ 9 files changed, 80 insertions(+), 12 deletions(-) create mode 100644 banners/parabola-lxde-logout-banner-dark.png create mode 100755 skel/.config/autostart/autostart.sh.new create mode 100644 skel/.icons/default/index.theme diff --git a/banners/parabola-lxde-logout-banner-dark.png b/banners/parabola-lxde-logout-banner-dark.png new file mode 100644 index 0000000..eefd450 Binary files /dev/null and b/banners/parabola-lxde-logout-banner-dark.png differ diff --git a/bin/parabola-lxsession-logout.sh b/bin/parabola-lxsession-logout.sh index 49a59f2..4183497 100755 --- a/bin/parabola-lxsession-logout.sh +++ b/bin/parabola-lxsession-logout.sh @@ -1,7 +1,7 @@ #!/bin/sh LOGOUT_PROMPT="Parabola/LXDE Session Logout" -LOGOUT_BANNER=/usr/share/pixmaps/parabola-laf/parabola-lxde-logout-banner.png +LOGOUT_BANNER=/usr/share/pixmaps/parabola-laf/parabola-lxde-logout-banner-dark.png /usr/bin/lxsession-logout --side top \ diff --git a/skel/.config/autostart/autostart.sh.new b/skel/.config/autostart/autostart.sh.new new file mode 100755 index 0000000..cb98c05 --- /dev/null +++ b/skel/.config/autostart/autostart.sh.new @@ -0,0 +1,57 @@ +#!/bin/bash + +readonly NEWS_DIR=/usr/share/parabola-laf/news +readonly NEWS_STAMP=~/.local/share/parabola-laf/last_news +readonly CLEANUP_MSG="These old news files are no longer needed. It is safe to delete them." +readonly ROOT_WIN_ID=$(xprop -notype -root | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') +readonly WM_NAME=$( xprop -notype -id $ROOT_WIN_ID | awk '$1=="_NET_WM_NAME"{print $3}') +readonly TITLE="_EDITION_TITLE_" +readonly BUTTONS="OK:1,Don't show this again:0" + +DisplayNotice() +{ + gxmessage -title "$TITLE" \ + -file $notice \ + -buttons "$BUTTONS" \ + -default "OK" \ + -geometry 620x460 \ + -center -wrap -ontop -sticky +} + +Cleanup() +{ + return # TODO: + + current_news="news-$(pacman -Si parabola-laf | awk '$1=="Version"{print $3}').txt" + declare -a read_notices=( $(grep -v $current_news $NEWS_STAMP) ) + (( ${#read_notices[*]} > 10 )) || return + + gxmessage -title "Delete read news items ?" \ + -buttons "Keep them:1,Delete them:0" \ + -default "Keep them" \ + -geometry 620x460 \ + -center -wrap -ontop -sticky \ + "$CLEANUP_MSG$(printf "\n\t%s" "${read_notices[*]}")" && \ + echo $current_news > $NEWS_STAMP && \ + chroot $NEWS_DIR "pkexec rm ${read_notices[*]}" +} + + +# display unread news items +mkdir -p $(dirname $NEWS_STAMP) ; touch $NEWS_STAMP ; +cd $NEWS_DIR +for notice in news-* # e.g. news-${pkgver}-${pkgrel} +do [ -f $notice ] && notice_exists=1 || notice_exists=0 + [ -z "$(grep $notice $NEWS_STAMP)" ] && is_unread=1 || is_unread=0 + [ -z "$(echo $(cat $notice))" ] && is_blank=1 || is_blank=0 + + (( $notice_exists && $is_unread )) || continue + + ( (( $is_blank )) || DisplayNotice ) && echo "$notice" >> $NEWS_STAMP && Cleanup & +done + +# WM-specific startup tasks +case "$WM_NAME" in + '"Openbox"') which octopi-notifier && sleep 10 && octopi-notifier & ;; + '"MATE"' ) ;; +esac diff --git a/skel/.config/gtk-3.0/settings.ini b/skel/.config/gtk-3.0/settings.ini index fb784aa..90fcf85 100644 --- a/skel/.config/gtk-3.0/settings.ini +++ b/skel/.config/gtk-3.0/settings.ini @@ -1,5 +1,5 @@ [Settings] -gtk-theme-name=Adwaita +gtk-theme-name=BlackMATE gtk-icon-theme-name=Adwaita gtk-font-name=Sans 10 gtk-cursor-theme-size=18 @@ -13,3 +13,4 @@ gtk-xft-antialias=1 gtk-xft-hinting=1 gtk-xft-hintstyle=hintslight gtk-xft-rgba=rgb +gtk-cursor-theme-name=FlatbedCursors-Blue diff --git a/skel/.config/lxpanel/LXDE/panels/panel b/skel/.config/lxpanel/LXDE/panels/panel index ae80ce2..a83bb36 100644 --- a/skel/.config/lxpanel/LXDE/panels/panel +++ b/skel/.config/lxpanel/LXDE/panels/panel @@ -8,17 +8,19 @@ Global { widthtype=percent width=100 height=26 - transparent=0 - tintcolor=#000000 - alpha=0 + transparent=1 + tintcolor=#393b51 + alpha=255 setdocktype=1 setpartialstrut=1 autohide=0 heightwhenhidden=0 usefontcolor=1 - fontcolor=#000000 + fontcolor=#787dab background=0 backgroundfile=/usr/share/lxpanel/images/background.png + usefontsize=1 + fontsize=12 } Plugin { type=space @@ -104,6 +106,7 @@ Plugin { Config { Button1=iconify Button2=shade + Toggle=1 } } Plugin { @@ -161,7 +164,7 @@ Plugin { Plugin { type=dclock Config { - ClockFmt=%R + ClockFmt=%r TooltipFmt=%A %x BoldFont=0 IconOnly=0 diff --git a/skel/.config/lxsession/LXDE/desktop.conf b/skel/.config/lxsession/LXDE/desktop.conf index 5f99ce2..b3c70a6 100644 --- a/skel/.config/lxsession/LXDE/desktop.conf +++ b/skel/.config/lxsession/LXDE/desktop.conf @@ -7,11 +7,12 @@ xsettings_manager/command=build-in proxy_manager/command=build-in keyring/command=ssh-agent quit_manager/command=lxsession-logout +quit_manager/image=/usr/share/pixmaps/parabola-laf/parabola-lxde-logout-banner-dark.png lock_manager/command=lxlock terminal_manager/command=lxterminal [GTK] -sNet/ThemeName=Adwaita +sNet/ThemeName=parabola-blackmate sNet/IconThemeName=Adwaita sGtk/FontName=Sans 10 iGtk/ToolbarStyle=3 @@ -26,7 +27,7 @@ iNet/EnableEventSounds=1 iNet/EnableInputFeedbackSounds=1 sGtk/ColorScheme= iGtk/ToolbarIconSize=3 -sGtk/CursorThemeName=DMZ-White +sGtk/CursorThemeName=FlatbedCursors-Blue [Mouse] AccFactor=20 diff --git a/skel/.config/openbox/lxde-rc.xml b/skel/.config/openbox/lxde-rc.xml index 54eaa41..3a9d072 100644 --- a/skel/.config/openbox/lxde-rc.xml +++ b/skel/.config/openbox/lxde-rc.xml @@ -34,10 +34,10 @@ - + - Bear2 + Mikachu NLIMC