i3: favourite pdf shortcut

This commit is contained in:
Tobias Manske 2019-11-03 21:21:18 +01:00
parent 589a23539a
commit 75a35a1911
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F
2 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,9 @@ floating_modifier $mod
# bluetooth dmenu # bluetooth dmenu
bindsym $mod+b exec ~/.dotfiles/i3/scripts/dmenu_bt.sh bindsym $mod+b exec ~/.dotfiles/i3/scripts/dmenu_bt.sh
# pdf favourites dmenu
bindsym $mod+p exec ~/.dotfiles/i3/scripts/dir_dmenu.sh ~/.local/favpdf
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill

View File

@ -12,4 +12,4 @@ fi
DIRS=$(find -L "$1" -mindepth 1 -maxdepth 1 -type d | rev | cut -d "/" -f1 | rev) DIRS=$(find -L "$1" -mindepth 1 -maxdepth 1 -type d | rev | cut -d "/" -f1 | rev)
FILES=$(find -L "$1" -mindepth 1 -maxdepth 1 -type f| rev | cut -d "/" -f1 | rev) FILES=$(find -L "$1" -mindepth 1 -maxdepth 1 -type f| rev | cut -d "/" -f1 | rev)
echo "$DIRS$FILES" | dmenu | xargs -I"{}" $0 "$1/{}" echo -e "$DIRS\n$FILES" | dmenu | xargs -I"{}" $0 "$1/{}"