commit 8cf72c817c8940a916078483a0e843bebe2a83be
parent c6da1ed07cd7bd51e73de0339559f0268034d613
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Thu, 10 Sep 2020 17:13:14 -0700
Rename variables and fix bug
use _DIR suffix when describing a directory.
fix sxhkd call to fsmenu.
Diffstat:
3 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/aliases/.config/aliases b/aliases/.config/aliases
@@ -151,7 +151,7 @@ r() { fc -s "$*" ;}
# f executable
fe() { f `which $@` ;}
-# feed wrapper to work in the RSSTEXT directory and default to all files.
+# feed wrapper to work in the FEED_DIR directory and default to all files.
fed() {
if [ $# -gt 0 ]; then
local cmd="$1"; shift
@@ -160,5 +160,5 @@ fed() {
shift
fi
fi
- (cd $RSSTEXT && feed $cmd ${@:-`ls -1`})
+ (cd $FEED_DIR && feed $cmd ${@:-`ls -1`})
}
diff --git a/profile/.profile b/profile/.profile
@@ -9,18 +9,19 @@ export SHELL=ksh
export TERMINAL=st
# locations:
-export BOOKMARK="$HOME/.local/var/bookmarks"
export CARGO_HOME="$HOME/.local/lib/cargo"
export HISTBASE="$HOME/.local/var"
export INPUTRC="$XDG_CONFIG_HOME/readline"
export PASSWORD_STORE_DIR="$HOME/.local/var/pass"
export PATH=$PATH:$HOME/.local/bin:$HOME/bin:/bin:/sbin:/usr/X11R6/bin:/usr/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/sbin
-export RSSTEXT="$HOME/.local/var/rss/"
-export SCREENSHOT="$HOME/own/image/screenshots"
-export STOW_DIR="$HOME/config/"
-export WALLPAPER="$HOME/image/wallpapers"
+export STOW_DIR="$HOME/config"
export XDG_CONFIG_HOME="$HOME/.config"
+export URL_DIR="$HOME/.local/var/bookmarks"
+export FEED_DIR="$HOME/.local/var/rss"
+export SCREENSHOT_DIR="$HOME/own/image/screenshots"
+export WALLPAPER_DIR="$HOME/image/wallpapers"
+
# other:
export ENV="$XDG_CONFIG_HOME/ksh.kshrc"
export LESS="X F M r S W x2 ~ q i b80 h15 z23 j5"
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
@@ -16,15 +16,15 @@ super + d
# view bookmarks
super + m
- mark $BOOKMARK/*
+ mark $URL_DIR/*
# edit bookmarks
super + shift + m
- cd $BOOKMARK && $TERMINAL
+ (cd $URL_DIR && $TERMINAL)
# launch sxiv on wallpapers
super + {_,shift} + p
- sxiv -rtb {$WALLPAPER, `fsmenu -td $WALLPAPER`}
+ sxiv -rtb {$WALLPAPER_DIR, `fsmenu -t d $WALLPAPER_DIR`}
# next/prev song
alt + {bracketright,bracketleft}