Theme (Gtk-2) features in detail, revisited.

Themes, icons, wallpapers, etc.
Message
Author
User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#21 Post by torm »

Audacious mediaplayer (ver-3.8.2) and Gtk2.

Some notes on Gtk2 skins and icons.
Gtk2 look can be changed runtime, both the ordinary and the "skin" look.
Skinned window is just GtkFixed, I think.. ;)

Here's a full "default settings and locations" skin.hints list.
Locations are set for upper-left corner of skin detail.

------------------------------------------

Code: Select all

# Hints for skin detail locations.

[skin]
# player window size in pixels.
mainwinWidth = 275
mainwinHeight = 116

# true=1 and false=0
mainwinMenurowVisible = 1
mainwinStreaminfoVisible = 1
mainwinOthertextIsStatus = 0

# does not support locale specific glyphs, use TTF fonts instead.. from settings.
# size in pixels
textboxBitmapFontWidth = 5
textboxBitmapFontHeight = 6

# scrolled filename text
mainwinTextX = 112
mainwinTextY = 27
# width in pixels
mainwinTextWidth = 153
# is visible? true=1 and false=0
mainwinTextVisible = 1

# visualisation graphics in main window
mainwinVisX = 24
mainwinVisY = 43
mainwinVisVisible = 1

# info about KHz, Kb-PS and stereo/mono details
mainwinInfobarX = 112
mainwinInfobarY = 43
mainwinOthertextVisible = 0

# location of min/sec counter numbers ( ..also minus and empty )
mainwinNumber0X = 36
mainwinNumber0Y = 26
mainwinNumber1X = 48
mainwinNumber1Y = 26
mainwinNumber2X = 60
mainwinNumber2Y = 26
mainwinNumber3X = 78
mainwinNumber3Y = 26
mainwinNumber4X = 90
mainwinNumber4Y = 26

# play/pause/stop interactive indicator icon
mainwinPlaystatusX = 24
mainwinPlaystatusY = 28

# volume slider
mainwinVolumeX = 107
mainwinVolumeY = 57

# balance slider
mainwinBalanceX = 177
mainwinBalanceY = 57

# position(progress) slider/indicator
mainwinPositionX = 16
mainwinPositionY = 72

# "Previous" button
mainwinPreviousX = 16
mainwinPreviousY = 88

# "Play" button
mainwinPlayX = 39
mainwinPlay_y = 88

# "Pause" button
mainwinPauseX = 62
mainwinPause_y = 88

# "Stop" button
mainwinStopX = 85
mainwinStop_y = 88

# "Next" button
mainwinNextX = 108
mainwinNext_y = 88

# "Eject" button
mainwinEjectX = 136
mainwinEject_y = 89

# "Equalizer Window Open/Close" button
mainwinEqbuttonX = 219
mainwinEqbuttonY = 58

# "PlayList Window Open/Close" button
mainwinPlbuttonX = 242
mainwinPlbuttonY = 58

# "Shuffle" button
mainwinShuffleX = 164
mainwinShuffleY = 89

# "Repeat" button
mainwinRepeatX = 210
mainwinRepeatY = 89

# "About" button... as "main.png" area?
mainwinAboutX = 247
mainwinAboutY = 83


# window-manager "replacement" buttons
mainwinMinimizeX = 244
mainwinMinimizeY = 3
#
mainwinShadeX = 254
mainwinShadeY = 3
#
mainwinCloseX = 264
mainwinCloseY = 3
------------------------------------------



pledit.txt parsing ( default playlist colors )
------------------

Code: Select all

[Text]
Normal=#2499ff
Current=#ffeeff
NormalBG=#0a120a
SelectedBG=#0a124a
------------------------------------------


viscolor.txt parsing ( default visualisation colors )

Code: Select all

  9,  34,  53
 10,  18,  26
  0,  54, 108
  0,  58, 116
  0,  62, 124
  0,  66, 132
  0,  70, 140
  0,  74, 148
  0,  78, 156
  0,  82, 164
  0,  86, 172
  0,  92, 184
  0,  98, 196
  0, 104, 208
  0, 110, 220
  0, 116, 232
  0, 122, 244
  0, 128, 255
  0, 128, 255
  0, 104, 208
  0,  80, 160
  0,  56, 112
  0,  32,  64
