XFCE pager/window list only follow first spawned widnow, Xmonad

I'm using XFCE 4.8, with xmonad and xmonad-contrib 0.9.2-1.2
I'm currently trying to get Xmonad to use the window list and pager from XFCE at the same time, while outputting to dzen2.  When I spawn a window, it only tracks the first window's size in the pager, and still thinks I'm on the workspace it originally spawned on (see blue square in the bottom left of the screenshot).
My current xmonad.hs:
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
import XMonad.Actions.DwmPromote
import XMonad.Hooks.SetWMName
import XMonad.Hooks.EwmhDesktops
import XMonad.Config.Xfce
myManageHook = composeAll
[ className =? "milkytracker" --> doShift "etc"
, className =? "net-minecraft-MinecraftLauncher" --> doShift "etc"
, className =? "prboom-plus" --> doShift "etc"
, className =? "Chromium" --> doShift "web"
, className =? "Deadbeef" --> doFloat <+> doShift "media"
main = do
xmproc <- spawnPipe "/usr/bin/dzen2 -bg '#303030' -fg '#a1a1a1' -h '16' -w 480 -x '0' -y '0' -ta 'l' -fn '-*-terminus-*-*-*-*-*-*-*-*-*-*-*-*'"
xmonad $ ewmh xfceConfig {
manageHook = manageDocks <+> manageHook defaultConfig <+> myManageHook
, layoutHook = avoidStruts $ layoutHook defaultConfig
, startupHook = setWMName "LG3D"
, logHook = dynamicLogWithPP $ dzenPP {
ppOutput = hPutStrLn xmproc
, ppCurrent = dzenColor "#c0c0c0" "#303030"
, ppHidden = dzenColor "#a1a1f1" "#303030"
, ppTitle = dzenColor "#c0c0c0" "#303030"
, ppHiddenNoWindows = dzenColor "#7f7f7f" "#303030"
, ppSep = " | "
, ppWsSep = " "
, ppLayout = \x -> case x of
"Tall" -> "[|-]"
"Mirror Tall" -> "[--]"
"Full" -> "[ ]"
, modMask = mod4Mask
, terminal = "urxvtc"
, workspaces = ["term", "web", "media", "etc"]
, normalBorderColor = "#303030"
, focusedBorderColor = "#a1a1a1"
} `additionalKeys`
[ ((mod4Mask, xK_b), sendMessage ToggleStruts)
, ((mod4Mask, xK_p), spawn "dmenu_run -nb '#303030' -nf '#a1a1a1' -sb '#a1a1a1' -sf '#303030' -fn '-*-terminus-*-*-*-*-*-*-*-*-*-*-*-*'")
, ((mod4Mask, xK_Return), spawn "urxvtc")
, ((mod4Mask .|. shiftMask, xK_Return), dwmpromote)
, ((0, 0x1008ff13), spawn "amixer set Master 1+")
, ((0, 0x1008ff11), spawn "amixer set Master 1-")
, ((0, 0x1008ff12), spawn "amixer set Master toggle")
, ((mod4Mask, xK_w), spawn "xfdesktop --menu" )
I'm rather confused about this, as I'm not sure if I'm supposed to use ewmhDesktopsLogHook, or use a startupHook for this, or an eventHandler for this sort of thing.  I tried following this guide from Haskell's wiki, but it didn't work as expected, so I struck out on my own.
EDIT:  I tested in my Debian Wheezy install, it works fine with XFCE 4.6.  I have a hunch it might have something to do with xmonad-contrib not supporting newer versions of XFCE/LXDE  properly.
Last edited by arinlares (2011-04-17 00:23:59)

I'm using XFCE 4.8, with xmonad and xmonad-contrib 0.9.2-1.2
I'm currently trying to get Xmonad to use the window list and pager from XFCE at the same time, while outputting to dzen2.  When I spawn a window, it only tracks the first window's size in the pager, and still thinks I'm on the workspace it originally spawned on (see blue square in the bottom left of the screenshot).
My current xmonad.hs:
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
import XMonad.Actions.DwmPromote
import XMonad.Hooks.SetWMName
import XMonad.Hooks.EwmhDesktops
import XMonad.Config.Xfce
myManageHook = composeAll
[ className =? "milkytracker" --> doShift "etc"
, className =? "net-minecraft-MinecraftLauncher" --> doShift "etc"
, className =? "prboom-plus" --> doShift "etc"
, className =? "Chromium" --> doShift "web"
, className =? "Deadbeef" --> doFloat <+> doShift "media"
main = do
xmproc <- spawnPipe "/usr/bin/dzen2 -bg '#303030' -fg '#a1a1a1' -h '16' -w 480 -x '0' -y '0' -ta 'l' -fn '-*-terminus-*-*-*-*-*-*-*-*-*-*-*-*'"
xmonad $ ewmh xfceConfig {
manageHook = manageDocks <+> manageHook defaultConfig <+> myManageHook
, layoutHook = avoidStruts $ layoutHook defaultConfig
, startupHook = setWMName "LG3D"
, logHook = dynamicLogWithPP $ dzenPP {
ppOutput = hPutStrLn xmproc
, ppCurrent = dzenColor "#c0c0c0" "#303030"
, ppHidden = dzenColor "#a1a1f1" "#303030"
, ppTitle = dzenColor "#c0c0c0" "#303030"
, ppHiddenNoWindows = dzenColor "#7f7f7f" "#303030"
, ppSep = " | "
, ppWsSep = " "
, ppLayout = \x -> case x of
"Tall" -> "[|-]"
"Mirror Tall" -> "[--]"
"Full" -> "[ ]"
, modMask = mod4Mask
, terminal = "urxvtc"
, workspaces = ["term", "web", "media", "etc"]
, normalBorderColor = "#303030"
, focusedBorderColor = "#a1a1a1"
} `additionalKeys`
[ ((mod4Mask, xK_b), sendMessage ToggleStruts)
, ((mod4Mask, xK_p), spawn "dmenu_run -nb '#303030' -nf '#a1a1a1' -sb '#a1a1a1' -sf '#303030' -fn '-*-terminus-*-*-*-*-*-*-*-*-*-*-*-*'")
, ((mod4Mask, xK_Return), spawn "urxvtc")
, ((mod4Mask .|. shiftMask, xK_Return), dwmpromote)
, ((0, 0x1008ff13), spawn "amixer set Master 1+")
, ((0, 0x1008ff11), spawn "amixer set Master 1-")
, ((0, 0x1008ff12), spawn "amixer set Master toggle")
, ((mod4Mask, xK_w), spawn "xfdesktop --menu" )
I'm rather confused about this, as I'm not sure if I'm supposed to use ewmhDesktopsLogHook, or use a startupHook for this, or an eventHandler for this sort of thing.  I tried following this guide from Haskell's wiki, but it didn't work as expected, so I struck out on my own.
EDIT:  I tested in my Debian Wheezy install, it works fine with XFCE 4.6.  I have a hunch it might have something to do with xmonad-contrib not supporting newer versions of XFCE/LXDE  properly.
Last edited by arinlares (2011-04-17 00:23:59)

Similar Messages

  • TS3276 Hello. When trying to forward a multiple page PDF document, only the first page appears. Does anyone know how to fix this. TY

    Hello. When trying to forward a multiple page PDF document, only the first page appears. Does anyone know how to fix this. TY

    Are you sure?   I believe the mail program only previews the first page for you, but sends the whole attachment.  Try opening the attachment (e.g., select and hit spacebar for a preview of the whole thing, or by double-clicking it, or control-clicking then "Open...")  You should see the whole document.

  • HAVING A PROBLEM WHEN I PRINT A WEB PAGE WHICH IS MORE THAT ONE PAGE LONG. ONLY THE FIRST PAGE PRINTS TO SCALE...THE REMAINING PAGES PRINT OFF THE PAGE????HELP-IT IS DEFINITELY A PROBLEM WITH FIREFOX BECAUSE IT DOES NOT HAPPEN WITH SAFARI???

    Question
    HAVING A PROBLEM WHEN I PRINT A WEB PAGE WHICH IS MORE THAT ONE PAGE LONG. ONLY THE FIRST PAGE PRINTS TO SCALE...THE REMAINING PAGES PRINT OFF THE PAGE????HELP-IT IS DEFINITELY A PROBLEM WITH FIREFOX BECAUSE IT DOES NOT HAPPEN WITH SAFARI??

    Thank you for the response. I tried to fix the problem with some of the suggestions on that page, but none seem to work. I believe that is the only website that I'm having that problem on. I got to fooling with it a bit more and when I highlight the whole page and select to print the selected area, it actually prints the whole page then, but it won't do it as a default. I guess I can just do it like that from now on, but I thought there would be something in the settings that I could have changed. Thanks again for the help.

  • Web pages with Tiff with more than one page! Can only see first page!

    Hi
    Please help me out. This is kind of a big issue for me.
    For work I need to visit regularly a webpage which contains a number of official documents that have been saved on the webpage as Tiff files with multiple pages.
    I can only view the first page on the ipad!
    I think this is a problem linked to quicktime, as I also have it on my pc I open the documents with quicktime whereas on with Windows Life photo Gallery, I see all the pages...
    thanks in advance

    I don't believe there is a single app that can view any but the first page of a multi-page tiff currently available for the iPhone or iPad, though a few paid iPhone "doc-viewer" apps' descriptions would seem to imply that they could.
    However, if you are able to upload these files to google docs, then use the **desktop** version of google docs via Safari (there's a small link to this at the bottom of the page on the default mobile version), it will correctly display and navigate to each page of your multi-page tiffs. This is completely free, and you could probably stream-line the process to your needs, but it does seem like a lot to go through for such a simple feature. It's possible that this would work with equivalents to google docs as well.
    You're right that you're not alone in needing this feature. It seems like it should be quite easy to implement, but no app appears to have done it. Maybe requests to the writers of several doc-viewing apps would do the trick, especially given the importance to enterprise.

  • How can i print all pages instead of only the first page using firefox

    How can i set firefox to print off my mac to my lexmark printer all pages i want. It is only printing the first page as of about 4 days ago
    == This happened ==
    Every time Firefox opened
    == about 4 days ago. it works ok on safari!

    Then duplicate that button to pages 3-23.
    To do that effectively go to Form Edit mode, right-click the button and select Duplicate Across Pages.

  • Preview only shows first page of TIF files

    Hello,
    I am having problems with Preview version 3.0.9 (409). When opening a multi-page TIF file, only the first page is displayed. The "page down" button does allow to jump to the following pages. (I am able to view the whole document with other programs). Is this a bug in the program or am I doing something wrong?
    Thanks!

    HI Fidelio,
    I'm not sure if this is a corrupted Preview preference file or not but it can't hurt a thing to try.
    Locate this file: com.apple.preview.plist It's here: /Home/Library/Preferences. Open the Preferences folder, locate that file and drag it to the Trash, empty the Trash and reboot. Your Mac will create a new pref file for you.
    Carolyn

  • How to output particular text in main window only in first page

    Hi experts how to ouput particular text in main window only in first page after that actual transaction data will be continued.....any ideas....Answers will be rewarded.....

    Hi,
    Try this.
    /: IF &PAGE& = '1'
    /: ENDIF
    Thanks,
    Naren

  • My i-tunes Wish List only shows the first page, it used to show all the pages- like the next page button is disconnected?

    My i-tunes Wish List only shows the first page- it used to show all the pages. Its a little like the next page button is disconnected?
    Any ideas?
    thanks
    Simon

    I would say all types. Any kind of document/ file that has multiple pages, I can't get to the next page.

  • Anytime I try to print in Firefox a Microsoft KB article that is 1 page, I always only get the first page.

    Anytime I print any Microsoft KB article, I only get the first page worth of text. This is very troubling because the articles are typically long, and I only get 1 page. The second page always comes out blank (even though in IE it will print out multiple pages with all the text).
    My specific example today is listed in the URL below. This example will only print to the "DIR" command, I don't get the full page printed out.
    Anyone else have this problem? Anyone have a resolution? I hate having to hit up IE just to print a single article.
    I updated to FF 8.01 just to make sure, and I have tried different printers and even computers, to no avail. Even the print preview has the issue, only the first page worth of text is printed and the second page is always blank (even if there are 3, 4, 5, etc pages of data to be printed).
    I have also tried the Firefox Menu -> Print command, and the "on-page" print command. I have seen moderate success with highlighting all the text that I want to print and going to "Print-Selection" but it is ugly.
    Any feedback or assistance is greatly appreciated.

    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • Only the first page is printed reduced as setup. All pages afterward are full size with information cut off. Recent problem. Can print from Safari just fine. How can I get all pages to be reduced size?

    Question
    Printing internet pages
    Reduced print size
    Only the first page is reduced and printed as desired
    All pages after the first page are full size with information cut off
    Recent problem never seen before
    Can print from Safari and other software just fine
    How can I get all pages to be reduced size?

    One suggestion worked from the Firefox prints incorrectly link mentioned above by mha007. I'm thrilled since this has been annoying me for weeks. Thanks mha007!
    Reset all Firefox printer settings
    # Open your profile folder:
    # On the menu bar, click on the Help menu and select Troubleshooting Information. The Troubleshooting Information tab will open.
    # Under the Application Basics section, click on Show in Finder. A window with your profile folder will open.
    # Note: If you are unable to open or use Firefox, follow the instructions in Finding your profile without opening Firefox.
    # On the menu bar, click on the Firefox menu and select Quit Firefox.
    # In your profile folder, copy the prefs.js file to another folder to make a backup of it.
    # Open the original prefs.js file in a text editor (such as TextEdit).
    # Remove all lines in prefs.js that start with print. and save the file.
    # If something goes wrong when you open Firefox, close it again and overwrite prefs.js with the backup you made.

  • How do I print only the first page of multiple PDF documents?

    I have about 1,500 PDF files (scientific papers) that I need to print only the first page of... Any suggestions on how to do this as a single job or as a few jobs? The files are organized in a bunch of different folders, so if there was some way to do this folder by folder, that would be ok too. Thanks!

    Make sure that in System Preferences Printing & Fax pane you set the default printer to the one you want to use, then put all of these PDF files into their own folder, then open terminal and type the following (without hitting return afterward):
    lpr -o page-ranges="1-1"
    Then drag one of the PDF files into the terminal window (it will add it's path to the end of your command) and replace the file name with *.pdf, so it will look like this:
    lpr -o page-ranges="1-1" /Users/todd/Documents/My\ Folder/*.pdf
    Then hit return.

  • Only the first page for a particular site prints. All other sites are fine.

    I'm running Firefox 10.0.2 on Windows 7 SP1 and when I try to print the web page of the affected URL ( http://windows.microsoft.com/en-US/windows-vista/Connect-to-another-computer-using-Remote-Desktop-Connection ), only the first page is printed. It prints fine in IE 9. I tried printing in safe mode and it still only prints the first page. I only tried printing it once, after that I used print preview alone. I used print preview on a dozen other sites and it works fine. By the way, on the web page I'm trying to print you must "Show All" at the bottom to expand all of the text. It's just this one web page. Can someone else with a similar setup try print preview on this page for me? I just want to know. I printed it using IE. Interestingly, if you scale the print preview down enough, all of the text shows up. Thanks...

    Well, I've made a little progress. I saved the web page source locally and then added the following HTML snippet to the <head> section:
    <style type="text/css">
    div
    page-break-before:always;
    </style>
    When I display this, the "Show all" does not work, but the page text is still long enough to do "Print Preview" and expect more than one page. The result is a blank first page (expected) and then ALL of the page text is printed on the next two pages.
    But I think you are correct "the-edmeister" in saying that Firefox may have a problem when the DIV tag spans more than one page. The reason is that the third page only contains the footer, so I can't say for sure if the whole DIV block was printed. But at least the footer did show up this time.
    If I can get the "Show all" block to expand then maybe that question will be answered. Any thoughts?

  • I'm trying to open a 900kb Word doc (240pages) in Pages but get this error message:  Import Warning - A table was too big. Only the first 40 columns and 1,000 rows were imported.

    I'm trying to open a 900kb Word doc (240pages) in Pages but get this error message:  Import Warning - A table was too big. Only the first 40 columns and 1,000 rows were imported.

    Julian,
    Pages simply won't support a table with that many rows. If you need that many, you must use another application.
    Perhaps the originator could use a tabbed list rather than a table. That's the only way you will be able to contain a list that long in Pages. You can do the conversion yourself if you open the Word document in LibreOffice, Copy the Table, Paste the Table into Numbers, Export the Numbers doc to CSV, and import to Pages. In Pages Find and Replace the Commas with Tabs.
    There are probably other ways, but that's what comes to mind here.
    Jerry

  • Why does only the first page of seach results show, with further pages graying out?

    In a search, I may get >1,000,000,000 hits, but only the first page is readable. "Next" gives me a grayed out screen and FF freezes. Any of the offered searches at the bottom of that first screen will do the same thing. Repeated hitting "back" will clear it.
    This has been true, through all the upgrades, including a backgrade to 3.6 (?) for 64-bit. This makes FF useless as a search platform, though it is my preference, even over Chrome, if it would work.
    Windows 7 Ultimate, 64-bit, 8GB Ram
    High speed to house, wireless lan in house

    That does seem rather useless.
    Use Automator - it has a "PDF to Images" action that will do exactly what you need. Drop your document into the workflow, drop the "PDF to Images" action in right after that, set any options that you need (like where to save) and then click "run"
    Barring that, I've found that sometimes Adobe Reader will sometimes work well for documents that Preview can't print, and I've found some documents that Adobe Reader chokes on but Preview handles flawlessly.

  • When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, and the safe search button is inoperable. Suggestions?

    When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, the remainder of the results page is blank, and the safe search button is inoperable. When I turn off private browsing and refresh the page, everything works again.
    Anyone else having this problem?

    I have got the same behaviour after the last Safari Update to 5.1.3. It seems that Safari now handles some scripts in a new way. If you debug the Google Website, you will see, that there is some Javascript Error, that seems to prevent to write into local cache. After some searching I wasn't able to finde a solution for this problem, other then disabling Javascript while private browsing to prevent the script loading. You then are able to use Google with the old layout. The option to disable JavaScript can be found in the Menu "Developer", wich has to be enabled in Safari in the options first.
    In my opinion this is a bug that is now occuring, because Apple changed something in private browsing and that has to be fixed by Google now, to run again. Or we will have to wait for 5.1.4, as you can read online Apple will change and bugfix the javascript engine in that version, perhaps this fixes the problem as well. I hope so!
    If anyone is in the developer program perhaps you could test this with the beta of 5.1.4 and tell us if it works.

Maybe you are looking for