[SOLVED] Xmonad and two dzen2 bars

Solved, thanks!
Last edited by camphor (2010-03-02 07:01:35)

Here is the relevant part of my xmonad.hs; these two bars load next to each other
-- dzen config
sBarCmd = "dzen2 -fn '-*-times-medium-r-*-*-*-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 500 -ta l"
topBarCmd = "conky -c /home/ishikawa/.conkyrc | dzen2 -fn '-*-times-medium-r-*-*-*-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 498 -x 500 -ta r"

Similar Messages

  • [SOLVED] xmonad and dzen2 - clickable areas

    Hey
    I'm trying to execute a function (rather than a program), when I click an icon in dzen2, using ^ca() - but to no avail.
    I do rougly this:
    !#/bin/sh
    test() {
    echo "Yay.."
    echo "^ca(test)^i(/path/to/icon/icon.xbm)click me^ca()"
    It tells me test, no such command.. because it's trying to execute a binary called "test", rathern than my function inside the script. Is it even possible to execute script functions, in ^ca()?
    Thanks :-)
    - m
    Last edited by valvet (2010-11-08 14:49:46)

    Knute wrote:
    So what exactly are you trying to have execute when you click the link anyway?
    Another option that you would have is to just make a script that gets called when you click the link.
    However, if you are trying to use a haskell function to say.... Oh, I don't know, change workspaces by clicking, then that would be a horse of a different color.
    I'm trying to call a function that checks for mail on my gmail account - because it only updates every 10 minutes, and if I've read my mail it  ontinues to say "You've got new mail.." for 10 minutes obviously - when I click the mail icon, it should call the function that checks mail so it'll update as it would normally :-)
    - m

  • [SOLVED] Xmonad and shell prompts

    Hi
    Is it possible to make this prompt/shell support pasting commands? I can only interact with it using the keyboard. Thanks
    -- Prompts
    import XMonad.Prompt
    import XMonad.Prompt.Shell
    myXPConfig :: XPConfig
    myXPConfig = defaultXPConfig
    { font = myDroidFont
    , bgColor = myColorGrayBg
    , fgColor = myColorBlue
    , bgHLight = myColorBlue
    , fgHLight = myColorWhite
    , promptBorderWidth = 0
    , position = Bottom
    , height = 16
    , historySize = 100
    , historyFilter = deleteConsecutive
    Last edited by valvet (2010-11-09 22:08:30)

    brisbin33 wrote:
    How are you pasting? Have you tried S-insert or middle click?
    If it's true that the prompt does not support pasting of any sort, then your config will be irrelevant and the fix/change will almost certainly have to occur in the X.Prompt internals.
    Hi
    Yes, I tried both. Moving the cursor over the prompt window, it has no "edit" cursor, as in a terminal. Shift insert is the same result.
    Well, OK - but would be a nice feature :-). I'll play with it.
    Thanks

  • [SOLVED] Need help with dzen2, conky and xmonad.

    Hey all. I've recently been using XMonad and have found it to be a really useful tool, especially when it comes to keeping me on task and dealing with screen real-estate. However, I've been having difficulty setting up a dzen2 status bar that displays what conky pipes into it.
    Here is my xmonad.hs file :
    import XMonad
    import IO
    import XMonad.Util.Run
    import XMonad.Hooks.ManageDocks
    import XMonad.Hooks.DynamicLog
    import XMonad.Layout.NoBorders
    import XMonad.Util.EZConfig
    main = do
    bar <- spawn myConkyBar
    xmonad $ defaultConfig
    borderWidth = 2
    , terminal = "urxvt"
    , normalBorderColor = "#343434"
    , focusedBorderColor = "cyan"
    , workspaces = ["www","lp","letter","else"]
    , manageHook = manageDocks <+> manageHook defaultConfig
    , layoutHook = avoidStruts $ layoutHook defaultConfig
    } `additionalKeys`
    [ ((0, xK_F12), spawn "urxvt")
    , ((mod4Mask.|. 0, xK_w), spawn "firefox")
    , ((mod4Mask .|. shiftMask, xK_w), spawn "scrot -s")
    , ((0, xK_Print), spawn "scrot -d 2")
    myConkyBar = "conky -c .conkyrc | dzen2 -fn 'Clean' -bg #343434 -x 0 -y 768"
    And the relevant .conkyrc file:
    out_to_console yes
    text_buffer_size 512
    mpd_host localhost
    mpd_port 6600
    update_interval 1.0
    cpu_avg_samples 2
    net_avg_samples 2
    TEXT
    ^fg(cyan)^i(/home/greg/.icons/mpd.xbm) ^fg(#E0EEEE)$mpd_smart ^fg(#343434)| ^fg(cyan)^i(/home/greg/.icons/cpu.xbm) ^fg(#FF69B4)${cpu cpu1}% ^fg(cyan)^i(/home/greg/.icons/cpu.xbm) ^fg(#FF69B4)${cpu cpu2}% ^fg(#343434)| ^fg(cyan)^i(/home/greg/.icons/mem.xbm) ^fg()$mem ^fg(#343434)| ^fg(cyan)^i(/home/greg/.icons/down.xbm) ^fg(#FF69B4)${downspeed wlan0} ^fg(cyan)^i(/home/greg/.icons/up.xbm) ^fg(#FF69B4)${upspeed wlan0} ^fg(#343434)| ^fg(red)${battery_percent BAT0}% ^fg(#343434)| ^fg(red)$acpitemp C ^fg(#343434)| ^fg(#CD5555)$kernel ^fg(#343434)| ^fg(cyan)${time %m-%d-%y %l:%M%p}
    The main problem I'm having is that Xmonad will make the space for dzen, but conky will write to the root window, and not dzen. So the long string of text is written on the root window without any formatting, and dzen is (usually) just a black bar. I'm not the best with Haskell, but I am im
    proving, so any help would be appreciated.
    Also, I've noticed that dzen2 only updates when switching workspaces. Was I supposed to define an update interval somewhere?
    Last edited by camphor (2009-12-23 04:53:35)

    i think you have to use the logHook,
    this is part of my configuration, although i'm not using Xmonad anymore (haven't found the time to really configure it)
    -- XMonad:
    main = do
    xmobar <- spawnPipe myStatusBar
    dynHooksRef <- initDynamicHooks
    xmonad $ myUrgencyHook $ defaultConfig
    { terminal = myTerminal
    , focusFollowsMouse = myFocusFollowsMouse
    , borderWidth = myBorderWidth
    , modMask = myModMask
    --, numlockMask = myNumlockMask
    , workspaces = myWorkspaces
    , normalBorderColor = myNormalBorderColor
    , focusedBorderColor = myFocusedBorderColor
    , layoutHook = myLayout
    , manageHook = myManageHook <+> manageDocks <+> dynamicMasterHook dynHooksRef
    , handleEventHook = myEventHook
    , logHook = dynamicLogWithPP $ myXmobarPP xmobar
    , startupHook = myStartupHook
    is using Xmobar, but the config from where i took this was using dzen, maybe you can use that:
    http://haskell.org/haskellwiki/Xmonad/C … _xmonad.hs
    ps: sorry for the awful english.

  • Why do I have two title bars - one with the title of the page I'm looking at and another with the new orange drop down menu? Plus I can't get FF4 to save my tabs, even when I go to about:config, why is that?

    I downloaded FF4, thinking that it would merely update from my previous installation, but all my tabs were gone. FF looks really weird - here is a link to a picture of it: http://tinypic.com/r/2mwdus4/7 - I have two title bars, my bookmarks toolbar is missing and the tabs are on the bottom. If I go to view => toolbars and click one of them, suddenly the second title bar (with the orange menu) disappers and my bookmarks toolbar comes back (even if I don't click on it in "view"). I can't get the browser to remember my tabs between sessions even though I set it to remember them in my settings. I even changed the browser.showQuitWarning to true in about:config, but it didn't work. What is going on?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Yet another dzen2 bar, icon and clickable tags for DWM

    I just switched to dwm and it's really awsome so I customized it a bit: A script to display dzen2 on top of dwm status bar which show:
    tags
    icons
    and these tags are really clickable,
    and even highlight the active tags.
    It's quite simple though and lots of people would do better works but I really like it and wanna share it here.
    Here is some screenshots:
    http://img135.imageshack.us/img135/8758/39852191.png
    By linktohack at 2011-02-22
    http://img64.imageshack.us/img64/8761/63162414.png
    By linktohack at 2011-02-22
    Usage:
    Download script from here:
    https://github.com/linktohack/dztags-gen
    Make a directory dwm resouces eg: ~/.dwm
    Download XBM ICON PACK from here:
    http://dzen.geekmode.org/wiki/wiki.cgi/ … nIconPacks
    and extract it to a directory inside the above directory, eg: ~/.dwm/xbm8x8/
    Customize the script if needed (Tags name, icon prefix, color...)
    Run setup command, eg:
    dztags-gen --setup ~/.dwm
    |_ no trailling slash
    And finally run dztags script to show dzen2 bar, eg:
    ~/.dwm/dztags &
    [link@Link-Arch ~]$ ./dztags-gen/dztags-gen --help
    dztags-gen
    Script to generate dztags and dztagsrsc
    dztags: Infinite loop script show dzen2-svn from dztagsrc
    Usage:
    Dayly use: (through dztags)
    dztags-gen number /path/to/dztagsrc
    OR
    First time:
    dztags-gen --setup /path/to/dztags/dir
    |_ no trailling slash
    After setup, just run /path/to/dztags/dir/dztags &
    I will appriciate any feedback here.
    Thanks you all!
    Link,

    Thanks @jasonwryan, I just don't know where to post it

  • Install of Firebug causes: Two title bars, inability to open the addons tab, and inability to use the Feedback feature, etc.

    After further research, I feel this should be categorized as a plugin issue...
    Firebug 1.7X A10 causes two Title bars (the standard windows bar, and a second just inside with the new orange Firefox tab...both with minimize/maximize/close buttons), plus other odd behavior listed below:
    Any saved tabs from before the install/enable are gone.
    Choosing Addons from the menu does nothing. After opening a new empty tab the Addons manager does load.
    Choosing Feedback->Makes me xxxx, does nothing.
    Hitting reload button does nothing
    URL bar (page address) stays the same between tabs (though the loaded page changes)
    Firebug addon works fine.
    After getting to the Addon Manager (this took a bit of work to do), and disabling Firebug, all problems disappeared. My previous tab history also returned.
    This seems to be unique to WinXP. I have installed this Firebug version with Win7 successfully.

    The two titlebars is a known bug - http://code.google.com/p/fbug/issues/detail?id=4012

  • [SOLVED] Trouble installing Xmonad and Xmonad-contrib

    I am new to Arch Linux. After using awesome for a month I decided to shift to xmonad.I installed xmonad and xmonad-contrib from official arch repositories by using
    pacman -S xmonad xmonad-contrib
    and then installed GHC. I was able to start session using
    exec xmonad
    in my ~/.xsession file. I copied the default xmonad.hs template to my home.
    cp /usr/share/xmonad-0.11/man/xmonad.hs ~/.xmonad/xmonad.hs
    . However while recompiling I am getting this error -
    xmonad.hs:14:18:
    Could not find module `XMonad.StackSet'
    Use -v to see a list of the files searched for.
    So I checked the modules in my ghc
    [mangat@Noahas_Arch ~]$ ghc-pkg list
    /usr/lib/ghc-7.6.2/package.conf.d
    Cabal-1.16.0
    array-0.4.0.1
    base-4.6.0.1
    bin-package-db-0.0.0.0
    binary-0.5.1.1
    bytestring-0.10.0.2
    containers-0.5.0.0
    deepseq-1.3.0.1
    directory-1.2.0.1
    filepath-1.3.0.1
    ghc-7.6.2
    ghc-prim-0.3.0.0
    haskell2010-1.1.1.0
    haskell98-2.0.0.2
    hoopl-3.9.0.0
    hpc-0.6.0.0
    integer-gmp-0.5.0.0
    old-locale-1.0.0.5
    old-time-1.1.0.1
    pretty-1.1.1.0
    process-1.1.0.2
    rts-1.0
    template-haskell-2.8.0.0
    time-1.4.0.1
    unix-2.6.0.1
    I am now missing xmonad and xmonad-contrib modules, so I tried to reinstall it but I am now getting following error messages :-
    [mangat@Noahas_Arch ~]$ su -c "pacman -Sv xmonad xmonad-contrib"
    Password:
    Root : /
    Conf File : /etc/pacman.conf
    DB Path : /var/lib/pacman/
    Cache Dirs: /var/cache/pacman/pkg/
    Lock File : /var/lib/pacman/db.lck
    Log File : /var/log/pacman.log
    GPG Dir : /etc/pacman.d/gnupg/
    Targets : xmonad xmonad-contrib
    warning: xmonad-0.11-5 is up to date -- reinstalling
    warning: xmonad-contrib-0.11-6 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (2): xmonad-0.11-5 xmonad-contrib-0.11-6
    Total Installed Size: 34.13 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n] Y
    (2/2) checking keys in keyring [###########################################################] 100%
    (2/2) checking package integrity [###########################################################] 100%
    (2/2) loading package files [###########################################################] 100%
    (2/2) checking for file conflicts [###########################################################] 100%
    (2/2) checking available disk space [###########################################################] 100%
    ghc-pkg: cannot find package xmonad-0.11
    error: command failed to execute correctly
    (1/2) reinstalling xmonad [###########################################################] 100%
    Reading package info from stdin ... done.
    xmonad-0.11: Warning: haddock-interfaces: /usr/share/doc/xmonad-0.11/html/xmonad.haddock doesn't exist or isn't a file
    xmonad-0.11: Warning: haddock-html: /usr/share/doc/xmonad-0.11/html doesn't exist or isn't a directory
    xmonad-0.11: dependency "X11-1.6.1.1-1d285f3adf4105d51aa29a4bb5b0c634" doesn't exist (use --force to override)
    xmonad-0.11: dependency "extensible-exceptions-0.1.1.4-757e1af929bd59fccfe8430149f55bc2" doesn't exist (use --force to override)
    xmonad-0.11: dependency "mtl-2.1.2-36ff22533b21e2182d8d4647bfd2b3e7" doesn't exist (use --force to override)
    xmonad-0.11: dependency "utf8-string-0.3.7-89a3d8cf53390a43809e108bcfba69ef" doesn't exist (use --force to override)
    error: command failed to execute correctly
    ghc-pkg: cannot find package xmonad-contrib-0.11
    error: command failed to execute correctly
    (2/2) reinstalling xmonad-contrib [###########################################################] 100%
    Reading package info from stdin ... done.
    xmonad-contrib-0.11: Warning: haddock-interfaces: /usr/share/doc/xmonad-contrib-0.11/html/xmonad-contrib.haddock doesn't exist or isn't a file
    xmonad-contrib-0.11: Warning: haddock-html: /usr/share/doc/xmonad-contrib-0.11/html doesn't exist or isn't a directory
    xmonad-contrib-0.11: dependency "X11-1.6.1.1-1d285f3adf4105d51aa29a4bb5b0c634" doesn't exist (use --force to override)
    xmonad-contrib-0.11: dependency "X11-xft-0.3.1-af5f924091c4d4d0e7fd0f1ef1e3e1c5" doesn't exist (use --force to override)
    xmonad-contrib-0.11: dependency "extensible-exceptions-0.1.1.4-757e1af929bd59fccfe8430149f55bc2" doesn't exist (use --force to override)
    xmonad-contrib-0.11: dependency "mtl-2.1.2-36ff22533b21e2182d8d4647bfd2b3e7" doesn't exist (use --force to override)
    xmonad-contrib-0.11: dependency "random-1.0.1.1-048316c239de82db6e182c94b6cf4e19" doesn't exist (use --force to override)
    xmonad-contrib-0.11: dependency "utf8-string-0.3.7-89a3d8cf53390a43809e108bcfba69ef" doesn't exist (use --force to override)
    xmonad-contrib-0.11: dependency "xmonad-0.11-b1caf0967c016228684d4fbe995fb8d7" doesn't exist (use --force to override)
    error: command failed to execute correctly
    Any Idea why pacman is unable to resolve the dependency. Are they availiable in AUR?
    PS: I have just updated by installation and I am not using AUR right now.
    Last edited by mangatmodi (2013-04-23 09:26:14)

    @Raynman
    My pacman.conf was really in a very bad shape at the time of installation of Xmonad. I think I must be careless to notice and removed dependency check.
    When I compiled my xmonad.hs I found errors related to GHC. I was too surprised, however installed it further. Now since GHC was installed later, it missed some modules which were previously installed.
    I tried reinstalling xmonad, xmonad-contrib before but there was no use. However recursively removing and installing, as suggested by you, seems to have fixed have problem. I am now getting following modules in GHC.
    /usr/lib/ghc-7.6.2/package.conf.d
    Cabal-1.16.0
    X11-1.6.1.1
    X11-xft-0.3.1
    array-0.4.0.1
    base-4.6.0.1
    bin-package-db-0.0.0.0
    binary-0.5.1.1
    bytestring-0.10.0.2
    containers-0.5.0.0
    data-default-0.5.1
    deepseq-1.3.0.1
    directory-1.2.0.1
    dlist-0.5
    extensible-exceptions-0.1.1.4
    filepath-1.3.0.1
    ghc-7.6.2
    ghc-prim-0.3.0.0
    haskell2010-1.1.1.0
    haskell98-2.0.0.2
    hoopl-3.9.0.0
    hpc-0.6.0.0
    integer-gmp-0.5.0.0
    mtl-2.1.2
    old-locale-1.0.0.5
    old-time-1.1.0.1
    pretty-1.1.1.0
    process-1.1.0.2
    random-1.0.1.1
    rts-1.0
    template-haskell-2.8.0.0
    time-1.4.0.1
    transformers-0.3.0.0
    unix-2.6.0.1
    utf8-string-0.3.7
    xmonad-0.11
    xmonad-contrib-0.11
    I will test my system and mark the thread solved. Thank you for the help

  • Xmonad and Xmobar: avoidStruts no longer exposes Xmobar

    I've been using Xmonad with the same config for months now. I reinstalled Arch recently, and ever since then avoidStruts no longer keeps Xmobar from being hidden behind windows.
    I have installed the xmonad and xmonad-contrib packages; my config compiles without errors. I'm at a loss here because I can't identify any changes that may have been made to either of the aforementioned packages that might cause this issue.
    xmonad.hs
    import XMonad
    import Data.Monoid
    import Data.Ratio ((%))
    import System.Exit
    import XMonad.Hooks.EwmhDesktops
    import XMonad.Hooks.DynamicLog
    import XMonad.Hooks.ManageDocks
    import XMonad.Hooks.UrgencyHook
    import XMonad.Layout.NoBorders
    import XMonad.Layout.Named
    import XMonad.Layout.Grid
    import XMonad.Layout.IM
    import XMonad.Util.Run(spawnPipe)
    import System.IO
    import qualified XMonad.StackSet as W
    import qualified Data.Map as M
    -- The preferred terminal program, which is used in a binding below and by
    -- certain contrib modules.
    myTerminal = "urxvt"
    -- Whether focus follows the mouse pointer.
    myFocusFollowsMouse :: Bool
    myFocusFollowsMouse = True
    -- Width of the window border in pixels.
    myBorderWidth = 2
    -- modMask lets you specify which modkey you want to use. The default
    -- is mod1Mask ("left alt"). You may also consider using mod3Mask
    -- ("right alt"), which does not conflict with emacs keybindings. The
    -- "windows key" is usually mod4Mask.
    myModMask = mod4Mask
    -- The default number of workspaces (virtual screens) and their names.
    -- By default we use numeric strings, but any string may be used as a
    -- workspace name. The number of workspaces is determined by the length
    -- of this list.
    -- A tagging example:
    -- > workspaces = ["web", "irc", "code" ] ++ map show [4..9]
    myWorkspaces = ["1","2","3","4","5","6","7","8","9"]
    -- Border colors for unfocused and focused windows, respectively.
    myNormalBorderColor = "#404040"
    -- myFocusedBorderColor = "#0080ff"
    myFocusedBorderColor = "#ff0000"
    -- Key bindings. Add, modify or remove key bindings here.
    myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
    -- launch a terminal
    [ ((modm .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf)
    -- launch dmenu
    , ((modm, xK_p ), spawn "dmenu_run")
    -- launch gmrun
    , ((modm .|. shiftMask, xK_p ), spawn "gmrun")
    -- close focused window
    , ((modm .|. shiftMask, xK_c ), kill)
    -- close focused window (2)
    , ((modm, xK_z ), kill)
    -- close focused window (3)
    , ((modm, xK_Escape), kill)
    -- Rotate through the available layout algorithms
    , ((modm, xK_space ), sendMessage NextLayout)
    -- Reset the layouts on the current workspace to default
    , ((modm .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
    -- Resize viewed windows to the correct size
    , ((modm, xK_n ), refresh)
    -- Move focus to the next window
    , ((modm, xK_Tab ), windows W.focusDown)
    -- Move focus to the next window
    , ((modm, xK_j ), windows W.focusDown)
    -- Move focus to the previous window
    , ((modm, xK_k ), windows W.focusUp )
    -- Move focus to the master window
    , ((modm, xK_m ), windows W.focusMaster )
    -- Swap the focused window and the master window
    , ((modm, xK_Return), windows W.swapMaster)
    -- Swap the focused window with the next window
    , ((modm .|. shiftMask, xK_j ), windows W.swapDown )
    -- Swap the focused window with the previous window
    , ((modm .|. shiftMask, xK_k ), windows W.swapUp )
    -- Shrink the master area
    , ((modm, xK_h ), sendMessage Shrink)
    -- Expand the master area
    , ((modm, xK_l ), sendMessage Expand)
    -- Push window back into tiling
    , ((modm, xK_t ), withFocused $ windows . W.sink)
    -- Increment the number of windows in the master area
    , ((modm , xK_comma ), sendMessage (IncMasterN 1))
    -- Deincrement the number of windows in the master area
    , ((modm , xK_period), sendMessage (IncMasterN (-1)))
    -- Toggle the status bar gap
    -- Use this binding with avoidStruts from Hooks.ManageDocks.
    -- See also the statusBar function from Hooks.DynamicLog.
    -- , ((modm , xK_b ), sendMessage ToggleStruts)
    -- Quit xmonad
    , ((modm .|. shiftMask, xK_q ), io (exitWith ExitSuccess))
    -- Restart xmonad
    , ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart")
    -- Start Opera
    , ((modm .|. shiftMask, xK_i ), spawn "chromium")
    -- Start Thunar
    , ((modm .|. shiftMask, xK_f ), spawn "pcmanfm")
    -- Start networking gui
    , ((modm .|. shiftMask, xK_o ), spawn "wicd-gtk --no-tray")
    -- Video Settings
    , ((modm .|. shiftMask, xK_v ), spawn "nvidia-settings")
    ++
    -- mod-[1..9], Switch to workspace N
    -- mod-shift-[1..9], Move client to workspace N
    [((m .|. modm, k), windows $ f i)
    | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
    , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
    ++
    -- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
    -- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
    [((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f))
    | (key, sc) <- zip [xK_w, xK_e, xK_r] [0..]
    , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
    -- Mouse bindings: default actions bound to mouse events
    myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
    -- mod-button1, Set the window to floating mode and move by dragging
    [ ((modm, button1), (\w -> focus w >> mouseMoveWindow w
    >> windows W.shiftMaster))
    -- mod-button2, Raise the window to the top of the stack
    , ((modm, button2), (\w -> focus w >> windows W.shiftMaster))
    -- mod-button3, Set the window to floating mode and resize by dragging
    , ((modm, button3), (\w -> focus w >> mouseResizeWindow w
    >> windows W.shiftMaster))
    -- you may also bind events to the mouse scroll wheel (button4 and button5)
    -- Layouts:
    -- You can specify and transform your layouts by modifying these values.
    -- If you change layout bindings be sure to use 'mod-shift-space' after
    -- restarting (with 'mod-q') to reset your layout state to the new
    -- defaults, as xmonad preserves your old layout settings by default.
    -- The available layouts. Note that each layout is separated by |||,
    -- which denotes layout choice.
    myLayout = tall ||| grid ||| full
    where
    -- default tiling algorithm partitions the screen into two panes
    tiled = Tall nmaster delta ratio
    -- The default number of windows in the master pane
    nmaster = 1
    -- Default proportion of screen occupied by master pane
    ratio = 65/100
    -- Percent of screen to increment by when resizing panes
    delta = 5/100
    tall = named "Tall"
    $ avoidStruts
    $ Tall nmaster delta ratio
    grid = named "Grid"
    $ avoidStruts
    $ withIM (1%7) (Role "buddy_list") (GridRatio (4/3))
    full = named "Full"
    $ noBorders
    $ Full
    -- Window rules:
    -- Execute arbitrary actions and WindowSet manipulations when managing
    -- a new window. You can use this to, for example, always float a
    -- particular program, or have a client always appear on a particular
    -- workspace.
    -- To find the property name associated with a program, use
    -- > xprop | grep WM_CLASS
    -- and click on the client you're interested in.
    -- To match on the WM_NAME, you can use 'title' in the same way that
    -- 'className' and 'resource' are used below.
    myManageHook = composeAll
    [ className =? "MPlayer" --> doFloat
    , className =? "Gimp" --> doFloat
    -- , className =? "Nm-connection-editor" --> doFloat
    -- , className =? "Wicd-client.py" --> doFloat
    , resource =? "desktop_window" --> doIgnore
    , resource =? "kdesktop" --> doIgnore
    -- , className =? "Xfce4-notifyd" --> doIgnore
    -- Event handling
    -- * EwmhDesktops users should change this to ewmhDesktopsEventHook
    -- Defines a custom handler function for X Events. The function should
    -- return (All True) if the default handler is to be run afterwards. To
    -- combine event hooks use mappend or mconcat from Data.Monoid.
    -- myEventHook = mempty
    myEventHook = fullscreenEventHook
    -- Status bars and logging
    -- Perform an arbitrary action on each internal state change or X event.
    -- See the 'XMonad.Hooks.DynamicLog' extension for examples.
    myLogHook h = dynamicLogWithPP $ xmobarPP
    { ppOutput = hPutStrLn h
    , ppTitle = xmobarColor "green" "" . shorten 200
    , ppUrgent = xmobarColor "white" "red" . wrap "" ""
    -- Startup hook
    -- Perform an arbitrary action each time xmonad starts or is restarted
    -- with mod-q. Used by, e.g., XMonad.Layout.PerWorkspace to initialize
    -- per-workspace layout choices.
    -- By default, do nothing.
    myStartupHook = return ()
    -- Run xmonad with the settings you specify.
    main = do
    xmproc <- spawnPipe "/usr/bin/xmobar /home/chris/.xmonad/xmobarrc"
    xmonad $ withUrgencyHook NoUrgencyHook $ defaultConfig
    { terminal = myTerminal
    , focusFollowsMouse = myFocusFollowsMouse
    , borderWidth = myBorderWidth
    , modMask = myModMask
    , workspaces = myWorkspaces
    , normalBorderColor = myNormalBorderColor
    , focusedBorderColor = myFocusedBorderColor
    , keys = myKeys
    , mouseBindings = myMouseBindings
    , layoutHook = myLayout
    , manageHook = myManageHook
    , handleEventHook = myEventHook
    , logHook = myLogHook xmproc
    , startupHook = myStartupHook
    xmobarrc
    Config
    { font = "xft:ProFont:pixelsize=12"
    , bgColor = "#000000"
    -- used to make the bar appear correctly after Mod-q in older xmonad implementations (0.9.x)
    -- doesn't seem to do anything anymore (0.10, darcs)
    -- , lowerOnStart = False
    , commands =
    [ Run Wireless "wlan0" ["-t", "<essid> <quality>%"] 10
    , Run CommandReader "/home/chris/.xmonad/volume-listener.sh" "vol"
    , Run CommandReader "/home/chris/.xmonad/hdaps-listener.sh" "hdaps"
    , Run Battery
    [ "-t", "<acstatus> <left>%"
    , "-f", "AC/online"
    , "-o", "Bat"
    , "-O", "AC"
    20
    , Run Date "%a %b %_d %H:%M" "date" 10
    , Run StdinReader
    , sepChar = "%"
    , alignSep = "}{"
    , template = "%StdinReader% }{ <fc=#ff0000>%hdaps%</fc> %wlan0wi% Vol %vol% %battery% <fc=#ee9a00>%date%</fc> "
    Last edited by cheese, lol (2012-10-26 03:15:39)

    Downgrade to xmobar-0.15. See here.

  • Drag JTabbedPane out of the main Frame and set scroll bars for the tabs

    hi ,
    Iam working on a Swing application . In it i have Six Tabs added to a single JTabbedPane. all the tabs are different class files . is it possible to drag any of the tabs out of the frame.
    how to add scroll bars for the tabs individually. i have tried adding JScrollPane to the main frame and add the JTabbedPane to the Scrollpane . the scroll bar was not visible and i have tried adding
    all the six tabs to the individual JScrollPanes and add the six scrollpanes to the TabbedPane .
    only the scroll arrows are visible , when i minimised or resized the application the scrollbars were not appearing .
    could any one help me to solve the above two problems.

    just trying.....
    public void mouseDragged(MouseMotionEvent e){
    // this event should be activated only when the Drag goes out of scope of the parent JFrame which i dont know how
    Component c=JTab.getComponentAt(JTab.getSelectedIndex());
    JFrameobj.getContentPane().add(c,"Center");
    }

  • [SOLVED] Xmonad: trasparency doesn't work with compton intel

    Dear All,
    I am having a strange issue with Xmonad and I am not sure whether it is a problem of my Arch or Xmonad configuration. I decided to ask on Arch forum first, as my other computer running Arch has exactly the same Xmonad setup and it works fine. I would appreciate assistance from some Xmonad or Arch proficient users on this.
    Basically, I have this piece of code in my xmonad.hs:
    myLogHook :: Handle -> X ()
    , logHook = myLogHook dzenLeftBar >> fadeInactiveLogHook 0.8
    On the other computer this makes all the unfocused windowses slightly transparent. I find this feature very useful as it helps me focus on the window I am working with.
    For some reason this doesn't work on my laptop. My laptop is using xf86-video-intel since the lspci gave me
    %lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 03)
    Also I am invoking compton-git from AUR but I have also tried with xcompmgr in my xinitrc and it gave exactly the same result - no transparency whatsoever.
    I looked through my log file, but couldn't find anything relevant (please let me know if you can think of anything). How do I proceed with this issue? Do I try different composite managers? Do I try different drivers? Is there anyhting in X setup that I should include? Please let me know if you have any ideas.
    Last edited by AlmostSurelyRob (2013-06-18 10:18:08)

    I am very sorry. I've just discovered that neither compton nor xcompmgr were installed. It's not only solved, it should be marked as [NOT RAISED]. I was migrating my configuration and overlooked some erm... details.

  • I have one blackberry id and two blackberry's but can only receive e-mails on one device!

    Hi all,
    I have a problem! I have one blackberry id and two blackberry. I have given my old blackberry to my wife.
    I have just setup my new phone but whilst setting up my e-mails on my new phone we have noticed that the e-mails have been transferred to my new phone but have stopped working on my old phone.
    The odd thing is my wife had a previous blackberry and we were able to both get the company e-mails on each phone.
    The message that appears when e-mails have been transferred to the new phone is there is another device registered to this blackberry id and only one device can receive e-mail.
    How can I unregistered my old phone from the blackberry id and re-register it under my wife's details and hopefully receive the e-mails on both phones?
    Please help as its vital for the business.
    Cheers Nick

    Hi woodbe and welcome to the BlackBerry Support Community Forums!
    The BlackBerry ID is only designed to work on one device at a time. Your wife can sign up for a new BlackBerry ID by going to www.blackberry.com/blackberryid.  Also, to receive email on her device, she will have to have a BlackBerry data plan configured with your wireless network provider as well.
    To change the BlackBerry ID on her device, you can back it up using the BlackBerry Desktop Software, then perform a security wipe from Options>Security.  Upon the reboot, sign in with the new BlackBerry ID, then you can restore the data using the BlackBerry Desktop Software again.
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Two status bar apps, giving contradictory information

    After a clean remove (with the removal tool provided by Adobe) and installing the Creative Cloud manager I was able to install my 3 most used Adobe apps...
    I was very surprised this morning to see that I now have two status bar apps (the old one and the new one) both giving me information about updates. Funny detail: The old app tells me I have updates for my apps. The new one tells me I don't have any apps installed...
    Very weird.. I don't see the point of two toolbar apps... I presume it's a huge bug or something. Ideas are welcome.
    To clarify: I do have Photoshop CC, Illustrator CC and Indesign CC installed...
    UPDATE: After loggin out and in again the new Application Manager now shows my app correctly but it still says they are up to date while the old one insist I have updates... I still don't get the advantage of two App Managers.
    Message was edited by: wimmees

    wimmees, This is actually normal. You see two toolbars, one for the update workflow and the other for the install workflow. In other words, the updater will appear when you update your application from Help > Updates option. Rest you have Creative Cloud app wherein you can check the installed apps and can install the new apps as well.

  • Macbook has two black bars displayed on screen

    after i quit return to castel wolfenstien,my screen has two black bars,therefore srinking my workspace

    Try changing graphic processor and back.  http://codykrieger.com/gfxCardStatus
    If no resolve I would  take it to an Apple Retail Store or an Apple Authorized Service Provider  (AASP) for evaluation, or call your nearest Apple Contact Center. Visit the Genius Bar at the Apple Retail Store,  make a reservation.

  • (SOLVED) Conky and battery status

    How come this will not work on my system:
    ${color red}$alignc Battery Information
    ${color lightgrey} Currently: $battery
    ${color lightgrey}$stippled_hr
    I have tried a dozen scripts for battery status and nothing works. Does anyone have a sure fire way to get some status from my battery?
    I am using a netbook, pretty standard stuff. I don't know why it won't work. I tried other commands and one returned "U" for unknown battery status and what not. How can I find out what is going on?
    edit:
    Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,70 BAT0}
    This displays 0% and an empty bar.
    I went ahead into /proc/acpi/battery and found BAT1 and no BAT0, so I changed the script and I get a percent now...
    This may be solved, but I am going to try the other functions to see if I can get the output I wanted in the first place.
    Why does Conky hate batteries?
    Last edited by Google (2010-07-02 07:16:26)

    "$battery" does not work because it assumes as default BAT0, which you don't have so it will have to be "$battery BAT1". See "man conky" for more info....

Maybe you are looking for