Prepend topic folders with +
This commit is contained in:
		
							parent
							
								
									61869defde
								
							
						
					
					
						commit
						e98c8ec1c3
					
				
							
								
								
									
										10
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							|  | @ -3,10 +3,10 @@ | |||
| *.pid | ||||
| *.db | ||||
| 
 | ||||
| shell/tmux/.tmux/plugins/ | ||||
| shell/tmux/.tmuxifier/ | ||||
| shell/+tmux/.tmux/plugins/ | ||||
| shell/+tmux/.tmuxifier/ | ||||
| 
 | ||||
| shell/mpd/.config/mpd/mpd.* | ||||
| shell/mpd/.config/mpd/mpdstate | ||||
| shell/+mpd/.config/mpd/mpd.* | ||||
| shell/+mpd/.config/mpd/mpdstate | ||||
| 
 | ||||
| weechat/.weechat/* | ||||
| +weechat/.weechat/* | ||||
|  |  | |||
							
								
								
									
										47
									
								
								os/+arch/.config/panel/lemons/disabled/music
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										47
									
								
								os/+arch/.config/panel/lemons/disabled/music
									
									
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,47 @@ | |||
| #!/usr/bin/env dash | ||||
| 
 | ||||
| . $(dirname $0)/../panel-config | ||||
| 
 | ||||
| progress_bar() { | ||||
|     BAR_SIZE=${2:-26} | ||||
|     C1="%{F${COLOR_6}}-%{F-}" | ||||
|     C2="%{F${COLOR_DIM}}-%{F-}" | ||||
|     DELIM= | ||||
| 
 | ||||
|     echo "$1" | SIZE=$BAR_SIZE CHAR1="$C1" CHAR2="$C2" SEP='' START="$DELIM" END="$DELIM" mkb | ||||
| } | ||||
| 
 | ||||
| while :; do | ||||
|     if ! pgrep mpd >/dev/null; then | ||||
|         sleep 5 | ||||
|         continue | ||||
|     fi | ||||
| 
 | ||||
|     output=$(mpc -h $HOME/.config/mpd/mpd.sock --format ";%title%;%artist%;%album%") | ||||
|     if echo $output | grep "^;" 2>&1 >/dev/null; then | ||||
|         # title=$(echo "$output" | head -1 | cut -d';' -f2) | ||||
|         # artist=$(echo "$output" | head -1 | cut -d';' -f3) | ||||
|         # album=$(echo "$output" | head -1 | cut -d';' -f4) | ||||
|         seek=$(echo "$output" | awk 'NR==2 {print $3}') | ||||
|         perc=$(echo "$output" | awk 'NR==2 {print $4}' | tr -d '()') | ||||
|         state=$(echo "$output" | awk 'NR==2 {print $1}') | ||||
| 
 | ||||
|         case "$state" in | ||||
|             "[playing]") icon="%{F${COLOR_2}}${ICON_PLAY}%{F-}" ;; | ||||
|             "[paused]")  icon="%{F${COLOR_4}}${ICON_PAUSE}%{F-}" ;; | ||||
|             *)           icon="" ;; | ||||
|         esac | ||||
| 
 | ||||
|         if [ -n "$icon" ] | ||||
|         then | ||||
|             # song="$title - $artist" | ||||
|             # [ -n "$album" ] && song="$song ($album)" | ||||
|             echo "S%{B${COLOR_ALTBG}} $icon ${seek%/*} $(progress_bar $perc 16) ${seek#*/}  %{B-} " | ||||
|         fi | ||||
|     else | ||||
|         echo "S" | ||||
|     fi | ||||
|     sleep 1 | ||||
| done | ||||
| 
 | ||||
| # vim:set ft=sh: | ||||
|  | @ -1,13 +1,13 @@ | |||
| os/arch | ||||
| os/arch/automount | ||||
| docker | ||||
| dev/* | ||||
| editor/emacs | ||||
| editor/neovim | ||||
| shell/zsh | ||||
| shell/ssh | ||||
| shell/fzf | ||||
| shell/tmux | ||||
| shell/mu | ||||
| shell/mpd | ||||
| vcs/* | ||||
| os/+arch | ||||
| os/+arch/+automount | ||||
| +docker | ||||
| dev/+* | ||||
| editor/+emacs | ||||
| editor/+neovim | ||||
| shell/+zsh | ||||
| shell/+ssh | ||||
| shell/+fzf | ||||
| shell/+tmux | ||||
| shell/+mu | ||||
| shell/+mpd | ||||
| vcs/+* | ||||
|  |  | |||
Some files were not shown because too many files have changed in this diff Show more
		Loading…
	
		Reference in a new issue