SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes, thank you CMartin for offering this great customization code for the Xcalc calculator!
I've been using Kcalc as my default calculator app since xcalc is so bland (even with -stipple...), but I must admit this customization makes it pop right out of the monitor. Mind you I did have to figure out that a line needed to be added to my local .Xresources file in order to access any of the mods incorporated in /etc/X11/app-defaults/XCalc-color, which is where I put your code. That is, in local .Xresources I needed to add:
#ifdef COLOR
*customization: -color
Interesting that you've also modified the cursor look.
Yes, thank you CMartin for offering this great customization code for the Xcalc calculator!
I've been using Kcalc as my default calculator app since xcalc is so bland (even with -stipple...), but I must admit this customization makes it pop right out of the monitor. Mind you I did have to figure out that a line needed to be added to my local .Xresources file in order to access any of the mods incorporated in /etc/X11/app-defaults/XCalc-color, which is where I put your code. That is, in local .Xresources I needed to add:
#ifdef COLOR
*customization: -color
Interesting that you've also modified the cursor look.
Try to preload it with Xaw3d libs to get 3D look: LD_PRELOAD=/usr/lib64/libXaw3d.so /usr/bin/xcalc
I am not messing with 'current', but this works on 14.2. If Slackware 'current' has stripped down Xaw3d, 3D also works with neXtaw libs http://siag.nu/neXtaw/ available in Slackbuilds for 14.2, but programs look a bit different with it, I prefer stock 3D libs.
Left: preloaded with Xaw3d. Right: preloaded with neXtaw:
Try to preload it with Xaw3d libs to get 3D look: LD_PRELOAD=/usr/lib64/libXaw3d.so /usr/bin/xcalc
I am not messing with 'current', but this works on 14.2. If Slackware 'current' has stripped down Xaw3d, 3D also works with neXtaw libs http://siag.nu/neXtaw/ available in Slackbuilds for 14.2, but programs look a bit different with it, I prefer stock 3D libs.
Left: preloaded with Xaw3d. Right: preloaded with neXtaw:
Yes, I did try the 3D look as you suggested, but it didn't display quite a nicely as yours. The raised edges of the keys look a big stippled.
I'm also using Slackware 14.2 (64bit).
Thanks again.
$ xcalc
Warning: Cannot convert string "-adobe-symbol-medium-*-*-*-*-110-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-180-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-110-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-130-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-140-*-*-*-*-*-*" to type FontStruct
$_
$ xcalc
Warning: Cannot convert string "-adobe-symbol-medium-*-*-*-*-110-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-180-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-110-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-130-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-140-*-*-*-*-*-*" to type FontStruct
$_
What am i missing/doing wrong?
For some reason you are missing font-adobe-75dpi, and maybe font-adobe-100dpi too. They come with stock slackware. slackpkg install font-adobe-75dpi
For some reason you are missing font-adobe-75dpi, and maybe font-adobe-100dpi too. They come with stock slackware. slackpkg install font-adobe-75dpi
Code:
$ xcalc
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*" to type FontStruct
$_
I'm afraid it's not the case:
Code:
# slackpkg search adobe
Looking for adobe in package list. Please wait... DONE
The list below shows all packages with name matching "adobe".
[ Status ] [ Repository ] [ Package ]
installed slackware64 font-adobe-100dpi-1.0.3-noarch-1
installed slackware64 font-adobe-75dpi-1.0.3-noarch-1
installed slackware64 font-adobe-utopia-100dpi-1.0.4-noarch-1
installed slackware64 font-adobe-utopia-75dpi-1.0.4-noarch-1
installed slackware64 font-adobe-utopia-type1-1.0.4-noarch-1
You can search specific files using "slackpkg file-search file".
#_
$ xcalc
Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*" to type FontStruct
$_
I'm afraid it's not the case:
Code:
# slackpkg search adobe
Looking for adobe in package list. Please wait... DONE
The list below shows all packages with name matching "adobe".
[ Status ] [ Repository ] [ Package ]
installed slackware64 font-adobe-100dpi-1.0.3-noarch-1
installed slackware64 font-adobe-75dpi-1.0.3-noarch-1
installed slackware64 font-adobe-utopia-100dpi-1.0.4-noarch-1
installed slackware64 font-adobe-utopia-75dpi-1.0.4-noarch-1
installed slackware64 font-adobe-utopia-type1-1.0.4-noarch-1
You can search specific files using "slackpkg file-search file".
#_
It's something else
Although I don't have a definitive answer to what is going wrong in your case (could not re-produce the error messages you are experiencing), I just wanted to ask two questions to maybe clarify:
1. Are you running "current"? (Me and CMartin are running 14.2 ...)
2. Which config file are you pasting CMartin's code into? I am placing it in /etc/X11/app-defaults/XCalc-color (after backing up the original, of course). BUT, I noted that the very first line in that file is: #include "XCalc"
without which a very truncated version of calculator is rendered, missing the entire keyboard. That line is NOT included in CMartin's posted code snippet... So although it may be obvious, just checking -- are you including that first include line?
Although I don't have a definitive answer to what is going wrong in your case (could not re-produce the error messages you are experiencing), I just wanted to ask two questions to maybe clarify:
1. Are you running "current"? (Me and CMartin are running 14.2 ...)
2. Which config file are you pasting CMartin's code into? I am placing it in /etc/X11/app-defaults/XCalc-color (after backing up the original, of course). BUT, I noted that the very first line in that file is: #include "XCalc"
without which a very truncated version of calculator is rendered, missing the entire keyboard. That line is NOT included in CMartin's posted code snippet... So although it may be obvious, just checking -- are you including that first include line?
Thanks for the consideration, it seems to be a deeper bork (it is an old, old /home and many things are non stock by now).
Can confirm the .Xdefaults hack works on a stock 32bit tho
NOTE: replace the /lib64/ to /lib/ in the /usr/local/bin/ front end file!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.