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 Tue 21 Oct 2014, 11:50
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Tinkering w/ Haze WM
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 3 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Fri 11 Oct 2013, 16:25    Post_subject:  

http://standards.freedesktop.org/menu-spec/menu-spec-latest.html#category-registry
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
samira


Joined: 01 Sep 2013
Posts: 43

PostPosted: Sun 13 Oct 2013, 12:43    Post_subject: Tinkering w/ Haze WM  

Hey everyone,
I managed to get a .tar.gz file with the haze binaries.. Tried it out, was ok at first. Then i noticed the fonts look funny in italics. Any way to change the fonts? Because in the hazerc the font options are rather cryptic.
And by the way, anyone notice the close button on the left is slightly to the right?
Back to top
View user's profile Send_private_message 
samira


Joined: 01 Sep 2013
Posts: 43

PostPosted: Sun 13 Oct 2013, 12:46    Post_subject: Tinkering w/ Haze WM  

P/S: any idea where the color of the menu bar is specified in the sources? I'd like to change it to grey (dark or light), white or silverish..
Back to top
View user's profile Send_private_message 
Keef


Joined: 20 Dec 2007
Posts: 633
Location: Staffordshire

PostPosted: Sun 13 Oct 2013, 14:01    Post_subject:  

To find a usable font on your system, use xfsontsel. 'select' copies the line to the clipboard, so you can paste it to hazerc.
I'd like to change the menu background too, but no joy yet.
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Mon 14 Oct 2013, 12:33    Post_subject:  

Close button intended right can be left aligned by deleting "sticky"-flag from menu.
Menubar color and height are hard coded. Attached patch add option
Code:
DECORATIONS_INACTIVE_BG   gray

MENUBARHEIGHT  32

## Number of Desktop
to set the menu bar height to whatever size you want. Thats handy as one can reuse the 32-icons as miniicons:
Code:
# Old mlvwm style definitons
Style
"calctool" MiniIcon accessories-calculator.xpm NoResizeR
which will replace the red X with the icon in menubar upper right.
Or you could set height to 48 and swallow some cool WindowMaker-style dockapps...

I have worked on the pm_haze_xdg.sh script to handle more categories but not quite set yet. Going towards a Gnome-panel-like solution where most menus are in sub menus of an "Application"-main-menu...

I try to keep the "hazewm-0.2-collage" updated for download here
haze-0.2_menubarheight.diff.gz
Description  2. version fixing no MENUBARHEIGHT present in hazerc-file
gz

 Download 
Filename  haze-0.2_menubarheight.diff.gz 
Filesize  1.86 KB 
Downloaded  241 Time(s) 
haze_menu_test.png
 Description   
 Filesize   74.3 KB
 Viewed   469 Time(s)

haze_menu_test.png


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


Joined: 01 Sep 2013
Posts: 43

PostPosted: Wed 16 Oct 2013, 13:05    Post_subject: Tinkering w/ Haze Wm  

Thanks everyone..
Been using mlvwm instead & see what i can do
instead, because Haze doesn't have themes. The
black menu bar with white fonts are a little
contrasting with each other. Any idea how to
turn it white or grey? Understand that if it's hard coded, where would be the best place to start for changing the menu bar colors? And i've tried the Colours option in .hazerc, however, my xserver quits. I can only run haze in it's default b&w theme.
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Wed 16 Oct 2013, 13:42    Post_subject:  