200, 200, 200

------------------------------------------


region.txt parsing (skinned windows in shaped window mode)
------------------

I don't think there is a "default" setting for it, while it may be to some interest..
A bit of a trial-and-error suggestion here, so please take it with a grain of salt :)
The window can be also shaped for top area only, as shown for example 2 below.

window names are:
[Normal] is skinned mainwindow in "normal" state
[windowshade] is skinned mainwindow in "shaded (14 pixel stripe-look)" state
[equalizer] is skinned equalizerwindow in "normal" state
[equalizerws] is skinned equalizerwindow in "shaded (14 pixel stripe-look)" state

------------------

Code: Select all

# all four corners rounded
[Normal]
NumPoints=4,4,4,4,4
PointList=5,0 270,0 270,116 5,116 3,1 272,1 272,115 3,115 2,2 273,2 273,114 2,114 1,3 274,3 274,113 1,113 0,5 275,5 275,111 0,111
------------------

------------------

Code: Select all

# only top area rounded
[Normal]
NumPoints=4,4,4,4,4
PointList=5,0 270,0 270,116 5,116 3,1 272,1 272,116 3,116 2,2 273,2 273,116 2,116 1,3 274,3 274,116 1,116 0,5 275,5 275,116 0,116
------------------------------------------

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#22 Post by torm »

Audacious mediaplayer (ver-3.8.2) and Gtk2, continued.
Missing icons for (not skinned)mainwindow and tray-menu.
------------------

It will only apply for PuppyLinuxOS versions that do not have a "full" icon-theme preinstalled.
As far as TahrPup605 is one of them and I don't have any interest to install some 100MB+
icon-theme, here's what I did:
1. What icons are missing in "stock" and "hicolor" sets?
2. What icons should I add/replace for more "solid" look?
3. Make icon-theme for toolbar(24x24) and menus(16x16) with only needed items.
4. Apply the icon-theme. ( and stock+hicolor will still work as "fallback" )


If current Gtk2 theme does not change the toolbar-icon-size or menu, then it should be 24x24
and menu-icon-size be 16x16.
------
Audacious has the following icons on toolbar:
--
audacious -audacious.png ( also a desktop and tray icon ) [48x48/apps]
edit-find -used also elsewhere, could look better [24x24/actions]
document-open -used also elsewhere, could look better [24x24/actions]
list-add -used also elsewhere, could look better [24x24/actions]
media-skip-backward - ! missing, don't use ltr/rtl variants [24x24/stock/media]
media-skip-forward - ! missing, don't use ltr/rtl variants [24x24/stock/media]
media-playback-start - ! missing, don't use ltr/rtl variants [24x24/stock/media]
media-playback-pause -used also elsewhere, could look better [24x24/stock/media]
media-playback-stop -used also elsewhere, could look better [24x24/stock/media]
media-record -used also elsewhere, could look better [24x24/stock/media]
-
-
media-playlist-repeat - ! missing [24x24/stock/media]
media-playlist-shuffle - ! missing [24x24/stock/media]
-
audio-volume-low -used also elsewhere, could look better [24x24/status]
audio-volume-medium -used also elsewhere, could look better [24x24/status]
audio-volume-high -used also elsewhere, could look better [24x24/status]
audio-volume-muted -used also elsewhere, could look better [24x24/status]
------


For TRAY-menu there can be 16x16 icons:
--
document-open -used also elsewhere, could look better [16x16/actions]
media-skip-backward - ! missing, don't use ltr/rtl variants [16x16/stock/media]
media-playback-start - ! missing, don't use ltr/rtl variants [16x16/stock/media]
media-playback-pause -used also elsewhere, could look better [16x16/stock/media]
media-playback-stop -used also elsewhere, could look better [16x16/stock/media]
media-skip-forward - ! missing, don't use ltr/rtl variants [16x16/stock/media]
-
preferences-system - ! missing, used also elsewhere [16x16/categories]
application-exit -used also elsewhere, could look better [16x16/actions]
------


For FILE-menu the above tray-icons will work, and few more will be needed, can be 16x16 icons:
--
go-jump - ! missing, used also elsewhere [16x16/actions]
insert-text - ! missing, used also elsewhere [16x16/actions]
audio-x-generic - ! missing, used also elsewhere? [16x16/actions]
multimedia-volume-control- ! missing, used also elsewhere? [16x16/actions]
------


