From 325c74be916bae23ffddbc92e60667bf49593d8b Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 3 Dec 2021 23:09:28 +0100 Subject: [PATCH] Small xmobar redesign --- home/.config/xmobar/xmobarrc.hs | 21 +++++++++++++++------ home/.config/xmobar/xmobarrc0 | 21 +++++++++++++++------ home/.config/xmobar/xmobarrc1 | 21 +++++++++++++++------ 3 files changed, 45 insertions(+), 18 deletions(-) diff --git a/home/.config/xmobar/xmobarrc.hs b/home/.config/xmobar/xmobarrc.hs index 8fa4d71..85f6d93 100644 --- a/home/.config/xmobar/xmobarrc.hs +++ b/home/.config/xmobar/xmobarrc.hs @@ -33,13 +33,13 @@ commands = [ -- Gather and format CPU usage information -- if it's above 50%, we consider it high and make it red Run Cpu [ - "-t", "\xf108 cpu: %", + "-t", "\xf2db %", "-H","50", "--high","red" ] 20, -- Ram used number and percent - Run Memory ["-t", "\xf233 mem: M (%)"] 20, + Run Memory ["-t", "\xf538 M (%)"] 20, -- Battery information. This is likely to require some customization -- based upon your specific hardware. Or, for a desktop you may want @@ -59,15 +59,21 @@ commands = [ Run Date "\xf017 %H:%M %b %d %Y" "date" 50, -- Network up and down - Run Network "wlp2s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, + --Run Network "wlp4s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, --Run Network "enp3s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, + -- Uptime + Run Uptime ["-t", "\xf011 d h"] 360, + -- Show free disk space on / - Run DiskU [("/", "\xf0c7 hdd: ")] [] 60, + Run DiskU [("/", "\xf0c7 ")] [] 60, -- Get kernel version from uname -r Run Com "uname" ["-r"] "" 3600, + -- Volume info + Run Volume "default" "Master" ["-t", "\xf028 %"] 5, + -- Get bitcoin price from a custom script Run Com "/home/itsdrike/.local/bin/scripts/bitcoin" [] "bitcoin" 300, @@ -96,17 +102,20 @@ template = "\ \ \ \| %UnsafeStdinReader% }{ \ \|  %uname% \ - \| %cpu% \ \| %memory% \ \| %disku% \ + \| %cpu% \ + \| %default:Master% \ + \| %uptime% \ \|  %bitcoin% \ - \| %wlp2s0% \ \| %date% \ \| %trayerpad%\ \ " } -- Abandoned template strings +-- Network Wifi: +-- \| %wlp4s0% \ -- Network Ethernet: -- \| %enp3s0% \ -- Battery: diff --git a/home/.config/xmobar/xmobarrc0 b/home/.config/xmobar/xmobarrc0 index 8fa4d71..85f6d93 100644 --- a/home/.config/xmobar/xmobarrc0 +++ b/home/.config/xmobar/xmobarrc0 @@ -33,13 +33,13 @@ commands = [ -- Gather and format CPU usage information -- if it's above 50%, we consider it high and make it red Run Cpu [ - "-t", "\xf108 cpu: %", + "-t", "\xf2db %", "-H","50", "--high","red" ] 20, -- Ram used number and percent - Run Memory ["-t", "\xf233 mem: M (%)"] 20, + Run Memory ["-t", "\xf538 M (%)"] 20, -- Battery information. This is likely to require some customization -- based upon your specific hardware. Or, for a desktop you may want @@ -59,15 +59,21 @@ commands = [ Run Date "\xf017 %H:%M %b %d %Y" "date" 50, -- Network up and down - Run Network "wlp2s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, + --Run Network "wlp4s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, --Run Network "enp3s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, + -- Uptime + Run Uptime ["-t", "\xf011 d h"] 360, + -- Show free disk space on / - Run DiskU [("/", "\xf0c7 hdd: ")] [] 60, + Run DiskU [("/", "\xf0c7 ")] [] 60, -- Get kernel version from uname -r Run Com "uname" ["-r"] "" 3600, + -- Volume info + Run Volume "default" "Master" ["-t", "\xf028 %"] 5, + -- Get bitcoin price from a custom script Run Com "/home/itsdrike/.local/bin/scripts/bitcoin" [] "bitcoin" 300, @@ -96,17 +102,20 @@ template = "\ \ \ \| %UnsafeStdinReader% }{ \ \|  %uname% \ - \| %cpu% \ \| %memory% \ \| %disku% \ + \| %cpu% \ + \| %default:Master% \ + \| %uptime% \ \|  %bitcoin% \ - \| %wlp2s0% \ \| %date% \ \| %trayerpad%\ \ " } -- Abandoned template strings +-- Network Wifi: +-- \| %wlp4s0% \ -- Network Ethernet: -- \| %enp3s0% \ -- Battery: diff --git a/home/.config/xmobar/xmobarrc1 b/home/.config/xmobar/xmobarrc1 index d9d7a09..21bb706 100644 --- a/home/.config/xmobar/xmobarrc1 +++ b/home/.config/xmobar/xmobarrc1 @@ -33,13 +33,13 @@ commands = [ -- Gather and format CPU usage information -- if it's above 50%, we consider it high and make it red Run Cpu [ - "-t", "\xf108 cpu: %", + "-t", "\xf2db %", "-H","50", "--high","red" ] 20, -- Ram used number and percent - Run Memory ["-t", "\xf233 mem: M (%)"] 20, + Run Memory ["-t", "\xf538 M (%)"] 20, -- Battery information. This is likely to require some customization -- based upon your specific hardware. Or, for a desktop you may want @@ -59,15 +59,21 @@ commands = [ Run Date "\xf017 %H:%M %b %d %Y" "date" 50, -- Network up and down - Run Network "wlp2s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, + --Run Network "wlp4s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, --Run Network "enp3s0" ["-t", "\xf0ab kb \xf0aa kb"] 20, + -- Uptime + Run Uptime ["-t", "\xf011 d h"] 360, + -- Show free disk space on / - Run DiskU [("/", "\xf0c7 hdd: ")] [] 60, + Run DiskU [("/", "\xf0c7 ")] [] 60, -- Get kernel version from uname -r Run Com "uname" ["-r"] "" 3600, + -- Volume info + Run Volume "default" "Master" ["-t", "\xf028 %"] 5, + -- Get bitcoin price from a custom script Run Com "/home/itsdrike/.local/bin/scripts/bitcoin" [] "bitcoin" 300, @@ -95,16 +101,19 @@ template = "\ \ \ \| %UnsafeStdinReader% }{ \ \|  %uname% \ - \| %cpu% \ \| %memory% \ \| %disku% \ + \| %cpu% \ + \| %default:Master% \ + \| %uptime% \ \|  %bitcoin% \ - \| %wlp2s0% \ \| %date% \ \ " } -- Abandoned template strings +-- Network Wifi: +-- \| %wlp4s0% \ -- Network Ethernet: -- \| %enp3s0% \ -- Battery: