tint2 pipe
This commit is contained in:
parent
3fd8339675
commit
2c8bb44a03
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#TODO Handle more than one tint
|
||||
|
||||
#TODO Reset to defaults
|
||||
|
||||
TINT2PATH="$HOME/.config/tint2"
|
||||
@ -22,8 +22,9 @@ case $LANG in
|
||||
AUTOHIDE="Autoukrywanie ?"
|
||||
SIZEHIDDEN="Rozmiar gdy ukryty"
|
||||
ICONS="Ikony"
|
||||
CLOCK_LINE1=""
|
||||
CLOCK_LINE2=""
|
||||
CLOCK_LINE1="Zegar linia 1"
|
||||
CLOCK_LINE2="Zegar linia 2"
|
||||
NONE="brak"
|
||||
RESET="Resetuj"
|
||||
TOP="Góra"
|
||||
BOTTOM="Dół"
|
||||
@ -65,6 +66,9 @@ case $LANG in
|
||||
AUTOHIDE="Autohide?"
|
||||
SIZEHIDDEN="Size when hidden:"
|
||||
ICONS="Icon theme"
|
||||
CLOCK_LINE1="Clock line 1"
|
||||
CLOCK_LINE2="Clock line 2"
|
||||
NONE="none"
|
||||
RESET="Reset to default"
|
||||
TOP="Top"
|
||||
BOTTOM="Bottom"
|
||||
@ -106,6 +110,9 @@ case $LANG in
|
||||
AUTOHIDE="Autohide?"
|
||||
SIZEHIDDEN="Size when hidden:"
|
||||
ICONS="Icon theme"
|
||||
CLOCK_LINE1="Clock line 1"
|
||||
CLOCK_LINE2="Clock line 2"
|
||||
NONE="none"
|
||||
RESET="Reset to default"
|
||||
TOP="Top"
|
||||
BOTTOM="Bottom"
|
||||
@ -160,18 +167,18 @@ qactions () {
|
||||
# Clock
|
||||
if [[ "$PANELITEMS" == *C* ]]; then
|
||||
out+=("^sep()")
|
||||
out+=("Clock line 1 [ <b> $(date "+${TF1}") </b> ],^checkout(cl1)")
|
||||
out+=("Clock line 2 [ <b> $(date "+${TF2}") </b> ],^checkout(cl2)")
|
||||
out+=("$CLOCK_LINE1 [ <b> $(date "+${TF1}") </b> ],^checkout(cl1)")
|
||||
out+=("$CLOCK_LINE2 [ <b> $(date "+${TF2}") </b> ],^checkout(cl2)")
|
||||
out2+=("^tag(cl1)")
|
||||
out2+=("^sep(Clock first line)")
|
||||
out2+=("^sep($CLOCK_LINE1)")
|
||||
out2+=("<b>$(date +"%H:%M")</b> <small>(%H:%M)</small>,t2ctl clockline1 '%H:%M' ${TINT};$me")
|
||||
out2+=("<b>$(date +"%I:%M %p")</b> <small>(%I:%M %p)</small>,t2ctl clockline1 '%I:%M %p' ${TINT};$me")
|
||||
out2+=("<b>$(date +"%-I:%M %p")</b> <small>(%I-:%M %p)</small>,t2ctl clockline1 '%-I:%M %p' ${TINT};$me")
|
||||
out2+=("<b>$(date +"%H:%M:%S")</b> <small>(%H:%M:%S)</small>,t2ctl clockline1 '%H:%M:%S' ${TINT};$me")
|
||||
|
||||
out2+=("^tag(cl2)")
|
||||
out2+=("^sep(Clock second line )")
|
||||
out2+=("none,t2ctl clockline2 none ${TINT};$me")
|
||||
out2+=("^sep($CLOCK_LINE2)")
|
||||
out2+=("$NONE,t2ctl clockline2 none ${TINT};$me")
|
||||
out2+=("^sep()")
|
||||
out2+=("<b>$(date +"%A %d %B")</b> <small>(%A %d %B)</small>,t2ctl clockline2 '%A %d %B' ${TINT};$me")
|
||||
out2+=("<b>$(date +"%a %d %b")</b> <small>(%a %d %b)</small>,t2ctl clockline2 '%a %d %b' ${TINT};$me")
|
||||
@ -298,7 +305,7 @@ out+=("^sep($TINT2_CONFIGURE)")
|
||||
getvalues
|
||||
qactions
|
||||
out+=("$CONFIGURE <i>$TINT2</i>,tint2conf $TINT")
|
||||
out+=("$EDIT_TINT2 <i>$TINT2</i>,xdg-open $TINT")
|
||||
out+=("$EDIT_TINT2 <i>$TINT2</i>,geany $TINT")
|
||||
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user