mpd config song on polybar
This commit is contained in:
parent
f6139f11a0
commit
9180080c47
22
.config/mpd/mpd.conf
Normal file
22
.config/mpd/mpd.conf
Normal file
@ -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"
|
||||||
|
}
|
@ -8,7 +8,7 @@ empty = ${xrdb:polybar.empty:#808080}
|
|||||||
[bar/panel]
|
[bar/panel]
|
||||||
monitor = ${env:MONITOR:}
|
monitor = ${env:MONITOR:}
|
||||||
modules-left = bspwm xwindow
|
modules-left = bspwm xwindow
|
||||||
modules-right = date
|
modules-right = mpd date
|
||||||
wm-restack = bspwm
|
wm-restack = bspwm
|
||||||
enable-ipc = true
|
enable-ipc = true
|
||||||
font-0 = ${xrdb:polybar.font:Iosevka:pixelsize=23:antialias=true:autohint=true;5}
|
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
|
type = internal/xwindow
|
||||||
label = %title%
|
label = %title%
|
||||||
|
|
||||||
|
[module/mpd]
|
||||||
|
type = internal/mpd
|
||||||
|
format-online = <label-song>
|
||||||
|
label-song-maxlen = 70
|
||||||
|
label-song-ellipsis = true
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
time = %H:%M
|
time = %H:%M
|
||||||
|
@ -26,6 +26,15 @@ super + semicolon
|
|||||||
super + F6
|
super + F6
|
||||||
sh ~/.config/bspwm/commands.sh switch-colors
|
sh ~/.config/bspwm/commands.sh switch-colors
|
||||||
|
|
||||||
|
XF86AudioPlay
|
||||||
|
mpc toggle
|
||||||
|
|
||||||
|
{XF86AudioLowerVolume,XF86AudioRaiseVolume}
|
||||||
|
pamixer -{d,i} 5
|
||||||
|
|
||||||
|
XF86AudioMute
|
||||||
|
pamixer -t
|
||||||
|
|
||||||
#
|
#
|
||||||
# bspwm hotkeys
|
# bspwm hotkeys
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user