vifm: Obey XDG Trash directory

Moved trash directory vifm uses from its own data location to the one
proposed by XDG specification. Essentially moves it to
`.local/share/Trash`.
This commit is contained in:
Marty Oehme 2021-08-18 22:33:12 +02:00
parent 62f680ecd3
commit 176a4a233d
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 21 additions and 8 deletions

View file

@ -102,3 +102,10 @@ Anthropocene
ecotourism
legitimation
wellbeing
harkens
Sossusvlei
Kulala
reframed
dichotomized
presentational
dichotomization

View file

@ -30,6 +30,7 @@ set syscalls
" I recommend not changing this until you are familiar with vifm.
" This probably shouldn't be an option.
set trash
set trashdir=$XDG_DATA_HOME/Trash
" This is how many directories to store in the directory history.
set history=100
@ -39,7 +40,7 @@ set nofollowlinks
" With this option turned on you can run partially entered commands with
" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te<tab>).
" set fastrun
set fastrun
" Natural sort of (version) numbers within text.
set sortnumbers
@ -123,7 +124,7 @@ mark v ~/media/videos/
mark n ~/documents/notes/
mark N ~/Nextcloud/
mark l ~/documents/library/academia/pdf/
mark t ~/.local/share/vifm/Trash/
mark t ~/.local/share/Trash/
" }}}
" Commands {{{
@ -393,20 +394,25 @@ fileviewer *.[1-8] man ./%c | col -b
" Gif
filextype *.gif
\ {Loop} mpv --loop=inf %f %i &,
\ {Loop}
\ mpv --loop=inf %f %i &,
fileviewer *.gif
\ vifmimg draw %px %py %pw %ph %c
\ %pc
\ vifmimg clear
" Images
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ {View in sxiv}
\ sxiv %f,
\ {View in feh}
\ feh -FZ %d --start-at %d/%c 2>/dev/null
\ {View in gpicview}
\ gpicview %c,
\ {View in shotwell}
\ feh,
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ vifmimg draw %px %py %pw %ph %c
\ %pc
\ vifmimg clear
\ vifmimg draw %px %py %pw %ph %c
\ %pc
\ vifmimg clear
" OpenRaster
filextype *.ora