werewolf werewolf

LS programming help please :)

LS programming help please :)

Hi, thanks for looking.

I am trying to do something which seems to be very simple: Click the Middle mouse button and display a list of desktops from the vwm.

There is a theme, fo-src, which does this. I have looked at every .rc file I could find and I have tried the following in my theme:

I have jdesk.rc which contains the following:
jdeskworkarea "0,25,1280,974" !haven't figured out how the negative number thing works yet
*jDeskMButton3 [CTRL!none!ToggleCommand!none] << THIS WORKS
*jDeskMButton3 [!none!none!popupvwm!none]

I have popupvwm.rc which contains the following copied from the fo-src theme:
If VWM TRUE
*Popup "" !New !Popupvwm
*Popup "Desktop 1" !VWMDesk 1
*Popup "Desktop 2" !VWMDesk 2
*Popup "Desktop 3" !VWMDesk 3
*Popup "Desktop 4" !VWMDesk 4
*Popup ~New
ENDIF

I have these two entries in my theme.rc file:
include "$configDir$jdesk.rc"
include "$configDir$popupvwm.rc"

I really don't know what else to do to get this to work. I've looked through the docs for the vwm module and the jdesk module, but I can't find any docs which state "if you want to do something like this, you have to have this/these .rc file(s) and you have to make entries in these .rc files and you have to set up these themevars...."

jdesk-0.711
popup2-2.1.4
ckvwm-1.40

Thanks so much. This isn't as easy as AstonShell

David




Powered by SkinBrowser!
14,765 views 67 replies
Reply #26 Top
The flippy animations are nice. Still can't figure out what that little flap by the fan says



Powered by SkinBrowser!
Reply #27 Top
ahhh, a Jafo emblem. You should make it darker. Don't be so modest



Powered by SkinBrowser!
Reply #28 Top
Have to go to bed now. I've got a major headache trying to figure out this little stupid thing. Arrrgh.

Thanks for trying to help Jafo, sorry it was such a pain.



Powered by SkinBrowser!
Reply #29 Top

I thought you wanted to do something 'sexy' with the popup...but it's just a vwm switcher....shouldn't be that hard to set....I'll have to check what you've done to make it not work....

Strangely I don't get the hotkey errors on my Antares...though others have done so.....easy enough just to comment out the hotkey and ignore it...

Reply #30 Top

Here....

add this to the end of theme.rc  in Antares II and you'll have it working in mine....

*Popup "" !New !Popupvwm
*Popup "Desktop 1" !VWMDesk 0
*Popup "Desktop 2" !VWMDesk 1
*Popup "Desktop 3" !VWMDesk 2
*Popup "Desktop 4" !VWMDesk 3
*Popup ~New
*Desktop MButton+SHIFT !Popupvwm


[Message Edited]
Reply #31 Top
Check your own 'personal.rc' doesn't have a conflicting line....
Reply #32 Top

Actually....23 resource files is just asking for trouble.

I'm sure there's better ways than that to handle options....

Reply #33 Top
Thanks so much for all this. Actually I don't know anything about how you're suppose to set these things up. I can't find any docs on that specific issue. I can find tons of docs on individual modules though
I'm modifying the default theme which comes with Omar's installer called austerity. I haven't touched the personal theme (well, actually, I did and I didn't back it up first and well, there's a line which says "don't mess with this unless you know what you are doing". Hee hee. See to me, that just means I gotta break it and I did! So I reinstalled LS...but that's another story. I'll poke around for conflicts, but I didn't see any other popup calls from jdesk or anywhere else other than the regular two.

OK, I put the popupvwm in the bottom of the theme.rc file and got rid of popupvwm.rc. No joy.

Issuing !vwmdesk 1 in lsxcommand works great. hmmm...must eat...brb






Powered by SkinBrowser!
Reply #34 Top
OMG!!! I got the middle click to work by putting the command in personal.rc, but now the freaking shift left-click menu doesn't work and I didn't mess with that at all!!!!!!!!!!!!!!!!!! ARRRRRGGGGHHHHHH



Powered by SkinBrowser!
Reply #35 Top
Jafo: how many and which rc's are absolutely required for a theme to work?



Powered by SkinBrowser!
Reply #36 Top

Mouse actions for jdesk and desktop modules give you multiple settings to each mouse/keyboard control.