So it is time to make a icon-theme.
In /usr/share/icons/ made a folder with a name "missing_it" and inside that folder a file
named "index.theme" with the following content:

------

Code: Select all

[Icon Theme]
Name=missing_it
Comment=missing_it
Directories=16x16/actions,16x16/categories,16x16/stock/media,24x24/actions,24x24/status,24x24/stock/media,48x48/apps

[16x16/actions]
Size=16
Context=Actions
Type=Threshold

[16x16/categories]
Size=16
Context=Categories
Type=Threshold

[16x16/stock/media]
Size=16
Context=Stock
Type=Threshold

[24x24/actions]
Size=24
Context=Actions
Type=Threshold

[24x24/status]
Size=24
Context=Stock
Type=Threshold

[24x24/stock/media]
Size=24
Context=Stock
Type=Threshold

[48x48/apps]
Size=48
Context=Apps
Type=Threshold
------

...that counts the folders this icon-theme has.
Then made folders and add missing icons to them.
------


Apply the icon-theme.
For that open /root/.gtkrc.mine ( a hidden file ) and change the content to:
------

Code: Select all

gtk-icon-theme-name="missing_it"
------
..then restart X for changes to take effect.

--
As an aternative one could add:
gtk-icon-theme-name="missing_it"
..to the beginning ( before any "style" ) in gtkrc of favorite Gtk2 theme, or
use bright-colored icons for dark Gtk2-theme / and dark icons for brighter Gtk2 theme..
so it stands out better and changes according to theme.
And leave /root/.gtkrc.mine to whatever it currently is ( "ROX" by default? ) .
--

Same method can be used to add/replace any other icons.
If there is only few icons that needs to be added ( not replaced ) -just drop them to
/usr/share/icons/hicolor/.. in correct folder, and restart X.

I hope it is of some use.. :)
Attachments
Audacious_with_Faenza_icons.png
Audacious with small set of Faenza icons..
(64.84 KiB) Downloaded 871 times

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#23 Post by torm »

Moved here...

pclock v0.13.1/modification-02

Not related to PClock that is preinstalled in PuppyLinuxOS

Precompiled binary is for TahrPup605(32bit) and pet package installs to /root/my-applications/
with some scripts in "bin" and all else to "pclock-retro" folder.
Font and .desktop file are provided and will install to usual locations.
Settings window uses GtkDialog4 and should appear by right-clicking on the clock.
Mousewheel on theme name can change themes.
Tooltip delay is intentional, set in gtkrc to 4000msek.
Middle mousebutton "action" is not configured, just add some command to
/root/my-applications/bin/xtra-cmd2 script.

Modified source and original textfiles are included in the package.
In a way it is a basic blueprint of what I would, as a user, expect from the clock app
..not how it should be written, I don't have these skills.

README-modified-version may have some more detailed information.
Better code or features are welcome :wink:
..or just comments if it works for some other window manager (tested JWM/IceWM-BRANCH/XFCE)
and system.

EDIT:
see next page for latest version.. ( modification 06 )
Attachments
pclock-retro-ss7717.jpg
pclock-retro with settings window
(32.94 KiB) Downloaded 821 times
Last edited by torm on Sat 13 Jan 2018, 14:35, edited 1 time in total.

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#24 Post by jrb »

torm wrote:Better code or features are welcome Wink
Don't expect better code from me. :oops: I've been looking for a replacement for xonclock in Pwigets for a while. I think your pclock-retro is the the winner. :D

I've written some very simple /root/Startup scripts which will place pclock-retro on up to 4 desktops at startup. I think with a bit of work it could be integrated in Pwidgets but I probably don't have the skill and I would like to see if someone can come up with a more elegant solution.

This is simply the Startup scripts, you still need to install pclock_retro_mod-02.pet

I've tried this in everything from Wary to ArtfulPup and it works well. Wary, Lucid and Precise need wmctrl installed for it to work on more than one desktop.

BTW - pwidgets-2.5.8-486.pet works on all these Puppies as well (except for xonclock). IMO still the best conky setup

Edit: Just realized I haven't tried this on any Slacko's. Will have to get back to you on that.
Attachments
pclock-retro-2.jpg
(47.62 KiB) Downloaded 772 times
pclock_retro_mod-02-Startup.pet
(593 Bytes) Downloaded 587 times

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

