RabidVWM + VWMOnSwitchTo(Desk number) Thread last updated on 2004-02-29 07:10:36

Posted by member 96591 on 2004-02-27 08:21:27

How to set VWMOnSwitchTo command to switch to next or other desktop and change VWM icon number. For sysVWM i use this code
VWMOnSwitchTo1 !Execute [!ShortcutGroupShow 1][!ShortcutGroupShow 4][!ShortcutGroupShow 3][!ShortcutGroupShow 2][!ShortcutGroupHide 5][!ShortcutGroupHide 6][!ShortcutGroupHide 7][!ShortcutGroupHide 8]
VWMOnSwitchTo2 !Execute [!ShortcutGroupShow 5][!ShortcutGroupShow 6][!ShortcutGroupShow 3][!ShortcutGroupShow 4][!ShortcutGroupHide 1][!ShortcutGroupHide 2][!ShortcutGroupHide 7][!ShortcutGroupHide 8]
VWMOnSwitchTo3 !Execute [!ShortcutGroupShow 7][!ShortcutGroupShow 5][!ShortcutGroupShow 2][!ShortcutGroupShow 4][!ShortcutGroupHide 1][!ShortcutGroupHide 6][!ShortcutGroupHide 3][!ShortcutGroupHide 8]
VWMOnSwitchTo4 !Execute [!ShortcutGroupShow 8][!ShortcutGroupShow 5][!ShortcutGroupShow 2][!ShortcutGroupShow 3][!ShortcutGroupHide 4][!ShortcutGroupHide 1][!ShortcutGroupHide 6][!ShortcutGroupHide 7]

Posted by member 99 on 2004-02-27 11:16:57 link

Swap the numbers on your groups 1 and 5 to make the math easier. Then you are doing:
1 = +5+2+3+4-1-6-7-8
2 = +1+6+3+4-5-2-7-8
3 = +1+2+7+4-5-6-3-8
4 = +1+2+3+8-5-6-7-4
Every time you switch, you need to hide (n+4) and show n for the desk you are leaving, then show (n+4) and hide n for the desk you are switching to.

; hide group (n+4) and show n when switching away
VWMOnSwitchFrom !execute [!ShortcutGroupShow ^@dc^][!ShortcutGroupHide ^@#d^^@dc^+4^@#d^]
; hide group n and show (n+4) when switching to
VWMOnSwitchTo !execute [!ShortcutGroupShow ^@#d^^@dc^+4^@#d^][!ShortcutGroupHide ^@dc^]

Posted by member 96591 on 2004-02-29 07:10:36 link

Thanks for code!