diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf new file mode 100644 index 0000000..c1aa6b9 --- /dev/null +++ b/.config/mpd/mpd.conf @@ -0,0 +1,22 @@ +# Recommended location for database +db_file "~/.config/mpd/database" + +# Logs to systemd journal +log_file "syslog" + +# The music 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 "pulse audio" +} diff --git a/.config/polybar/config b/.config/polybar/config index c9c7b3b..263860d 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -8,7 +8,7 @@ empty = ${xrdb:polybar.empty:#808080} [bar/panel] monitor = ${env:MONITOR:} modules-left = bspwm xwindow -modules-right = date +modules-right = mpd date wm-restack = bspwm enable-ipc = true font-0 = ${xrdb:polybar.font:Iosevka:pixelsize=23:antialias=true:autohint=true;5} @@ -39,6 +39,12 @@ label-empty-foreground = ${colors.empty} type = internal/xwindow label = %title% +[module/mpd] +type = internal/mpd +format-online = +label-song-maxlen = 70 +label-song-ellipsis = true + [module/date] type = internal/date time = %H:%M diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index b6b2093..c871388 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -26,6 +26,15 @@ super + semicolon super + F6 sh ~/.config/bspwm/commands.sh switch-colors +XF86AudioPlay + mpc toggle + +{XF86AudioLowerVolume,XF86AudioRaiseVolume} + pamixer -{d,i} 5 + +XF86AudioMute + pamixer -t + # # bspwm hotkeys #