Created
May 13, 2013 09:27
-
-
Save GeertJohan/5567161 to your computer and use it in GitHub Desktop.
xmonad configuration foizetux
This file contains 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.InitialStartupHook | |
import XMonad.Layout.LayoutScreens | |
import XMonad.Layout.TwoPane | |
import XMonad.Hooks.InsertPosition | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeysP) | |
import XMonad.Hooks.SetWMName | |
import XMonad.Hooks.FadeInactive | |
import System.IO | |
myStartup = do | |
layoutSplitScreen 2 (TwoPane 0.5 0.5) | |
myFadeLogHook :: X () | |
myFadeLogHook = fadeInactiveLogHook fadeAmount | |
where fadeAmount = 0.8 | |
main = do | |
xmproc <- spawnPipe "xmobar" | |
xmonad $ defaultConfig | |
{ modMask = mod4Mask | |
, startupHook = initialStartupHook myStartup <+> setWMName "LG3D" | |
, manageHook = manageDocks <+> insertPosition End Newer | |
<+> manageHook defaultConfig | |
, layoutHook = avoidStruts $ layoutHook defaultConfig | |
, logHook = myFadeLogHook <+> (dynamicLogWithPP $ xmobarPP | |
{ ppOutput = hPutStrLn xmproc | |
, ppTitle = xmobarColor "green" "" . shorten 100 | |
}) | |
, focusFollowsMouse = False | |
, clickJustFocuses = False | |
, focusedBorderColor = "#00FF00" | |
} | |
`additionalKeysP` | |
[ ("M-<F4>", kill) | |
, ("M-c", kill) | |
, ("<F12>", spawn "konsole") | |
, ("<Print>", spawn "ksnapshot") | |
, ("M-x f", spawn "ff") | |
, ("M-x l", spawn "slock") | |
, ("M-x s", spawn "st2") | |
] | |
This file contains 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
#!/bin/bash | |
xrdb -merge .Xresources | |
xcompmgr & | |
xautolock -time 15 -locker "slock" -notify 1 -notifier "notify-send -t 5000 -i gtk-dialog-info 'Locking in 10 seconds'" & | |
xsetroot -cursor_name left_ptr & | |
setxkbmap -option compose:ralt & | |
hsetroot -fill /usr/share/wallpapers/kde-default.png & | |
trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 50 --height 17 --transparent true --tint 0x000000 & | |
kmix --keepvisibility & | |
klipper & | |
wicd-gtk --tray & | |
exec xmonad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment