Created
August 24, 2019 05:16
-
-
Save m0n4d1/97f2b1c09ef51cfeae887aed897cbba5 to your computer and use it in GitHub Desktop.
xmonad config
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
Config { font = "xft:Bitstream Vera Sans Mono:size=9:regular:antialias=true" | |
, overrideRedirect = False | |
, borderColor = "#2C323C" | |
, border = TopB | |
, bgColor = "#21252B" | |
, fgColor = "#828997" | |
, position = TopW L 100 | |
, commands = [ Run Weather "CYVR" ["-t","<tempC>C","-L","18","-H","25","--normal","#98c379","--high","red","--low","lightblue"] 36000 | |
, Run Network "wlp2s0" ["-L","0","-H","32","--normal","#98c379","--high","#e06c75"] 10 | |
, Run Cpu ["-L","3","-H","50","--normal","#98c379","--high","#e06c75"] 10 | |
, Run Memory ["-t","Mem: <usedratio>%"] 10 | |
, Run Swap [] 10 | |
, Run Com "uname" ["-s","-r"] "" 36000 | |
, Run Date "%a %b %_d %Y %H:%M:%S" "date" 10 | |
, Run StdinReader | |
] | |
, sepChar = "%" | |
, alignSep = "}{" | |
, template = "%StdinReader% }{[ %wlp2s0% ] | %cpu% | %memory% * %swap% | <fc=#d19a66>%date%</fc> | %uname% | %CYVR% " | |
} |
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.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig | |
import XMonad.Actions.SpawnOn | |
--import XMonad.Wallpaper | |
import Graphics.X11.ExtraTypes.XF86 | |
import System.IO | |
main = do | |
--setRandomWallpaper ["$HOME/Pictures/nixos-onedark-wallpaper.png"] | |
xmproc <- spawnPipe "xmobar" | |
xmonad $ docks defaultConfig | |
{ manageHook = manageDocks <+> manageHook defaultConfig | |
, startupHook = do | |
spawnHere "xloadimage -onroot -fullscreen ~/Pictures/nixos-onedark-wallpaper.png" | |
spawnOn "workspace2" "pulseeffects" | |
, layoutHook = avoidStruts $ layoutHook defaultConfig | |
, logHook = dynamicLogWithPP xmobarPP | |
{ ppOutput = hPutStrLn xmproc | |
, ppTitle = xmobarColor "#98c379" "" . shorten 100 | |
, ppCurrent = xmobarColor "#61afef" "" . wrap "[" "]" | |
} | |
, borderWidth = 1 | |
, modMask = mod4Mask | |
, terminal = "termite" | |
, normalBorderColor = "#2C323C" | |
, focusedBorderColor = "#4B5363" } | |
`additionalKeys` | |
[ | |
((mod4Mask, xK_p ), spawn "dmenu_run -fn 'monospace:regular:pixelsize=12' -nb '#282c34' -sf '#282c34' -sb '#98c379' -nf '#abb2bf'" ) , | |
((0 , xF86XK_AudioMute ), spawn "amixer set Master toggle"), | |
((0 , xF86XK_AudioLowerVolume ), spawn "amixer -q set Master 2%-"), | |
((0 , xF86XK_AudioRaiseVolume ), spawn "amixer -q sset Master 2%+"), | |
((0 , xF86XK_MonBrightnessDown ), spawn "xbacklight -dec 5"), | |
((0 , xF86XK_MonBrightnessUp ), spawn "xbacklight -inc 5") | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment