xcalc dressed up fancy!

Business software, financial software, etc.
Post Reply
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

xcalc dressed up fancy!

#1 Post by musher0 »

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? :)

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
Attachments
Xcalc+Skin-0.01.pet
(16.08 KiB) Downloaded 1092 times
xcalc-costume.jpg
(21 KiB) Downloaded 2012 times
Last edited by musher0 on Sun 23 Jun 2013, 12:39, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

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: Select all

/etc/X11/app-defaults/XCalc
Attachments
xcalc-autre-costume.jpg
(39.34 KiB) Downloaded 1634 times
XCalc-otherSkin.tar.bz2
(2.83 KiB) Downloaded 976 times
Last edited by musher0 on Wed 13 Feb 2013, 20:40, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Pelo

Xcalc

#3 Post by Pelo »

Good idea ! I keep the first one

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

Works in Slacko 5.4 :)

User avatar
koulaxizis
Posts: 452
Joined: Sun 17 Jul 2011, 18:43
Location: Greece
Contact:

#5 Post by koulaxizis »

These are perfect!! Thanks! :D
[b]Christos Koulaxizis[/b]
[i]Woof woof from Greece![/i]

[color=darkred][url=https://sourceforge.net/projects/puppystuff/][ Puppy Stuff Repository ][/url][/color]

User avatar
jess4now
Posts: 1
Joined: Mon 14 Jan 2013, 05:13

xcalc dressed up!

#6 Post by jess4now »

Precise Puppy version 5.4.3

Works great!

A sight for tired eyes.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#7 Post by musher0 »

Thanks, guys. :)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
gameboyab
Posts: 45
Joined: Sat 01 Sep 2012, 14:14
Location: Anytown, USA

#8 Post by gameboyab »

This skin works great! :D
The default, black on white, is a real eye strain.
Not running as root is the cause of my inferiority complex.

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#9 Post by vicmz »

Real nice :D

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#10 Post by musher0 »

Thanks, guys!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#11 Post by Tman »

It looks way better than vanilla xcalc, thanks musher :)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#12 Post by musher0 »

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: Select all

xcalc -geometry 460x280
(command line)

or

Code: Select all

[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
Last edited by musher0 on Mon 04 Nov 2013, 22:44, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#13 Post by musher0 »

Hello, puppyists. :)

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. ... ost#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: Select all

#!/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! :)

Have fun!

musher0
Attachments
xcalc-new_skin.jpg
(37.25 KiB) Downloaded 1299 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#14 Post by slavvo67 »

It's amazing how the little things can make such a difference!

Thanks!!

Slavvo67

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#15 Post by musher0 »

You're welcome!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Colonel Panic
Posts: 2171
Joined: Sat 16 Sep 2006, 11:09

#16 Post by Colonel Panic »

Thanks for this one! I've just installed it (in Workhorse 4.31) and XCalc looks much better as a result.
Gigabyte M68MT-52P motherboard, AMD Athlon II X4 630, 5.8 GB of DDR3 RAM and a 250 GB Hitachi hard drive running Ubuntu 16.04.6, MX-19.2, Peppermint 10, PCLinuxOS 20.02, LXLE 18.04.3, Pardus 19.2, exGENT 200119, Bionic Pup 8.0 and Xenial CE 7.5 XL.

Post Reply