about summary refs log tree commit diff stats
path: root/home-manager/config
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/config')
-rwxr-xr-xhome-manager/config/lf/cmds/archive5
-rwxr-xr-xhome-manager/config/lf/cmds/broot_jump4
-rwxr-xr-xhome-manager/config/lf/cmds/chmod4
-rwxr-xr-xhome-manager/config/lf/cmds/clear_trash4
-rwxr-xr-xhome-manager/config/lf/cmds/dl_file4
-rwxr-xr-xhome-manager/config/lf/cmds/dragon4
-rwxr-xr-xhome-manager/config/lf/cmds/dragon_individual4
-rwxr-xr-xhome-manager/config/lf/cmds/dragon_stay4
-rwxr-xr-xhome-manager/config/lf/cmds/fzf_jump4
-rwxr-xr-xhome-manager/config/lf/cmds/help4
-rwxr-xr-xhome-manager/config/lf/cmds/mk_dir4
-rwxr-xr-xhome-manager/config/lf/cmds/mk_file4
-rwxr-xr-xhome-manager/config/lf/cmds/mk_ln4
-rwxr-xr-xhome-manager/config/lf/cmds/mk_scr4
-rwxr-xr-xhome-manager/config/lf/cmds/open4
-rwxr-xr-xhome-manager/config/lf/cmds/open_config4
-rwxr-xr-xhome-manager/config/lf/cmds/restore_trash4
-rwxr-xr-xhome-manager/config/lf/cmds/set_wall_paper4
-rwxr-xr-xhome-manager/config/lf/cmds/stripspace4
-rwxr-xr-xhome-manager/config/lf/cmds/trash4
-rwxr-xr-xhome-manager/config/lf/cmds/unarchive4
21 files changed, 0 insertions, 85 deletions
diff --git a/home-manager/config/lf/cmds/archive b/home-manager/config/lf/cmds/archive
index d9a0e88c..4ea86787 100755
--- a/home-manager/config/lf/cmds/archive
+++ b/home-manager/config/lf/cmds/archive
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 # Option '-f' disables pathname expansion which can be useful when $f, $fs, and
 # $fx variables contain names with '*' or '?' characters. However, this option
 # is used selectively within individual commands as it can be limiting at
@@ -32,7 +30,4 @@ case $(awk '{for (i=1; i<=NF; i++) print $i}' $archivers | fzf) in
         zip -r "$name".zip "$fx"
         ;;
 esac
-
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/broot_jump b/home-manager/config/lf/cmds/broot_jump
index 51d21368..ff62ec90 100755
--- a/home-manager/config/lf/cmds/broot_jump
+++ b/home-manager/config/lf/cmds/broot_jump
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 tmp=$(mktmp)
 res="$(broot --outcmd $tmp && cat $tmp | sed 's/cd //')"
 
@@ -16,6 +14,4 @@ elif [ -d "$res" ]; then
 fi
 
 lf -remote "send $id $cmd \"$res\""
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/chmod b/home-manager/config/lf/cmds/chmod
index ef7aeb3f..b1682090 100755
--- a/home-manager/config/lf/cmds/chmod
+++ b/home-manager/config/lf/cmds/chmod
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 readp "Mode Bits: " bits
 
 while read -r file; do
@@ -13,6 +11,4 @@ while read -r file; do
 done < "$(tmp "echo $fx")"
 
 lf -remote 'send reload'
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/clear_trash b/home-manager/config/lf/cmds/clear_trash
index f6372606..e1ee3d1e 100755
--- a/home-manager/config/lf/cmds/clear_trash
+++ b/home-manager/config/lf/cmds/clear_trash
@@ -4,10 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 # could also use --force, for instand removal
 trash list | fzf --multi | awk '{print $NF}' | xargs trash empty --match=exact
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/dl_file b/home-manager/config/lf/cmds/dl_file
index e7a1fbcb..373386f8 100755
--- a/home-manager/config/lf/cmds/dl_file
+++ b/home-manager/config/lf/cmds/dl_file
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 # Provides the ability to download a file by dropping it into a window
 
 url=$(dragon -t -x)
@@ -33,6 +31,4 @@ if [ -n "$url" ]; then
 else
   die "Url is null!"
 fi
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/dragon b/home-manager/config/lf/cmds/dragon
index 52d3b49a..fce161be 100755
--- a/home-manager/config/lf/cmds/dragon
+++ b/home-manager/config/lf/cmds/dragon
@@ -4,9 +4,5 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 dragon -a -x "$fx"
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/dragon_individual b/home-manager/config/lf/cmds/dragon_individual
index 4a9fd497..7adf6924 100755
--- a/home-manager/config/lf/cmds/dragon_individual
+++ b/home-manager/config/lf/cmds/dragon_individual
@@ -4,9 +4,5 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 dragon "$fx"
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/dragon_stay b/home-manager/config/lf/cmds/dragon_stay
index 595a671d..aff9d01d 100755
--- a/home-manager/config/lf/cmds/dragon_stay
+++ b/home-manager/config/lf/cmds/dragon_stay
@@ -4,9 +4,5 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 dragon -a "$fx"
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/fzf_jump b/home-manager/config/lf/cmds/fzf_jump
index e3058810..e0995761 100755
--- a/home-manager/config/lf/cmds/fzf_jump
+++ b/home-manager/config/lf/cmds/fzf_jump
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 res="$(fd . --maxdepth 3 | fzf --header='Jump to location')"
 if [ -f "$res" ]; then
     cmd="select"
