Editing /root/.jwmrc vs /etc/xdg/templates/_root_.jwmrc

Booting, installing, newbie
Post Reply
Message
Author
PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

Editing /root/.jwmrc vs /etc/xdg/templates/_root_.jwmrc

#1 Post by PaulR »

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

User avatar
duke93535
Posts: 194
Joined: Thu 05 May 2005, 16:45
Location: California , High Desert

#2 Post by duke93535 »

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

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#3 Post by PaulR »

Thanks duke, so should it read...

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

?

Cheers

Paul

boolean

#4 Post by boolean »

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)

User avatar
duke93535
Posts: 194
Joined: Thu 05 May 2005, 16:45
Location: California , High Desert

#5 Post by duke93535 »

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>

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#6 Post by Karl Godt »

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
.

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#7 Post by `f00 »

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

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#8 Post by PaulR »

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

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

Paul

Post Reply