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 Fri 19 Oct 2018, 00:23
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
Theme (Gtk-2) features in detail, revisited.
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [39 Posts]   Goto page: Previous 1, 2, 3
Author Message
torm


Joined: 07 Mar 2015
Posts: 168

PostPosted: Mon 30 Oct 2017, 14:03    Post subject:  

Edit:repacked the package. Added some theme/size hints..

__

Edit:
Found some programs tend to use "inactive" window state - when moved to another
desktop, so added "layer below" for the clock, to make it stick better to the wallpaper.. Confused

Also changed some namespace details for built-in clock face.
Should be easy now to export as clock_background.xpm from GIMP without
correcting with text-editor before compiling, .. I hope.

____________________________________________________________

pclock-retro v0.13.1/modification-05

For now, it should be stated as test.. and I can't say more than it "appears" to work.
Replaced the scripts with internal methods to auto-store location and call the settings
window. I'm clearly missing the skills to write a proper code, so please have a look
at the provided source, if there's anything that needs to be fixed.

btw, gtkdialog(4) is not a real dependency, it could be replaced with anything that should
be started by right-mouseclick on the clock. Just place a link in
/root/my-applications/pclock-retro/bin/ and name it dialog1
Also, xwininfo/grep/awk are not used for detecting the location in this version.
As before, it can be started with commandline options or from the script
to ignore the stored location.

____________________________________________________________

pclock-retro v0.13.1/modification-06

Added current date display. Some skins to support that feature.
Vertical and horizontal location of the date can be set on commandline or
from the theme file. Theme file is a script, open as text and edit as needed.. Wink

Note!
This modification makes some changes to file locations.
To update to new version:
- open settings window of clock
- remove Pclock-retro link from Startup folder (if set)
- close the clock and exit settings window
- uninstall the old version with PPM (Puppy Package Manager)
- install new version


For more info please see /root/my-applications/pclock-retro/source/README-MODIFIED-version,
aside from file location changes there are new short/long options that can be used
for theme files.
Executable is now "on path" , so typing in terminal:
pclock-retro -h
..will also list them.
Clock has built-in skin and default settings, and it can run with or without extra options
from command.





Have a nice day Smile





Edit:
Added pclock_retro_mod-06_slacko32.pet below..
It has 32bit binary compiled in slacko-6.9.9.9-uefi-k4.4-PAE-PM-LO and
also a little different "startup/autostart" method.

Note.
In TahrPup605 and IceWM window manager, it appears that scripts or links in
/root/Startup are started, while in Slacko-6.9.9.9/JWM only the *.desktop files that
are in /root/.config/autostart folder ( links in /root/Startup are ignored.. ? )
___

IceWM note.
Using IceWM as IceWM-Session on any system - with no matter what configuration,
one could just use /root/.icewm/startup file to start any number of applications.
For example, to autostart the clock:

#!/bin/sh
/root/my-applications/pclock-retro/auto-start-pclock-retro &

..then make the file "executable".
Not all versions of IceWM may have that file, while most of them should
know what to do with it - that is what "-session" part does, aside from loading
systray etc.
pclock_retro-with-date.png
 Description   screenshot for mod 06
 Filesize   46.46 KB
 Viewed   339 Time(s)

pclock_retro-with-date.png


Last edited by torm on Thu 02 Aug 2018, 08:43; edited 3 times in total
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1139
Location: Smithers, BC, Canada

PostPosted: Sat 18 Nov 2017, 23:56    Post subject:  

torm wrote:
Just add to:
/root/.jwm/jwmrc-personal
Code:
<Group>
<Class>PClock-retro</Class>
<Option>sticky</Option>
</Group>

Thanks for the pointers and the improvements Torm.

I installed pclock_retro_mod-04.pet after removing the earlier and then set it up using your code. Since I do not use a save file I have many of my .pets in an SFS file which I use with multiple Puppies, I did not want to modify any files which would override settings in the different Puppies.. Therefore I placed your code in /root/.jwm/jwmrc-personal3
Code:
<!-- Personally configurable options for JWM: these override default settings and theme settings -->

<JWM>

<Group>
<Class>PClock-retro</Class>
<Option>sticky</Option>
</Group>

</JWM>

Then I symlinked /root/my-applications/pclock-retro/themes/bc-02th to /root/Startup and change the values of /root/my-applications/pclock-retro/data/location-h and /root/my-applications/pclock-retro/data/location-v to place the clock in the lower right corner of my desktop. Works a treat, much better than my crude startup scripts. I like the dark ringed face better too. Will use the smaller faces on my laptops.

Cheers, J and Thanks again.

Edit: Now tested in Xenial, Stretch and Artful with the same SFS and all worked great
pclock-retro-screenshot.jpg
 Description   
 Filesize   42.48 KB
 Viewed   364 Time(s)

pclock-retro-screenshot.jpg

Back to top
View user's profile Send private message 
torm


Joined: 07 Mar 2015
Posts: 168

PostPosted: Thu 23 Nov 2017, 13:43    Post subject:  

Thanks for reply, jrb

Updated the clock to version 06.
For now I think it would be the final version -where it comes to
features and file locations etc.
Back to top
View user's profile Send private message 
april

Joined: 14 Sep 2013
Posts: 1241
Location: Green Island baby!

PostPosted: Thu 25 Jan 2018, 05:25    Post subject:  

Gave this a run on xenial64 7.5 but it did not come up

