xdg: Move xdg media directories
Moved all directories with media contents (pictures, videos, music) to a single coherent media directory.
This commit is contained in:
parent
0d978f7673
commit
c9c0490cbf
7 changed files with 19 additions and 9 deletions
|
@ -2,3 +2,4 @@
|
|||
|
||||
^/install_packages.sh
|
||||
^/packages.*.txt
|
||||
^/README.md
|
||||
|
|
|
@ -181,7 +181,7 @@ bindsym $mod+F12 reload
|
|||
bindsym $mod+Shift+F12 restart
|
||||
|
||||
# set a pretty wallpaper
|
||||
exec_always --no-startup-id feh --bg-scale ~/pictures/wall.jpg
|
||||
exec_always --no-startup-id feh --bg-scale ~/media/pictures/wall.jpg
|
||||
|
||||
# launch polybar (script ensures only 1 instance existing at a time)
|
||||
exec_always --no-startup-id polybar-launch top
|
||||
|
|
|
@ -21,7 +21,7 @@ msg-module=yes
|
|||
|
||||
### screenshots
|
||||
|
||||
screenshot-directory=~/pictures/screenshots
|
||||
screenshot-directory="${XDG_PICTURES_DIR:-~/media/pictures}/screenshots"
|
||||
# filename_HH-MM-SS
|
||||
screenshot-template="screen_%F_%wH-%wM-%wS"
|
||||
screenshot-format=png
|
||||
|
|
|
@ -98,10 +98,10 @@ config.bind(leader + "tV", "set tabs.position left")
|
|||
config.bind(leader + "M", "spawn umpv {url}")
|
||||
config.bind(leader + "m", "hint links spawn umpv {hint-url}")
|
||||
# bind youtube-dl to download the current page/links
|
||||
config.bind(leader + "dM", "spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}")
|
||||
config.bind(leader + "dM", "spawn vidl {url}")
|
||||
config.bind(
|
||||
leader + "dm",
|
||||
"hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {hint-url}",
|
||||
"hint --rapid links spawn vidl {hint-url}",
|
||||
)
|
||||
|
||||
# Use q for quitting a tab (mimicks vim buffer) - qa is used for exiting
|
||||
|
|
8
scripts/.local/bin/vidl
Executable file
8
scripts/.local/bin/vidl
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
#
|
||||
# send video downloads to my raspberry machine
|
||||
# where they will be automatically queued and
|
||||
# archived when downloaded.
|
||||
|
||||
# shellcheck disable=SC2029
|
||||
ssh dietpi ./vidl "$@"
|
|
@ -23,10 +23,11 @@ test "$XDG_DATA_HOME" || export XDG_DATA_HOME="$HOME/.local/share"
|
|||
test "$XDG_DESKTOP_DIR" || export XDG_DESKTOP_DIR="$HOME/desktop"
|
||||
test "$XDG_DOCUMENTS_DIR" || export XDG_DOCUMENTS_DIR="$HOME/documents"
|
||||
test "$XDG_DOWNLOAD_DIR" || export XDG_DOWNLOAD_DIR="$HOME/downloads"
|
||||
test "$XDG_MUSIC_DIR" || export XDG_MUSIC_DIR="$HOME/music"
|
||||
test "$XDG_PICTURES_DIR" || export XDG_PICTURES_DIR="$HOME/pictures"
|
||||
test "$XDG_PROJECTS_DIR" || export XDG_PROJECTS_DIR="$HOME/projects"
|
||||
test "$XDG_VIDEOS_DIR" || export XDG_VIDEOS_DIR="$HOME/videos"
|
||||
|
||||
export XDG_MUSIC_DIR="$HOME/media/music"
|
||||
export XDG_PICTURES_DIR="$HOME/media/pictures"
|
||||
export XDG_VIDEOS_DIR="$HOME/media/videos"
|
||||
|
||||
## Non-Standard additions
|
||||
# non-standard, is added to path to enable execution of any files herein
|
||||
|
|
|
@ -118,8 +118,8 @@ set findprg='fd %A --hidden --exclude .git --exclude node_modules'
|
|||
mark h ~/
|
||||
mark d ~/downloads/
|
||||
mark p ~/projects/
|
||||
mark i ~/pictures/
|
||||
mark v ~/videos/
|
||||
mark i ~/media/pictures/
|
||||
mark v ~/media/videos/
|
||||
mark n ~/documents/notes/
|
||||
mark N ~/Nextcloud/
|
||||
mark l ~/documents/library/academia/pdf/
|
||||
|
|
Loading…
Reference in a new issue