From a10b1546f34c464da80e0c9cc2f7529250ba28fe Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sun, 17 May 2020 18:50:29 -0500 Subject: [PATCH] Adding trayer to xmonad with script to adjust for trayer width. --- .config/xmobar/xmobarrc0 | 12 ++++++------ .config/xmobar/xmobarrc1 | 12 ++++++------ .config/xmobar/xmobarrc2 | 13 +++++++------ 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.config/xmobar/xmobarrc0 b/.config/xmobar/xmobarrc0 index 2f8416b..2f9b5a8 100755 --- a/.config/xmobar/xmobarrc0 +++ b/.config/xmobar/xmobarrc0 @@ -14,20 +14,20 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t , iconRoot = "/home/dt/.xmonad/xpm/" -- default: "." , commands = [ -- Time and date - Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + Run Date "\xf133 %b %d %Y (%H:%M)" "date" 50 -- Network up and down - , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 10 + , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 20 -- Cpu usage in percent - , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 10 + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 -- Ram used number and percent - , Run Memory ["-t", "\xf233 mem: M (%)"] 10 + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 -- Disk space free , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 -- Runs custom script to check for pacman updates. -- This script is in my dotfiles repo in .local/bin. - , Run Com "pacupdate" [] "" 3600 + , Run Com "pacupdate" [] "" 36000 -- Runs a standard shell command 'uname -r' to get kernel version - , Run Com "uname" ["-r"] "" 3600 + , Run Com "uname" ["-r"] "" 36000 -- Prints out the left side items such as workspaces, layout, etc. -- The workspaces are 'clickable' in my configs. , Run UnsafeStdinReader diff --git a/.config/xmobar/xmobarrc1 b/.config/xmobar/xmobarrc1 index 2f8416b..2f9b5a8 100755 --- a/.config/xmobar/xmobarrc1 +++ b/.config/xmobar/xmobarrc1 @@ -14,20 +14,20 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t , iconRoot = "/home/dt/.xmonad/xpm/" -- default: "." , commands = [ -- Time and date - Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + Run Date "\xf133 %b %d %Y (%H:%M)" "date" 50 -- Network up and down - , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 10 + , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 20 -- Cpu usage in percent - , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 10 + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 -- Ram used number and percent - , Run Memory ["-t", "\xf233 mem: M (%)"] 10 + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 -- Disk space free , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 -- Runs custom script to check for pacman updates. -- This script is in my dotfiles repo in .local/bin. - , Run Com "pacupdate" [] "" 3600 + , Run Com "pacupdate" [] "" 36000 -- Runs a standard shell command 'uname -r' to get kernel version - , Run Com "uname" ["-r"] "" 3600 + , Run Com "uname" ["-r"] "" 36000 -- Prints out the left side items such as workspaces, layout, etc. -- The workspaces are 'clickable' in my configs. , Run UnsafeStdinReader diff --git a/.config/xmobar/xmobarrc2 b/.config/xmobar/xmobarrc2 index 3b03ae5..c605df1 100755 --- a/.config/xmobar/xmobarrc2 +++ b/.config/xmobar/xmobarrc2 @@ -14,23 +14,24 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t , iconRoot = "/home/dt/.xmonad/xpm/" -- default: "." , commands = [ -- Time and date - Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + Run Date "\xf133 %b %d %Y (%H:%M)" "date" 50 -- Network up and down - , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 10 + , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 20 -- Cpu usage in percent - , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 10 + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 -- Ram used number and percent - , Run Memory ["-t", "\xf233 mem: M (%)"] 10 + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 -- Disk space free , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 -- Runs custom script to check for pacman updates. -- This script is in my dotfiles repo in .local/bin. - , Run Com "pacupdate" [] "" 3600 + , Run Com "pacupdate" [] "" 36000 -- Runs a standard shell command 'uname -r' to get kernel version , Run Com "uname" ["-r"] "" 3600 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com "/home/dt/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 -- Prints out the left side items such as workspaces, layout, etc. -- The workspaces are 'clickable' in my configs. - , Run Com "/home/dt/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 10 , Run UnsafeStdinReader ] , sepChar = "%"