It's possible to have two lines trying to run the same 'action' in two different rc files causing conflict.

The theme you initially asked about has conditional statements as well linked to the vwm....so a separate 'config' again may actually disable the vwm function totally.

Reply #37 Top

jDeskDisableMButton1
  - If set, all jDesk Mouse Button 1 functionality
    is disabled.
  - boolean value: true if set, otherwise false.


jDeskDisableMButton2
  - If set, all jDesk Mouse Button 2 functionality
    is disabled.
  - boolean value: true if set, otherwise false.


jDeskDisableMButton3
  - If set, all jDesk Mouse Button 3 functionality
    is disabled.
  - boolean value: true if set, otherwise false.


jDeskDisableMButtonX1
  - If set, all jDesk Mouse Button X1 functionality
    is disabled.
  - boolean value: true if set, otherwise false.


jDeskDisableMButtonX2
  - If set, all jDesk Mouse Button X2 functionality
    is disabled.
  - boolean value: true if set, otherwise false.


jDeskDisableMWheelScroll
  - If set, all jDesk Mouse Wheel Scroll
    functionality is disabled.
  - boolean value: true if set, otherwise false.


jDeskDisableDoubleClick
  - If set, all jDesk ignores Double Click actions and
    immediately executes the up action command instead
    of waiting to see if a double click is being
    executed.
  - boolean value: true if set, otherwise false.


*jDeskMButton1
  - parameters:
    [<modkey><down-cmd><up-cmd><dblclick-cmd>]

    <modkey> can be one of the following
      SHIFT
      CTRL
      CTRL+SHIFT

    <down-cmd>
    <up-cmd>
    <dblclick-cmd>
      can be any !Bang command or executable that
      is to be executed.

  - Multiple settings of this definition are
    allowed, but only one definition using the same
    modkey is allowed.

  - If no definitions are specified, Button is
    disabled.


*jDeskMButton2
  - parameters:
    [<modkey><down-cmd><up-cmd><dblclick-cmd>]

    <modkey> can be one of the following
      SHIFT
      CTRL
      CTRL+SHIFT

    <down-cmd>
    <up-cmd>
    <dblclick-cmd>
      can be any !Bang command or executable that
      is to be executed.

  - Multiple settings of this definition are
    allowed, but only one definition using the same
    modkey is allowed.

  - If no definitions are specified, Button is
    disabled.


*jDeskMButton3
  - parameters:
    [<modkey><down-cmd><up-cmd><dblclick-cmd>]

    <modkey> can be one of the following
      SHIFT
      CTRL
      CTRL+SHIFT

    <down-cmd>
    <up-cmd>
    <dblclick-cmd>
      can be any !Bang command or executable that
      is to be executed.

  - Multiple settings of this definition are
    allowed, but only one definition using the same
    modkey is allowed.

  - If no definitions are specified, Button is
    disabled.


*jDeskMButtonX1
  - parameters:
    [<modkey><down-cmd><up-cmd><dblclick-cmd>]

    <modkey> can be one of the following
      SHIFT
      CTRL
      CTRL+SHIFT

    <down-cmd>
    <up-cmd>
    <dblclick-cmd>
      can be any !Bang command or executable that
      is to be executed.

  - Multiple settings of this definition are
    allowed, but only one definition using the same
    modkey is allowed.

  - If no definitions are specified, Button is
    disabled.


*jDeskMButtonX2
  - parameters:
    [<modkey><down-cmd><up-cmd><dblclick-cmd>]

    <modkey> can be one of the following
      SHIFT
      CTRL
      CTRL+SHIFT

    <down-cmd>
    <up-cmd>
    <dblclick-cmd>
      can be any !Bang command or executable that
      is to be executed.

  - Multiple settings of this definition are
    allowed, but only one definition using the same
    modkey is allowed.

  - If no definitions are specified, Button is
    disabled.


*jDeskMWheelScroll
  - parameters:
    [<modkey><down-cmd><up-cmd>]

    <modkey> can be one of the following
      SHIFT
      CTRL
      CTRL+SHIFT

    <down-cmd>
    <up-cmd>
      can be any !Bang command or executable that
      is to be executed.

  - Multiple settings of this definition are
    allowed, but only one definition using the same
    modkey is allowed.

  - If no definitions are specified, Wheel Scroll
    is disabled.

 

Reply #38 Top
That lot should cover it for jdesk....
Reply #39 Top
Thanks again...I read that about 5 times while I was trying to figure this out. The middle button (button3) click now displays the vwm menu, but I've lost my shift-left click (button1) bar option menu and I've never messed with that one. I did a search for the phrase 'jdeskmbutton1' starting in the user directory and have cleaned up all references. I cleaned all references to the personal folder. There is only one assignment for each jdeskbuttonx and the arguments don't repeat in any of them.



Powered by SkinBrowser!
Reply #40 Top
In terms of rc files and how many to use there is no one answer.

When using Omar's installer (and it is probably the best, certainly the most commonly used distro of litestep) each theme needs to contain a "theme.rc". You can contain all the litestep commands, parameters, etc in that one file. I have many themes that do just that.

But if you look at "austerity" as an example, you can have a theme.rc and have it point to many other rc's (usually an rc per module config).
Both systems work. In theory more rc's might take slightly longer to load at a reboot or recycle (but the difference is real slight).

Having multiple rc's makes it easier to have problems like conflicting (multiple) lines. But seperating module commands into seperate rc's makes it easier for some people to follow. I have used this method in themes as well, works good too.

Also keep in mind that there are rc files external of any given theme, that are loaded by default with all themes (personal.rc, hotkey.rc, popup.rc, evars.rc). You have probably already discovered these
Reply #41 Top
Hah!! Everything is working.

Now, figure out how to put an animation into a theme

hmmm, now which theme can I tear apart for that lesson ummm anta..

Thanks for your help Jafo!



Powered by SkinBrowser!
Reply #42 Top
Hi PharOe,

Thanks for that. I did discover those rc's in the personal folder. I also figured out how to not load those. But you gave me what I was looking for: I can make a theme with just one theme.rc. However, I agree that making an RC for each module makes a certain sense.

Man, Aston themes are so easy to make

Well, onward and upward.

Are there any documents which explain what things like 'Execute' and 'Shortcut' and a few others mean?

Also where can I find out what *all* the themevars can be?


Powered by SkinBrowser!
[Message Edited]
Reply #43 Top
Also (I'm so sorry, but I really want to be able to do all this stuff

How do I get iconpackager to work with LS? I watched as a drive icon changed to the correct icon and then switch right back to windows default (I think) Is there a way?



Powered by SkinBrowser!
Reply #44 Top
MY GOD!! Now I remember why I don't theme Litestep anymore.....hehe. I used to quite enjoy fiddling around with the oldstyle step.rc, but when they added all those other .rc files, and all that OTS stuff, it just fried my brain. /me goes back to importing objects into DX........so simple.
[Message Edited]
Reply #45 Top
I would like to have no text if there are no messages and the number of messages if there are any. I did this, but I get an error on the first line. This is in the theme.rc

What's wrong with this?

IF $LsMailNumMessages$ = 0
lsmailnotext
ELSE
lsmailfont tahoma
lsmailfontsize 24
lsmailfontbold
lsmailnewmailfontcolor FF0000
ENDIF

Thanks,

David



Powered by SkinBrowser!
Reply #46 Top

Not certain, but try....

IF LsMailNumMessages = 0
lsmailnotext
ELSE
lsmailfont tahoma
lsmailfontsize 24
lsmailfontbold
lsmailnewmailfontcolor FF0000
ENDIF

Reply #47 Top
Better forget about getting any app that alters drive and folder icons to work when not using Explorer as your shell. Explorer (the file manager) will completely ignore what you set as drive/folder icons.
Reply #48 Top
Jafo, thanks, but that didn't work. I've tried all the combinations I can think of...nothing.

Crae, yeah, I suppose you're right. Too bad though.



Powered by SkinBrowser!
Reply #49 Top
This is really getting frustrating. Using lsmail, I've tried to set up the middlebuttonup to launch mailwasher, but nothing happens. There is something very fundemental about LS which I'm missing.

Apparently you can use if-then-else statements, but only to evaluate evars. You can't compare their values to 0 or anything else (the = sign means nothing in theme.rc)

You can't use evars globally with every module.

I don't get how to launch external programs using buton commands.

I don't know where to go to get the documentation to explain all this. I've googled, looked at 5 or 6 litestep sites, nothing.

phhhht.



Powered by SkinBrowser!