vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit db6ca1291b51412bbdc1572d0d3a9a56f547e407
parent a5bdb8763b588445ebff26165f8d027926f9d6d3
Author: Cem Keylan <warc1998@gmail.com>
Date:   Sun,  2 Jun 2019 02:11:18 +0300

Added youtube-dl functionality

Diffstat:
M.config/polybar/config | 17+++++++++++++++--
Abin/dwatch | 9+++++++++
2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/.config/polybar/config b/.config/polybar/config @@ -123,7 +123,7 @@ font-3 = Material Icons:style=Regular:size=13;4 modules-left = i3 bspwm modules-center = todo -modules-right = nightmode xkeyboard filesystem rootfs memory cpu +modules-right = wl nightmode xkeyboard filesystem rootfs memory cpu tray-position = right tray-padding = 2 @@ -158,7 +158,7 @@ font-3 = Material Icons:style=Regular:size=13;4 modules-left = i3 bspwm modules-center = todo -modules-right = nightmode xkeyboard filesystem rootfs memory cpu +modules-right = wl nightmode xkeyboard filesystem rootfs memory cpu tray-position = right tray-padding = 2 @@ -169,6 +169,10 @@ cursor-scroll = ns-resize [module/title] type = internal/xwindow +format = <label> +label = %title% +label-maxlen = 80 + [module/bspwm] type = internal/bspwm @@ -389,6 +393,15 @@ click-left = terminator -e "neomutt && exit" click-middle = terminator -e "neomutt && exit" click-right = terminator -e "neomutt && exit" +[module/wl] +; Simple script to read my .watchlater directory +type = custom/script +exec = echo -e " $(ls $HOME/.watchlater | wc -l)" + +click-left = $HOME/bin/dwatch +click-middle = $HOME/bin/dwatch +click-right = $HOME/bin/dwatch + [module/time] type = internal/date interval = 1 diff --git a/bin/dwatch b/bin/dwatch @@ -0,0 +1,9 @@ +#!/bin/sh + +VID=$(ls $HOME/.watchlater | dmenu -p "What will you watch") +if [ "$VID" = "" ] +then + exit +else + mpv $HOME/.watchlater/"$VID" >/dev/null 2>&1 & +fi