Created
July 25, 2012 03:19
-
-
Save serialhex/3174169 to your computer and use it in GitHub Desktop.
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
alignment top_left | |
background yes # fork process | |
color0 00FF00 # section header | |
double_buffer yes # may reduce flicker | |
default_color BBBBBB | |
draw_outline no # draw text outline | |
draw_shades yes # draw shades | |
gap_x 10 # right (x) / top (y) screen-gaps | |
gap_y 45 | |
own_window yes # required with nautilus | |
own_window_type override | |
own_window_transparent yes | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager | |
update_interval 3.0 # update interval in seconds | |
use_spacer yes # prevent shifting when output changes | |
use_xft yes # font settings | |
xftalpha 0.8 | |
xftfont andale mono:size=8 | |
uppercase no | |
# Note: cpugraph, downspeedgraph, & upspeedgraph colors | |
# Gradient1: ffffff - white | |
# Gradient2: 00A2FF - bright / light blue | |
TEXT # the following creates onscreen format | |
#${image /home/serialhex/PIIX/conkybg.png -n} | |
# preamble | |
${color0}COMPUTER > ${nodename} ${machine} ${hr 1}$color | |
Uptime : ${uptime} | |
System Time : ${time} | |
UTC Time : ${utime} | |
Entropy : $entropy_avail $entropy_bar | |
${color0}CPU > ${freq}MHz ${hr 1}$color | |
Avg. Load Over 1, 5, 15 minutes: ${loadavg} | |
Current Load: ${cpu cpu1}% ${cpu cpu2}% ${cpu cpu3}% ${cpu cpu4}% $cpubar | |
${cpugraph 15,310 ffffff 00A2FF} | |
#CPU: 1) ${cpugauge cpu1} 2) ${cpugauge cpu2} 3) ${cpugauge cpu3} 4) ${cpugauge cpu4} | |
${color0}POWER > $battery_time ${hr 1}$color | |
BATTERY: $battery${alignr}${battery_bar 6,130} | |
${color0}PROCESSES > ${processes} / ${running_processes} ${hr 1}$color | |
NAME PID CPU% MEM% | |
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} | |
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} | |
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} | |
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} | |
${color0}MEMORY / SWAP > $memmax / $swapmax ${hr 1}$color | |
RAM : $mem / $memperc%${alignr}${membar 6,130} | |
Swap: $swap / $swapperc%${alignr}${swapbar 6,130} | |
${color0}DISK > /dev/sda ${hr 1}$color | |
/ (sda3): ${fs_free /} / ${fs_free_perc /}% ${fs_bar 6 /} | |
/home (sda4): ${fs_free /home} / ${fs_free_perc /home}% ${fs_bar 6 /home} | |
Disk I/O : ${diskio_read}/ ${diskio_write} | |
swap (sda2): ${diskio_read /dev/sda2}/ ${diskio_write /dev/sda2} | |
/ (sda3): ${diskio_read /dev/sda3}/ ${diskio_write /dev/sda3} | |
/home (sda4): ${diskio_read /dev/sda4}/ ${diskio_write /dev/sda4} | |
usb (sdb*): ${diskio_read /dev/sdb}/ ${diskio_write /dev/sdb} | |
${diskiograph_read 15,150 ffffff 00A2FF -t -l} ${diskiograph_write 15,150 ffffff 00A2FF -t -l} | |
#Reads : ${diskio_read}${alignr}${diskiograph_read 15,150 ffffff 00A2FF -t -l} | |
#Writes : ${diskio_write}${alignr}${diskiograph_write 15,150 ffffff 00A2FF -t -l} | |
${color0}WIRELESS > ${addr wlan0} ${hr 1}$color | |
ESSID : ${wireless_essid wlan0} | |
Mode : ${wireless_mode wlan0} | |
AP : ${wireless_ap wlan0} | |
Bitrate : ${wireless_bitrate wlan0} - Qual: ${alignr}${wireless_link_bar 6,130 wlan0} | |
${downspeedgraph wlan0 15,150 ffffff 00A2FF -t -l} ${upspeedgraph wlan0 15,150 ffffff 00A2FF -t -l} | |
Down / Up Speed: ${downspeed wlan0} k/s / ${upspeed wlan0} k/s | |
Down / Up Bytes: ${totaldown wlan0} / ${totalup wlan0} | |
Inbound / Outbound / Total: ${tcp_portmon 1 32767 count} / ${tcp_portmon 32768 61000 count} / ${tcp_portmon 1 65535 count} | |
${color0}WIRED > ${addr eth0} ${hr 1}$color | |
${downspeedgraph eth0 15,150 ffffff 00A2FF -l -t} ${upspeedgraph eth0 15,150 ffffff 00A2FF -l -t} | |
Down / Up Speed: ${downspeed eth0}/s / ${upspeed eth0}/s | |
Down / Up Bytes: ${totaldown eth0} / ${totalup eth0} | |
Inbound / Outbound / Total: ${tcp_portmon 1 32767 count} / ${tcp_portmon 32768 61000 count} / ${tcp_portmon 1 65535 count} | |
#${color0}SENSORS ${hr 1}$color | |
#CPU Temp: ${hwmon hwmon0 temp 1} C CPU Fan : ${platform it87.3328 fan 1} RPM | |
#M/B Temp: ${platform it87.3328 temp 2} C M/B Fan : ${platform it87.3328 fan 3} RPM | |
#CPU Temp: ${platform k10temp-pci-00c3 temp 1} C CPU Fan : ${platform it87.3328 fan 1} RPM | |
#M/B Temp: ${platform it87.3328 temp 2} C M/B Fan : ${platform it87.3328 fan 3} RPM | |
#${execi 60 tail -1 ~/.zzlog/smart/sda.log} | |
#${execi 60 tail -1 ~/.zzlog/smart/sdb.log} | |
#${execi 60 tail -1 ~/.zzlog/smart/sdc.log} | |
#${execi 30 sensors |grep VCore |cut -c1-18} | |
#${execi 30 sensors |grep Graphics |cut -c1-18} |
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
╭─serialhex@multi-hex ~ ‹ruby-1.9.3› | |
╰─$ cat .xinitrc | |
#!/bin/sh | |
# | |
# ~/.xinitrc | |
# | |
# Executed by startx (run your window manager from here) | |
if [ -d /etc/X11/xinit/xinitrc.d ]; then | |
for f in /etc/X11/xinit/xinitrc.d/*; do | |
[ -x "$f" ] && . "$f" | |
done | |
unset f | |
fi | |
# exec gnome-session | |
# exec startkde | |
# exec startxfce4 | |
# ...or the Window Manager of your choice | |
# | |
# stuff for xfce | |
# | |
#exec ck-launch-session dbus-launch startxfce4 | |
# | |
# using rox... | |
# | |
#rox -b Default -p default ; exec ck-launch-session dbus-launch startxfce4 | |
# | |
# using kde | |
# | |
#exec ck-launch-session dbus-launch startkde | |
######## | |
# stuff for xmonad | |
######## | |
# load resources | |
#xrdb -merge .Xresources | |
# set up an icon tray | |
trayer --edge top --align right --SetDockType true --SetPartialStrut true \ | |
--expand true --width 10 --transparent true --tint 0x191970 --height 12 & | |
# set the cursor | |
xsetroot -solid midnightblue -cursor_name left_ptr | |
# fire up apps... | |
xscreensaver -no-splash & | |
# set bg | |
#bgset.rb & | |
fbsetbg -l | |
conky | |
# start xmonad | |
#xmonad | |
# or try: | |
exec ck-launch-session xmonad |
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
╭─serialhex@multi-hex ~ ‹ruby-1.9.3› | |
╰─$ cat .xmonad/xmonad.hs | |
import XMonad | |
-- layouts | |
import XMonad.Layout | |
import XMonad.Layout.Circle | |
import XMonad.Layout.Tabbed | |
import XMonad.Layout.Accordion | |
import XMonad.Layout.Spiral | |
import XMonad.Layout.OneBig | |
import XMonad.Layout.Dishes | |
import XMonad.Layout.Roledex | |
import XMonad.Layout.CenteredMaster | |
import XMonad.Layout.Grid | |
-- | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeys) | |
import System.IO | |
myManageHook = composeAll | |
-- use `xprop | grep WM_CLASS` ...the 2nd prop | |
[ className =? "Vncviewer" --> doFloat | |
--, className =? "Gimp" --> doFloat | |
, className =? "Kmix" --> doFloat | |
, className =? "Pidgin" --> doFloat | |
, className =? "Dolphin" --> doFloat | |
, className =? "Exe" --> doFloat | |
, className =? "Open File" --> doFloat | |
, className =? "Kcalc" --> doFloat | |
, className =? "Wicd-client.py" --> doFloat | |
] | |
myLayout = tiled ||| OneBig (7/10) (8/10) ||| Dishes 2 (1/3) ||| Full ||| Circle ||| spiral (6/7) ||| centerMaster Grid | |
where | |
tiled = Tall nmaster delta ratio | |
nmaster = 1 -- default # windows in master | |
-- default proportion of screen occupied by master | |
ratio = toRational (2/(1+sqrt(5)::Double)) -- golden ratio | |
delta = 0.03 | |
main = do | |
xmproc <- spawnPipe "/usr/bin/xmobar /home/serialhex/.xmobarrc" | |
xmonad $ defaultConfig | |
{ terminal = "lilyterm" -- use lilyterm | |
, manageHook = manageDocks <+> myManageHook | |
<+> manageHook defaultConfig | |
, layoutHook = avoidStruts $ myLayout | |
, logHook = dynamicLogWithPP xmobarPP | |
{ ppOutput = hPutStrLn xmproc | |
, ppTitle = xmobarColor "green" "" . shorten 50 | |
} | |
, modMask = mod4Mask -- Rebind Mod to the Windows key | |
} `additionalKeys` | |
[ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock") | |
, ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s") | |
, ((0, xK_Print), spawn "scrot") | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment