Add fzf
This commit is contained in:
parent
293cd5f022
commit
d60aa6a4bc
4 changed files with 6 additions and 4 deletions
1
misc/.config/fzf/config
Normal file
1
misc/.config/fzf/config
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
--layout=reverse
|
||||||
|
|
@ -39,6 +39,7 @@ export XDG_STATE_HOME="$HOME/.local/state"
|
||||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||||
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
|
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
|
||||||
export EMACS_INIT_FILE="$XDG_CONFIG_HOME/emacs"
|
export EMACS_INIT_FILE="$XDG_CONFIG_HOME/emacs"
|
||||||
|
export FZF_DEFAULT_OPTS_FILE="$XDG_CONFIG_HOME/fzf/config"
|
||||||
export GIT_CONFIG="$XDG_CONFIG_HOME/git/config"
|
export GIT_CONFIG="$XDG_CONFIG_HOME/git/config"
|
||||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||||
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
|
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,6 @@ alias asciiquarium='asciiquarium -t'
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
alias la='ls -A'
|
alias la='ls -A'
|
||||||
alias l='ls -CF'
|
alias l='ls -CF'
|
||||||
alias python='python3'
|
|
||||||
alias xournal='xournalpp'
|
alias xournal='xournalpp'
|
||||||
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
||||||
alias sxiv='nsxiv'
|
alias sxiv='nsxiv'
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
sel="$(man -k . | fuzzel --dmenu -i -p "Man page:")"
|
sel="$(man -k . | fzf --prompt "Man page: ")"
|
||||||
[ "$sel" = "" ] && exit # Exit on no selection
|
[ "$sel" = "" ] && exit # Exit on no selection
|
||||||
|
|
||||||
# Selection comes in the form of:
|
# Selection comes in the form of:
|
||||||
# $program ($num) - $desc
|
# $program ($num) - $desc
|
||||||
# Need to run `man $num $program`
|
# Need to run `man $num $program`
|
||||||
page="$(echo "$sel" | awk -F'[()]' '{print $2" "$1}')"
|
page="$(echo "$sel" | awk -F'[()]' '{print $2" "$1}')"
|
||||||
# nohup $TERMINAL -e man $page >/dev/null 2>&1 &
|
# hyprctl dispatch exec [floating] "foot -W 78x38 -e man $page"
|
||||||
hyprctl dispatch exec [floating] "foot -W 78x38 -e man $page"
|
|
||||||
|
man $page
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue