diff --git a/Xmodmap b/Xmodmap new file mode 100644 index 0000000..86f6de8 --- /dev/null +++ b/Xmodmap @@ -0,0 +1 @@ +pointer = 1 2 3 5 4 6 7 8 9 10 11 12 diff --git a/Xresources b/Xresources index cad42e4..3a3fc86 100644 --- a/Xresources +++ b/Xresources @@ -1,6 +1,16 @@ ! General -! Urxvt +!Xft.antialias: false +!Xft.dpi: 80 +!Xft.rgba: rgb + +! dzen2 +!dzen2*font: -*-fixed-*-*-*-*-10-*-*-*-*-*-*-* +dzen2*foreground: #ffffff +dzen2*background: #000000 +dzen2*font: Monospace:pixelsize=11:antialias=false + +! urxvt urxvt*loginShell: true urxvt*scrollBar: false urxvt*secondaryScroll: true @@ -8,27 +18,18 @@ urxvt*saveLines: 65535 urxvt*cursorBlink: false urxvt*urgentOnBell: true urxvt*urlLauncher: /usr/bin/luakit -!urxvt*termName: xterm-256color -!urxvt*termName: rxvt-256color urxvt*termName: rxvt-unicode-256color - -! Font -!urxvt*font: xft:DejaVu Sans Mono:pixelsize=10:antialias=true:hinting=true -!urxvt*font: xft:Liberation Mono:pixelsize=10:antialias=true:hinting=true -!urxvt*font: xft:inconsolata:size=10 -!urxvt*font: -*-ohsnapu-medium-r-normal-*-11-*-*-*-*-*-*-* -!urxvt*boldFont: -*-ohsnapu-bold-r-normal-*-11-*-*-*-*-*-*-* -!urxvt*font: xft:termsyn:pixelsize=10 -!urxvt*font: xft:DejaVu Sans Mono:pixelsize=10:antialias=false:hinting=true -urxvt*font: xft:terminus:size=9 -urxvt*boldFont: xft:terminus:size=9 +!urxvt*font: -*-fixed-*-*-*-*-11-*-*-*-*-*-*-* +!urxvt*boldFont: -*-fixed-*-*-*-*-11-*-*-*-*-*-*-* +urxvt*font: xft:Monospace:size=10:antialias=false:dpi=80 +urxvt*boldFont: xft:Monospace:size=10:antialias=false:dpi=80 ! Colors urxvt*depth: 32 !urxvt*cursorColor: #DCDCCC -!urxvt*background: #000000 -urxvt*foreground: #FFFFFF -urxvt*background: rgba:0000/0000/0000/ee00 +urxvt*foreground: #ffffff +!urxvt*background: rgba:0000/0000/0000/ee00 +urxvt*background: rgba:0000/0000/0000/cccc !*color0: #1c1c1c !*color8: #3d3a3a @@ -47,8 +48,6 @@ urxvt*background: rgba:0000/0000/0000/ee00 !*color7: #8d8d8d !*color15: #dad3d3 - - !! drop in Solarized colorscheme for Xresources !! !! ## Installation diff --git a/conky b/conky new file mode 100644 index 0000000..7500016 --- /dev/null +++ b/conky @@ -0,0 +1,7 @@ +background yes +out_to_console yes +out_to_x no +update_interval 1 + +TEXT +cpu ${cpu}% mem ${memperc}% down ${downspeed eth0} up ${upspeed eth0} | ${time %d %b %R} diff --git a/xinitrc b/xinitrc index f48022f..9230e76 100644 --- a/xinitrc +++ b/xinitrc @@ -1,10 +1,15 @@ -[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources - +xrdb ~/.Xresources & setxkbmap dvorak setxkbmap -option ctrl:nocaps - -xsetroot -cursor_name left_ptr +xsetroot -cursor_name left_ptr & +xmodmap .Xmodmap & +urxvtd -q -o -f & +#compton -cGb & +compton & dropboxd & +feh --bg-fill ~/Dropbox/Photos/wallpaper/cycloid.gif +# gifview --animate --new-window root ~/Dropbox/Photos/wallpaper/cycloid.gif + exec xmonad diff --git a/xmonad.hs b/xmonad.hs new file mode 100644 index 0000000..86ccf32 --- /dev/null +++ b/xmonad.hs @@ -0,0 +1,73 @@ +import XMonad +import System.Exit + +import qualified XMonad.StackSet as W +import qualified Data.Map as M + +import XMonad.Hooks.DynamicLog +import XMonad.Hooks.ManageDocks + +import XMonad.Util.Run (spawnPipe) -- for spawnPipe and hPutStrLn +import qualified System.IO + +import XMonad.Util.EZConfig (additionalKeysP) +import XMonad.Util.Loggers + +lightBlue = "#aabbff" +darkBlue = "#0000cc" +lightGray = "#aaaaaa" +darkGray = "#444444" +dzenBackground = "#000000" +myModMask = mod4Mask -- command + +myManageHook = composeAll + [ resource =? "visimeet" --> doFloat + , resource =? "feh" --> doFloat + ] + +--myWorkspaces = [ "1" , "2" , "3" , "4" , "5", "6", "7", "8", "9" ] +myWorkspaces = [ "α" , "β" , "γ" , "δ" , "ε", "ζ", "η", "θ", "ι" ] + +myNormalBorderColor = "#333333" +myFocusedBorderColor = darkBlue + +myFocusFollowsMouse :: Bool +myFocusFollowsMouse = False + +myStatusBar = "conky -c /home/dustinswan/.conky | dzen2 -x '640' -w '640' -ta 'r' -y '0' -bg '#000000'" + +myLogHook h = dynamicLogWithPP $ defaultPP + { ppCurrent = ("·" ++) + , ppVisible = ("." ++) + , ppHidden = dzenColor lightGray dzenBackground . (" " ++) + , ppHiddenNoWindows = dzenColor darkGray dzenBackground . (" " ++) + , ppLayout = (\_ -> "") -- TODO I suck at haskell + , ppOutput = System.IO.hPutStrLn h + , ppTitle = shorten 20 + , ppSep = " | " + , ppWsSep = "" + --, ppExtras = [ date "%a %d %b" ] + } + +main = do + dzenLeftBar <- spawnPipe "dzen2 -w '640' -ta 'l'" + spawn myStatusBar + xmonad $ defaultConfig + { terminal = "urxvtc" + , focusFollowsMouse = myFocusFollowsMouse + , modMask = myModMask + , workspaces = myWorkspaces + , normalBorderColor = myNormalBorderColor + , focusedBorderColor = myFocusedBorderColor + -- hooks + , layoutHook = avoidStruts $ layoutHook defaultConfig + , manageHook = myManageHook + , logHook = myLogHook dzenLeftBar + } + `additionalKeysP` + [ ("M-p", spawn "dmenu_run -fn 'Monospace:pixelsize=11:antialias=false'") + , ("M-S-p", spawn "scrot") + , ("", spawn "amixer sset Master 3%+") + , ("", spawn "amixer sset Master 3%-") + , ("", spawn "amixer sset Master toggle") + ]