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

#16 Post by torm »

GtkCalendar details.

It is possible to theme GtkCalendar widget.
Also if a program uses some unique namespace, it can be accessed directly from
global gtkrc, aside from "class" level design of GtkCalendar.

Note that using different font or dpi will reshape the window to a different size.
For GtkCalendar widget it is okay to use any .ttf font that is installed on the system.
The example style has all the detail comments.

Code: Select all

style "gtk_calendar_example"
{
	xthickness = 8				# border width
	ythickness = 8				# border height
	font_name = "Fjalla One 9"	# TTF fontname, number 9 stands for fontsize

	fg[NORMAL] = "#FFFFFF"		# month, year -text
	bg[NORMAL] = "#434343"		# month, year, arrow -backg. ; leading/next-month dates-text ; window border 
	bg[PRELIGHT] = "#434343"	# arrow -backg., with mouse-over
	bg[ACTIVE] = "#434343"		# arrow -backg., clicking

	text[NORMAL] = "#CCCCCC"	# dates -text
	base[NORMAL] = "#000000"	# dates -backg.
	text[SELECTED] = "#FFFFFF"	# weekday-names, clicked-date -text
	base[SELECTED] = "#26282E"	# weekday-names, clicked-date -backg.
	text[ACTIVE] = "#FFFFFF"	# may appear... for weekday-names
	base[ACTIVE] = "#000000"	#               if clicking outside of calendar area

 engine "pixmap"
 {
	image
	{
	function	= SHADOW		# outer border
	detail		= "calendar"
	recolorable	= FALSE
	shadow		= IN
	file		= "cb_1.png"
	border		= { 8, 8, 8, 8} # notice border width/height above..
	stretch		= TRUE
	}
	image
	{
	function	= SHADOW		# month, year border
	detail		= "calendar"
	recolorable	= FALSE
	shadow		= OUT
	file		= "cb_2.png"
	border		= { 3, 3, 3, 3} # to bring inner borders together..
	stretch		= TRUE
	}
	image
	{
	function	= FOCUS			# clicked date border, must be transparent on the inside
	detail		= "calendar-day"
	file		= "cf_1.png"
	border		= { 2, 2, 2, 2}
	stretch		= TRUE
	}
	image
	{
	function	= ARROW			# arrow size is 8x8 pixel for this theme
	detail		= "calendar"
	state		= NORMAL		# states are: normal and prelight ( same for active/selected )
	file		= "arn.png"
	border		= { 1, 1, 1, 1}
	stretch		= TRUE
	arrow_direction	= RIGHT
	}
	image
	{
	function	= ARROW
	detail		= "calendar"
	state		= NORMAL
	file		= "aln.png"
	border		= { 1, 1, 1, 1}
	stretch		= TRUE
	arrow_direction	= LEFT
	}
	image
	{
	function	= ARROW
	detail		= "calendar"
	state		= PRELIGHT
	file		= "arp.png"
	border		= { 1, 1, 1, 1}
	stretch		= TRUE
	arrow_direction	= RIGHT
	}
	image
	{
	function	= ARROW
	detail		= "calendar"
	state		= PRELIGHT
	file		= "alp.png"
	border		= { 1, 1, 1, 1}
	stretch		= TRUE
	arrow_direction	= LEFT
	}
 }
}
class "GtkCalendar" style "gtk_calendar_example"


Screenshot shows gsimplecal with different themes, appearing on BMPanel2 click above clock.
Attachments
gtkcalendar-examples.png
(36.35 KiB) Downloaded 1017 times

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

#17 Post by torm »

