From 2aa0dc1de951a787acffb8b6cbe2ac9599b89e32 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Mon, 2 May 2022 11:21:02 +0930 Subject: [PATCH 1/2] minor updates --- .config/xmobar/xmobarrc-single.hs | 67 ++++++++++++++++--------------- .xmonad/xmonad.hs | 2 + 2 files changed, 37 insertions(+), 32 deletions(-) diff --git a/.config/xmobar/xmobarrc-single.hs b/.config/xmobar/xmobarrc-single.hs index d14b555..d21cf24 100644 --- a/.config/xmobar/xmobarrc-single.hs +++ b/.config/xmobar/xmobarrc-single.hs @@ -14,7 +14,7 @@ Config { -- layout , sepChar = "%" -- delineator between plugin names and straight text , alignSep = "}{" -- separator between left-right alignment - , template = " %cpu% %memory% %network% %volume% | %UnsafeStdinReader% }{ %keyboard% | %date% | %YPAD% | %updates% %trayerpad%" + , template = " %cpu% %memory% %network% %volume% | %UnsafeStdinReader% }{ %keyboard% | %date% | %weather% | %updates% %trayerpad%" -- general behavior , lowerOnStart = True -- send to bottom of window stack on start @@ -38,15 +38,38 @@ Config { -- The --template option controls how the plugin is displayed. Text -- color can be set by enclosing in tags. For more details -- see http://projects.haskell.org/xmobar/#system-monitor-plugins. - , commands = + , commands = + -- cpu activity monitor + [ Run Cpu [ "--template" , "cpu %" + , "--Low" , "30" -- units: % + , "--High" , "60" -- units: % + , "--low" , "#50fa7b" + , "--normal" , "#ffb86c" + , "--high" , "#ff5555" + ] 10 + + -- memory usage monitor + -- , Run Memory [ "--template" ,"mem: % (Mb)" + , Run Memory [ "--template" ,"mem %" + , "--Low" , "20" -- units: % + , "--High" , "70" -- units: % + , "--low" , "#50fa7b" + , "--normal" , "#ffb86c" + , "--high" , "#ff5555" + ] 10 + + -- time and date indicator + -- (%F = y-m-d date, %a = day of week, %T = h:m:s time) + , Run Date "\xf073 %a %_d %b %Y | \xf017 %H:%M:%S" "date" 10 + -- weather monitor - [ Run Weather "YPAD" ["--template" , ": \x00b0C" - , "--Low" , "10" - , "--High" , "25" - , "--normal" , "#50fa7b" - , "--high" , "#ff5555" - , "--low" , "lightblue" - ] 36000 + -- Run Weather "YPAD" ["--template" , ": \x00b0C" + -- , "--Low" , "10" + -- , "--High" , "25" + -- , "--normal" , "#50fa7b" + -- , "--high" , "#ff5555" + -- , "--low" , "lightblue" + -- ] 36000 -- network activity monitor -- , Run Network "enp33s0" [ "--template" , "eth: kB/s kB/s" @@ -72,29 +95,6 @@ Config { -- , "--normal" , "#ffb86c" -- , "--high" , "#ff5555" -- ] 10 - - -- cpu activity monitor - , Run Cpu [ "--template" , "cpu %" - , "--Low" , "30" -- units: % - , "--High" , "60" -- units: % - , "--low" , "#50fa7b" - , "--normal" , "#ffb86c" - , "--high" , "#ff5555" - ] 10 - - -- memory usage monitor - -- , Run Memory [ "--template" ,"mem: % (Mb)" - , Run Memory [ "--template" ,"mem %" - , "--Low" , "20" -- units: % - , "--High" , "70" -- units: % - , "--low" , "#50fa7b" - , "--normal" , "#ffb86c" - , "--high" , "#ff5555" - ] 10 - - -- time and date indicator - -- (%F = y-m-d date, %a = day of week, %T = h:m:s time) - , Run Date "\xf073 %a %_d %b %Y | \xf017 %H:%M:%S" "date" 10 -- keyboard layout indicator -- , Run Kbd [ ("us(dvorak)" , "DV") @@ -131,6 +131,9 @@ Config { -- Script that pulls volume related data and builds string to dislpay , Run Com "xmobar-status-vol" [] "volume" 5 + -- Script that pulls weather related data and builds string to display + , Run Com "xmobar-status-weather" ["YPAD"] "weather" 300 + -- Prints out the left side items such as workspaces, layout, etc. , Run UnsafeStdinReader diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 2d08962..d23b3b6 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -519,6 +519,7 @@ myManageHook = composeAll , className =? "guake" --> doIgnore , className =? "barrier" --> doFloat , className =? "net-runelite-client-RuneLite" --> doFloat + , className =? "processing-app-Base" --> doFloat , className =? "Yad" --> doCenterFloat , className =? "net-runelite-launcher-Launcher" --> doIgnore , className =? "steam_app_221380" --> doIgnore @@ -570,6 +571,7 @@ myStartupHook = do spawnOnce "/usr/lib/kdeconnectd &" spawnOnce "kdeconnect-indicator &" spawnOnce "dunst &" -- notification daemon + spawnOnce "nm-applet" -- Startup Applications spawnOnce "nextcloud &" From ef0f3b958ca94faae96754669720436d98716616 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Mon, 2 May 2022 11:24:09 +0930 Subject: [PATCH 2/2] updated date format to iso --- .config/xmobar/xmobarrc-single.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/xmobar/xmobarrc-single.hs b/.config/xmobar/xmobarrc-single.hs index d21cf24..e9f3b23 100644 --- a/.config/xmobar/xmobarrc-single.hs +++ b/.config/xmobar/xmobarrc-single.hs @@ -60,7 +60,7 @@ Config { -- time and date indicator -- (%F = y-m-d date, %a = day of week, %T = h:m:s time) - , Run Date "\xf073 %a %_d %b %Y | \xf017 %H:%M:%S" "date" 10 + , Run Date "\xf073 %a %Y-%m-%d | \xf017 %H:%M:%S" "date" 10 -- weather monitor -- Run Weather "YPAD" ["--template" , ": \x00b0C"