t2 menu clock

master
Daniel Napora 2022-08-03 00:15:58 +02:00
parent 2a2151fdf7
commit ab8270c738
1 changed files with 14 additions and 1 deletions

View File

@ -110,7 +110,18 @@ reset () {
cp "/usr/share/mabox/lang/${LNG}/.config/tint2/${1}" "$HOME/.config/tint2/" cp "/usr/share/mabox/lang/${LNG}/.config/tint2/${1}" "$HOME/.config/tint2/"
restartt2 restartt2
} }
clockline1 () {
sd "^time1_format.*$" "time1_format = ${1}" ${T2CONFFILE}
restartt2
}
clockline2 () {
if [[ "$1" == "none" ]];then
sd "^time2_format.*$" "time2_format =" ${T2CONFFILE}
else
sd "^time2_format.*$" "time2_format = ${1}" ${T2CONFFILE}
fi
restartt2
}
case "$1" in case "$1" in
position) pos "$2";; position) pos "$2";;
@ -125,6 +136,8 @@ case "$1" in
autohide) autohide "$2" ;; autohide) autohide "$2" ;;
hideheight) hideheight "$2" ;; hideheight) hideheight "$2" ;;
icontheme) icontheme "$2" ;; icontheme) icontheme "$2" ;;
clockline1) clockline1 "$2";;
clockline2) clockline2 "$2";;
reset) reset "$2" ;; reset) reset "$2" ;;
*) : ;; *) : ;;
esac esac