Mise à jouir de plusieurs fichiers
This commit is contained in:
parent
99b61aee79
commit
e0358972ee
22 changed files with 113 additions and 94 deletions
.i3blocks
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
LONG=30
|
||||
SHORT=15
|
||||
LONG=25
|
||||
SHORT=10
|
||||
|
||||
human_time() {
|
||||
local seconds="$1"
|
||||
|
@ -34,6 +34,9 @@ case $BLOCK_BUTTON in
|
|||
1) mpc -q prev ;;
|
||||
2) mpc -q toggle ;;
|
||||
3) mpc -q next ;;
|
||||
4) mpc -q volume +2 ;;
|
||||
5) mpc -q volume -2 ;;
|
||||
#?*) notify-send "Test" "$BLOCK_BUTTON" ;;
|
||||
esac
|
||||
|
||||
status="<span foreground=\"#6699CC\">"
|
||||
|
@ -109,17 +112,17 @@ then
|
|||
|
||||
if [[ "$longsong" =~ § ]]
|
||||
then
|
||||
longsong="<i>${longsong/§/</i> }"
|
||||
longsong="<u>${longsong/§/</u> }"
|
||||
elif [[ "$song" =~ § ]]
|
||||
then
|
||||
longsong="<i>${longsong}</i>"
|
||||
longsong="<u>${longsong}</u>"
|
||||
fi
|
||||
if [[ "$shortsong" =~ § ]]
|
||||
then
|
||||
shortsong="<i>${shortsong/§/</i> }"
|
||||
shortsong="<u>${shortsong/§/</u> }"
|
||||
elif [[ "$song" =~ § ]]
|
||||
then
|
||||
shortsong="<i>${shortsong}</i>"
|
||||
shortsong="<u>${shortsong}</u>"
|
||||
fi
|
||||
|
||||
echo "${longsong} $status$longtime</span>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue