From 8168429a6f82a0f867960cd3e886d8b5ecdc9cd0 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 14 Feb 2017 10:29:57 -0700 Subject: store sxiv thumbs and vimtags in tmpfs --- .config/init/vars | 52 ++++++++++++++++++++++++++-------------------------- .xinitrc | 16 +++++++--------- .zprofile | 4 ++++ 3 files changed, 37 insertions(+), 35 deletions(-) diff --git a/.config/init/vars b/.config/init/vars index 9a0f005..af1a09c 100644 --- a/.config/init/vars +++ b/.config/init/vars @@ -164,32 +164,32 @@ # No Matter Where # -#wallpaper='no matter where.png' -# -#std_black='#000000' -#std_red='#c32752' -#std_green='#7c8f5d' -#std_yellow='#ffbe66' -#std_blue='#644cbd' -#std_magenta='#d8679f' -#std_cyan='#67a477' -#std_white='#f4c6bc' -# -#light_black='#2e1817' -#light_red='#d86785' -#light_green='#c4d197' -#light_yellow='#f6d09d' -#light_blue='#a085e6' -#light_magenta='#f783c7' -#light_cyan='#b7c9b3' -#light_white='#fff7f5' -# -#bg_normal="$std_black" -#fg_normal="$std_white" -#bg_focus="$light_red" -#fg_focus="$light_white" -#bg_urgent="$std_red" -#fg_urgent="$light_white" +# wallpaper='no matter where.png' +# +# std_black='#000000' +# std_red='#c32752' +# std_green='#7c8f5d' +# std_yellow='#ffbe66' +# std_blue='#644cbd' +# std_magenta='#d8679f' +# std_cyan='#67a477' +# std_white='#f4c6bc' +# +# light_black='#2e1817' +# light_red='#d86785' +# light_green='#c4d197' +# light_yellow='#f6d09d' +# light_blue='#a085e6' +# light_magenta='#f783c7' +# light_cyan='#b7c9b3' +# light_white='#fff7f5' +# +# bg_normal="$std_black" +# fg_normal="$std_white" +# bg_focus="$light_red" +# fg_focus="$light_white" +# bg_urgent="$std_red" +# fg_urgent="$light_white" # # 花嫁 diff --git a/.xinitrc b/.xinitrc index b414d12..9a1c860 100644 --- a/.xinitrc +++ b/.xinitrc @@ -19,16 +19,14 @@ export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx" fcitx & -#clean up sxiv cache -#and ensure necessary EV -#exists +#store sxiv cache in ram export XDG_CACHE_HOME=/home/shmibs/.cache -mkdir -p /tmp/sxiv -ln -sf /tmp/sxiv /home/shmibs/.cache/sxiv -sxiv -c - -#clear vimtags -#rm ~/.vimtags +if [ -d /tmp/ ]; then + mkdir -p /tmp/sxiv + cd /home/shmibs/.cache/ + ln -sf /tmp/sxiv . + cd +fi #load more fonts xset +fp /usr/share/fonts/local diff --git a/.zprofile b/.zprofile index ecfd86e..6f4e509 100644 --- a/.zprofile +++ b/.zprofile @@ -2,6 +2,10 @@ emulate sh -c 'source /etc/profile' export QT_STYLE_OVERRIDE=gtk +############# STORE VIMTAGS IN RAM ############ +[[ -d /tmp/ ]] && \ + touch /tmp/.vimtags && ln -sf /tmp/.vimtags . + ######### MAKE CABAL BUILDS AVAILABLE ######### [[ -d ~/.cabal/bin ]] && \ PATH=$PATH:~/.cabal/bin -- cgit v1.2.3