Messing around

This commit is contained in:
Josh Sherman 2012-03-10 18:34:50 -05:00
parent b0e87165cd
commit f030d37c28
5 changed files with 73 additions and 32 deletions

5
xmonad/bin/getcoretemp.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
temp1=`cat /sys/devices/platform/coretemp.0/temp2_input`
temp2=`cat /sys/devices/platform/coretemp.0/temp3_input`
echo `expr $temp1 / 1000`C `expr $temp2 / 1000`C

18
xmonad/bin/getvolume.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
str=`amixer sget Master,0`
str1=${str#Simple*\[}
v1=${str1%%]*]}
il=`expr index "$str1" [`
o="off"
mutel=''
if [ ${str1:$il:3} == $o ]; then mutel='M'; fi
s=${str1:0:1}
str2=${str1#${str1:0:1}*\[}
str1=$str2
str2=${str1#${str1:0:1}*\[}
ir=`expr index "$str2" [`
muter=''
if [ ${str2:$il:3} = $o ]; then muter='M'; fi
v2=${str2%%]*]}
v=${v1}\ $mutel\ ${v2}\ $muter
echo $v

View file

@ -3,20 +3,27 @@
-- http://github.com/vicfryzel/xmonad-config
Config {
font = "xft:Fixed-11"
bgColor = "#000000",
fgColor = "#ffffff",
position = TopW L 90,
lowerOnStart = True,
commands = [
Run Weather "KTPA" ["-t","<tempF>F <skyCondition>","-L","64","-H","77","-n","#CEFFAC","-h","#FFB6B0","-l","#96CBFE"] 36000,
Run MultiCpu ["-t","CPU <total0> <total1> <total2> <total3>","-L","30","-H","60","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC","-w","3"] 10,
Run Memory ["-t","MEM <usedratio>%","-H","8192","-L","4096","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC"] 10,
Run Swap ["-t","SWP <usedratio>%","-H","1024","-L","512","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC"] 10,
Run Date "%a %b %e %T" "date" 10,
Run StdinReader
],
sepChar = "%",
alignSep = "}{",
template = "%StdinReader% }{ %multicpu% <fc=#FFB6B0>:</fc> %memory% <fc=#FFB6B0>:</fc> %KTPA% <fc=#FFB6B0>:</fc> <fc=#FFFFCC>%date%</fc> "
-- font = "-*-fixed-*-*-*-*-12-*-*-*-*-*-*-*"
--font = "xft:Fixed-11"
-- font = "xft:Monospace-11",
font = "xft:Ubuntu Mono-11",
bgColor = "#000000",
fgColor = "#ffffff",
position = TopW L 90,
lowerOnStart = True,
commands = [
Run Weather "KTPA" ["-t","<tempF>F <skyCondition>","-L","64","-H","77","-n","#CEFFAC","-h","#FFB6B0","-l","#96CBFE"] 36000,
--Run MultiCpu ["-t","CPU <total0> <total1> <total2> <total3>","-L","30","-H","60","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC","-w","3"] 10,
Run MultiCpu ["-t","CPU <total0> <total1> <total2> <total3>","-L","30","-H","60","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC"] 10,
-- Run CoreTemp ["-t", "C C", "-L", "40", "-H", "60", "-l", "lightblue", "-n", "white", "-h", "red"] 50,
Run Memory ["-t","MEM <usedratio>%","-H","8192","-L","4096","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC"] 10,
Run Swap ["-t","SWP <usedratio>%","-H","1024","-L","512","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC"] 10,
-- Run Com "/home/josh/.xmonad/bin/getvolume.sh" [] "myVolume" 10,
Run Date "%a %b %_d %T" "date" 10,
Run StdinReader
],
sepChar = "%",
alignSep = "}{",
-- template = "%StdinReader% }{ %multicpu% <fc=#FFB6B0>:</fc> %memory% <fc=#FFB6B0>:</fc> %KTPA% <fc=#FFB6B0>:</fc> <fc=#FFFFCC>%date%</fc> "
template = "%StdinReader% }{ %multicpu% <fc=#FFB6B0>:</fc> %memory% <fc=#FFB6B0>:</fc> %KTPA% <fc=#FFB6B0>:</fc> <fc=#FFFFCC>%date%</fc> "

View file

@ -39,7 +39,7 @@ myTerminal = "/usr/bin/gnome-terminal"
-- Workspaces
-- The default number of workspaces (virtual screens) and their names.
--
myWorkspaces = ["1:cli","2:www","3:mail","4:snd","5:vm"] ++ map show [6..9]
myWorkspaces = ["1:cli","2:web","3:mail","4:music","5:vm"] ++ map show [6..9]
------------------------------------------------------------------------
@ -57,13 +57,13 @@ myWorkspaces = ["1:cli","2:www","3:mail","4:snd","5:vm"] ++ map show [6..9]
-- 'className' and 'resource' are used below.
--
myManageHook = composeAll
[ resource =? "chromium-browser" --> doShift "2:www"
[ resource =? "chromium-browser" --> doShift "2:web"
, resource =? "desktop_window" --> doIgnore
, className =? "Firefox" --> doShift "2:www"
, className =? "Empathy" --> doShift "2:www"
, className =? "Firefox" --> doShift "2:web"
, className =? "Empathy" --> doShift "2:web"
, className =? "Galculator" --> doFloat
, className =? "Gimp" --> doFloat
, className =? "Google-chrome" --> doShift "2:www"
, className =? "Google-chrome" --> doShift "2:web"
, className =? "Thunderbird" --> doShift "3:mail"
, resource =? "gpicview" --> doFloat
, resource =? "kdesktop" --> doIgnore
@ -71,8 +71,8 @@ myManageHook = composeAll
, resource =? "skype" --> doShift "6"
, resource =? "nm-connection-editor" --> doFloat
, className =? "VirtualBox" --> doShift "5:vm"
, className =? "Rhythmbox" --> doShift "4:snd"
, className =? "Banshee" --> doShift "4:snd"
, className =? "Rhythmbox" --> doShift "4:music"
, className =? "Banshee" --> doShift "4:music"
, className =? "Agave" --> doFloat]
@ -95,15 +95,25 @@ grid = spacing 2 $ Grid
web = spacing 2 $ Tall 1 (3/100) (80/100)
full = noBorders $ Full
myLayout = avoidStruts (onWorkspace "2:www" web tiled ||| grid ||| full)
myLayout = avoidStruts (onWorkspace "2:web" web tiled ||| grid ||| full)
{- myLayout = avoidStruts ( -}
{- Tall 1 (3/100) (1/2) ||| -}
{- Mirror (Tall 1 (3/100) (1/2)) ||| -}
{- tabbed shrinkText tabConfig ||| -}
{- Full ||| -}
{- spiral (6/7)) -}
{-
myLayout = avoidStruts (
Tall 1 (3/100) (1/2) |||
Mirror (Tall 1 (3/100) (1/2)) |||
tabbed shrinkText tabConfig |||
Full |||
spiral (6/7))
-}
{-
myLayout = avoidStruts (
Tall 1 (3/100) (1/2) |||
Mirror (Tall 1 (3/100) (1/2)) |||
tabbed shrinkText tabConfig |||
Full |||
spiral (6/7))
-}
------------------------------------------------------------------------
-- Colors and borders

View file

@ -36,8 +36,6 @@ chromium-browser &
#firefox &
shutter --min_at_startup &
tomboy &
#gnote &
naturalscrolling &
#dropbox start -i
@ -52,3 +50,6 @@ gnome-settings-daemon &
gsettings set org.gnome.desktop.background picture-uri ""
exec ssh-agent dbus-launch --sh-syntax --exit-with-session xmonad
tomboy &
#gnote &