summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2017-09-27 12:42:16 +0200
committerNikolaus Gotsche <n@softwarefools.com>2017-09-27 12:42:16 +0200
commitade296253bce9c1f629606a4ff8ff3f5e11828eb (patch)
tree01a467ab5b86495e51a96579e94bdba926c34ab2
parentb24ea22672a06d8924b3afb9ef3753292eab27e4 (diff)
xMobar - Weather finally working (v0.24.3)HEADmaster
-rw-r--r--xmobarrc30
-rw-r--r--xmonad.hs20
2 files changed, 40 insertions, 10 deletions
diff --git a/xmobarrc b/xmobarrc
index 63160f2..9f4f61f 100644
--- a/xmobarrc
+++ b/xmobarrc
@@ -7,21 +7,45 @@ Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
, fgColor = "grey"
, alpha = 150
, position = TopW L 93
- , commands = [ Run Weather "LOWW" ["-t","<tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 10
+ , commands = [ Run Weather "LOWW" ["-t","<tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 600
, Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10
, Run Network "eth1" ["-L","0","-H","32","--normal","green","--high","red"] 10
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
+ , Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
+ , "--Low" , "1000" -- units: B/s
+ , "--High" , "5000" -- units: B/s
+ , "--low" , "darkgreen"
+ , "--normal" , "darkorange"
+ , "--high" , "darkred"
+ ] 10
+ -- cpu activity monitor
+ , Run MultiCpu [ "--template" , "Cpu: <total0>%/<total1>%"
+ , "--Low" , "50" -- units: %
+ , "--High" , "85" -- units: %
+ , "--low" , "darkgreen"
+ , "--normal" , "darkorange"
+ , "--high" , "darkred"
+ ] 10
+ -- cpu core temperature monitor
+ , Run CoreTemp [ "--template" , "Temp: <core0>°C|<core1>°C"
+ , "--Low" , "70" -- units: °C
+ , "--High" , "80" -- units: °C
+ , "--low" , "darkgreen"
+ , "--normal" , "darkorange"
+ , "--high" , "darkred"
+ ] 50
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Swap [] 10
, Run Com "uname" ["-s","-r"] "" 36000
, Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
, Run Battery ["-t","<acstatus>: <left>%","--","-O", "AC","-o", "Bat","-h","green","-l","red"] 10
- , Run Com "/bin/bash" ["-c", "~/.xmonad/get-volume"] "myvolume" 10
+ , Run Com "/bin/bash" ["-c", "~/scripts/get-volume"] "myvolume" 10
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
- , template = "%StdinReader% }{ %cpu% | %memory% * %swap% | %battery% | Vol: %myvolume% | <fc=#ee9a00>%date%</fc> "
+ , template = "%StdinReader% }{ %multicpu% | %memory% * %swap% | %dynnetwork% | %battery% | Vol: %myvolume% | %LOWW% | <fc=#ee9a00>%date%</fc> "
+-- , template = "%StdinReader% }{ %cpu% | %memory% * %swap% | %battery% | Vol: %myvolume% | %LOWW% | <fc=#ee9a00>%date%</fc> "
-- , template = "%StdinReader% | %cpu% | %memory% * %swap% | %battery% | Vol: %myvolume% | %eth0% - %eth1% }{<fc=#ee9a00>%date%</fc> | %uname% | %LOWW% "
}
diff --git a/xmonad.hs b/xmonad.hs
index 3960fac..2f2dc5e 100644
--- a/xmonad.hs
+++ b/xmonad.hs
@@ -106,8 +106,14 @@ defaultLayouts = smartBorders(avoidStruts(
||| Grid))
chatLayout = avoidStruts(withIM (1%7) (Title myIMRosterTitle) Grid)
+--gimpLayout = avoidStruts(ThreeColMid gimpMainWindow (3/100) (3/4))
gimpLayout = smartBorders(avoidStruts(ThreeColMid 1 (3/100) (3/4)))
-
+--gimpLayout = withIM (1/6) gimpMainWindow Grid
+--gimpLayout = withIM (1/6) gimpMainWindow Grid
+gimpMainWindow = (And (Resource "gimpi-2.8")
+ (Not (Or (Title "Layers - Brushes")
+ (Role "gimp-image-window"))))
+
myLayouts =
onWorkspace "7:Comm" chatLayout
$ onWorkspace "3:Pix" gimpLayout
@@ -119,9 +125,9 @@ myKeyBindings =
, ((myModMask, xK_a), sendMessage MirrorShrink)
, ((myModMask, xK_z), sendMessage MirrorExpand)
-- , ((myModMask, xK_x), spawn "screenshot")
- , ((0, xK_Print), spawn "/home/nick/scripts/screenshot")
- , ((myModMask .|. controlMask, xK_Print), spawn "/home/nick/scripts/windowshot")
- , ((myModMask, xK_Print), spawn "/home/nick/scripts/fullestscreen")
+ , ((0, xK_Print), spawn "~/scripts/screenshot")
+ , ((myModMask .|. controlMask, xK_Print), spawn "~/scripts/windowshot")
+ , ((myModMask, xK_Print), spawn "~/scripts/fullestscreen")
-- , ((myModMask, xK_p), spawn "synapse")
-- , ((myModMask .|. mod1Mask, xK_space), spawn "synapse")
, ((myModMask, xK_u), focusUrgent)
@@ -131,9 +137,9 @@ myKeyBindings =
-- , ((0, xK_F8), spawn "set-volume M")
-- , ((myModMask, xK_F9), spawn "set-volume -")
-- , ((0, XF86AudioRaiseVolume), spawn -volume +")
- , ((0, 0x1008FF12), spawn "/home/nick/scripts/set-volume M")
- , ((0, 0x1008FF11), spawn "/home/nick/scripts/set-volume -")
- , ((0, 0x1008FF13), spawn "/home/nick/scripts/set-volume +")
+ , ((0, 0x1008FF12), spawn "~/scripts/set-volume M")
+ , ((0, 0x1008FF11), spawn "~/scripts/set-volume -")
+ , ((0, 0x1008FF13), spawn "~/scripts/set-volume +")
]
myManagementHooks :: [ManageHook]