Run in terminal gives this error
Code:
root# ./pclock-retro
./pclock-retro: error while loading shared libraries: libXpm.so.4: wrong ELF class: ELFCLASS64


So is this only for 32 bit machines or can it be made to run on 64 bit machines or do you have a pet for 64 bit?
Back to top
View user's profile Send private message Yahoo Messenger 
torm


Joined: 07 Mar 2015
Posts: 168

PostPosted: Sat 27 Jan 2018, 09:01    Post subject:  

EDIT:
Updated to version 07
No radical changes, just removed some useless lines here and there.
Pet packages now do not include the source, source is provided separately
in the next post. Source for versions 07 and 08 is the same - only the dialog is
different and some of the data that the dialog uses.

You can find precompiled version below for some versions of Puppy.
pclock-retro_07_precise-571_32bit.pet
Description  pclock-retro version 07 for puppy precise-571 (32bit)
pet

 Download 
Filename  pclock-retro_07_precise-571_32bit.pet 
Filesize  73.57 KB 
Downloaded  26 Time(s) 
pclock-retro_07_xenialpup64_64bit.pet
Description  pclock-retro version 07 for xenialpup64-7.5 (64bit)
pet

 Download 
Filename  pclock-retro_07_xenialpup64_64bit.pet 
Filesize  56.02 KB 
Downloaded  29 Time(s) 
pclock-retro_07_tahrpup606_32bit.pet
Description  pclock-retro version 07 for tahrpup606 (32bit)
pet

 Download 
Filename  pclock-retro_07_tahrpup606_32bit.pet 
Filesize  55.59 KB 
Downloaded  26 Time(s) 
pclock-retro_07_tahrpup605_64bit.pet
Description  pclock-retro version 07 for tahrpup605 (64bit)
pet

 Download 
Filename  pclock-retro_07_tahrpup605_64bit.pet 
Filesize  55.89 KB 
Downloaded  29 Time(s) 
pclock-retro_07_slacko-570_32bit.pet
Description  pclock-retro version 07 for puppy slacko-570 (32bit)
pet

 Download 
Filename  pclock-retro_07_slacko-570_32bit.pet 
Filesize  70.61 KB 
Downloaded  28 Time(s) 
pclock-retro_07_slacko-6999_32bit.pet
Description  pclock-retro version 07 for puppy slacko-6.9.9.9 (32bit)
pet

 Download 
Filename  pclock-retro_07_slacko-6999_32bit.pet 
Filesize  54.63 KB 
Downloaded  24 Time(s) 
Back to top
View user's profile Send private message 
torm


Joined: 07 Mar 2015
Posts: 168

PostPosted: Thu 02 Aug 2018, 08:54    Post subject:  

Version 08 of pclock-retro modification.
Only the dialog window is different for this version, and it should work
with any version of gtkdialog and support both "/root/Startup" and
"/root/.config/autostart" method to autostart clock on system start.
This dialog does not use a custom GTK-2 theme.

Package below only provides the C source, generic gtkdialog script and data.
It is plain tar.gz archive, so older systems without xz compression
should be able to unpack it.

You can compile and install it with:

make
make install

Then update the menu for desktop file to appear,
as it is not a pet-file, so not automated for any menu-system.
pclock-retro_08_source.tar.gz
Description  pclock-retro 08 C source
gz

 Download 
Filename  pclock-retro_08_source.tar.gz 
Filesize  30.4 KB 
Downloaded  27 Time(s) 

Last edited by torm on Sat 04 Aug 2018, 02:35; edited 1 time in total
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 832
Location: Connecticut, United States

PostPosted: Thu 02 Aug 2018, 09:11    Post subject:  

I ran into this error while compiling :
Code:
# make install
strip pclock-retro
cp pclock-retro /root/my-applications/bin/pclock-retro
cp -r --preserve=links pclock-retro-app /root/my-applications/pclock-retro-app
cp pclock-retro.desktop /usr/share/applications/pclock-retro.desktop
rm Graphics.o
rm Main.o
cp FjallaOne-Regular.ttf /usr/share/fonts/default/TTF/FjallaOne-Regular.ttf
cp: cannot stat 'FjallaOne-Regular.ttf': No such file or directory
Makefile:25: recipe for target 'install' failed
make: *** [install] Error 1
#


UPUPBB 18.05
• DISTRO_COMPAT_VERSION='bionic'

Read by /usr/bin/xwin to bypass Xorg Wizard at first boot:
• DISTRO_XORG_AUTO='yes'

• DISTRO_KERNEL_PET='Huge_Kernel'

• DISTRO_DB_SUBNAME='upupbb'

• DISTRO_ARCHDIR='i386-linux-gnu'

• DISTRO_TARGETARCH='x86'
BUILD_FROM_WOOF='testing;d2fe03d8;2018-05-09 21:40:13 +0800'
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 832
Location: Connecticut, United States

PostPosted: Thu 02 Aug 2018, 09:25    Post subject:  

fixed it by downloading the font and placing it in the directory before compiling
Screenshot11-500px.png
 Description   
 Filesize   27.41 KB
 Viewed   101 Time(s)

Screenshot11-500px.png

Back to top
View user's profile Send private message Visit poster's website 
torm


Joined: 07 Mar 2015
Posts: 168

PostPosted: Sat 04 Aug 2018, 02:41    Post subject:  

Thanks rockedge for pointing out the font line, somehow I overlooked it..
Re-uploaded the archive now.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [39 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
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.0816s ][ Queries: 15 (0.0328s) ][ GZIP on ]