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.UrgencyHook | |
import XMonad.Layout.NoBorders | |
import XMonad.Prompt | |
import XMonad.Prompt.Shell | |
import XMonad.Prompt.Ssh | |
import XMonad.Util.CustomKeys | |
myLayout = smartBorders (tiled ||| Mirror tiled ||| Full) | |
where | |
tiled = Tall nmaster delta ratio | |
nmaster = 1 | |
ratio = 2/3 | |
delta = 3/100 | |
main = xmonad $ withUrgencyHook FocusHook $ defaultConfig | |
{ focusFollowsMouse = False | |
, keys = customKeys delkeys inskeys | |
, layoutHook = myLayout | |
} where | |
delkeys :: XConfig l -> [(KeyMask, KeySym)] | |
delkeys XConfig {modMask = modm} = | |
[ (modm, xK_b) | |
, (modm, xK_q) | |
, (modm, xK_w) | |
, (modm, xK_e) | |
, (modm, xK_r) | |
, (modm .|. shiftMask, xK_w) | |
, (modm .|. shiftMask, xK_e) | |
, (modm .|. shiftMask, xK_r) ] | |
inskeys :: XConfig l -> [((KeyMask, KeySym), X ())] | |
inskeys conf@(XConfig {modMask = modm}) = | |
[ ((modm, xK_p), shellPrompt defaultXPConfig) | |
, ((modm .|. shiftMask, xK_p), sshPrompt defaultXPConfig) | |
, ((modm .|. controlMask, xK_Delete), spawn "slock") ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment