From: Ian Jackson Date: Tue, 10 Mar 2020 15:10:52 +0000 (+0000) Subject: xbatmon-simple-tray: User settings hook X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=fc65e0bd893e62f4064580dee6cad97a6c3c2348;p=chiark-tcl-applet.git xbatmon-simple-tray: User settings hook source ~/.config/xbatmon-simple-tray, if it exists. Can be used to mangle anything you like, really. Signed-off-by: Ian Jackson --- diff --git a/xbatmon-simple-tray b/xbatmon-simple-tray index 292f415..1c9c864 100755 --- a/xbatmon-simple-tray +++ b/xbatmon-simple-tray @@ -215,6 +215,7 @@ proc mode/-tooltip-string {} { #----- command line parsing ----- set mode normal +set usersettings $env(HOME)/.config/xbatmon-simple-tray while {[args::next_special arg]} { switch -exact -- $arg { @@ -224,4 +225,8 @@ while {[args::next_special arg]} { } } +if {[file exists $usersettings]} { + source $usersettings +} + mode/$mode