This commit is contained in:
agryphus 2025-02-09 22:20:34 -05:00
parent 293cd5f022
commit d60aa6a4bc
4 changed files with 6 additions and 4 deletions

1
misc/.config/fzf/config Normal file
View file

@ -0,0 +1 @@
--layout=reverse

View file

@ -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"

View file

@ -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'

View file

@ -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