new x stuff

This commit is contained in:
Daniel Flanagan 2017-02-03 14:36:58 -06:00
parent 5896c84e21
commit 82f3e0b2a8
3 changed files with 34 additions and 22 deletions

2
env/x/link.bash vendored
View file

@ -11,11 +11,13 @@ rm -f "$HOME/.Xresources"
rm -f "$HOME/.gtkrc-2.0" rm -f "$HOME/.gtkrc-2.0"
rm -f "$HOME/.config/gtk-3.0/settings.ini" rm -f "$HOME/.config/gtk-3.0/settings.ini"
rm -f "$HOME/.config/compton.conf" rm -f "$HOME/.config/compton.conf"
rm -f "$HOME/.xprofile"
ln -s "$MODULE_PATH/xinitrc" "$HOME/.xinitrc" ln -s "$MODULE_PATH/xinitrc" "$HOME/.xinitrc"
ln -s "$MODULE_PATH/xresources" "$HOME/.Xresources" ln -s "$MODULE_PATH/xresources" "$HOME/.Xresources"
ln -s "$MODULE_PATH/gtk3settings.ini" "$HOME/.config/gtk-3.0/settings.ini" ln -s "$MODULE_PATH/gtk3settings.ini" "$HOME/.config/gtk-3.0/settings.ini"
ln -s "$MODULE_PATH/gtk2rc" "$HOME/.gtkrc-2.0" ln -s "$MODULE_PATH/gtk2rc" "$HOME/.gtkrc-2.0"
ln -s "$MODULE_PATH/compton.conf" "$HOME/.config/compton.conf" ln -s "$MODULE_PATH/compton.conf" "$HOME/.config/compton.conf"
ln -s "$MODULE_PATH/xprofile" "$HOME/.xprofile"
sudo mkdir -p /root/.gtk-3.0/ sudo mkdir -p /root/.gtk-3.0/
sudo mkdir -p /root/.config/gtk-3.0/ sudo mkdir -p /root/.config/gtk-3.0/

30
env/x/xinitrc vendored
View file

@ -1,36 +1,22 @@
#!/bin/sh #!/bin/sh
if [ -f ~/.fehbg ]; then if [ -f "$HOME/.xprofile" ]; then
~/.fehbg & source "$HOME/.xprofile"
fi
source "$DOTFILES_PATH/env/x/xloadresources"
source "$DOTFILES_PATH/variables.bash"
# keyrepeat settings
xset r rate 250 80 &
# no screen blanking
xset -dpms &
xset s noblank &
xset s off &
# start the bar if we want it
if [ "$BAR_ON_XINIT" -eq 1 ]; then
"$BAR_PATH/start.bash" &
fi
if [ -d "/usr/lib/nvidia" ]; then
export LD_LIBRARY_PATH=/usr/lib/nvidia
fi fi
if [ -f "$HOME/.xinitrc.env" ]; then if [ -f "$HOME/.xinitrc.env" ]; then
source "$HOME/.xinitrc.env" source "$HOME/.xinitrc.env"
fi fi
# start the bar if we want it
if [ "$BAR_ON_XINIT" -eq 1 ]; then
"$BAR_PATH/start.bash" &
fi
# fire up wm # fire up wm
unclutter & unclutter &
compton & compton &
exec "$DOTFILES_PATH/env/wm/wmstart" exec "$DOTFILES_PATH/env/wm/wmstart"
# exec budgie-desktop

24
env/x/xprofile vendored Normal file
View file

@ -0,0 +1,24 @@
#!/bin/sh
if [ -f ~/.fehbg ]; then
~/.fehbg &
fi
source "$DOTFILES_PATH/env/x/xloadresources"
source "$DOTFILES_PATH/variables.bash"
# keyrepeat settings
xset r rate 250 80 &
# no screen blanking
xset -dpms &
xset s noblank &
xset s off &
if [ -d "/usr/lib/nvidia" ]; then
export LD_LIBRARY_PATH=/usr/lib/nvidia
fi
if [ -f "$HOME/.xprofile.env" ]; then
source "$HOME/.xprofile.env"
fi