Restart dwm without closing programs

I'm trying dwm for the first time and according to the wiki you can recompile and restart dwm without closing any windows, using this script:
conky | while read line; do
xsetroot -name "$line"
done | while true; do
# Log stderror to a file
dwm 2> ~/.dwm.log; done
# No error logging
#dwm > /dev/null; done
The wiki says you can put this in a file, for example ~/bin/startdwm and start that through ~/.xinitrc
I'm a relative newbie, so could someone please elaborate a little on what I would have to do to get this to work? I tried writing a script and setting permissions and then using "exec startdwm" and "exec ~/bin/startdwm" in my ~/.xinitrc but this didn't work. Any help would be appreciated... having to restart my applications all the time is getting tiresome.

Thanks guys! I've been messing around with all these ideas and slowly but surely getting everything to where I want it.
Edit: Also especially thanks to firecat for the examples; they're just what I was looking for.
Last edited by shapirotechnics (2010-02-02 23:22:46)

Similar Messages

  • I can't open a new window in Firefox 4 on my mac. Was working great. I installed new mac firmware and restarted, probably without closing Firefox properly. Now window won't open.

    Hi:
    As noted above, Firefox won't open a new window. I restarted machine without closing Firefox. Now, I get the Firefox menu bar but it won't open a window. I'm using mac, with OS X 10.6

    Firefox doesn't install new versions of plugins, but Flash may update itself automatically.<br />
    You are still one version behind on Flash, current is Flash 10.1 r85<br />
    If the Flash player didn't update properly then you need to download the full version and run the installer as Administrator (right-click: Run as ...)
    Flash Global Notifications Settings Panel:<br />
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.html
    You are more versions behind on Java updates with having Java 6 U11, current is 6 U22.
    *Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • Closing JFrame from within frame without closing program

    Is there any way to close a JFrame from within frame without closing the program. I don't want to just frame.setVisible(false);

    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A31&qt=closing+JFrame+from+within+frame+without+closing+program+&x=5&y=11
    Happy New Year!

  • Closing MacBook without closing programs?

    Well this has been a quesion that is bugging me. Say I am on iChat and I am talking away and then my younger family comes along and they great me. I don't want them to see what I am doing on the computer, so I close it. But when I closed it I got signed off. Now some progrmas don't get affected, like Safari. But I recall that iTunes also completely quit.
    Is there a way that you can completely close the MacBook without any programs quitting? Like I have Sleep disable because I keep it on at night once in a while in case someone talks to me, like a family member far away that I have been meaning to talk to. So sleep is disabled, or something like that because I turn the screen brigtness to 0 and then after like 5 minutes the little white light shows. And, that never causes me any closings or things.
    So is there any possible way that I could close my MacBook without any programs quitting?

    No. When the computer is put to sleep all processes are suspended. If you use a wireless connection for the internet the Airport is also suspended during sleep. It will reconnect when the computer wakes up.
    In order for the computer to continue working with the lid closed you need to connect an external monitor, keyboard, and mouse.
    There are one or two third-party utilities that are supposed to keep the computer awake with the lid closed. You'll find them at VersionTracker or MacUpdate. I've never used them so I have no idea if they work.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Logging out without closing programs?

    Is this possible? I would like to log out while I am away from my computer, but would like to have my programs that are open stay open. I usually have 3 or 4 of the creative suite programs open while I am working, and when I log out they all close, and I have to relaunch all of them.

    Ok, I realized for it to log out I have to have my computer go to sleep. I usually only have the display go to sleep b/c I heard it is bad to have you computer set to go to sleep that often. So there is really no way for me to make someone have to log in without putting my computer to sleep, or logging off and closing all my apps. ??

  • ITunes 10.5.3 restarts itself after closing the program. How do I fix this?

    iTunes 10.5.3 restarts itself after closing the program. How do I fix this?
    Windows 7 64bit Ultimate
    iTunes 10.5.3 64bit

    I've had this problem on my Windows XP for years. it's been around, unsolved, or no solutions in these forums.
    It keeps reminding me why Apple will never be the primary office computer company. Anyone running a business cannot have software running that will not behave, won't shut down, or behaves without any explanation, and this problem has no explanation, or solution that I can find except to use task manager to kill the process and only use iTunes when I'm expecting to shut down or kill the process.

  • About 2/3 of the time I leave Firefox, it is evidently retained in memory so I can't restart it without using the task manager. I don't use Norton or Skype programs. How do I keep this from happening?

    About 2/3 of the time I leave Firefox, it is evidently retained in memory so I can't restart it without using the task manager. I don't use Norton or Skype programs. How do I keep this from happening?
    == After I have used Firefox and "closed" it.

    See this:
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • Cannot select different print template without closing and restarting Lightroom 4

    If I select an image in the library grid and then open the print module then I can select any of the templates eg 2x2 cells or (1) 8x10 as normal.  However, once I've selected that template, if I decide to see what any other template might look like then although the small preview window at the top left previews the cell layout of each different template, the main viewing window does not update.  The only way I am able to change the template is by closing Lightroom, restarting and once again selecting a different template - which I then cannot change without closing Lightroom and restarting. Very frustrating.  I am using an iMac with Lion 10.7.3 and 12 gb RAM - everything else is working fine.  The issue sounds similar to that reported on the beta on http://forums.adobe.com/message/4200783 where a reinstall seems to have helped.  I have done a fresh download and re-install of LR4 but this makes no difference. 
    Can anyone help please?

    Hi Jeff
    Thanks for responding.  When the layout window does not operate then the layout styles sliders will still work and these will update the layout window.  Late last night I found a post on
      http://feedback.photoshop.com/photoshop_family/topics/lighroom_4_edit_in_print_presets_not _working_properly
    which suggests that the problem lies with the imported LR3 user templates and that I should delete all of those, (of which I have many), and re-create them.  In investigating this suggestion I have learned that once the layout window has frozen, it does not matter whether I try and select a Lightroom template or a user template, the screen remains frozen - I think that helps with your second question.  Even closing and restarting Lightroom generally leaves the layout window frozen.
    Thanks

  • How do I restart forcefully while one program I've downloaded online (PDFpen) can't be closed neither removed?!!

    How do I restart forcefully while one program I've downloaded online (PDFpen) can't be closed neither removed?!!

    Hold down the power button until the screen goes black if it's really necessary.
    In your case, you can force quit.
    When an app won't quit as it should, click Force Quit from your Apple  drop down menu or press Option + Command + Esc.
    Select the app then click Force Quit.
    That way it's not necessary to shut down your Mac.

  • How to make Random questions work without closing and restarting?

    I have a quiz using random question slides and random pools.
    The random slides display random questions when I run the CP4 file, let it close then relaunch it. I'm using an LMS.
    I would like to be able to repeat the quiz again without closing and relaunching, but my method does not work.
    I tried using a button (retake) on the last slide to 'jump to' slide 1 when clicked. The quiz does repeat, but show the exact same questions.
    I thought there might be a variable that would reset the quiz, but could not find one.
    Does anyone have method to do this?
    Thanks,
    Dave

    I don't know of a way. My experience is the same as yours. The quiz questions are selected and shuffled when the lesson is launched. When 'retake' is clicked, the quiz repearts the same questions. The only way to get a new set of questions is to close and relaunch it.
    I suppose there's be some function to invoke or array to manipulate via AS, but I've no idea what that may be...
    So no help here, just backing what you're seeing.
    Erik

  • How do I selectivly close the only not responding window (without closing the other 3 responding windows)

    Presently, I have 4 windows opened, each with a bunch of tabs.
    Since I restarted firefox this morning, one out these 4 windows, keeps on not displaying.
    How do I selectivly close this only window (without closing the 3 others windows)

    Here is what the manpage shows:
    [ps(1)|http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/p s.1.html]
    state The state is given by a sequence of letters, for example, ``RWNA''. The first letter indicates the run
    state of the process:
    I Marks a process that is idle (sleeping for longer than about 20 seconds).
    R Marks a runnable process.
    S Marks a process that is sleeping for less than about 20 seconds.
    T Marks a stopped process.
    U Marks a process in uninterruptible wait.
    Z Marks a dead process (a ``zombie'').
    Additional characters after these, if any, indicate additional state information:
    + The process is in the foreground process group of its control terminal.
    < The process has raised CPU scheduling priority.
    <div class="jive-quote"> The process has specified a soft limit on memory requirements and is currently exceeding that
    limit; such a process is (necessarily) not swapped.
    A the process has asked for random page replacement (VA_ANOM, from vadvise(2), for example,
    lisp(1) in a garbage collect).
    E The process is trying to exit.
    L The process has pages locked in core (for example, for raw I/O).
    N The process has reduced CPU scheduling priority (see setpriority(2)).
    S The process has asked for FIFO page replacement (VA_SEQL, from vadvise(2), for example, a large
    image processing program using virtual memory to sequentially address voluminous data).
    s The process is a session leader.
    V The process is suspended during a vfork.
    W The process is swapped out.
    X The process is being traced or debugged.

  • How to see inbox/ other mail without closing the e-mail I'm writing?

    New Mac user seeks help!
    If I'm writing an e-mail, I don't seem to be able to switch to my in-box without closing and saving the e-mail first (it's like having an open dialogue box in windows, where you can see but not access the program underneath until you close the box).  Can I not have multiple e-mails open at the same time?  Or look at my in-box or sent mail while I write?  I didn't realize how often I need to check a previous message while writing the current one until now, when I can't do it except laboriously!
    Any suggestions would be much appreciated.

    Thanks!!  Trying to implement your solution made me realize what my problem was. My default mail setting seemed to be full screen, and in full screen mode I can't access the inbox or buttons underneath the open e-mail. But as soon as I shrink the e-mail slightly in order to see the top menu bar, it allowed me to not only access the menu bar, but also brought the whole inbox and associated tools alive.
    With a little playing, I figured out to bring to the foreground function, as well as various ways to see multiple e-mails side-by-side, or switch between them from both the Window menu, as well as from the dock.
    Many thanks for your help! While so far I have successfully googled all the things I couldn't figure out how to do, I didn't seem to be able to create search terms that were giving me a meaningful answer to this particular question.
    It's a big learning curve, but oh so worth it!

  • In CVI !!!! How to dynamic change BaudRate of RS232 Serial COM Without closing the Port !!!

    Dear all:
    I want to change the buadrate of serial com without closing the serial com, but it failed when I use the function "SetCommConfig(m_hCom, &Com_cfg, Com_cfg_S) " to reset the buadrate ,baudrate is no change when use GetCommConfig to read back the value. 
    Appreciated all of your advice . TKS!
    Code with WINAPI as beloow:
    CreateFile(..) ;
    GetCommState(..);
    dcb.BaudRate= 1000000 ;
    SetCommState(..);
    //......do other things
    //change baudrate to normal without closing port .
    GetCommConfig(m_hCom, &Com_cfg, &Com_cfg_S);
    Com_cfg.wVersion = 0X100;
    Com_cfg.dwProviderSubType = 1;
    Com_cfg.dcb.BaudRate =9600  ;
    Com_cfg.dcb.StopBits =1 ;
    SetCommConfig(m_hCom, &Com_cfg, Com_cfg_S);
    GetCommConfig(m_hCom, &Com_cfg, &Com_cfg_S);   
    Solved!
    Go to Solution.

    This topic has been discussed some years ago: see here. Please note that even if I made that sample program which changes the baud rate without closing the port, I never used it in a real situation: you'll need to made your tests and check if this solution can satisfy your needs in the short and long term.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to restart WTC without restarting WL

    We are running WL 6.0 sp2rp2 on Win2K.
    Almost daily the WTC exits
    ####<Apr 17, 2002 4:27:44 PM CDT> <Debug> <WTC> <TESTWEBLOGIC1>
    <OptiSoftAppServer> <Thread-9> <> <1387:6157dda167644992> <180056>
    <[/tBexec/showTuxMsg/>
    ####<Apr 17, 2002 4:27:44 PM CDT> <Debug> <WTC> <TESTWEBLOGIC1>
    <OptiSoftAppServer> <Thread-9> <> <1387:6157dda167644992> <180056>
    <]/tBexec/showTuxMsg/10/>
    ####<Apr 17, 2002 4:27:44 PM CDT> <Debug> <WTC> <TESTWEBLOGIC1>
    <OptiSoftAppServer> <Thread-9> <> <1387:6157dda167644992> <180056>
    <[/tBexec/jmsSend/>
    ####<Apr 17, 2002 4:27:44 PM CDT> <Debug> <WTC> <TESTWEBLOGIC1>
    <OptiSoftAppServer> <Thread-9> <> <1387:6157dda167644992> <180056>
    <]/tBexec/jmsSend/10/>
    ####<Apr 17, 2002 4:27:44 PM CDT> <Debug> <WTC> <TESTWEBLOGIC1>
    <OptiSoftAppServer> <Thread-9> <> <> <180056> <]tBexec<run/t#1: exited.>
    This last line is our only indication of a problem!
    The only way it seems to get it to work again is to completely restart
    our WL server. Obviously this is NOT good in a production environment.
    BEA is clueless as to why this happens and WTC doesn't put out any
    good diag's to help find the problem. So our only hope is to try to
    write our own WTC exit monitor and to try restarting it.
    Is this possible? Can I call a Servlet or URL to restart WTC without
    having to restart the whole server!!!!!
    HELP - this is killing us.
    Thanks
    Tom

    Hello Bomiboll,
    when shutting down your Mac there is, before clicking the "Shut Down"-button, a checkbox you should disable in order to avoid remembering opened programs.
    Regards
    DonTimo

  • How to close locked tab without closing firefox

    When firefox freezes how do I close offending tab without closing firefox

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    If it works in Safe Mode and in normal mode with all extensions (Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: Firefox > Quit Firefox; Linux: Firefox/File > Quit)
    *If you have many extensions then first enable half of the extensions to test which half has the problem.
    *Continue to divide the bad half that still has the issue until you find which one is causing it.

Maybe you are looking for

  • Is there a way to print or export only one sheet from Numbers on IOS?

    Hello there - I am attempting to use Numbers to generate proposals and invoices in the field. My route is a simple (hopefully good-looking) front page, various forms by which to enter data and several additional sheets boasting a great many tables co

  • Email Validation - Won't accept password

    Hi - First time poster! I have had a message from Blackberry to validate my email address - this has happened several times and was just a case of entering my password.  I have tried to do this and it keeps saying that my password is invalid.  It isn

  • Creating a Mail Client

    How to create a mail client using JavaMail and please mention what other softwares are required to do so? What can we use to store the e-mail addresses? File or Database? How to send and recieve attachments using JavaMail? Is it possible If I am send

  • HT5312 how to reset my security question and answer i have try everything  but can't get it don

    how to reset my security question and answer i have try everything  but can't get it don?

  • 1099M - 2008 Legal changes for 1099 Reporting

    Hello experts,   I have been using program RFW1099M via Sapscript form to generate the 1099M. Based on note 1279366 on 2008 legal changes for 1099 reporting, sap provided the 1099MISC form in Smartforms. I don't use Smartforms.  Is there any sap 1099