i3: favourite pdf shortcut
This commit is contained in:
parent
589a23539a
commit
75a35a1911
@ -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
|
||||||
|
|
||||||
|
@ -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/{}"
|
||||||
|
Loading…
Reference in New Issue
Block a user