Created
March 8, 2015 11:26
-
-
Save DirkHeinke/1d05e8c9a8efee71ec64 to your computer and use it in GitHub Desktop.
My xmonad config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*" | |
, bgColor = "black" | |
, fgColor = "grey" | |
, position = BottomW L 100 | |
, commands = [ Run Weather "EDDE" ["-t"," <tempC>C","-L","0","-H","30","--normal","green","--high","red","--low","lightblue"] 36000 | |
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10 | |
, Run Memory ["-t","Mem: <usedratio>%"] 10 | |
, Run Date "%a %b %_d %H:%M" "date" 10 | |
, Run StdinReader | |
] | |
, sepChar = "%" | |
, alignSep = "}{" | |
, template = "%StdinReader% }{ %cpu% | %memory% <fc=#ee9a00>%date%</fc> | %EDDE%" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeys) | |
import System.IO | |
import Graphics.X11.ExtraTypes.XF86 | |
main = do | |
xmproc <- spawnPipe "/usr/bin/xmobar -x 1 /home/dirk/.xmonad/xmobarrc" | |
xmonad $ defaultConfig | |
{ manageHook = manageDocks <+> manageHook defaultConfig | |
, layoutHook = avoidStruts $ layoutHook defaultConfig | |
, logHook = dynamicLogWithPP xmobarPP | |
{ ppOutput = hPutStrLn xmproc | |
, ppTitle = xmobarColor "green" "" . shorten 50 | |
} | |
, modMask = mod4Mask | |
, terminal = "xfce4-terminal" | |
} | |
`additionalKeys` | |
[ ((0 , xF86XK_AudioRaiseVolume), spawn "pactl set-sink-volume 1 +1.5%") | |
, ((0 , xF86XK_AudioLowerVolume), spawn "pactl set-sink-volume 1 -1.5%") | |
, ((0 , xF86XK_AudioMute), spawn "pactl set-sink-mute 1 toggle") | |
, ((0 , 0x1008ff18), spawn "xscreensaver-command --lock") | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment