Fixed install script, autostart, added compton

This commit is contained in:
fosslinux 2018-11-22 01:27:11 -08:00 committed by Samuel Tyler
parent ac8d110c76
commit 28af3652a1
5 changed files with 68 additions and 32 deletions

View File

@ -4,3 +4,7 @@ All the unique bits of tildelinux
Themes generated using oomox
**WARNING: This stuff is designed for a fresh tildelinux installation, and might mess things up if you try to install it elsewhere**
## TODO
- Packaging
- Better uninstall script

View File

@ -0,0 +1,34 @@
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = false;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-exclude = "_NET_WM_OPAQUE_REGION@:c";
menu-opacity = 0.8;
inactive-opacity = 0.8;
inactive-opacity-override = false;
alpha-step = 0.06;
fading = true;
fade-in-step = 0.09;
fade-out-step = 0.09;
fade-exclude = [ ];
backend = "xrender";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "drm";
dbe = false;
paint-on-overlay = true;
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
glx-copy-from-front = false;
glx-swap-method = "undefined";
wintypes:
{
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; };
};

View File

@ -1,20 +1,3 @@
#
# These things are run when an Openbox X Session is started.
# You may place a similar script in $HOME/.config/openbox/autostart
# to run user-specific things.
#
# If you want to use GNOME config tools...
#
#if test -x /usr/lib/openbox/gnome-settings-daemon >/dev/null; then
# /usr/lib/openbox/gnome-settings-daemon &
#elif which gnome-settings-daemon >/dev/null 2>&1; then
# gnome-settings-daemon &
#fi
# If you want to use XFCE config tools...
#
#xfce-mcs-manager &
xfce4-panel &
feh --bg-scale /home/{{{ USER }}}/wallpapers/verse.png &
feh --bg-scale /home/{{{ USER }}}/.art/verse.png &
compton &

View File

@ -1,20 +1,34 @@
#!/bin/sh
config_dir="$HOME/.config"
theme_dir="$HOME/.themes"
art_dir="$HOME/.art"
test -d "$config_dir" \
|| mkdir "$config_dir"
install_folder(){
origin_dir="$1"
install_dir="$2"
find ./dotconfig -type f | while read -r file
do
dest_path="$(echo "$config_dir/$file" | sed 's/\/\.\/dotconfig//')"
dest_dir="$(dirname "$dest_path")"
test -d "$install_dir" \
|| mkdir "$install_dir"
find "./$origin_dir" -type f | while read -r file
do
dest_path="$(echo "$install_dir/$file" | sed 's/\/\.\/'"$origin_dir"'//')"
dest_dir="$(dirname "$dest_path")"
test -d "$dest_dir" \
|| mkdir -p "$dest_dir"
cp "$file" "$dest_path" \
&& sed -ni "s/{{{ USER }}}/$USER/g" "$dest_path" >/dev/null 2>&1 \
&& echo "Installed $file to $dest_path" \
&& echo "$dest_path" >> "$config_dir/.installed_by_tildelinux"
done
}
test -d "$dest_dir" \
|| mkdir -p "$dest_dir"
cp "$file" "$dest_path"
sed -ni "s/{{{ USER }}}/$USER/g" "$dest_path" >/dev/null 2>&1
echo "Installed $file to $dest_path"
echo "$dest_path" >> "$config_dir/.installed_by_tildelinux"
done
echo "~~ Configs ~~"
install_folder dotconfig "$config_dir"
echo "~~ Themes~~"
install_folder themes "$theme_dir"
echo "~~ Art ~~"
install_folder art "$art_dir"

View File

@ -11,3 +11,4 @@ xorg
firefox
xfce4-whiskermenu-plugin
ssh-askpass
compton