@Sector11 Actually I just figured it out right before I came back to this thread. Thanks though.
I just had the wrong numbers in the multi-desktop configuration part and I had it only half written. Here's sort of what I did have after I read that post and was still messed up:
Code:
${if_match ${execi 60 wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 1366}
${time %m}-${time %d} -${color #ac2121}${time %Y}
${else}${if_match ${execi 60 wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 2732}
(Insert All Code Below The TEXT section that you want on the second viewport.)
${else}${if_match ${execi 60 wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 4098}
(Insert All Code Below The TEXT section that you want on the third viewport.)
${else}${if_match ${execi 60 wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 5464}
(Insert All Code Below The TEXT section that you want on the fourth viewport.)
${else}Out Of Viewports (Or copy/paste more of these.)${endif}${endif}${endif}${endif}
And this is the right code that is now functioning properly:
Code:
${if_match ${execi 60 wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 0}
${time %m}-${time %d} -${color #ac2121}${time %Y}
${else}${if_match ${execi 60 wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 1366}
(Insert All Code Below The TEXT section that you want on the second viewport.)
${else}${if_match ${execi 60 wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 2732}
(Insert All Code Below The TEXT section that you want on the third viewport.)
${else}${if_match ${execi 60 wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 4098}
(Insert All Code Below The TEXT section that you want on the fourth viewport.)
${else}Out Of Viewports (Or copy/paste more of these.)${endif}${endif}${endif}${endif}
My results from awk and sed were no equivalent to the end number so, of course, it couldn't display anything.
I'm going to write myself a multi-desktop template for future use.
And just so you know to help others in the future, Ubuntu 12.04 running compiz doesn't work right with the grep command in
Code:
wmctrl -d | grep 'VP:' | awk '{print $2}' | sed 's/,0//'} == 1920}
The right code is:
Code:
wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 1920}
Since it doesn't grep VP it starts at the beginning and must awk the 6th position, thus: print $6
Bookmarks