Making Room for xmobar in xmonad [SOLVED]

Hello,
I'm quite new to xmonad (and am loving it), and need some help with setting up xmobar. The xmonad entry in the wiki helped me setup xmobar right, although the section describing how to make space for it was not very descriptive (at least for a newbie who doesn't know haskell.)
I'm supposed to "Wrap your layouts with avoidStruts from XMonad.Hooks.ManageDocks for automatic dock/panel/trayer spacing" with the following two lines of code:
layoutHook = avoidStruts (tiled Tall ||| ...
manageHook = manageHook defaultConfig <+> manageDocks
Where is this in relation to the rest of my xmonad.hs? Is it in the main section? Do I have to put anything else in my xmonad.hs or is there anything thats "obvious" that I also need to know?
Any help would be greatly appreciated, and I'm sorry if its a silly question.
Last edited by opothehippo (2009-08-23 01:29:10)

Hi, I was in the same position as you quite recently (and am now a happy xmonad user). Here is my xmonad.hs for reference:
-- XMonad Haskell Configuration File
-- - verify code syntax with 'ghci xmonad.hs'
-- - compile with 'xmonad --recompile' or 'ghc --make xmonad.hs'
-- Hopefully this is good base on which to build.
-- Changed from defaultConfig:
-- - use Mod4 as modMask, i.e. Super key
-- - allow use of status bar, and start one
-- - enable mouse follows focus
-- - change terminal emulator to xterm
-- - change border width to two pixels
-- Changes in the future:
-- - change terminal emulator to urxvt
-- - make GIMP manageable?
-- - wrap workspaces with mouse
-- - change keybindings: application, layout
-- Layouts to include:
-- - Xmonad.Layout.Circle, floating circular layout
-- - Xmonad.Layout.Maximize, maximize a window (like full?)
-- - XMonad.Layout.Spiral, fibonacci sequence; cool
-- - XMonad.Layout.IM, multi-window application friendly (GIMP)
-- Main XMonad source code.
import XMonad
-- Allow management of dock programs.
import XMonad.Hooks.ManageDocks
-- Allow exec of programs (return handle).
import XMonad.Util.Run(spawnPipe)
-- Allow adding or removing keybindings.
import XMonad.Util.EZConfig(additionalKeys)
-- Allow Pointer-Follows-Focus.
import XMonad.Actions.UpdatePointer
-- Allow interfacing with system (get client info).
import System.IO
main = do
xmproc <- spawnPipe "/usr/bin/xmobar /home/egan/.xmobarrc"
xmonad $ defaultConfig
{ manageHook = manageDocks <+> manageHook defaultConfig
, layoutHook = avoidStruts $ layoutHook defaultConfig
, logHook = updatePointer Nearest
, borderWidth = 2
, terminal = "urxvtc"
, modMask = mod4Mask
Basically, you have to include the defaultConfig as well as any other modules you are using. Once you hit the main section, that first line actually launches xmobar so you don't need it in you .xinitrc. Then we define the manageHook and the layoutHook as including manageDocks and avoidStruts in addition to the default code. The logHook is only to allow pointer-follows-focus, and the rest before the } is completely optional, or you can fill in your own values. Hopefully this helps you!

Similar Messages

  • I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen.  Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after  making room for the new A

    I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen.  Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after  making room for the new APp.  It can be opened, but I want the APP to be on her iPhone screen as well as on mine.  Help, please.

    Is the app downloaded on her phone also?

  • Making Room for Final Cut Studio 2

    hiya been a long time since ive been on.
    so here's my problem, right now im working on a g5 tower dual 2.0 2.5 gig ram, very nice machine and has served me well for my final cut and production audio needs. i just recently bought a macbook pro 2.2 version with 120 gig of harddrive space, after hearing that sweet gong sound of the first boot up on a shinny new laptop, i was slightly sad when i saw that i only had 80 gig of space available on my hardddrive. id like to install final cut studio 2 when i get it, along with all the content, and still have room for programs such as tracktor dj studio 3, my music, and creative suite three...
    ive thought about deleting all the unneccesarry programs such as imovie, garage band, idvd, ect. ect. but im unsure what this will do to my system, and what exactly i can get rid of to give me that extra 10 gig or so.
    my question is; 1. can i delete imovie and all the unnecessary junk im never going to use with out system problems? and and 2. what else can i get rid of to give me that extra gig or so, so i can pack this baby with software, and not bog down my system
    peace n love
    ~Jake
    2.0 PowerMac G5, 2.2 Macbook Pro   Mac OS X (10.4.9)  

    The Final Cut Studio applications only take up about 4gb of space. The other 56gb of content include LiveType Data, SoundTrack Loops, tutorials, templates, etc. You have the option during the installation process to install the "extras" on another drive ... leaving plenty of space on your boot drive.
    -DH

  • Making rooms for a multiplayer game

    Hi all,
    I 'm working on a first facebook game using Cirrus & P2P, I'm wondering if there is a way to create multiple rooms so the user can choose to join a specified group and play with other users or create his own group.
    I think that it can be done by creating a "specifiedGroup" netGroup for each room, but the question is :
    How could I manage those groups, how can I know there numbers, there names, listing them to other users and suppress theme if they are empty ?
    Any Idea ? thanks.
    Amine.

    use google to search for tutorials.

  • Making Kodi/XBMC behave in xmonad (Solved)

    I have been having issues with Kodi/XBMC not behaving in xmonad.
    Kodi would show up full screen and cover ALL workspaces.  When I would set it to windowed it would stay stuck at the top of the screen, and unmoveable.
    So I used wmctl to finally move it this morning, but still would only change size to part of the screen.
    In order to see whether it was xmonad or kodi, I used fluxbox, and kodi worked just fine there.
    The problem, as it turns out, is that I needed to enable EwmhDesktops, and to add ewmhDesktopsStartup to my StartupHook.
    After that, I logged out and back in, and now Kodi is actually behaving.
    This is less of a request for help, than an effort to document how I fixed the issue in case I need it again in the future! 
    Also, I have been struggling with this for quite a while, and didn't really find much info on the issue when I did a search.   Who knew that it was just an ewmh issue?  lol

    I have been having issues with Kodi/XBMC not behaving in xmonad.
    Kodi would show up full screen and cover ALL workspaces.  When I would set it to windowed it would stay stuck at the top of the screen, and unmoveable.
    So I used wmctl to finally move it this morning, but still would only change size to part of the screen.
    In order to see whether it was xmonad or kodi, I used fluxbox, and kodi worked just fine there.
    The problem, as it turns out, is that I needed to enable EwmhDesktops, and to add ewmhDesktopsStartup to my StartupHook.
    After that, I logged out and back in, and now Kodi is actually behaving.
    This is less of a request for help, than an effort to document how I fixed the issue in case I need it again in the future! 
    Also, I have been struggling with this for quite a while, and didn't really find much info on the issue when I did a search.   Who knew that it was just an ewmh issue?  lol

  • Making room for IOS 8 on my iphone.Icloud question.

    The software update for I phone ios 8.0.2 sounds great but unfortunately I dont have space for storage.I have no clue about Icloud.I dont want to delete my apps.Is there any way I can store apps on Icloud & not on the phone & retrieve it just when I need it  to clear space on the phone? Can I use I cloud to store songs etc? If so is there a way to retrieve stuff I store on I cloud with no wifi connection?
    Thanks.

    Lyssa wrote:
    iCloud storage is just for backups. If you're really short on space on your iPhone, use iTunes to install the update instead.
    ~Lyssa
    Thanks for the response.Can you/someone give me direction on installing the update through I tunes? Can I do that despite the lack of space?

  • A web site that I use daily has disappeard from my "Most Visited" list. In spite of my continued use of the site plus deletion of other sites that I seldom use, thus making room on the list for the site I want to be listed there, it doesn't.

    A bookmarked web site for weather that I use daily - often more than once a day - has disappeared from my Most Visited list. In spite of my continued use of the site for a week now, plus deleting other sites that I seldom use that have started showing up on the Most Visited list, thus making room on the list for the weather site, it still doesn't reappear there. I have to open Bookmarks to access the weather site. So the site is still there, but not on the Most Visited list. I tried removing and re-entering the site in Bookmarks, but that didn't solve the Most Visited list problem. Thanks for your help.

    Your browser has been hijacked. You can test it by going to any search site besides scroogle and looking up antivirus, malware removal, or any other term like that. It will show you the results but you wont be able to go to any of those pages. In my opinion this is the worst kind of virus because it is so hard to get rid of. You'll remove it and it will self replicate and you'll have it again. Scroogle works because it acts as a proxy between you and the search site google. Follow that guys directions who replied before me. When that doesn't work try to get a copy of Stopzilla antivirus. I had my browser hijacked once and that got rid of it. If that doesnt work, download the Comodo web browser. They give away a month of free Geekbuddy assistance with their browser. Use it. Chances are you will have to contact an IT proffesional of some sort anyway. But you'll never feel really clean again and you'll become paranoid about using the web and you'll get every popup blocker and java script stopper there is. But that still won't be enough and you'll dump windows altogether becuase there just are'nt that many viruses that work on Linux.... oh wait.. that was me...

  • Help with taffybar installation for use with xmonad

    I discovered nice project https://github.com/travitch/taffybar recently. It's another statusbar like xmobar or dzen2 intended for using with xmonad. It integrates with the latter using dbus instead of stdin.
    Anyone had successful experience installing and running it?
    I installed taffybar with cabal (cabal install gtk2hs-buildtools taffybar). But I totally confused with dbus integration. I have dbus daemon in my rc.conf, but taffybar raises the error on start: Connection Error "connectSession: DBUS_SESSION_BUS_ADDRESS is missing or invalid.". Than I tried to add eval `dbus-launch --auto-syntax` to my .xinitrc (as suggested in installation instructions http://pages.cs.wisc.edu/~travitch/taff … ybar.html), but it taffybar freezes on start. I hope someone more experienced will help me with it.

    The solution was simple. I should just add dbus-launch at the bottom of the .xinirc:
    exec ck-launch-session dbus-launch bash -c "taffybar & xmonad"
    Topic can be marked as solved.

  • My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?

    My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?

    linda mariefromharper woods wrote:
    My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?
    It may be in the process of making room.  What version of OSX are you on?    (That process can be excruciatingly slow on Leopard or Snow Leopard backups over a network;  Lion has improved it greatly.)
    A clue may be lurking in your logs.  Use the widget in #A1 of  Time Machine - Troubleshooting to display the backup messages from your logs.   That should help you figure out what's going on.  If in doubt, copy and post them here (but if the same ones repeat over and over, drop most of the duplicates).
    If you can, connect via Ethernet; it will be 2-3 times faster.

  • I can't delete photo files to make room for iOS 8.

    I can't delete photo files to make room for iOS 8.

    Ive had this and solved it an entirely different way very quickly.
    Connect the ipad to the imac (i assume its an imac);
    Fire up itunes;
    while thats happening create a new folder called EMPTY in your Pictures folder on the imac;
    go back to itunes;
    select the ipad;
    go to photos on the ipad;
    select SYNC FROM SELECTED FOLDER;
    select your EMPTY folder;
    then hit SYNC and the photos / videos in photo albums / the albums will all instantly disappear.
    We had 7.98 Gb of syncd fotos and videos on the ipad and tried all the more lengthy [and unsuccessful] ways suggested elsewhere.
    There was so little space we couldnt u/d the IOS !
    OK, so we werent bothered about keeping the fotos that were on the ipad (they'd all been filed in iphot on the imac so not 'lost').
    Nice to find a solution for yourself when you're a silver surfer in your mid '60's
    pjfs

  • Not enough room for iWork, please help new mac user!

    I'm a college student in great need of a word processing application for my Powerbook G4. I just bought iWork for that reason and am stuck because I don't know how to get rid of the right things on the Hard drive to make enough room for it. It says it needs 74.4GB and only has 62.3GB free on the hard drive. Please let me know how I can free up space and get my homework done asap! Thanks, Caro

    You should have a look at OmniGroup's OmniDiskSweeper application, which you can find here:
    http://www.omnigroup.com/applications/omnidisksweeper/
    This application will analyse your hard disk usage and list all the files according to category (application, document, etc.) and size, thus making it easy to identify large and useless files. Note that this application is, technically speaking, not free, as you have to pay $15 to enable the delete button. However, if you've identified several large files which you'd like to delete, you can easily do that in the Finder, so from a practical point of view, DiskSweeper is free. Oh, one last suggestion: be careful when deleting stuff. Try avoiding deleting stuff that is on your system or library folders, UNLESS you really know what you are doing.

  • Text Frame Options. Room for Side Heads added without warning

    Hi -
    I just got asked this and have no clue how to help. Anyone know what this is?
    Every now and then, my Frame file will –apparently on its own – reset most of its text frames into having room for side heads.  Makes for lots of bad labels on graphics – everything’s suddenly offset and scrolling off the bottom.
    This will happen suddenly.  It will usually be only one or two chapters in a book, but if I ignore it has been known spread like the black death throughout the book.
    The only solution I’ve found so far has been to revert to a backup or touch each text frame individually.  Setting properties for two at a time messes up location on the page.

    HI -
    Here's what I heard back.
    I believe it’s for everything except main text flow, including headers&footers on master pages, and special elements on unused master pages.
    It appears to be spontaneous, but I can’t guarantee that.
    I don’t use MIFs, and I’m pretty sure no one else does.
    Yes to formatting imports , because we frequently change variables in one chapter and copy them back to the rest (esp date doc was last edited – not same as print date per our regulatory agency.)   Likewise conditional text.  We know not to copy from a file into itself in a book, although it has happened and we do exchange manuals between revisions at times.

  • I can't see an app on my iphone, but when i search i get it. i've made room for the icon to show up on screen, but how do i actually get the icon to appear?

    I can't see an app on my iphone, but when i search i get it. i've made room for the icon to show up on screen, but how do i actually get the icon to appear?

    On your iPad, just go to Settings>Mail, Contacts, etc.>Add account>iCloud and put in the details of the account you set up.  Shouldn't be a problem at all.

  • HT4059 When I have a PDF that I want to open and save into iBooks - it will attempt to open it and the shelf flips around to make room for it. But it doesn't save it. I have to end up opening it in Adobe or Kindle app to view & save it.

    When I have a PDF that I want to open and save into iBooks - it will attempt to open it and the shelf flips around to make room for it. But it doesn't save it. I have to end up opening it in Adobe or Kindle app to view &amp; save it. This has been doing this awhile, what's wrong. Should
    I take it and have it looked at?

    is there any important stuff saved to your emails? if so you could log on to your emails from a seperate device and back them up. im not sure what else you could do :/

  • I enabled computer home sharing between my fiance's apple computer and my windows. I am able to play his music on my computer now, however I am making playlists for our wedding, and am unable to transfer any of his songs to my playlists.How can I do this?

    I enabled computer home sharing between my fiance's apple computer and my windows computer, so I now can play his music on my computer; however, I am making playlists for our wedding and am unable to transfer any of his songs to my playlists. How can I do this?

    Thanks
    Are you sure that if I use my windows log in rather than my husbands, then open itunes it won't delete all his hundreds of songs and overwrite with mine? 
    I want to maintain my own apple ID login and he wants his but without losing his songs.....
    how do i transfer the content of my itunes including apps and songs to the new computer.  There doesn't seem to be an easy explanation on here. Do I just plug my iPhone in and it will all transfer?

Maybe you are looking for