Below is a .pet package of gsimplecal-v2.1 precompiled for tahrpup605(32bit) with Gtk-2
and configured settings to look/act the same as on screenshot.
Executable is modified to have direct theme support from global gtkrc, so it
can have any look possible -without altering any other widget or application that
uses GtkCalendar widget.
gsimplecal will install to "my-applications/bin" folder, documentation like
README and example sub-theme.rc will go in "my-documents" folder, under "gsimplecal_plus".
Setting to current locale should be automatic (including week-start-day, etc. ) .
If selected font does not support locale glyphs, edit sub-theme.rc to use some
other font that does.
Double-clicking on calendar dates-area will bring up "Osmo" and close calendar.
To use with BMPanel2 add to bmpanel2rc ( in /root/.config/bmpanel2/.. ) a simple line:
clock_prog gsimplecal
For JWM change in /root/.jwmrc-tray from: <Clock format="%H:%M">PupClockset</Clock>
to: <Clock format="%H:%M">gsimplecal</Clock>

Please read the manual for more options.
When in doupt, use gsimplecal version provided in PPM of your flavor of PuppyLinuxOS.


-------------
CHANGELOG for gsimplecal mod.
-------------

MainWindow.cpp as line 101 added:

Code: Select all

    gtk_widget_set_name(widget, "gsimplecal");
Calendar.cpp as line 37 added:

Code: Select all

    gtk_widget_set_name(widget, "gsimplecalendar");
-------------
When compiling it from source, try:
./configure --enable-gtk2

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

Mainwindow widget will appear if "show_timezones" is set to "1" and so there can be
a different look for font/color/bg of that item.
I don't think the clock label will update...

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

Configuration file should be installed as /root/.config/gsimplecal/config

clock_format =%A %x
-notice extra whitespace after "%A" ?
-typing in terminal:
date --help
..will list all possible formats to use
-typing in terminal:
man gsimplecal
..should open the gsimplecal manual for more details

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

To use included calendar sub-theme, copy the "calendar" folder to whatever theme in
/usr/share/themes/whatever-theme-name/gtk-2.0/..
then open the gtkrc of that theme and add at the top:
include "calendar/sub-theme.rc"
..and re-select the theme.

Note.
When editing the look of calendar, changes may appear without the need to restart
the gtk2 theme in the middle of process, just restart the calendar for that.
When done, don't forget to re-select the gtk2 theme ;)


PS.
Fjalla One.ttf and TekoRegular.ttf fonts are included in "fonts.pet" package in one of
previous posts.
Attachments
gsimplecal.pet
(21.3 KiB) Downloaded 638 times

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

#18 Post by torm »

Edit: replaced with arktiswm_calendar, please see page 3
Last edited by torm on Mon 04 Feb 2019, 15:13, edited 2 times in total.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#19 Post by zigbert »

Thank you for sharing all your knowledge. This thread is getting really good.
I need time to go through all this to learn gtk-theming deeper.

Sigmund

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

#20 Post by torm »

Sometimes it helps to know where to hit in Gtk2. :)

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 590 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 285 times
pclock-retro_07_precise-571_32bit.pet
pclock-retro version 07 for puppy precise-571 (32bit)
(73.57 KiB) Downloaded 477 times
pclock-retro_07_xenialpup64_64bit.pet
pclock-retro version 07 for xenialpup64-7.5 (64bit)
(56.02 KiB) Downloaded 477 times
pclock-retro_07_tahrpup606_32bit.pet
pclock-retro version 07 for tahrpup606 (32bit)
(55.59 KiB) Downloaded 455 times
pclock-retro_07_tahrpup605_64bit.pet
pclock-retro version 07 for tahrpup605 (64bit)
(55.89 KiB) Downloaded 463 times
pclock-retro_07_slacko-570_32bit.pet
pclock-retro version 07 for puppy slacko-570 (32bit)
(70.61 KiB) Downloaded 455 times
pclock-retro_07_slacko-6999_32bit.pet
pclock-retro version 07 for puppy slacko-6.9.9.9 (32bit)
(54.63 KiB) Downloaded 447 times
Last edited by torm on Wed 04 Sep 2019, 13:52, edited 1 time in total.

Post Reply