mpvwrap: Lay a little work down for future cava integration

This commit is contained in:
Salt 2017-10-24 16:59:29 -04:00
parent 7129c69497
commit ea89e9316f
3 changed files with 4 additions and 3 deletions

View File

@ -34,7 +34,8 @@ cachecontent="$(cat $cachefile)"
function video-play {
notify-send -u low -t 10 -a 'MPV' "Embedded Video" "Playing $1 as a stream embedded in the desktop"
pkill -x mpv
pkill -x xwinwrap
#xwinwrap -g 1920x1048+0+0 -ni -b -nf -o 0.5 -ov -- urxvt -bg rgba:2828/2828/2828/FFFF -embed WID -e cava
xwinwrap -ni -fs -b -nf -ov -- mpv -wid WID --title="Desktop Video" --loop-playlist=inf $1
return 0
}

View File

@ -94,7 +94,7 @@ method = pulse
# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow.
# Or defined by hex code '#xxxxxx' (hex code must be within '').
background = '#1d2021' #bg0_h
#background = '#1d2021' #bg0_h
foreground = 'cyan'

View File

@ -99,7 +99,7 @@ set $w10 10
bindsym $mod+n exec "i3-msg rename workspace to $(rofi -dmenu -p 'Rename workspace: ' -l 1)"
bindsym $mod+p exec --no-startup-id "~/.bin/mpv-xwinwrap"
bindsym $mod+$shift+p exec --no-startup-id "pkill mpv"
bindsym $mod+$shift+p exec --no-startup-id "pkill xwinwrap"
###################
## Keybindings