Permalink
Browse files

Logging pipes moved out to own directory

  • Loading branch information...
AndrewRadev committed Aug 19, 2010
1 parent 41dba7d commit ee4e33a20422faeed02a258e36550c748ffea05e
Showing with 10 additions and 7 deletions.
  1. +5 −2 lib/Util.hs
  2. 0 pipes/empty
  3. +4 −3 xmobarrc-bottom
  4. +1 −2 xmonad.hs
View
@@ -7,11 +7,14 @@ import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.DynamicHooks
+keypressesPipe = "~/.xmonad/pipes/keypresses"
+statusPipe = "~/.xmonad/pipes/status"
+
logKey key = do
- spawn $ "echo '<fc=#ff0000>[</fc>" ++ key ++ "<fc=#ff0000>]</fc>' >> ~/.xmonad/keypresses-pipe"
+ spawn $ "echo '<fc=#ff0000>[</fc>" ++ key ++ "<fc=#ff0000>]</fc>' >> " ++ keypressesPipe
logStatus message = do
- spawn $ "echo '" ++ message ++ "' >> ~/.xmonad/status-pipe"
+ spawn $ "echo '" ++ message ++ "' >> " ++ statusPipe
spawnLog prog = do
pid <- spawnPID prog
View
No changes.
View
@@ -3,12 +3,13 @@ Config { font = "xft:Terminus:size=12"
, fgColor = "#eeeeee"
, position = BottomW L 90
, lowerOnStart = True
- , commands = [ Run CommandReader "tail -f ~/.xmonad/status-pipe" "log"
- , Run CommandReader "tail -f ~/.xmonad/keypresses-pipe" "keyLog"
+ , commands = [ Run CommandReader "tail -f ~/.xmonad/pipes/status" "actionLog"
+ , Run CommandReader "tail -f ~/.xmonad/pipes/keypresses" "keyLog"
+ , Run CommandReader "tail -f ~/.xmonad/pipes/tests" "testLog"
, Run CommandReader "sh /home/andrew/remind" "remind"
, Run MPD ["-t", "<title> <statei> <bar>"] 10
]
, sepChar = "%"
, alignSep = "}{"
- , template = "%log% }{ %keyLog% %remind% <fc=#ff0000>|</fc>%mpd%<fc=#ff0000>|</fc>"
+ , template = "%actionLog% | %testLog% }{ %keyLog% %remind% <fc=#ff0000>|</fc>%mpd%<fc=#ff0000>|</fc>"
}
View
@@ -22,8 +22,7 @@ customConfig logger = defaultConfig
{ borderWidth = 3
, terminal = "urxvt"
, normalBorderColor = "#cccccc"
--- , normalBorderColor = "#000000"
- , focusedBorderColor = "#ee1111"
+ , focusedBorderColor = "#11ee11"
, focusFollowsMouse = False
, workspaces =
[ "1"

0 comments on commit ee4e33a

Please sign in to comment.