[xmonad] Issue 97 in xmonad: xmonad stops responding to keyboard input after running xscreensaver

codesite-noreply at google.com codesite-noreply at google.com
Tue Dec 2 15:28:59 EST 2008


Comment #19 on issue 97 by sharma.animesh: xmonad stops responding to  
keyboard input after running xscreensaver
http://code.google.com/p/xmonad/issues/detail?id=97

import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
--import XMonad.Actions.Warp
import System.IO
import Data.Ratio

--myManageHook = composeAll [
--    className =? "Gimp" --> doFloat,
--    className =? "Vncviewer" --> doFloat
--               ]



main = do

  xmproc <- spawnPipe "/usr/local/bin/xmobar /home/ash022/.xmonad/xmobar"
  xmonad $ defaultConfig {
	manageHook = manageDocks <+>
		      --  myManageHook <+>
       	              manageHook defaultConfig,
         layoutHook = avoidStruts  $  layoutHook defaultConfig,
         logHook = dynamicLogWithPP $ xmobarPP {
                     ppOutput = hPutStrLn xmproc
                   , ppTitle = xmobarColor "orange" "" . shorten 50
                   }
             ,    modMask = mod4Mask     -- Rebind Mod to the Windows key

       } `additionalKeys`
       [
        ((mod4Mask .|. shiftMask, xK_z),
         spawn "xscreensaver-command -lock"),
        ((controlMask, xK_Print), spawn "scrot -s"),
        ((0, xK_Print), spawn "scrot")
--     ,  ((mod4Mask .|. shiftMask, xK_q ), warpToWindow (1%2) (1%2))
       ]





-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


More information about the xmonad mailing list