@@ -13,6 +11,4 @@ elif [ -d "$res" ]; then
     cmd="cd"
 fi
 lf -remote "send $id $cmd \"$res\""
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/help b/home-manager/config/lf/cmds/help
index 4291c2bd..4ec06648 100755
--- a/home-manager/config/lf/cmds/help
+++ b/home-manager/config/lf/cmds/help
@@ -4,9 +4,5 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 cat ~/.config/lf/lfrc | less # TODO make this better
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/mk_dir b/home-manager/config/lf/cmds/mk_dir
index 23175596..fb69cf92 100755
--- a/home-manager/config/lf/cmds/mk_dir
+++ b/home-manager/config/lf/cmds/mk_dir
@@ -4,10 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 readp "Directory Name: " dir
 mkdir "$dir"
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/mk_file b/home-manager/config/lf/cmds/mk_file
index 518caffc..eef8df4b 100755
--- a/home-manager/config/lf/cmds/mk_file
+++ b/home-manager/config/lf/cmds/mk_file
@@ -4,10 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 readp "File Name: " name
 "$EDITOR" "$name"
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/mk_ln b/home-manager/config/lf/cmds/mk_ln
index 2c88c83c..066150bd 100755
--- a/home-manager/config/lf/cmds/mk_ln
+++ b/home-manager/config/lf/cmds/mk_ln
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 while IFS= read -r i;do
     set -- "$@" "$i"
 done < "$(tmp 'cat ~/.local/share/lf/files')"
@@ -36,6 +34,4 @@ case "$mode" in
 esac
 rm ~/.local/share/lf/files
 # lf -remote "send clear"
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/mk_scr b/home-manager/config/lf/cmds/mk_scr
index 82ea3733..6857e8f6 100755
--- a/home-manager/config/lf/cmds/mk_scr
+++ b/home-manager/config/lf/cmds/mk_scr
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 script=$(mktmp)
 cat << EOF > $script
 #!/usr/bin/env dash
@@ -15,7 +13,6 @@ cat << EOF > $script
 
 
 
-if [ -d "\$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "\$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 EOF
 
 readp "Script Name: " script_name
@@ -29,7 +26,6 @@ done
 cat "$script" > "$scr"
 chmod +x "$scr"
 
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 
 "$VISUAL" "$scr"
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/open b/home-manager/config/lf/cmds/open
index 78cef374..2065eee3 100755
--- a/home-manager/config/lf/cmds/open
+++ b/home-manager/config/lf/cmds/open
@@ -4,13 +4,9 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 case $(file --mime-type "$f" -bL) in
     text/*|application/json) "$EDITOR" "$f";;
     image/*) "$IVIEWER" "$f";;
     *) xdg-open "$f";;
 esac
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/open_config b/home-manager/config/lf/cmds/open_config
index d04f01b9..55ae68cb 100755
--- a/home-manager/config/lf/cmds/open_config
+++ b/home-manager/config/lf/cmds/open_config
@@ -4,9 +4,5 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 "$EDITOR" "$(bookmenu -b ~/.config/bookmenu/configs -f fzf -o)" # TODO implement this
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/restore_trash b/home-manager/config/lf/cmds/restore_trash
index fff7cb6c..22c16888 100755
--- a/home-manager/config/lf/cmds/restore_trash
+++ b/home-manager/config/lf/cmds/restore_trash
@@ -4,9 +4,5 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 trash list | fzf --multi | awk '{print $NF}' | xargs trash restore --match=exact
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/set_wall_paper b/home-manager/config/lf/cmds/set_wall_paper
index 2d9e0b4a..50cc9656 100755
--- a/home-manager/config/lf/cmds/set_wall_paper
+++ b/home-manager/config/lf/cmds/set_wall_paper
@@ -4,12 +4,8 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 die "No yet implemented" # TODO do what the 'die' says
 #sed -i "s,export AWMWALLPAPER='.*',export AWMWALLPAPER='${f}'," ${ZDOTDIR}/.zshenv
 #swaybg -i "$f" &
 #feh --bg-max --no-fehbg "$f"
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/stripspace b/home-manager/config/lf/cmds/stripspace
index 7cefdf93..65dabc4c 100755
--- a/home-manager/config/lf/cmds/stripspace
+++ b/home-manager/config/lf/cmds/stripspace
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 files=$(mktmp);
 echo "$fx" > $files;
 
@@ -31,6 +29,4 @@ while read -r file; do
     mv "$(cat $dirty_name)" "$clean_name" || die "Move failed";
     lf -remote 'send reload'
 done < "$files";
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/trash b/home-manager/config/lf/cmds/trash
index e6e74505..064604eb 100755
--- a/home-manager/config/lf/cmds/trash
+++ b/home-manager/config/lf/cmds/trash
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 #files=$(printf "$fx" | tr '\n' ';')
 #
 #while [ "$files" ]; do
@@ -24,6 +22,4 @@
 #    fi
 #done
 thrash put "$fx";
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh
diff --git a/home-manager/config/lf/cmds/unarchive b/home-manager/config/lf/cmds/unarchive
index 85cbf22b..dfa82c9a 100755
--- a/home-manager/config/lf/cmds/unarchive
+++ b/home-manager/config/lf/cmds/unarchive
@@ -4,8 +4,6 @@
 # . ~/.local/lib/shell/lib
 . %SHELL_LIBRARY_PATH
 
-
-
 # extract the current file with the right command
 # (xkcd link: https://xkcd.com/1168/)
 set -f
@@ -21,6 +19,4 @@ case "$f" in
     *.7z) 7z x $f;;
     *) die "Unsupported format" ;;
 esac
-
-if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi
 # vim: ft=sh