Add fzf completion and flameshot shortcut

master
Quentin Duchemin 2021-01-05 12:43:30 +01:00
parent a34ff5f90f
commit 92b9405614
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
2 changed files with 15 additions and 0 deletions

View File

@ -103,6 +103,8 @@ bindsym Mod4+e exec nemo
bindsym Shift+Print exec ~/.config/i3/scripts/screenshot.py -s bindsym Shift+Print exec ~/.config/i3/scripts/screenshot.py -s
# screenshot and upload to Lychee # screenshot and upload to Lychee
bindsym Print exec ~/.config/i3/scripts/screenshot.py -u bindsym Print exec ~/.config/i3/scripts/screenshot.py -u
# screenshot with flameshot
bindsym $mod+Print exec flameshot gui
mode "$film_mode" { mode "$film_mode" {
bindsym u exec ~/.config/i3/scripts/film_mode.sh on bindsym u exec ~/.config/i3/scripts/film_mode.sh on

13
.zshrc
View File

@ -55,6 +55,7 @@ plugins=(
copydir copydir
cp cp
extract extract
fzf
history history
docker docker
rand-quote rand-quote
@ -116,3 +117,15 @@ alias lt='ls -lath'
export PATH=${PATH}:~/picasoft/pass:$HOME/go/bin/:$HOME/.local/bin export PATH=${PATH}:~/picasoft/pass:$HOME/go/bin/:$HOME/.local/bin
source <(mmctl completion zsh) source <(mmctl completion zsh)
## fzf conf
_fzf_compgen_path() {
fd --hidden --follow --exclude ".git" . "$1"
}
# Use fd to generate the list for directory completion
_fzf_compgen_dir() {
fd --type d --hidden --follow --exclude ".git" . "$1"
}
export FZF_COMPLETION_OPTS='-m'