#25 Post by musher0 »

Ok jrb.

Those are only scripts. Where's the real clock?
This is not funny. ;)
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

#26 Post by musher0 »

Ok, found it, sorry.

Still not funny. This is in the rough, yes?

MU's clock in Basic from 10 years back offered many clock faces,
http://dotpups.de/puppy3/dotpups/Deskto ... clocks.jpg
and its size could be changed.
http://www.murga-linux.com/puppy/viewto ... e50#159544
Image

With TzClock, you can change almost every parameter. http://www.tzclock.org
(Please see attached capture.)

The very old rclock that came with the old rxvt package provides the capacity for a menu
when you click on it and changing the background and foreground colors.
https://sourceforge.net/projects/rxvt (Please see attached capture.)

Xclock, old too, was renewed when some very patient enthusiast found a way to color
the details of it. (Please see attached capture.)
http://unix.stackexchange.com/questions ... nding-road

Not to mention oclock and buiciclock, etc.

Tough competition you have, jrb. The bar is high on this project.

BFN
Attachments
rclock-with-functional-menu.png
(39.97 KiB) Downloaded 733 times
Xclock-with-Xresources-config.png
(25.97 KiB) Downloaded 737 times
TzClock.png
(39.46 KiB) Downloaded 729 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#27 Post by jrb »

musher0 wrote:Tough competition you have, jrb. The bar is high on this project.
Thanks for the links Musher. I tried TzClock and loved it, especially the hands starting at 12:00 and spinning around to the present time, until I tried installing in multiple pups. Every one wanted different libs, then when I tried to install it on my wife's TahrPup it wanted "libdial". I have googled and haven't found a mention of libdial anywhere.

What sold me on pclock-retro is it has worked on everything I have thrown it at, Wary to Artful, and just worked, no libs required. Perhaps some of the links you have given will do the same, I'll have a look.

Thanks, J

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

#28 Post by musher0 »

Hi jrb.

Here you go, libs for rclock and xclock

Code: Select all

[/usr/bin]>ldd rclock
	linux-gate.so.1 =>  (0xb77be000)
	libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb77a6000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0xb765b000)
	libc.so.6 => /lib/libc.so.6 (0xb74a4000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb747e000)
	libdl.so.2 => /lib/libdl.so.2 (0xb7479000)
	/lib/ld-linux.so.2 (0x800c1000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0xb7475000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb746e000)

[/usr/bin]>ldd xclock
	linux-gate.so.1 =>  (0xb7743000)
	libXaw.so.7 => /usr/lib/libXaw.so.7 (0xb76cd000)
	libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb76b1000)
	libXt.so.6 => /usr/lib/libXt.so.6 (0xb7648000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0xb74fd000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb74f1000)
	libXft.so.2 => /usr/lib/libXft.so.2 (0xb74db000)
	libxkbfile.so.1 => /usr/lib/libxkbfile.so.1 (0xb74b1000)
	libm.so.6 => /lib/libm.so.6 (0xb745c000)
	libc.so.6 => /lib/libc.so.6 (0xb72a5000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0xb7290000)
	libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb727c000)
	libSM.so.6 => /usr/lib/libSM.so.6 (0xb7273000)
	libICE.so.6 => /usr/lib/libICE.so.6 (0xb7259000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7232000)
	libdl.so.2 => /lib/libdl.so.2 (0xb722d000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb71e4000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7134000)
	/lib/ld-linux.so.2 (0x800e2000)
	libuuid.so.1 => /lib/libuuid.so.1 (0xb712e000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0xb7129000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7122000)
	libexpat.so.1 => /lib/libexpat.so.1 (0xb70f8000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xb70db000)
	libz.so.1 => /lib/libz.so.1 (0xb70c0000)
	libpng12.so.0 => /lib/libpng12.so.0 (0xb7094000)
As to Mark Ulrich's AnalogClock,
MU wrote:(...)
Requires:
http://dotpups.de/puppy3/dotpups/Progra ... ic-003.pup
I just updated that dotpup, so re-install if you already have an older version.

For Puppy 4, you will find a matching GtkBasic003 here:
http://www.murga-linux.com/puppy/viewtopic.php?p=172218

