Fixing up some more xmonad settings, conky, dzen2, switching fonts in Xresources again to Tamsynmod, etc

master
Dustin Swan 12 years ago
parent d0bb374e72
commit c7dc95d6d8

@ -3,6 +3,7 @@
!Xft.antialias: false !Xft.antialias: false
!Xft.dpi: 80 !Xft.dpi: 80
!Xft.rgba: rgb !Xft.rgba: rgb
Xft*font: Tamsynmod:Regular:pixelsize=14
! dzen2 ! dzen2
dzen2*foreground: #ffffff dzen2*foreground: #ffffff

@ -0,0 +1,17 @@
#!/bin/sh
#screen
SCRH=`xrandr | awk '/current/ { print $8 }'`
SCRW=`xrandr | awk '/current/ { print $10 }' | sed 's/,//'`
#SCRW=${SCRW%\.}
#gif
IMGHW=`gifsicle --info $1 | awk '/logical/ { print $3 }'`
IMGH=${IMGHW%x*}
IMGW=${IMGHW#*x}
#position
POSH=$((($SCRH/2)-($IMGH/2)))
POSW=$((($SCRW/2)-($IMGW/2)))
xwinwrap -g ${IMGHW}+${POSH}+${POSW} -ov -ni -s -nf -- gifview -w WID $1 -a

14
conky

@ -7,10 +7,10 @@ update_interval 1
#± ${weather 'http://weather.noaa.gov/pub/data/observations/metar/stations/' 'KORD' temperature} \ #± ${weather 'http://weather.noaa.gov/pub/data/observations/metar/stations/' 'KORD' temperature} \
TEXT TEXT
^fg(slate gray)Ú^fg() ^fg(white)${downspeedf eth0}KiB ^fg()\ ^fg(\#66aaff)Ú^fg() ^fg(white)${downspeedf eth0}KiB ^fg()\
^fg(slate gray)Û^fg() ^fg(white)${upspeedf eth0}KiB ^fg()\ ^fg(\#66aaff)Û^fg() ^fg(white)${upspeedf eth0}KiB ^fg()\
^fg(slate gray)ê^fg() ^fg(white)${mixer vol}% ^fg()\ ^fg(\#66aaff)í^fg() ^fg(white)${mixer vol}% ^fg()\
^fg(slate gray)¡^fg() ^fg(white)${battery_percent}% ^fg()\ ^fg(\#66aaff)¡^fg() ^fg(white)${battery_percent}% ^fg()\
^fg(slate gray)Ñ^fg() ^fg(white)${cpu}% ^fg()\ ^fg(\#66aaff)Ñ^fg() ^fg(white)${cpu}% ^fg()\
^fg(slate gray)Î^fg() ^fg(white)${memperc}% ^fg()\ ^fg(\#66aaff)Î^fg() ^fg(white)${memperc}% ^fg()\
^fg(slate gray)É^fg() ^fg(white)${time %d %b %R}^fg() \ ^fg(\#66aaff)É^fg() ^fg(white)${time %d %b %R}^fg() \

@ -1,7 +1,7 @@
xrdb ~/.Xresources & xrdb ~/.Xresources &
setxkbmap dvorak setxkbmap dvorak
setxkbmap -option ctrl:nocaps setxkbmap -option ctrl:nocaps
xsetroot -cursor_name left_ptr & xsetroot bg black -cursor_name left_ptr &
xmodmap .Xmodmap & xmodmap .Xmodmap &
urxvtd -q -o -f & urxvtd -q -o -f &
#compton -cGb & #compton -cGb &
@ -10,6 +10,6 @@ compton &
dropboxd & dropboxd &
feh --bg-fill ~/Dropbox/Photos/wallpaper/cycloid.gif feh --bg-fill ~/Dropbox/Photos/wallpaper/cycloid.gif
# gifview --animate --new-window root ~/Dropbox/Photos/wallpaper/cycloid.gif # ~/dotfiles/bin/animated_wallpaper.sh ~/Dropbox/Photos/wallpaper/cycloid.gif &
exec xmonad exec xmonad

@ -26,10 +26,11 @@ myManageHook = composeAll
, resource =? "feh" --> doFloat , resource =? "feh" --> doFloat
] ]
--myWorkspaces = [ "!" , "@" , "#" , "$" , "%", "^^", "&", "*", "(" ]
myWorkspaces = [ "1" , "2" , "3" , "4" , "5", "6", "7", "8", "9" ] myWorkspaces = [ "1" , "2" , "3" , "4" , "5", "6", "7", "8", "9" ]
--myWorkspaces = [ "α" , "β" , "γ" , "δ" , "ε", "ζ", "η", "θ", "ι" ] --myWorkspaces = [ "α" , "β" , "γ" , "δ" , "ε", "ζ", "η", "θ", "ι" ]
myNormalBorderColor = "#333333" myNormalBorderColor = "#000000"
myFocusedBorderColor = darkBlue myFocusedBorderColor = darkBlue
myFocusFollowsMouse :: Bool myFocusFollowsMouse :: Bool
@ -39,15 +40,16 @@ myStatusBar = "conky -c /home/dustinswan/.conky | dzen2 -x '640' -w '640' -ta 'r
myLogHook h = dynamicLogWithPP $ defaultPP myLogHook h = dynamicLogWithPP $ defaultPP
{ -- ppCurrent = (">" ++) { -- ppCurrent = (">" ++)
ppCurrent = dzenColor lightBlue dzenBackground . wrap "" " " --ppCurrent = dzenColor lightBlue dzenBackground . wrap "" " "
ppCurrent = dzenColor lightBlue dzenBackground . wrap "Ø" ""
, ppVisible = ("." ++) , ppVisible = ("." ++)
, ppHidden = dzenColor lightGray dzenBackground . wrap "" " " , ppHidden = dzenColor lightGray dzenBackground . wrap " " ""
, ppHiddenNoWindows = dzenColor darkGray dzenBackground . wrap "" " " , ppHiddenNoWindows = dzenColor darkGray dzenBackground . wrap " " ""
, ppLayout = (\_ -> "") -- TODO I suck at haskell , ppLayout = (\_ -> "") -- TODO I suck at haskell
, ppOutput = System.IO.hPutStrLn h , ppOutput = System.IO.hPutStrLn h
, ppTitle = shorten 20 , ppTitle = shorten 20
, ppSep = "" , ppSep = " "
, ppWsSep = "" , ppWsSep = " "
--, ppExtras = [ date "%a %d %b" ] --, ppExtras = [ date "%a %d %b" ]
} }
@ -72,4 +74,5 @@ main = do
, ("<XF86AudioRaiseVolume>", spawn "amixer sset Master 3%+") , ("<XF86AudioRaiseVolume>", spawn "amixer sset Master 3%+")
, ("<XF86AudioLowerVolume>", spawn "amixer sset Master 3%-") , ("<XF86AudioLowerVolume>", spawn "amixer sset Master 3%-")
, ("<XF86AudioMute>", spawn "amixer sset Master toggle") , ("<XF86AudioMute>", spawn "amixer sset Master toggle")
, ("<XF86Eject>", spawn "eject")
] ]

Loading…
Cancel
Save