samira:hazewm is based on mlvwm - a lot of code change is just name changes (like "MlvwmWindow *ActiveWin;" -> "HAZEWMWindow *ActiveWin;"). So tinkering with mlvwm - implementing real code adds from hazewm - might be a proper way forward. Colors are set in InitGCs in main.c - my code for setting menu bar height via .hazerc can be extended to setting menu colors as well - but you can hard code new colors via changes in InitGCs (change the "GetColor( "#bbbbbb");" values...
Back to top
View user's profile Send_private_message Visit_website 
samira


Joined: 01 Sep 2013
Posts: 43

PostPosted: Thu 17 Oct 2013, 02:12    Post_subject:
Sub_title: Tinkering w/ Haze WM
 

Thanks goingnuts,
I got the haze starter pack, and it works on v4.31.(though the standard package failed to run on v4.31).. But the menubar was like 1 px thin, so had to add the MENUBARHEIGHT parameter to fix the problem..
Back to top
View user's profile Send_private_message 
samira


Joined: 01 Sep 2013
Posts: 43

PostPosted: Thu 17 Oct 2013, 02:19    Post_subject: Tinkering w/ Haze WM  

goingnuts: you mentioned a way to change the menubar colour via .hazerc, what's the syntax? By the way, wouldn't we need to change the font colour if the menubar color is changed too?
goingnuts wrote:
samira:hazewm is based on mlvwm - a lot of code change is just name changes (like "MlvwmWindow *ActiveWin;" -> "HAZEWMWindow *ActiveWin;"). So tinkering with mlvwm - implementing real code adds from hazewm - might be a proper way forward. Colors are set in InitGCs in main.c - my code for setting menu bar height via .hazerc can be extended to setting menu colors as well - but you can hard code new colors via changes in InitGCs (change the "GetColor( "#bbbbbb");" values...
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Thu 17 Oct 2013, 10:23    Post_subject:
Sub_title: Tinkering w/ Haze WM
 

samira wrote:
Thanks goingnuts,
I got the haze starter pack, and it works on v4.31.(though the standard package failed to run on v4.31).. But the menubar was like 1 px thin, so had to add the MENUBARHEIGHT parameter to fix the problem..

Thanks for reporting - in fact the starter-pack is expected to work on every known version and beyond...
The 1px menu is an error/bug - I have updated the menubarheight patch above to fix this - and updated the hazewm-starter-pet as well.
The standard package you mention - what is that?
The setting of menubar-color via rcfile is not coded yet - what I meant was that code similar to the code providing menubarheigt could be used to set the different colours.
And yes - font-color should be adjustable too - good point!

I tend to prefer further work to be done with offset in mlvwm and not hazewm.

mlvwm/hazewm is really low resource demand windowmanagers with quite extended properties. Hard to get memory usage above 400K for the static linked bin...
Back to top
View user's profile Send_private_message Visit_website 
samira


Joined: 01 Sep 2013
Posts: 43

PostPosted: Sun 20 Oct 2013, 13:57    Post_subject: Tinkering w/ Haze WM  

goingnuts: the "standard" package i was refering to is "hazewm.tar.gz" which contained the executable.
By the way, I do prefer mlvwm over hazewm, in terms of practicality & aesthetics. However, haze being built on mlvwm code, meaning whatever bugs on mlvwm was probably reduced. (Eg. the double scroll bars). And I would like mlvwm to have more functions such as able to create a new folder,etc, just like on an actual mac.
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Wed 23 Oct 2013, 14:37    Post_subject:  

OK - thanks. I will try working on mlvwm. I have most of the code for theming menubar and will try to add some theming of the windows.
I am not sure if haze has less bugs - or that mlvwm has bugs...
In fact mlvwm seems more robust - the added theming in haze lacks error checking and so...
The scroll bars can be disabled in mlvwm via mlvwmrc ex:
Code:
# Define the default window decoration
Style
"*" MiniIcon mini-cross.xpm, NoSBarH, NoSBarV, NoResizeR, MaxmizeScale 100, MenuBar default
END
Back to top
View user's profile Send_private_message Visit_website 
samira


Joined: 01 Sep 2013
Posts: 43

PostPosted: Thu 24 Oct 2013, 16:18    Post_subject: Tinkering w/ Haze WM  

goingnuts: Been trying out mlvwm since this morning. Did bump into some problems like:
1. When swallowing xclock, if we specify the foreground colour as 'grey' it appears darker than the menu bar. However, when specifying 'light grey', or in hex, it doesn't seem to understand and hangs.
2. When swallowing xload (with syntax xload -nolabel -fg red, etc), it hangs as well, only displaying the title on the menu bar when mlvwm is loading.
I did try that method to hide the scrollbars in .mlvwmrc, and it does look better.
I was wondering also, what if we just made changes to haze wm to mimic mlvwm, eg. changing the menu bar colors, icons, etc to bring make it more up-to-date, nothing too fancy though. Just simple, fast, and aesthetically pleasing.
Back to top
View user's profile Send_private_message 
samira


Joined: 01 Sep 2013
Posts: 43

PostPosted: Thu 24 Oct 2013, 16:19    Post_subject: Tinkering w/ Haze WM  

P/s: I didn't manage to get a screenshot as my xserver keeps freezing out of nowhere.
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Fri 25 Oct 2013, 10:18    Post_subject:  

Could you test attached mlvwm?
I have tried to make settings of colors for menu bar & windows possible via mlvwmrc - keeping system8 free of the colors and having close to default if none of the new flags are set. Menu bar height will be settable with system8 though.

The mlvwm parser wont accept content with "#" - its regarded as a comment - should work on that later - and every " " is considered a new command/flag so that "crashes" it too.

I also have attached my present mlvwmrc but you will probably need to adjust it.

Both attachment are fake .gz-files - just rename for use.

As for continuing on hazewm instead - I gave up - much easier to work in mlvwm-code and adapt things from hazewm.
EDIT: Removed attachments

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 3 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
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.1249s ][ Queries: 13 (0.0056s) ][ GZIP on ]