XMonad move windows with title X to workspace

I want to automatically assign windows of Intellij Idea projects to specific workspaces in xmonad. I tried the following in my xmonad.hs:
myManageHook = composeAll . concat $
                  [  [ fmap (c `isInfixOf`) title  --> doShift "5:lp" | c <- myLP]
                   , [ fmap (c `isInfixOf`) title  --> doShift "2:amq-svc" | c <- myAmq]
                   , [ fmap (c `isInfixOf`) title  --> doShift "3:testfwks" | c <- myTest]
                   where myLP = ["lp-intellij"]
                         myAmq = ["msg-svc-intellij"]
                         myTest = ["testframeworks"]
However, it seems when a Intellij window is started at first the title is just "Intellij" and does not contain the projects name, so xmonad does not shift the window to the workspace. Is it possible to execute this hook when a title of a window changes, so that the projects are assigned automatically to a workspace?

* push *
I don't believe there's be no specific way to do this.
Well, what I exactly want to do is to change wallpapers, for some or all workspaces -- and therefor additionally finally making use of something not existing on my keyboard: pressing the mystical masculine key* via xdotool on ws switching invoking feh. Here I use just F12 for testing. So it actualy looks like ((added)):
, ((0 , xK_F12) , bindOn
[ ( "1" , spawn "feh --bg-tile ~/.xmonad/wallpapers/a.jpg")
, ( "8" , spawn "feh --bg-scale ~/.xmonad/wallpapers/b.jpg")
, ( "" , spawn "feh --bg-fill ~/.xmonad/wallpapers/c.jpg")]
This method isn't very elegant but, if some kind of "wallpaper"-module already exists, I haven't found it yet. In this case please somebody tell me.** -- Otherwise this is a feature request.   Don't know how to express this exactly, but the wallpapers should also be 'build in' somehow, because using an external tool like feh takes about <1s switching ws'.
(Another question is, whether such a ballyhoo about wallpapers is worth the hassle and contra-productive for efficient desktop usage, but how would I know?)
*    Nice plan; just recognized however, rebuilding xmonad with a binded xF_masculine leads to a lost small "m" in X, while the big "M" works...           
** ... as well as sources to read on creating individual workspace looks in Xmonad in general.
Last edited by nexus7 (2011-11-16 14:11:31)

Similar Messages

  • Sizing the Flash Movie Window  with HTML

    Hello,
    I don't know why I'm having such a problem with this, but I'm
    trying to open my Flash Player in a locked dimention (600 x 450).
    what's happening is an <a href is opening the html file
    published with the swf... which in turn of course launches the
    swf... I've been trying to make the swf pop up at 600x450 but so
    far no luck. It just pops up as the same size as the previous
    window. Any ideas what I'm doing wrong here? oh, i'd also like to
    have the swf pop up without the menus/toolbars/etc.
    Thanks!

    You don't say or show what you've tried, so it's difficult to
    show what
    you've done wrong.
    From your description it sounds like you want to open a new
    custom
    chromeless window. To do that, you need to use the Javascript
    window.open() method.
    You can find thousands of examples in this forum with a
    simple search.
    You can also google "window.open" and get thousands more
    examples.

  • Moving windows with the keyboard

    Is there a way to move windows with the keyboard? Surely there must be???
    Thanks for any help,

    F9-F11 keys uses Exposé to hide/move windows. Is that what you have in mind? BTW, Mac OS X ain't windoze. Since you appear to be a newcomer to the Mac, peruse Switching from Windows to Mac OS X and Basic Tutorials on using a Mac

  • Problems with titler window losing focus

    I'm using PP2.0, running on windows XP x64. It's been running since it was last re-installed in December 2007 (after a problem with codecs that broke PP2), and I've made no changes to it or to any of the support processes it uses, nor any changes to the OS (apart from service packs). There have been NO driver changes, window layout changes, workspace changes, or any other changes (apart from entropy). The mouse I'm using is a [oxymoron]Kensington Expert Mouse Pro[/oxymoron], with their latest (i.e. 2007) drivers, and XMouse ver 1.37.0.0 (i.e. their latest x64 driver), but this happens regardless of the mouse or keyboard I use.
    To set the scene... I use a "standard" title template for all my video work, with predefined text fields and colours and so on. There's nothing bizarre or extraordinary about these templates, they're actually super simplistic in terms of what most users here use their titlers for! The entire title is completely static - there are no scrolling or moving anythings, the title is overlaid on black video, there are just a dozen simple text boxes and one standard logo (bmp format), that's it. I use only Arial fonts, with no special settings or kerning or spacing or anything more complex than colour. I haven't touched or modified the original titler template since I set it up in December 2008. The problem I'm seeing happens to any titles, not just the known working template, so it's definitely a PP2 problem, not a titler problem.
    The problem is that recently (in the past 3-4 months, over maybe 5 projects in that time) the titler window loses focus while I'm using it, and the PP2 main application becomes active.
    When I bring the titler window up (using any method) and start editing, that window loses focus (window frame reverts to the background windowframe colour) and I can't type or do anything else in the titler window.The PP2 app window suddenly become the active window, and remains active until I shut down the titler.
    My workaround is to click and hold in the titler window, on or around the text I want to edit. So by pressing and holding the left mouse button, I can insert text just fine in any existing text frame. And by selecting text with the left button and then holding it (like I'm starting a drag operation), I can _replace_ the selected text - but as soon as I release the mouse button, the focus leaves the titler and I can't do anything again.
    I've reset the workspace, changed mouse and keyboards, but the problem isn't a hardware or driver issue. PP2 is the only application that behaves like this, and it's the only Adobe application that behaves like this - Photoshop (5.5 and CS8) and Audition (1.5 and 3.0) all work perfectly normally.
    This behaviour occurs with titles I've used and saved in previous working projects, it happens with new blank titles, and so on.
    What I've noticed most recently while trying to fix the problem, is that sometimes I can actually type a couple of letters or hit an editing key or two in the titler window normally, but then the titler loses focus and keeps it lost permanently after that. That doesn't always happen, and it doesn't appear to be related to process flow. So restarting PP2, or closing and reloading a project, don't affect the arbitrary nature of the "sometimes starts to work" behaviour. I can sometimes re-edit a title in the same project after editing the title with the focus lost, and suddenly the first few keystrokes are normal, but then the focus reverts to the main app.
    If anyone has any ideas or suggestions to try (apart from reinstalling the application again or upgrading), I'd be most grateful.
    -PCPete

    I think you're right, it's starting to look like another problem within the "new" PP2 installation. It's such a complex app, it's not surprising it gets lost.
    Since this is the only app that has this problem (and because of the nature of the problem), I know it's not a graphics card or driver issue.
    This appears to be a high-level windows function problem, to do with the way the PP2 app is handling the modal form. It's probably not the mouse driver, since I don't move the mouse outside of the child window, but that doesn't leave much else. I don't have popups or any other asynchronous applications (like email warning windows or balloon-type reminders or notifications) either.
    I really don't want to go through the horror of yet another reinstall of an Adobe product if I can possibly avoid it, but pending no other useful ideas, that is an absolute last resort.

  • Hide the title bar of a movie window like QuickTime X

    Love the feature of QuickTime X of not showing the title bar/the control bar of a movie window (still waiting for Pro version, though. Is it coming out at all?)
    I'm wondering if anyone has figured out a way/tweak to hide the title bar of a iTunes movie window like QuickTime X.
    Thanks.

    What child window are you referring to? Do you mean a browser window opened with web.show_document?
    If so, you can use javascript to hide browser toolbars and so on. Search the forum for some javascript examples where windows are opened with toolbar=no.

  • Cannot import .MOV files with Premiere Elements 12: generic error. Using Windows 8.1 (64b)

    This question was already on the forum for older version of Premiere and Windows. I'm making my videos (.MOV format) with the digital camera Casio EX-ZR400.
    I have no any problems with Photoshop Elements 12 for pictures produced by this camera.

    Dngineer
    What is the source of your .mov file..(brand/model/settings of the camera that recorded the video)......what is the video and audio compression and frame rate?
    Are you working with the 12.1 Update of 12? If not, please do so using an opened project's Help Menu/Update. Both QuickTime and Premiere Elements need to be run from a User Account with Administrative Privileges. Are you doing that?
    Narrowing things down
    Are all files with the .mov file extensions the only video files that you cannot import into the program? Any exceptions?
    When you open Premiere Elements 12/12.1 to the Expert workspace and go to Publish+Share/Computer/QuickTime, does that choice have its presets?
    Let us start here and decide what next based on your reply.
    Thank you.
    ATR

  • PS CS5 Extended on Windows -  When trying to use the clone stamp and/or healing brush as soon as I move the cursor over the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  W

    PS CS5 Extended on Windows
    When trying to use the clone stamp and/or healing brush as soon as I move the cursor from the toolbar over to the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  This just started tonight.  What's causing this weird behaviour?

    What are the settings in Window > Clone Source?

  • Premiere CS5 will not render video with titles on the fly in preview window

    I am trying to use CS5 and notice if I add a title to the timeline overlapping any video and then attempt to play the video as soon as it hits the part with the title the video stops playing in the preview window. The background sound keeps going but video play back stops. In premiere CS4 it would render titles on the fly no problem. Why wont it do it in CS5? I should not have to render the timeline it should do at least a rough realtime playback without a full render. In CS4 it would play any and all effects on the fly depending on the resolution and the performence would vary depending on how many and what effects and transitions were applied to the clips but its very useful to get a quick idea how it will look. If I scrub, the titles playback while scrubbing no problem its only with actual playback it happens. Other effects and transitions I apply seem to render on the fly and play back in the preview window ok, it only seems to be the titles having the issues.
    Any ideas?

    Version = 5.0
    Language = english
    Latest updates = applied
    Issue happens regardless of sequence settings
    Windows 7 64 bit
    latest updates
    english
    1650x900 , 32 bit color
    Intel core 2 duo 3ghz cpu
    8 gig ram
    Nvidia 9600 gt with latest drivers
    multiple monitor setup
    Audigy 2 platinum pro sound card from creative , latest drivers
    3 hard drives,  drive 1 = 1TB with 747gb free, drive 2= 1TB with 750 gb free, drive 3 = 200gb drive with 75 gig free
    Usualy capture video from a canon HV30 using Cineform Neoscene capture software, this is 1440x1080 HD 24p clips. (issue with the titles happens on any imported video in any format though, even with no clips but on a matt background)
    Cineform Neoscene capture software version 5 latest version
    Only using stock premiere plugins
    No error message
    I want to use the built in premiere title function to place titles along with fades and what not and then play back clips in the preview windows with the titles applied rendering on the fly. This works perfectly in CS4, just not in CS5. When I try it in CS5 after you hit the play button it will play the clip but as soon as you get to the part of the clip where the title is the video playback will freeze, mind you the clip is still playing in the sense that audio is still going just the video playback stops in the preview window. As a note if you scrub the video on the timeline the video clips will display with the titles applied it should, it is only when you hit the play button the problem happens.
    I have tried adjusing the quality settings in the preview window, updated my gfx card drivers and system drivers along with directx. Premiere is updated. I have tested other effects and transitions and they display fine, including super imposures such as chroma key or ultra key. I have adjust playback settings not that there was much to adjust there.
    I will say again in CS4 never had this issue, I am surprised to see it here.
    Please any ideas would be appriciated thx.

  • HT4095 I've rented an SD movie from iTunes but cannot download it. Message reads "download error" followed by a small window with message "movie cannot be downloaded at this time. I have been billed by iTunes. What next?

    I've rented an SD movie from iTunes but cannot download it as I normally do to my iPad 2. Message reads "download error" followed by a small window with message "movie cannot be downloaded at this time". I have been billed by iTunes. What next?

    Hi, Kenny. 
    Thank you for visiting Apple Support Communities. 
    There are a couple things that I would recommend trying.  Try closing all open applications and power cycle the device.  Next, go through the section labeled Troubleshoot issues on an iPhone, iPad, or iPod touch in the second article below.  If the issue persists, try completely signing out of the iTunes Store on the iOS device and sign back in.  Be sure to test downloading an application after each step. 
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Cheers,
    Jason H. 

  • How do I do a window with no title bar?

    Dear,
    Can anyone help to let me know how can I make a window with no title bar?
    Thanks,
    Man

    Use a JWindow, by default it has no title bar.
    http://java.sun.com/products/jfc/swingdoc-api-1.1/javax/swing/JWindow.html

  • While working in iMovie, computer shut down and all imported clips from that project disappeared. The project still existed, with titles, but all video clips were gone from the movie as well as the computer library.

    Clips were imported from SD card into iMovie project. While working on the project, computer shut down. When restarted, all clips from that event were no longer in the project, or in the computer library. Project existed, with titles, but blank spaces exist where clips had been.

    OH MY GOD! This EXACT thing just happened to me! It didn't save my event and didn't show the date in the iMovie library but if I look under all projects, the project is there. Except that there are little blank place holders where all my clips were. Also the title of the project has a little yellow "!" symbol next to it which I can only assume means that the file is corrupted.
    I can't believe it destroyed like 8 hours of work!
    I have a 15" mid 2011 MBP and Mavericks OS.

  • Is there a way to open a new window with one site when the home setting on Firefox has multiple websites?

    While working in Firefox is there a way to open a new window with one site when the home setting on Firefox has multiple websites?

    I guess I'm not explaining myself fully. I have a home page designation in firefox preferences that starts firefox up with 5 sites. that pretty fills up my screen with tabs.
    At some point I want to initiate another WINDOW in firefox (NOT a tab). I would like to be able to open up a window that ONLY has ONE tab, or as if there were only one site designated as the home page. This gives me a workspace that has my most useful sites available in tabs in one window, and also another WINDOW that I can move around in and even create more tabs without messing up my primary set of TABS (in my primary window). I see how this might not be doable without doing what I do now, which is open up a new window, and then close tabs until the new window just has one tab for me to work from.

  • Why did the browser window's title bar, menu, minimize, maximize, and close buttons all disappear, and how do I get them back?

    I am literally stuck in Firefox. Suddenly the window changed to full screen mode, and the title bar and Firefox menu disappeared, along with the close, minimize, and maximize buttons. All I can access are the menu bar and open browser tabs.
    I can't even access my dock (on Mac), which usually pops up when I mouse over the bottom of the screen.
    So, the only way it seems I can get out of Firefox is to shut down my computer by pressing the power button. Unless there is some keyboard shortcut. I tried command-11 but that just switched between open my browser tabs.
    FYI i have no idea what Ubuntu is and don't think I'm using it (that name seems to pop up when I google this problem)
    Oh yeah, also I'm using Firefox 3.6.2 because my elderly Mac is running on OSX 10.4.11. Have never had any problems with it before.

    IN your iTunes library, does the movie appear with a cloud on it for downloading?
    is the movie still in the iTunes Store?
    iTunes purchases the rights to sell a movie, but those are for a time limit.  If the right expires and apple doesn't renew, the movie is no longer available for download and must be saved in your library.   I suggest backing up your movies ASAP.  Check the store for this movie, perhaps it is still available. 

  • Analog-In code pauses when I move windows around. WIN98

    I was able to fix the digital in/out code with different threads which seemed to have the same problem. The problem I still have is with Analog In. I have attached a copy of the code. If someone wouldn't mind taking a peak at it to see why it freezes when I mess with the UI thread. (ie move windows.)
    Top Level VI is Ain.vi
    Thanks in advance!
    Roger
    Attachments:
    Ain.llb ‏2900 KB

    Not sure about this one. I get different behavior than you�re describing, but I�m running WinXP on fairly fast PC. When I first click on the title bar, I get a slight pause in the execution, but it then resumes and runs while moving the window around. I think this means there�s nothing explicitly blocking due to running in the UI thread.
    One thing you might want to do is try to cut down on your use of Local and Global variables. You�ve got some pretty large and complex data structures in the Globals. Reading a Global or Local variable causes a copy of the data of the variable to be generated. This might be causing some performance problems, but I still don�t think that it should be stopping the execution. You might consider using LabVIEW 2 style Globals, sometimes called Functional Globals. The follow steps briefly describe how to make one.
    A while loop that executes once, an uninitialized shift register, a case structure, two controls and an indicator.
    Inside the loop create a case structure that has two states (read, write), create a control that will determine the state of the case structure and wire it to the input.
    On the while loop create a shift register.
    Outside the while loop place an indicator of the data type that you need the global to be. Wire the output of the shift register to your indicator.
    Place a control of the same data type as your indicator in the 'write' state of your case statement, wire this to the RHS shift register.
    Change to the 'read' case and wire the LHS of the shift register through the case structure to the output tunnel.
    You will now have a VI that performs a global function, set-up the connector pane and try using it as a sub-vi within you application.
    One thing to consider here. In your original post, you said that you used a count down timer to show that when drug and then release the window, that time/code did not continue. Are you still sure the diagram is not executing? Could it be that the front panel is not updating but the code is still running? Just a thought.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Automator - How do I: Mouse Click, Move Windows, and more

    Hello,
    I am attempting to create my own Automator programs and for a while I had some that worked nicely. I have recently been tweaking my iMac so that it can "think" on its own (by automator of course) and do things for me. However, I've run across a block with Mavericks (I believe it's due to Mavericks).
    1. How can I get Automator to register a mouse click? "Watch me do" does not seem to want to work for me at all. I also would prefer if it would just be a registered mouse click, but not actually use the mouse (I know this is possible) so that if I'm doing something and it runs, it won't disturb my mouse and I can keep working.
    2. How can I register a keyboard stroke? Same as above
    3. How can I have automator move windows? I have two monitors and there are times when I may want it to move a window from one mintor to another
    The following is a list of all the things I'm attempting to accomplish at the moment (with other things when I think of them) with automator (either through applications, folder actions, or ical actions):
    1. Register a mouse click at a given area or on a given element in a safari page
    2. Register a keyboard stroke in a given program (be able to focus on a program and then do the keystroke)
    3. Move windows from one location to another
    4. Full-screen and Un-full-screen iTunes at certain times of day
    5. Download all purchased items on iTunes that aren't on the computer (sometimes iTunes doesn't download stuff if it was downloaded on my MacBook Pro first)
    6. Automatically voice read reminders (that I've set in Reminders) each day at a given time (I can use loop to repeat it to make sure I hear it all)
    I'll think of more of course, but the mouse click, keyboard stroke, and moving windows is the big thing I'm trying to figure out how to do. Can anyone help?
    Also, I am not a computer tech. I am tinkering with this because it's fun and helpful, but an answer of "just use applescript" or "just use java" will likely just give me a headache. I know that it's going to be one of those codes, but I'm hoping someone has a "base" code that can be copied and pasted that's just a standard click that I can adjust for where I need to click and what process I need to click on.
    If there is an Action Pack that includes a "Register Mouse Click" and/or "Register Keyboard Stroke", then that would work great, but the only action packs for automator I've seen that work with Mavericks is for photoshop.

    You're asking for a lot in one post.  It would be better to break your requests down a bit. 
    For example, to deal with mouse clicks, you can use the Automator Action Run Shell Script with this python script:
    import sys
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
            theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
            CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
            mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclick(posx,posy):
            mouseEvent(kCGEventLeftMouseDown, posx,posy);
            mouseEvent(kCGEventLeftMouseUp, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # Click the "Apple"
    mouseclick(25, 5);  
    # 1 second delay       
    time.sleep(1);        
    # Restore mouse position
    mousemove(int(currentpos.x),int(currentpos.y))
    It will look like this in Automator:
    To drag something (i.e. a window, a file icon) from position 40,60 to 60,300:
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
               theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
               CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
               mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclickdn(posx,posy):
               mouseEvent(kCGEventLeftMouseDown, posx,posy);
    def mouseclickup(posx,posy):
               mouseEvent(kCGEventLeftMouseUp, posx,posy);
    def mousedrag(posx,posy):
               mouseEvent(kCGEventLeftMouseDragged, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # move mouse to upper left of screen
    mouseclickdn(40, 60);
    # drag icon to new location
    mousedrag(60, 300);
    # release mouse
    mouseclickup(60, 300);
    # necessary delay
    time.sleep(1);
    # return mouse to start positon
    mouseclickdn(int(currentpos.x),int(currentpos.y));
    For keystokes in AppleScript (which can be added to Automator with the Run Applescript Action) see: http://dougscripts.com/itunes/itinfo/keycodes.php

Maybe you are looking for

  • Installing Leopard on a MacBook Pro

    Hey guy, Vinny again. Im also thinking about getting Leopard for my MacBook Pro. My book is pretty new and i just want to be sure everything will setup ok and i wont screw anything up. Here are my system stats: Processor:Intel Core 2 Duo- 2.4 GHz Mem

  • Balancing field "Profit Center" in line item not filled

    while am doing the document entry for incoming payments from the customer am getting this error. and profit center field is not available in the document entry. Please give me the solution Its very urgent. Regards Vijay

  • Menu behind spry slideshow dreamweaver cs5?

    Using Dreamweaver CS5 Hi.  I have a site with a css3 dropdown menu that seems to work fine on all of my pages except my photo gallery page. The menu appears behind the Spry Slideshow with Filmstrip that I got from the Widget Browser. The site is not

  • Bugs? playback resolution will not change?

    The playback resolution will not change no matter what I choose ? it may be contributing to the distorted playback issues im having ? also when I select a clip from the project or media browser the sequence automatically starts in arri editing mode?

  • Microsoft Frontpage to iWeb 08

    Hey all, I tried searching for this topic but couldn't really come up with anything. I am in charge of the website where I work. When I took over the site was already created and on a remote server that I log into through Microsoft Frontpage. I rebui