]> git.rmz.io Git - dotfiles.git/blobdiff - xinitrc
qutebrowser: also cycle through accept all cookies
[dotfiles.git] / xinitrc
diff --git a/xinitrc b/xinitrc
index b7597ec8e50b6c6dd7a1cf3e736b3373b6852250..3b0bace16819e8631c22468959bfae1317df1ff3 100644 (file)
--- a/xinitrc
+++ b/xinitrc
@@ -8,8 +8,12 @@ userprofile_d=$XDG_CONFIG_HOME/xinit/xprofile.d
 sysresources=/etc/X11/xinit/.Xresources
 sysmodmap=/etc/X11/xinit/.Xmodmap
 
 sysresources=/etc/X11/xinit/.Xresources
 sysmodmap=/etc/X11/xinit/.Xmodmap
 
+# backup logfile
+if [ -f "$logfile" ]; then
+    mv -f "$logfile" ${logfile}.old
+fi
 # redirect all further output
 # redirect all further output
-exec 2>&1 >>"$logfile"
+exec 2>&1 >"$logfile"
 
 printf "\n%s  Reading '~/.xinitrc'\n" $(date --iso-8601=minutes)
 
 
 printf "\n%s  Reading '~/.xinitrc'\n" $(date --iso-8601=minutes)
 
@@ -30,6 +34,10 @@ if [ -f $userresources_d/$(hostname) ]; then
     xrdb -merge $userresources_d/$(hostname)
 fi
 
     xrdb -merge $userresources_d/$(hostname)
 fi
 
+if [ -f $userresources_d/colors_$THEME ]; then
+    xrdb -merge $userresources_d/colors_$THEME
+fi
+
 if [ -f "$usermodmap" ]; then
     xmodmap "$usermodmap"
 fi
 if [ -f "$usermodmap" ]; then
     xmodmap "$usermodmap"
 fi