The clock includes some skins (from xonclock), but I have not yet added a dialog to choose them.
To use them already, you had to edit:
/usr/local/GtkBasic-Analogclock/GtkBasic-Analogclock.gtb

You can set the skin here:

Code: Select all

picture = "chrome-128.png"
'picture = "chrome-260.png"
'picture = "xonclock.png"
You will find 200 more clockfaces in the gdesklets package:
http://www.murga-linux.com/puppy/viewto ... 209#218209

Mark
Good luck!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#29 Post by torm »

Hi jrb, thanks for reply.

I don't think there is anything external needed for JWM..

Just add to:
/root/.jwm/jwmrc-personal

Code: Select all

<Group>
<Class>PClock-retro</Class>
<Option>sticky</Option>
</Group>
..somewhere after settings of "WindowStyle" tag.
Then restart JWM.

Or again, to make it appear only on virtual desktop "2" , change:
<Option>sticky</Option>
...to...
<Option>desktop:2</Option>

In IceWM ( at least in 1.3.12.144 ) that would be a line in
/root/.icewm/winoptions file:

Code: Select all

PClock-retro.allWorkspaces: 1
____

For Slackware based systems there is a source included that
should compile in a matter of seconds.
With older systems, gtkdialog4 may be a problem.. or not.

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#30 Post by torm »

Made a little bit bigger version for the laptop display.
Also added the sticky state, for window managers that support it..
appears to work for Metacity, XFCE4 and JWM.

Edit: added "layer below", some internal clean-up.
version to -04


______________________________________

Design hint for the clock.

The .xpm file must be 180x180 pixels.
Theme must place clock hands within ( inside ) the clock face area.

The actual clock face representation on the pixmap
can be anything "smaller" or equal to 180x180.
Transparent areas don't respond to mouse clicks.

Less colors give a smaller .xpm file.


Please uninstall prior version first.. I think.
Attachments
different_skins.png
(48.66 KiB) Downloaded 637 times
Last edited by torm on Sat 13 Jan 2018, 14:36, edited 2 times in total.

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#31 Post by torm »

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

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





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.
Attachments
pclock_retro-with-date.png
screenshot for mod 06
(46.46 KiB) Downloaded 969 times
Last edited by torm on Thu 02 Aug 2018, 12:43, edited 3 times in total.

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#32 Post by jrb »

torm wrote:Just add to:
/root/.jwm/jwmrc-personal

Code: Select all

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

<!-- 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
Attachments
pclock-retro-screenshot.jpg
(42.48 KiB) Downloaded 994 times

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#33 Post by torm »

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.

april

#34 Post by april »

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

Run in terminal gives this error

Code: Select all

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?

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#35 Post by torm »

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.
Attachments
pclock-retro_07_bionicpup64_64bit.pet
pclock-retro version 07 for bionicpup 8.0 (64bit)
(73.62 KiB) Downloaded 283 times
pclock-retro_07_precise-571_32bit.pet
pclock-retro version 07 for puppy precise-571 (32bit)
(73.57 KiB) Downloaded 474 times
pclock-retro_07_xenialpup64_64bit.pet
pclock-retro version 07 for xenialpup64-7.5 (64bit)
(56.02 KiB) Downloaded 473 times
pclock-retro_07_tahrpup606_32bit.pet
pclock-retro version 07 for tahrpup606 (32bit)
(55.59 KiB) Downloaded 452 times
pclock-retro_07_tahrpup605_64bit.pet
pclock-retro version 07 for tahrpup605 (64bit)
(55.89 KiB) Downloaded 461 times
pclock-retro_07_slacko-570_32bit.pet
pclock-retro version 07 for puppy slacko-570 (32bit)
(70.61 KiB) Downloaded 453 times
pclock-retro_07_slacko-6999_32bit.pet
pclock-retro version 07 for puppy slacko-6.9.9.9 (32bit)
(54.63 KiB) Downloaded 444 times
Last edited by torm on Wed 04 Sep 2019, 13:52, edited 1 time in total.

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#36 Post by torm »

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.
Attachments
pclock-retro_08_source.tar.gz
pclock-retro 08 C source
(30.4 KiB) Downloaded 435 times
Last edited by torm on Sat 04 Aug 2018, 06:35, edited 1 time in total.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#37 Post by rockedge »

