summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/dunst/dunstrc4
-rw-r--r--.config/lf/lfrc6
-rwxr-xr-x.config/nsxiv/exec/key-handler6
-rw-r--r--.config/shell/aliasrc7
4 files changed, 13 insertions, 10 deletions
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index d03af62..94eee7c 100644
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -2,8 +2,8 @@
monitor = 0
follow = keyboard
width = 370
- height = 350
- offset = 0x19
+ height = (0,350)
+ offset = (0,19)
padding = 2
horizontal_padding = 2
transparency = 25
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 5598a30..d877ab6 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -93,7 +93,8 @@ cmd delete ${{
cmd moveto ${{
set -f
- dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --prompt 'Move to where? ' | sed 's|~|$HOME|')
+ clear; tput cup $(($(tput lines)/3))
+ dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --layout=reverse --height 40% --prompt 'Move to where? ' | sed 's|~|$HOME|')
[ -z "$dest" ] && exit
destpath=$(eval printf '%s' \"$dest\")
clear; tput cup $(($(tput lines)/3)); tput bold
@@ -110,7 +111,8 @@ cmd moveto ${{
cmd copyto ${{
set -f
- dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --prompt 'Copy to where? ' | sed 's|~|$HOME|')
+ clear; tput cup $(($(tput lines)/3))
+ dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --layout=reverse --height 40% --prompt 'Copy to where? ' | sed 's|~|$HOME|')
[ -z "$dest" ] && exit
destpath=$(eval printf '%s' \"$dest\")
clear; tput cup $(($(tput lines)/3)); tput bold
diff --git a/.config/nsxiv/exec/key-handler b/.config/nsxiv/exec/key-handler
index c743be4..fbbf289 100755
--- a/.config/nsxiv/exec/key-handler
+++ b/.config/nsxiv/exec/key-handler
@@ -14,11 +14,11 @@ do
mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." &
;;
"r")
- magick -rotate 90 "$file" "$file" ;;
+ magick "$file" -rotate 90 "$file" ;;
"R")
- magick -rotate -90 "$file" "$file" ;;
+ magick "$file" -rotate -90 "$file" ;;
"f")
- magick -flop "$file" "$file" ;;
+ magick "$file" -flop "$file" ;;
"y")
printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard &&
notify-send "$file copied to clipboard" & ;;
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 75327bf..5347fcd 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -14,9 +14,10 @@ for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
done; unset command
se() {
- choice="$(find ~/.local/bin -mindepth 1 -printf '%P\n' | fzf)"
- [ -f "$HOME/.local/bin/$choice" ] && $EDITOR "$HOME/.local/bin/$choice"
- }
+ s=("${HOME}/.local/bin/"**/*(.))
+ c="$(print -lnr ${s:t:r} | fzf)"
+ [[ "${c}" ]] && "${EDITOR}" ${${(M)s:#*/${c}*}[1]}
+}
# Verbosity and settings that you pretty much just always are going to want.
alias \