I use the remind-gui calendar which displays a one month page using "Tcl/tk" whatever that is? I would like to be able to change the font displayed to bold or better yet bold white on a black background.
Can anyone tell me how to change this?
Bob
On Fri, 05 Dec 2014 12:25:52 -0500 "Bob Goodwin - Zuni, Virginia, USA" bobgoodwin@wildblue.net wrote:
I use the remind-gui calendar which displays a one month page using "Tcl/tk" whatever that is? I would like to be able to change the font displayed to bold or better yet bold white on a black background.
Can anyone tell me how to change this?
Bob
Not without modyfing source. Here is the patch to make fonts bold. This was easy. Colors are dynamic: active, disabled, ... http://www.tcl.tk/man/tcl8.5/TkCmd/options.htm Too much for me. BR, Bob
Patch: --- tkremind.ORG 2014-12-07 13:28:30.822795726 +0100 +++ tkremind 2014-12-07 13:40:53.548990817 +0100 @@ -2922,6 +2922,8 @@ proc SetFonts {} { global SetFontsWorked set h [winfo screenheight .] + font configure TkDefaultFont -weight bold + font configure TkFixedFont -weight bold if {$h <= 480} { # Small screen (maybe eeepc?) font configure TkDefaultFont -size 6
On 12/07/14 08:10, Bob Marcan wrote:
On Fri, 05 Dec 2014 12:25:52 -0500 "Bob Goodwin - Zuni, Virginia, USA" bobgoodwin@wildblue.net wrote:
I use the remind-gui calendar which displays a one month page using "Tcl/tk" whatever that is? I would like to be able to change the font displayed to bold or better yet bold white on a black background.
Can anyone tell me how to change this?
Bob
Not without modyfing source. Here is the patch to make fonts bold. This was easy. Colors are dynamic: active, disabled, ... http://www.tcl.tk/man/tcl8.5/TkCmd/options.htm Too much for me. BR, Bob
Patch: --- tkremind.ORG 2014-12-07 13:28:30.822795726 +0100 +++ tkremind 2014-12-07 13:40:53.548990817 +0100 @@ -2922,6 +2922,8 @@ proc SetFonts {} { global SetFontsWorked set h [winfo screenheight .]
- font configure TkDefaultFont -weight bold
- font configure TkFixedFont -weight bold if {$h <= 480} { # Small screen (maybe eeepc?) font configure TkDefaultFont -size 6
Ok, I thank you for this information but I don't know how or where to apply a patch. I tried /home/bobg/.tkremindrc without success, it produces several errors and .tkremindrc is normally an empty file anyway which leads me to believe I'm looking in the wrong place?
Bob
On Sun, 07 Dec 2014 09:51:16 -0500 "Bob Goodwin - Zuni, Virginia, USA" bobgoodwin@wildblue.net wrote:
Ok, I thank you for this information but I don't know how or where to apply a patch. I tried /home/bobg/.tkremindrc without success, it produces several errors and .tkremindrc is normally an empty file anyway which leads me to believe I'm looking in the wrong place?
Bob
cp /bin/tkremind /tmp cd /tmp patch < patch.file.name ./tkremind
BR, Bob
On 12/07/14 10:18, Bob Marcan wrote:
cp /bin/tkremind /tmp cd /tmp patch < patch.file.name ./tkremind
BR, Bob
Well, if nothing else I've learned that "patch" is a bash command and has a man page.
But I am still doing something wrong:
[root@box10 tmp]# patch < --- tkremind.ORG2014-12-07 13:28:30.822795726 +0100 bash: ---: No such file or directory [root@box10 tmp]# +++ tkremind 2014-12-07 13:40:53.548990817 +0100 bash: +++: command not found... [root@box10 tmp]# @@ -2922,6 +2922,8 @@ bash: @@: command not found... [root@box10 tmp]# proc SetFonts {} { bash: proc: command not found... [root@box10 tmp]# global SetFontsWorked bash: global: command not found... [root@box10 tmp]# set h [winfo screenheight .] [root@box10 tmp]# + font configure TkDefaultFont -weight bold bash: +: command not found... [root@box10 tmp]# + font configure TkFixedFont -weight bold bash: +: command not found... [root@box10 tmp]# if {$h <= 480} {
# Small screen (maybe eeepc?) font configure TkDefaultFont -size 6
It may be obvious to you, I hope, but don't know ...
Thanks,
Bob
On 07.12.2014 16:57, Bob Goodwin - Zuni, Virginia, USA wrote:
On 12/07/14 10:18, Bob Marcan wrote:
cp /bin/tkremind /tmp cd /tmp patch < patch.file.name ./tkremind
BR, Bob
Well, if nothing else I've learned that "patch" is a bash command and has a man page.
But I am still doing something wrong:
[root@box10 tmp]# patch < --- tkremind.ORG2014-12-07 13:28:30.822795726 +0100 bash: ---: No such file or directory [root@box10 tmp]# +++ tkremind 2014-12-07 13:40:53.548990817 +0100 bash: +++: command not found... [root@box10 tmp]# @@ -2922,6 +2922,8 @@ bash: @@: command not found... [root@box10 tmp]# proc SetFonts {} { bash: proc: command not found... [root@box10 tmp]# global SetFontsWorked bash: global: command not found... [root@box10 tmp]# set h [winfo screenheight .] [root@box10 tmp]# + font configure TkDefaultFont -weight bold bash: +: command not found... [root@box10 tmp]# + font configure TkFixedFont -weight bold bash: +: command not found... [root@box10 tmp]# if {$h <= 480} {
# Small screen (maybe eeepc?) font configure TkDefaultFont -size 6
It may be obvious to you, I hope, but don't know ...
Thanks,
Bob
You can add these two lines(without pluses) directly to a file(/bin/tkremind), copy/paste method.
Otherwise, in this case # cp /bin/tkremind /bin/tkremind-bkp # patch /bin/tkremind patchfile
On 07.12.2014 17:20, poma wrote:
On 07.12.2014 16:57, Bob Goodwin - Zuni, Virginia, USA wrote:
On 12/07/14 10:18, Bob Marcan wrote:
cp /bin/tkremind /tmp cd /tmp patch < patch.file.name ./tkremind
BR, Bob
Well, if nothing else I've learned that "patch" is a bash command and has a man page.
But I am still doing something wrong:
[root@box10 tmp]# patch < --- tkremind.ORG2014-12-07 13:28:30.822795726 +0100 bash: ---: No such file or directory [root@box10 tmp]# +++ tkremind 2014-12-07 13:40:53.548990817 +0100 bash: +++: command not found... [root@box10 tmp]# @@ -2922,6 +2922,8 @@ bash: @@: command not found... [root@box10 tmp]# proc SetFonts {} { bash: proc: command not found... [root@box10 tmp]# global SetFontsWorked bash: global: command not found... [root@box10 tmp]# set h [winfo screenheight .] [root@box10 tmp]# + font configure TkDefaultFont -weight bold bash: +: command not found... [root@box10 tmp]# + font configure TkFixedFont -weight bold bash: +: command not found... [root@box10 tmp]# if {$h <= 480} {
# Small screen (maybe eeepc?) font configure TkDefaultFont -size 6
It may be obvious to you, I hope, but don't know ...
Thanks,
Bob
You can add these two lines(without pluses) directly to a file(/bin/tkremind), copy/paste method.
Otherwise, in this case # cp /bin/tkremind /bin/tkremind-bkp # patch /bin/tkremind patchfile
or only # patch --backup /bin/tkremind patchfile
which will patch & produce backup file /bin/tkremind.orig
Btw, how does tkrewind compare with osmo, also available in the Fedora repos?
Also, is there an easy way to reload the necessary files in either of them?
Many thanks, Ranjan
____________________________________________________________ GET FREE 5GB EMAIL - Check out spam free email with many cool features! Visit http://www.inbox.com/email to find out more!
On 07.12.2014 17:38, Ranjan Maitra wrote:
Btw, how does tkrewind compare with osmo, also available in the Fedora repos?
Also, is there an easy way to reload the necessary files in either of them?
Many thanks, Ranjan
https://wiki.archlinux.org/index.php/List_of_applications/Other#Time_managem... $ repoquery -i dayplanner orage osmo ... or sticky notes and pen :)
On 12/07/14 11:36, poma wrote:
Otherwise, in this case # cp /bin/tkremind /bin/tkremind-bkp # patch /bin/tkremind patchfile
or only # patch --backup /bin/tkremind patchfile
which will patch & produce backup file /bin/tkremind.orig
I backed it up before I began messing with it.
For whatever reason the "patch" does not work. I was hoping that if I could change one characteristic I would be able to extrapolate a little bit of knowledge and change a few other things to make it easier for me to read.
However at this point I will give up and just live with what I have until I can find something that does what I want. For years I simply made notes on a monthly paper calendar page. Tkremind lets me do the same on the computer with a few extras. It works well enough, it's just that I need more contrast, thought bold text would be workable, prefer white text on black which I use for everything else.
Thanks to everyone for the responses,
Bob
On Sun, 07 Dec 2014 10:57:37 -0500, Bob Goodwin - Zuni, Virginia, USA wrote:
On 12/07/14 10:18, Bob Marcan wrote:
cp /bin/tkremind /tmp cd /tmp patch < patch.file.name ./tkremind
BR, Bob
Well, if nothing else I've learned that "patch" is a bash command and has a man page.
But I am still doing something wrong:
[root@box10 tmp]# patch < --- tkremind.ORG2014-12-07 13:28:30.822795726 +0100 bash: ---: No such file or directory
You are expected to give it the _filename_ of the patch file, NOT the contents of that file.
Alternatively, you can also open the tkremind program with your favourite text editor and edit it yourself to apply the changes you see in the patch file. Lines in the patch file starting with '+' are to be added, lines starting with '-' are to be deleted. Without the leading +/-, of course. The patch only adds two lines to a procedure called SetFonts later than line 2922, so that will be easy to do with an editor, too.
Reading up on how to use "patch" is highly recommended, though, for anyone who wants to apply larger patch files.
On 12/08/14 06:19, Michael Schwendt wrote:
You are expected to give it the _filename_ of the patch file, NOT the contents of that file.
Alternatively, you can also open the tkremind program with your favourite text editor and edit it yourself to apply the changes you see in the patch file. Lines in the patch file starting with '+' are to be added, lines starting with '-' are to be deleted. Without the leading ±, of course. The patch only adds two lines to a procedure called SetFonts later than line 2922, so that will be easy to do with an editor, too.
Reading up on how to use "patch" is highly recommended, though, for anyone who wants to apply larger patch files.
Thanks much for this information! That's what I was looking for.
I'll have another try at it this morning.
Again, thanks,
Bob
On 12/08/14 06:19, Michael Schwendt wrote:
Alternatively, you can also open the tkremind program with your favourite text editor and edit it yourself to apply the changes you see in the patch file. Lines in the patch file starting with '+' are to be added, lines starting with '-' are to be deleted. Without the leading ±, of course. The patch only adds two lines to a procedure called SetFonts later than line 2922, so that will be easy to do with an editor, too.
Good, knowing that I was able to effect a considerable improvement [for me] in the calendar display:
# Adjust font defaults for screen size proc SetFonts {} { global SetFontsWorked set h [winfo screenheight .] if {$h <= 1480} { # Small screen (maybe eeepc?) font configure TkDefaultFont -size 14 font configure TkFixedFont -size 12 font configure TkDefaultFont -weight bold font configure TkFixedFont -weight bold } set SetFontsWorked 1 }
main
I had to change the line " if {$h <= 1480} { " for the changes to be recognized. I would have liked to change the color scheme too but could not get that tp work, perhaps with some more time spent reading the tcl.tk instructions.
Thanks for the help,
Bob