diff --git a/autostart.d/conky b/autostart.d/conky new file mode 100644 index 0000000..a1ecc0d --- /dev/null +++ b/autostart.d/conky @@ -0,0 +1,2 @@ +#Priority: 1 +conky -a top_right & diff --git a/autostart.d/mmaker b/autostart.d/mmaker new file mode 100644 index 0000000..57ef150 --- /dev/null +++ b/autostart.d/mmaker @@ -0,0 +1,3 @@ +if [ ! -f $HOME/.config/openbox/menu.xml ];then + mmaker openbox +fi diff --git a/autostart.d/openbox b/autostart.d/openbox new file mode 100755 index 0000000..464a23d --- /dev/null +++ b/autostart.d/openbox @@ -0,0 +1,33 @@ +#Priority: 0 +# This shell script is run before Openbox launches. +# Environment variables set here are passed to the Openbox session. + +# Set a background color +BG="" +if which hsetroot >/dev/null; then + BG=hsetroot +else + if which esetroot >/dev/null; then + BG=esetroot + else + if which xsetroot >/dev/null; then + BG=xsetroot + fi + fi +fi +test -z $BG || $BG -solid "#dee3d6" + +# D-bus +if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then + eval `dbus-launch --sh-syntax --exit-with-session` +fi + +# Make GTK apps look and behave how they were set up in the gnome config tools +if which gnome-settings-daemon >/dev/null; then + gnome-settings-daemon & +fi + +# Preload stuff for KDE apps +if which start_kdeinit >/dev/null; then + LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup & +fi diff --git a/autostart.d/wbar b/autostart.d/wbar new file mode 100755 index 0000000..2602359 --- /dev/null +++ b/autostart.d/wbar @@ -0,0 +1,33 @@ +#Priority: 1 +if [ -f $HOME/.wbar ];then + return 0 +fi +cat <<-EOT > $HOME/.wbar + i: /usr/share/wbar/wbar.icons/osxbarback.png + t: /usr/share/wbar/wbar.icons/VeraBd/9 + c: + +EOT + +for x in $(find /usr/share/applications/*) +do + name=$(grep "^ *Name=" $x |sed "s,^ *Name=,,g"|head -n 1) + icon=$(grep "^ *Icon=" $x |sed "s,^ *Icon=,,g"|head -n 1) + command=$(grep "^ *Exec=" $x |sed "s,^ *Exec=,,g"|head -n 1) + if [ -z "$(echo $icon|grep /)" ];then + icon="/usr/share/pixmaps/$icon" + fi + if [ -z "$(echo $icon|grep \.)" ];then icon=$(find /usr/share/applications -name $icon.* -maxdepth 0|head -n 1) + fi + if [ ! -f "$icon" ];then + continue + fi + cat <<-EOT >> $HOME/.wbar + i: $icon + c: $command + t: $name + + EOT + +done +wbar &