🎨 merge mbpr changes

This commit is contained in:
Daniel Thoren 2022-05-19 11:54:46 +02:00
parent 24036a2032
commit 1ef9ad2dda
7 changed files with 195 additions and 34 deletions

52
.config/mpd/mpd.conf Normal file
View file

@ -0,0 +1,52 @@
# Recommended location for database
db_file "~/.config/mpd/database"
# If running mpd using systemd, delete this line to log directly to systemd.
log_file "syslog"
# The music directory is by default the XDG directory, uncomment to amend and choose a different directory
#music_directory "~/music"
# Uncomment to refresh the database whenever files in the music_directory are changed
#auto_update "yes"
# Uncomment to enable the functionalities
#playlist_directory "~/.config/mpd/playlists"
#pid_file "~/.config/mpd/pid"
#state_file "~/.config/mpd/state"
#sticker_file "~/.config/mpd/sticker.sql"
audio_output {
type "pulse"
name "My pulse Device"
device "hw:0,0" # optional
format "44100:16:2" # optional
mixer_device "default" # optional
mixer_control "PCM" # optional
mixer_index "0" # optional
}
audio_output {
type "pulse"
name "MPD"
# server "remote_server" # optional
# sink "remote_server_sink" # optional
}
audio_output {
type "pulse"
name "My pulse EQ"
auto_resample "no"
use_mmap "yes"
device "plug:plugequal"
format "44100:16:2" # optional
mixer_device "default" # optional
mixer_control "PCM" # optional
mixer_index "0" # optional
}
mixer_type "software"
audio_output {
type "fifo"
name "FIFO"
path "/tmp/mpd.fifo"
format "44100:16:2"
}

27
.config/ncmpcpp/config Normal file
View file

@ -0,0 +1,27 @@
mpd_music_dir = "~/Music/"
ncmpcpp_directory = "~/.config/ncmpcpp"
lyrics_directory = "~/.config/ncmpcpp/lyrics"
#execute_on_song_change = "~/.ncmpcpp/songchange.sh"
## Unsupported mouse ##
mouse_support = "yes"
mouse_list_scroll_whole_page = "yes"
## Navigation ##
cyclic_scrolling = "yes"
header_text_scrolling = "yes"
jump_to_now_playing_song_at_start = "yes"
lines_scrolled = "2"
## Other ##
system_encoding = "utf-8"
regular_expressions = "extended"
##
## Appearance
## Other ##
now_playing_prefix = "❥ "
progressbar_look = "───"
colors_enabled = "yes"
autocenter_mode = "yes"
centered_cursor = "yes"

View file

@ -50,6 +50,10 @@ let g:vimwiki_sync_branch = "main"
let g:vimwiki_sync_commit_message = '$USER @ $HOST'
let g:sync_taskwarrior = 0
" Calendar setup
let g:calendar_first_day = 'monday' " set monday as first day of week
let g:calendar_week_number = 1 " add weeknumber
" LARBS inspired below
set title
set bg=light
@ -138,17 +142,17 @@ set noshowcmd
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
" Enable Goyo by default for mutt writing
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light
autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light
autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
" Automatically deletes all trailing whitespace and newlines at end of file on save. & reset cursor position
autocmd BufWritePre * let currPos = getpos(".")
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritePre * %s/\n\+\%$//e
autocmd BufWritePre *.[ch] %s/\%$/\r/e
autocmd BufWritePre * cal cursor(currPos[1], currPos[2])
autocmd BufWritePre * let currPos = getpos(".")
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritePre * %s/\n\+\%$//e
autocmd BufWritePre *.[ch] %s/\%$/\r/e
autocmd BufWritePre * cal cursor(currPos[1], currPos[2])
" When shortcut files are updated, renew bash and ranger configs with new material:
autocmd BufWritePost bm-files,bm-dirs !shortcuts