From a544d20f7bcbf8e17f4b0679baae7cbed7e92495 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 8 Mar 2012 21:12:54 +0100 Subject: Some updates for GHC 7.4 --- lib/Storage.hs | 2 +- xmonad.hs | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/Storage.hs b/lib/Storage.hs index 7f68b15..9c70b04 100644 --- a/lib/Storage.hs +++ b/lib/Storage.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE DeriveDataTypeable, ExistentialQuantification, TypeSynonymInstances, MultiParamTypeClasses, FlexibleInstances, PatternGuards #-} +{-# LANGUAGE DeriveDataTypeable, ExistentialQuantification, TypeSynonymInstances, MultiParamTypeClasses, FlexibleInstances, PatternGuards, DatatypeContexts #-} module Storage ( StoreData , Storage diff --git a/xmonad.hs b/xmonad.hs index 486db50..8fcfa9b 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -15,7 +15,7 @@ import Control.Monad import Control.Monad.Trans import Data.Maybe import Data.Monoid -import Ratio((%)) +import Data.Ratio((%)) import System.Exit --import ConfigurableBorders @@ -37,10 +37,11 @@ main = xmonad $ ewmh dwConfig $ defaultConfig , logHook = ewmhDesktopsLogHook , focusedBorderColor = "#008000" , rescreenHook = dynamicRescreenHook dwConfig + , borderWidth = 0 } `additionalKeysP` ( [ ("M-a", sendMessage MirrorShrink) - , ("M-y", sendMessage MirrorExpand) + , ("M-z", sendMessage MirrorExpand) , ("M-", prevWS) , ("M-", nextWS) , ("M-S-", shiftToPrev) @@ -50,10 +51,11 @@ main = xmonad $ ewmh dwConfig $ defaultConfig , ("M-", viewOrWarp 1) , ("M-", viewOrWarp 2) , ("M-b", banishScreen LowerRight) + , ("M-f", withFocused $ \w -> windows $ W.float w $ W.RationalRect 0 0 1 1) , ("M-p", spawnOnCurrent "/home/neoraider/bin/dmemu_run -b") , ("M-g", gets (W.currentTag . windowset) >>= regroupProcess) , ("M-S-q", io (exitWith ExitSuccess)) - , ("C-M1-l", spawn "gnome-screensaver-command --lock") + , ("C-M1-l", spawn "xscreensaver-command -lock") , ("M-`", spawn "xclip -o | qrencode -s 10 -o- | display -geometry +0+0") , ("", spawn "amixer -q sset Master 5%- unmute") , ("", spawn "amixer -q sset Master toggle") @@ -145,8 +147,9 @@ myManageHook = composeAll [ className =? "Guake.py" -?> doFloatMaybeFullscreen -- <+> doConfigBorderOff) --, className =? "Do" -?> (doFloat <+> doConfigBorderOff) , className =? "MPlayer" -?> doCenterFloat + , className =? "mplayer2" -?> doCenterFloat , className =? "Gnome-session" -?> doIgnoreProcessWorkspace - , className =? "Gimp" -?> doFloat + --, className =? "Gimp" -?> doFloat , className =? "jrummikub-JRummikub" -?> doFloat , className =? "Stjerm" -?> doFloatMaybeFullscreen , className =? "Display" -?> doFloat @@ -164,7 +167,7 @@ myManageHook = composeAll --myUnmanageHook = moveUp1 -myLayoutHook = screenWorkspaceStorage $ processWorkspaceManager $ manageFullscreen $ smartBorders (Full ||| tiled ||| Mirror tiled) +myLayoutHook = screenWorkspaceStorage $ processWorkspaceManager $ manageFullscreen {- $ smartBorders -} (Full ||| tiled ||| Mirror tiled) where -- default tiling algorithm partitions the screen into two panes tiled = ResizableTall nmaster delta ratio [] -- cgit v1.2.3