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 22 Oct 2014, 01:15
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 Posts_count  
Author Message
musher0


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

PostPosted: Fri 18 Jan 2013, 22:59    Post_subject:  xcalc dressed up fancy!
Sub_title: 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  557 Time(s) 
xcalc-costume.jpg
 Description   
 Filesize   21 KB
 Viewed   1058 Time(s)

xcalc-costume.jpg


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

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4255
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   929 Time(s)

xcalc-autre-costume.jpg

XCalc-otherSkin.tar.bz2
Description 
bz2

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

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

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
Pelo


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

PostPosted: Mon 21 Jan 2013, 20:38    Post_subject: Xcalc
Sub_title: go on
 

Good idea ! I keep the first one
Back to top
View user's profile Send_private_message YIM 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11118
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_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: 4255
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_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: 1117

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: 4255
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_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: 4255
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)

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4255
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   430 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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Business
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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