From 7be3c5929511edd6566acb2313edff4418eccd63 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 26 Mar 2022 09:06:09 +0100 Subject: [PATCH] t2ctl --- bin/t2ctl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/t2ctl b/bin/t2ctl index 519fa75..5dcb785 100755 --- a/bin/t2ctl +++ b/bin/t2ctl @@ -61,6 +61,18 @@ shrink () { sd "^panel_shrink.*$" "panel_shrink = ${1}" ${T2CONFFILE} restartt2 } +autohide () { + sd "^autohide .*$" "autohide = ${1}" ${T2CONFFILE} + restartt2 +} +reset () { + case "$LANG" in + pl*) LNG=pl ;; + *) LNG=en ;; + esac + cp "/usr/share/mabox/lang/${LNG}/.config/tint2/${1}" "$HOME/.config/tint2/" + restartt2 +} case "$1" in @@ -73,5 +85,7 @@ case "$1" in paddingh) paddinghor "$2" ;; paddingv) paddingver "$2" ;; spacing) spacing "$2" ;; + autohide) autohide "$2" ;; + reset) reset "$2" ;; *) : ;; esac