From 0a4de04c6c5ba8aef3918b0776f276c97b9ede89 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Mon, 7 Nov 2016 15:35:26 +1300 Subject: [PATCH] Add mpd systemd service files, mpv config and minor weechat colouring --- README.md | 1 + mpd/.config/systemd/user/mpd.service | 13 +++++++++++++ mpd/.config/systemd/user/mpdas.service | 9 +++++++++ mpv/.config/mpv/lua-settings/osc.conf | 4 ++++ mpv/.config/mpv/mpv.conf | 27 ++++++++++++++++++++++++++ weechat/.config/weechat/buffers.conf | 2 +- 6 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 mpd/.config/systemd/user/mpd.service create mode 100644 mpd/.config/systemd/user/mpdas.service create mode 100644 mpv/.config/mpv/lua-settings/osc.conf create mode 100644 mpv/.config/mpv/mpv.conf diff --git a/README.md b/README.md index 38e6492..9ce504d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ git > global git config & aliases lftp > sftp management mail > mail config - mutt/mbsync mpd > music player daemon config +mpv > who needs vlc? minimal video player ncmpcpp > ncurses mpc++ ui/colour settings & playlists npm > npm configuration (ha ha) nvim > neovim config & plugins diff --git a/mpd/.config/systemd/user/mpd.service b/mpd/.config/systemd/user/mpd.service new file mode 100644 index 0000000..64505d5 --- /dev/null +++ b/mpd/.config/systemd/user/mpd.service @@ -0,0 +1,13 @@ +[Unit] +Description=Music Player Daemon +After=network.target sound.target + +[Service] +ExecStart=/usr/bin/mpd --no-daemon + +# allow MPD to use real-time priority 50 +LimitRTPRIO=50 +LimitRTTIME=infinity + +[Install] +WantedBy=default.target diff --git a/mpd/.config/systemd/user/mpdas.service b/mpd/.config/systemd/user/mpdas.service new file mode 100644 index 0000000..3c48f4a --- /dev/null +++ b/mpd/.config/systemd/user/mpdas.service @@ -0,0 +1,9 @@ +[Unit] +Description=AudoScrobbler client for MPD +After=mpd.service + +[Service] +ExecStart=/usr/bin/mpdas + +[Install] +WantedBy=default.target diff --git a/mpv/.config/mpv/lua-settings/osc.conf b/mpv/.config/mpv/lua-settings/osc.conf new file mode 100644 index 0000000..9fa5f1f --- /dev/null +++ b/mpv/.config/mpv/lua-settings/osc.conf @@ -0,0 +1,4 @@ +layout=bottombar +deadzonesize=0 +minmousemove=3 +seekbarstyle=bar diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf new file mode 100644 index 0000000..f0d727f --- /dev/null +++ b/mpv/.config/mpv/mpv.conf @@ -0,0 +1,27 @@ +# language +# display english subtitles if available +slang=eng,en,enUS,en-US +# play english audio if available +alang=eng,en,enUS,en-US + +# display +# font for on-screen display (OSD) +osd-font='Source Code Pro for Powerline' + +# font to use for subtitles +sub-font='Source Code Pro for Powerline' + +# force starting with centered window +geometry=50%:50% + +# don't allow a new window to have a size larger than 90% of screen +autofit-larger=90%x90% + +# keep player window on top of all other windows +ontop=yes + +# good quality screenshots +screenshot-format=png +screenshot-png-compression=8 +screenshot-tag-colorspace=yes +screenshot-high-bit-depth=yes diff --git a/weechat/.config/weechat/buffers.conf b/weechat/.config/weechat/buffers.conf index e3180f5..4da4846 100644 --- a/weechat/.config/weechat/buffers.conf +++ b/weechat/.config/weechat/buffers.conf @@ -7,7 +7,7 @@ current_bg = 240 current_fg = 4 default_bg = default default_fg = default -hotlist_highlight_bg = default +hotlist_highlight_bg = 1 hotlist_highlight_fg = magenta hotlist_low_bg = default hotlist_low_fg = white