Commits

Toby Davies  committed 545552c

fix missing functions, new layouts, icons in urgency hook popusp

  • Participants
  • Parent commits 913a739

Comments (0)

Files changed (3)

File .xmonad/urgentHook

 #!/bin/bash
 
-CLASS=$(xprop -id $1 '\n$0' "WM_NAME" | tail -1 | sed 's/"\(.*\)"/\1/')
+NAME=$(xprop -id $1 '\n$0' "WM_NAME" | tail -1 | sed 's/"\(.*\)"/\1/')
+CLASS=$(xprop -id $1 '\n$0' "WM_CLASS" | tail -1 | sed 's/"\(.*\)"/\1/')
 
-notify-send -i "$CLASS" "$CLASS" "needs your attention"
+notify-send -i "$CLASS" "$NAME" "needs your attention"

File .xmonad/xmonad.hs

 import XMonad.Util.EZConfig
 import XMonad.Util.Run
 import XMonad.Layout.NoBorders
+import XMonad.Layout.Tabbed
+import XMonad.Layout.Grid
+import XMonad.Layout.ShowWName
 import XMonad.Hooks.UrgencyHook
 
 myModMask = mod4Mask               -- "windows key"
-myNormalBorderColor  = "#000000"
-myFocusedBorderColor = "#ff0080"
+myNormalBorderColor  = "#4f4fff"
+myFocusedBorderColor = "#ff2080"
 myBorderWidth = 2
 myTerminal = "urxvt"
 
   className =? "trayer" -->doShift "9"
   ]
               
-myLayoutHook = smartBorders $ (tiled (9/15) ||| quarter ||| Mirror (tiled (4/5)) ||| Full)
+myLayoutHook = showWName $ smartBorders $ (tiled (9/15) ||| Grid ||| Mirror (tiled (13/15)) ||| simpleTabbedBottom ||| Full)
   where tiled      = Tall nmaster inc 
-        quarter    = Tall 2 inc (1/2)
         nmaster    = 1
-        inc        = 1/15
+        inc        = 1/15
+
 fpath=(~/fbin/ $fpath)
 path=(~/bin $path)
 
-autoload -U colors ~/bin/*[^~#](:t)
+autoload -U colors ~/fbin/*[^~#](:t)
 
 alias visit='noglob visit'
 alias ll='ls -lh --color=auto '