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 Wed 22 Oct 2014, 02:31
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Editing /root/.jwmrc vs /etc/xdg/templates/_root_.jwmrc
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Sun 12 May 2013, 13:59    Post_subject:  Editing /root/.jwmrc vs /etc/xdg/templates/_root_.jwmrc  

At the top of /root/.jwmrc it says:

IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc

but if I add a key binding to that file it doesn't work. If I add it to /root/.jwmrc however it works and magically gets copied to the other file.

Is the warning wrong or have I misunderstood something?

Paul

PS This is Slacko 5.5
Back to top
View user's profile Send_private_message 
duke93535


Joined: 05 May 2005
Posts: 194
Location: California , High Desert

PostPosted: Sun 12 May 2013, 22:13    Post_subject:  

The warning is correct and the key bindings are located in /root/.jwm/jwmrc-personal. After making a change, do a restart of JWM.

If and when fixmenus is run you will lose any changes that you make to .jwmrc.

duke
Back to top
View user's profile Send_private_message 
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Mon 13 May 2013, 03:29    Post_subject:  

Thanks duke, so should it read...

IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc or /root/.jwm/jwmrc-personal

?

Cheers

Paul
Back to top
View user's profile Send_private_message 
boolean

Joined: 31 Oct 2009
Posts: 32

PostPosted: Mon 13 May 2013, 03:50    Post_subject:  

here is the entire process : a bit cryptic
fixmenus: copy non xdg-menu literally and execute jwm-xdgmenu lines from /etc/xdg/templates/_root_.jwmrc ---> xdgmenu (gets dierctory icon from .directory- and crawl .desktop for category ) /etc/xdg/menus/puppy-*.menu ---> /root/.jwmrc(which read by jwm)
Back to top
View user's profile Send_private_message 
duke93535


Joined: 05 May 2005
Posts: 194
Location: California , High Desert

PostPosted: Mon 13 May 2013, 03:56    Post_subject:  

Any <include> listed in the /etc/templates/_root_.jwmrc will override the template.

These are the standard includes.

<Include>/root/.jwmrc-tray</Include>
<Include>/root/.jwm/jwmrc-theme</Include>
<Include>/root/.jwm/jwmrc-personal</Include>
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 13 May 2013, 05:27    Post_subject:  

Thats right , read all posts together :

edit
/etc/xdg/templates/_root_.jwmrc
then run
fixmenus
to create a new $HOME/.jwmrc
then run
jwm -p
to check for errors
then run
jwm -restart
at older jwm -v
or one of the both
jwm -reload
jwm -restart

at newer jwm -v
.
Back to top
View user's profile Send_private_message Visit_website 
`f00


Joined: 06 Nov 2008
Posts: 809
Location: the Western Reserve

PostPosted: Tue 14 May 2013, 16:02    Post_subject:
Sub_title: override (as a rule)
 

Mostly personal does override template, but sometimes it's kind of a merge.

I've noticed with keybindings if there are different binds (say Ctrl+q for close in personal and Alt+F4 in template for close) both binds are used for closing a window. The template settings may be viewed as more of a fallback, but just to be sure (if you want unique binds) it may help to compare and match.

a fine point to be sure, but FYI Smile
Back to top
View user's profile Send_private_message 
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Tue 14 May 2013, 17:04    Post_subject:  

Seems rather cryptic Shocked but I guess I can live with it - once it's set up I suppose I can just forget about it Smile

Thanks for the replies, I'm sure they will be helpful to others.

Paul
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
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.1205s ][ Queries: 11 (0.0726s) ][ GZIP on ]