I ran into this error while compiling :

Code: Select all

# 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'

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#38 Post by rockedge »

fixed it by downloading the font and placing it in the directory before compiling
Attachments
Screenshot11-500px.png
(27.41 KiB) Downloaded 743 times

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#39 Post by torm »

Thanks rockedge for pointing out the font line, somehow I overlooked it..
Re-uploaded the archive now.

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#40 Post by torm »

arktiswm_calendar

arktiswm_calendar is small and simple GTK2-based calendar for ArktisWM.
It can also run under other window managers, or be started from different
panels.
Dependencies: GTK2, gtkdialog4.

arktiswm_calendar uses wrapper script called "calendar-script" to toggle
calendar on and off, run theme update scripts ( if any ) and can be extended
with more commands without recompiling the calendar.
calendar-script is placed on system path by Makefile, to run it type:
calendar-script

arktiswm_calendar has gtkdialog4-based Setup window to:
- select custom/global GTK2 theme for calendar
- allow or disable theme update scripts ( if any ) in themes
- set system Time and Date ( hardware clock ) --> if "set-time" command is available
- set system TimeZone --> if "timezone-set" command is available
- set Timer Alarms --> if "pschedule" command is available

arktiswm_calendar layout:
- calendar picture
calendar picture is provided by calendar theme and can be static or change according
to current month, current weekday - or whatever the "update.sh" script in theme folder
can pull out of it.
+ Note! For security reasons running the scripts from themes is disabled by default, so
if You install any external themes, please review the scripts first for valid actions,
before enabling this feature.
Mouse right-click on calendar picture will pop-up the Setup window and any other click will
just close the calendar.
- today date
today date shows current weekday and date using system locale.
- calendar widget
calendar widget defaults to current month and year with current day selected. Selecting
any other year and/or month will clear the day selection - while scrolling back to currenth month
and year will reselect the day.
calendar widget allows to drag any date from the widget to a texteditor page, etc.
Dragging any valid date to calendar widget will change the month and year to this date.
Double-clicking any date in calendar widget will open system "defaulcalendar".

arktiswm_calendar theme support.
arktiswm_calendar allows widget-level theme details using any available theme engines
and fonts - without "merge" to external apps started from calendar.
Theme provided calendar picture will have the actual size of the pixmap and will set
the width of the calendar if the pixmap width is greater than total widget size request.
For more theme details please see included example themes.

Building arktiswm_calendar for different Puppy versions.
To compile the source:
- have devx.sfs loaded
- navigate to arktiswm_calendar extracted folder
- open terminal window there, and type:
make
- if that works out ok, type:
make install
- default install path is /root/.arktiswm/cal-base and /root/my-applications/bin for scripts
- arktiswm_calendar stripped size should be around 10kb to 15kb on most systems

System integration.
Command to run arktiswm_calendar from panel clock, etc. is:
calendar-script

Translation.
Setup window TEXTDOMAIN is "arktiswm" while there are so few translatable lines
that it would make more sense to edit those by hand.. if the calendar is used standalone.

Notes.
Calendar window is set to open under mouse and setup window in the middle of display.
This the first release of arktiswm_calendar package.
There are only a few example themes included, so feel free to share your ideas and
custom themes ;)

arktiswm_calendar license.
ArktisWM, 2019, GNU GPL3
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
See /usr/share/doc/legal/gpl-3.0.htm for more details.

Included Oxygen.TTF font is released under SIL Open Font License.
Attachments
arktiswm_calendar-source-01.tar.gz
C source and data for arktiswm_calendar
(111.73 KiB) Downloaded 388 times
sshot1.jpg
screenshot with Setup window and Calendar
(62.68 KiB) Downloaded 501 times
arktiswm_calendar-tarpup606_32bit.pet
arktiswm_calendar pre-built pet package for tahrpup606 32bit
(112.97 KiB) Downloaded 377 times
arktiswm_calendar-tarpup605_64bit.pet
arktiswm_calendar pre-built pet package for tahrpup605 64bit
(96.31 KiB) Downloaded 369 times
arktiswm_calendar-xenialpup64-75_64bit.pet
arktiswm_calendar pre-built pet package for xenialpup-7.5 64bit
(112.93 KiB) Downloaded 365 times

Post Reply