Add music to status bar

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-25 17:25:23 +01:00
parent 474a3d4f30
commit ef20a492de
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
5 changed files with 69 additions and 4 deletions

View file

@ -186,6 +186,7 @@ bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
# Music controls
bindsym XF86AudioStop exec --no-startup-id cmus-remote -s
bindsym XF86AudioPlay exec --no-startup-id cmus-remote -u
bindsym $mod+KP_Enter exec --no-startup-id cmus-remote -u
bindsym XF86AudioNext exec --no-startup-id cmus-remote -n
@ -220,8 +221,7 @@ exec discord
exec nemo
exec nemo
exec keepassxc
#exec termite -e cmus --name cmus
exec termite -e cmus --name cmus
# Assign programs to specific workspaces
###

View file

@ -47,6 +47,17 @@ tray-position = right
inherit = bar/top
monitor = eDP-1
[bar/bottom]
inherit = bar/top
bottom = true
modules-left =
modules-center =
modules-right = music
[bar/bottom2]
inherit = bar/bottom
monitor = eDP-1
[module/i3]
type = internal/i3
@ -182,4 +193,11 @@ exec = echo -e "\uf011"
format = <label>
label = %output%
interval = 5
click-left = $HOME/bin/power.sh
click-left = $HOME/bin/power.sh
[module/music]
type = custom/script
exec = $HOME/bin/music.sh
format = <label>
label = %output%
interval = 1

View file

@ -21,3 +21,5 @@ while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch bar1 and bar2
polybar top &
polybar top2 &
polybar bottom &
polybar bottom2 &