diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-02-09 14:23:12 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-02-09 14:23:12 +0100 |
commit | d56404164f7a04cc6433a7693b56e18dec7ec994 (patch) | |
tree | 9fd5a6c32fe0e7fdd23a79b67641046526cbba8f | |
parent | 5701d5523c117e9223e5fd0086407dd74e148626 (diff) | |
download | scripts-d56404164f7a04cc6433a7693b56e18dec7ec994.tar.gz scripts-d56404164f7a04cc6433a7693b56e18dec7ec994.zip |
sรกb feb 9 14:23:14 CET 2019
-rwxr-xr-x | floats/youtube-dlFloat.sh | 2 | ||||
-rwxr-xr-x | floats/youtube-dlFloatAudio.sh | 2 | ||||
-rwxr-xr-x | i3blocks/i3battery.sh | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/floats/youtube-dlFloat.sh b/floats/youtube-dlFloat.sh index 56f5eb0..f3bbf52 100755 --- a/floats/youtube-dlFloat.sh +++ b/floats/youtube-dlFloat.sh @@ -1,3 +1,3 @@ #!/bin/sh -urxvt -title "floating" -geometry "100x8-0-0" -e youtube-dl -o "~/downloads/videos/%(title)s.%(ext)s" "$1" & +urxvt -title "floating" -geometry "100x8-0-0" -e youtube-dl --all-subs --embed-subs -o "~/downloads/videos/%(title)s.%(ext)s" "$1" & diff --git a/floats/youtube-dlFloatAudio.sh b/floats/youtube-dlFloatAudio.sh index 1db5d23..e770f69 100755 --- a/floats/youtube-dlFloatAudio.sh +++ b/floats/youtube-dlFloatAudio.sh @@ -1,3 +1,3 @@ #!/bin/sh -urxvt -title "floating" -geometry "100x8-0-0" -e youtube-dl -o "~/downloads/audios/%(title)s.%(ext)s" -x --audio-format mp3 "$1" & +urxvt -title "floating" -geometry "100x8-0-0" -e youtube-dl -o "~/downloads/audios/%(title)s.%(ext)s" -x --audio-format mp3 --embed-thumbnail "$1" & diff --git a/i3blocks/i3battery.sh b/i3blocks/i3battery.sh index 735b1b4..3232a48 100755 --- a/i3blocks/i3battery.sh +++ b/i3blocks/i3battery.sh @@ -31,6 +31,7 @@ fi [ "$status" = "Charging" ] && color="#1fffaf" -printf "<span color='%s'>%s%s%s</span>" "$color" "$(echo "$status" | sed -e "s/,//g;s/Discharging/๐/;s/Charging/๐/;s/Unknown/โป๏ธ/;s/Full/โก/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" +remaining=$(acpi | cut -d' ' -f5) +printf "<span color='%s'>%s%s%s (%s)</span>" "$color" "$(echo "$status" | sed -e "s/,//g;s/Discharging/๐/;s/Charging/๐/;s/Unknown/โป๏ธ/;s/Full/โก/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" "$remaining" echo "" |