Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 17 Sep 2014, 05:38
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Business
xcalc dressed up fancy!
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Fri 18 Jan 2013, 22:59    Post subject:  xcalc dressed up fancy!
Subject description: xcalc back in Puppy with a new skin
 

Hello, all.

Here's xcalc back in Puppy with a skin slightly adapted from what someone did in the ArchLinux forums.
Shades of grey get boring, right? Smile

It's sort of an XResource file that xcalc calls. If you don't like it, copy the original skin from ~/my-applications/backup back to /etc/X11/app-defaults/XCalc. Anyway, you'll see.

Enjoy.

musher0
Xcalc+Skin-0.01.pet
Description 
pet

 Download 
Filename  Xcalc+Skin-0.01.pet 
Filesize  16.08 KB 
Downloaded  542 Time(s) 
xcalc-costume.jpg
 Description   
 Filesize   21 KB
 Viewed   845 Time(s)

xcalc-costume.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Sun 23 Jun 2013, 08:39; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Jan 2013, 14:55    Post subject:  

Here's another, wider, model for xcalc. It's made to look like the wider calculators bookkeepers and accountants use.

The attached code will simply replace the one at
Code:
/etc/X11/app-defaults/XCalc
xcalc-autre-costume.jpg
 Description   
 Filesize   39.34 KB
 Viewed   800 Time(s)

xcalc-autre-costume.jpg

XCalc-otherSkin.tar.bz2
Description 
bz2

 Download 
Filename  XCalc-otherSkin.tar.bz2 
Filesize  2.83 KB 
Downloaded  459 Time(s) 

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Wed 13 Feb 2013, 16:40; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Pelo


Joined: 10 Sep 2011
Posts: 3099
Location: Mer méditerrannée (1 kms°)

PostPosted: Mon 21 Jan 2013, 20:38    Post subject: Xcalc
Subject description: go on
 

Good idea ! I keep the first one
Back to top
View user's profile Send private message Yahoo Messenger 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11064
Location: Arizona USA

PostPosted: Mon 21 Jan 2013, 22:09    Post subject:  

Works in Slacko 5.4 Smile
Back to top
View user's profile Send private message 
koulaxizis


Joined: 17 Jul 2011
Posts: 428
Location: Greece

PostPosted: Tue 22 Jan 2013, 14:29    Post subject:  

These are perfect!! Thanks! Very Happy
_________________
Christos Koulaxizis
Woof woof from Greece...

[ Puppy packages | Puppy search ]
Back to top
View user's profile Send private message Visit poster's website 
jess4now


Joined: 14 Jan 2013
Posts: 1

PostPosted: Mon 11 Feb 2013, 20:53    Post subject: xcalc dressed up!  

Precise Puppy version 5.4.3

Works great!

A sight for tired eyes.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Wed 13 Feb 2013, 16:40    Post subject:  

Thanks, guys. Smile
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
gameboyab


Joined: 01 Sep 2012
Posts: 42
Location: Anytown, USA

PostPosted: Mon 25 Feb 2013, 01:50    Post subject:  

This skin works great! Very Happy
The default, black on white, is a real eye strain.

_________________
Not running as root is the cause of my inferiority complex.
Desktop: 2 GHz Core 2 Duo - 2 GB RAM
Laptop: 1.5 GHz Pentium M (III) - 1 GB RAM
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1108

PostPosted: Mon 25 Feb 2013, 05:52    Post subject:  

Real nice Very Happy
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Mon 25 Feb 2013, 15:46    Post subject:  

Thanks, guys!
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: Sat 22 Jun 2013, 13:21    Post subject:  

It looks way better than vanilla xcalc, thanks musher Smile
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Sat 22 Jun 2013, 19:51    Post subject:  

Thanks, Tman.

Since I first wrote that post, I discovered that xcalc also responds to an external "-geometry" parameter from the command line or in its Xcalc.desktop, like so:
Code:
xcalc -geometry 460x280

(command line)

or

Code:

[Desktop Entry]
Encoding=UTF-8
Name[fr]=Calculette scientifique Xcalc
Name=Xcalc scientific calculator
Icon=mini-calc.xpm
Comment=Xcalc scientific calculator
Exec=xcalc -stipple -geometry 460x280
# or
# Exec=xcalc.sh
# See post below for this script.
Terminal=false
Type=Application
Categories=Calculator
GenericName=Xcalc scientific calculator
Version=1.0

(desktop file)

Regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Mon 04 Nov 2013, 18:44; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Mon 04 Nov 2013, 18:37    Post subject:  

Hello, puppyists. Smile

Back to this oldie again. I discovered a couple more things about it.

* The errors reported in red hat forums and here (http://murga-linux.com/puppy/viewtopic.php?p=632166&sort=lastpost#632166), by linuxcbon, can be avoided by sending them to the black hole. A rough and tough solution, but it works.

* xcalc and also xclock accept the -title parameter. It's either un-
documented or the ancient docs got lost traveling in the eons. In any
case, instead of having a plain "xcalc" in the title bar, you can have "xcalc
Number Cruncher", for example.

Here's a nice little script that sums it all up, to put in your
/root/my-applications/bin folder under the filename "xcalc.sh"

Code:
#!/bin/sh
# $MBINS/xcalc.sh
# musher0, Nov. 4, 2013.
####
[ ${LANG:0:2} = "fr" ] && T="Calculette xcalc" || T="xcalc Calculator"
xcalc -g 500x300+360+100 -title "$T" -stipple >/dev/null 2>&1


Then you simply replace the exec line in the xcalc.desktop file in the first
post with "xcalc.sh" and your job is done! Smile

Have fun!

musher0
xcalc-new_skin.jpg
 Description   
 Filesize   37.25 KB
 Viewed   245 Time(s)

xcalc-new_skin.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Business
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0715s ][ Queries: 13 (0.0063s) ][ GZIP on ]