Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng 39b10ba4e5
Fix font color problem in waybar 2022-10-30 23:11:15 +01:00
coolneng 7bcd9aff7c
Improve torrent name parsing of peerflix 2022-10-30 23:11:15 +01:00
2 changed files with 12 additions and 1 deletions

View File

@ -5,7 +5,7 @@ player=mpv
data_file=$HOME/Documents/IT/peerflix-db.csv data_file=$HOME/Documents/IT/peerflix-db.csv
parse_csv() { parse_csv() {
show_name=$(echo "$1" | cut -d "=" -f 3 | cut -d "%" -f 1 | tr + " ") show_name=$(echo "$1" | cut -d "=" -f 3 | awk -F "S[0-9]|[S|s]eason" '{print $1}' | tr -d "[:digit:]%" | tr +. " " | sed -e 's/[[:space:]]*$//')
episode=$(awk -F ',' -v var="$show_name" '$1 ~ var {print $2}' "$data_file") episode=$(awk -F ',' -v var="$show_name" '$1 ~ var {print $2}' "$data_file")
line_number=$(awk -F ',' -v var="$show_name" '$1 ~ var {print NR}' "$data_file") line_number=$(awk -F ',' -v var="$show_name" '$1 ~ var {print NR}' "$data_file")
} }

View File

@ -18,6 +18,15 @@ window#waybar.hidden {
opacity: 0.2; opacity: 0.2;
} }
/* Fix font color problem */
label {
all: unset;
}
button {
all: unset;
}
/* /*
window#waybar.empty { window#waybar.empty {
background-color: transparent; background-color: transparent;
@ -166,3 +175,5 @@ label:focus {
#mpd.paused { #mpd.paused {
} }