From e67bfb8bc20fd04cd5c0e722f1a7ebfcadfad6ae Mon Sep 17 00:00:00 2001 From: Phil Bajsicki Date: Sat, 15 Apr 2023 17:26:51 +0200 Subject: [PATCH] Add XMobar config --- .config/xmobar/dist-newstyle/cache/compiler | Bin 0 -> 12472 bytes .config/xmobar/doom-one-xmobarrc | 74 ++++++++++++++++++++ .config/xmobar/dracula-xmobarrc | 66 +++++++++++++++++ .config/xmobar/gruvbox-dark-xmobarrc | 66 +++++++++++++++++ .config/xmobar/monokai-pro-xmobarrc | 66 +++++++++++++++++ .config/xmobar/nord-xmobarrc | 66 +++++++++++++++++ .config/xmobar/oceanic-next-xmobarrc | 66 +++++++++++++++++ .config/xmobar/palenight-xmobarrc | 66 +++++++++++++++++ .config/xmobar/solarized-dark-xmobarrc | 66 +++++++++++++++++ .config/xmobar/solarized-light-xmobarrc | 66 +++++++++++++++++ .config/xmobar/tomorrow-night-xmobarrc | 66 +++++++++++++++++ .config/xmobar/trayer-padding-icon.sh | 48 +++++++++++++ .config/xmobar/xmobarrc | 60 ++++++++++++++++ .config/xmobar/xmobarrc-no-battery | 54 ++++++++++++++ 14 files changed, 830 insertions(+) create mode 100644 .config/xmobar/dist-newstyle/cache/compiler create mode 100644 .config/xmobar/doom-one-xmobarrc create mode 100644 .config/xmobar/dracula-xmobarrc create mode 100644 .config/xmobar/gruvbox-dark-xmobarrc create mode 100644 .config/xmobar/monokai-pro-xmobarrc create mode 100644 .config/xmobar/nord-xmobarrc create mode 100644 .config/xmobar/oceanic-next-xmobarrc create mode 100644 .config/xmobar/palenight-xmobarrc create mode 100644 .config/xmobar/solarized-dark-xmobarrc create mode 100644 .config/xmobar/solarized-light-xmobarrc create mode 100644 .config/xmobar/tomorrow-night-xmobarrc create mode 100755 .config/xmobar/trayer-padding-icon.sh create mode 100644 .config/xmobar/xmobarrc create mode 100644 .config/xmobar/xmobarrc-no-battery diff --git a/.config/xmobar/dist-newstyle/cache/compiler b/.config/xmobar/dist-newstyle/cache/compiler new file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kJQzF3jsgi(%1Cru5^SB|T^VPxIX2Zyf;04`lW*?Y=Jpm=^N75L zMHC)Q%*+KxIl?*JBXNS<;1Wo2kh}l(oiH42sVBqOMB2K z*2p*b?akT(;~KSvJYK!>p0NvMF%5QxOWoO zzp?79!?q7_i5O0C+?+$dG(lej!-@wFBZ>H$16}th4vXm_chR&fgENM6$^~HcdC_0^ zA>069d1E(4;5J4N)tbJ7kHpe)*q)8Skk`pvKhG@XK2#{voHrLH$x&`bt@L=2zJuJy zbtkv_u3un#E(z@+ypxv7wF!dn??n_;&B~~md@lg6`@pNIOOVINZ5um*)IGJa-vlfk z>bbJ5BN?_vyIZHZO3ffEm+29%QhY<>Xla;q9#0UI6RbJp#3|!H@5P>fIh(?nA)#kn z!MP7QZQoQ<&zY?@)WGEZ124L`i054@NWJ7ePdYF*n2+5(c@QEu;z;<0XRqdv_iJqD zTf7U4j-!5n^f@i>-Kx=D)_3LUv{L4mYdl-_tZNBSR?^*RcyHCANSy@Z-ICgujjpO{n$TTF0!(J z(3+ze5;CL2EVc`ykG^uTLJN&dczbg$G~LeDTr;&5$tR)ld6K_UJ&StRn{kgIp7On{ zC$Xisx{KTV{z$ePb`TQ@m-26cKDScU7Yr?_Q zmVX$3i(FBGEz~|j9t-8`EEBX+}I$>_}n4H6VKz(eOcc6`Tz5T<>@~b T|3A#r*ZZ!&HFsbCqyGN|!7lv4 literal 0 HcmV?d00001 diff --git a/.config/xmobar/doom-one-xmobarrc b/.config/xmobar/doom-one-xmobarrc new file mode 100644 index 0000000..560918e --- /dev/null +++ b/.config/xmobar/doom-one-xmobarrc @@ -0,0 +1,74 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Doom One +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#282c34" + , fgColor = "#ff6c6b" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 MB/ MB (%)"] 20 + -- Disk space free + , Run DynNetwork [ "--template" , ": KB/s| KB/s" + , "--Low" , "1000000" -- units: KB/s + , "--High" , "5000000" -- units: KB/s + , "--low" , "cyan" + , "--normal" , "darkorange" + , "--high" , "darkred" + ] 10 + -- network activity monitor (dynamic interface resolution) + , Run DiskU [("/", "\xf0c7 /: B free"), ("/home", " \xf0c7 ~: B free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %dynnetwork% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/dracula-xmobarrc b/.config/xmobar/dracula-xmobarrc new file mode 100644 index 0000000..bbe1e97 --- /dev/null +++ b/.config/xmobar/dracula-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Dracula +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#282a36" + , fgColor = "#f8f8f2" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/gruvbox-dark-xmobarrc b/.config/xmobar/gruvbox-dark-xmobarrc new file mode 100644 index 0000000..6f83969 --- /dev/null +++ b/.config/xmobar/gruvbox-dark-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Gruvbox Dark +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#282828" + , fgColor = "#ebdbb2" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/monokai-pro-xmobarrc b/.config/xmobar/monokai-pro-xmobarrc new file mode 100644 index 0000000..4882e7c --- /dev/null +++ b/.config/xmobar/monokai-pro-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Monokai Pro +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#2D2A2E" + , fgColor = "#FCFCFA" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/nord-xmobarrc b/.config/xmobar/nord-xmobarrc new file mode 100644 index 0000000..6b0613d --- /dev/null +++ b/.config/xmobar/nord-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Nord +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#2E3440" + , fgColor = "#D8DEE9" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/oceanic-next-xmobarrc b/.config/xmobar/oceanic-next-xmobarrc new file mode 100644 index 0000000..50546d4 --- /dev/null +++ b/.config/xmobar/oceanic-next-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Oceanic Next +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#1b2b34" + , fgColor = "#ffffff" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/palenight-xmobarrc b/.config/xmobar/palenight-xmobarrc new file mode 100644 index 0000000..3a1e599 --- /dev/null +++ b/.config/xmobar/palenight-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Palenight +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#292d3e" + , fgColor = "#f07178" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/solarized-dark-xmobarrc b/.config/xmobar/solarized-dark-xmobarrc new file mode 100644 index 0000000..706cf0a --- /dev/null +++ b/.config/xmobar/solarized-dark-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Solarized Dark +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#002b36" + , fgColor = "#839496" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/solarized-light-xmobarrc b/.config/xmobar/solarized-light-xmobarrc new file mode 100644 index 0000000..1948649 --- /dev/null +++ b/.config/xmobar/solarized-light-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Solarized Light +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#fdf6e3" + , fgColor = "#657b83" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/tomorrow-night-xmobarrc b/.config/xmobar/tomorrow-night-xmobarrc new file mode 100644 index 0000000..a280f0b --- /dev/null +++ b/.config/xmobar/tomorrow-night-xmobarrc @@ -0,0 +1,66 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is one of the xmobar configurations for DTOS. +-- This config is packaged in the DTOS repo as 'dtos-xmobar' +-- Color scheme: Tomorrow Night +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { + font = "xft:Iosevka-12" + , additionalFonts = [ "xft:Mononoki:pixelsize=8:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=10" + , "xft:Font Awesome 6 Brands:pixelsize=10" + ] + , bgColor = "#1d1f21" + , fgColor = "#ffffff" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 16 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".config/xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + -- Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + -- , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + Run Cpu ["-t", "\xf108 cpu: %","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M %"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: ::"] 360 + -- Echos a "bell" icon in front of the pacman updates. + -- , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + -- , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " %"] 360 + -- Time and date + , Run Date "\xf017%d.%m.%Y %H:%M " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = "%UnsafeStdinReader% }{ %cpu% %memory% %disku% %uparrow% %uptime% %baticon% %battery% %date% %trayerpad%" diff --git a/.config/xmobar/trayer-padding-icon.sh b/.config/xmobar/trayer-padding-icon.sh new file mode 100755 index 0000000..adee04a --- /dev/null +++ b/.config/xmobar/trayer-padding-icon.sh @@ -0,0 +1,48 @@ +#!/bin/sh +# Copied from https://github.com/jaor/xmobar/issues/239#issuecomment-233206552 +# Detects the width of running trayer-srg window (xprop name 'panel') +# and creates an XPM icon of that width, 1px height, and transparent. +# Outputs an -tag for use in xmobar to display the generated +# XPM icon. +# +# Run script from xmobar: +# `Run Com "/where/ever/trayer-padding-icon.sh" [] "trayerpad" 10` +# and use `%trayerpad%` in your template. + + +# Function to create a transparent Wx1 px XPM icon +create_xpm_icon () { + timestamp=$(date) + pixels=$(for i in `seq $1`; do echo -n "."; done) + + cat << EOF > "$2" +/* XPM * +static char * trayer_pad_xpm[] = { +/* This XPM icon is used for padding in xmobar to */ +/* leave room for trayer-srg. It is dynamically */ +/* updated by by trayer-padding-icon.sh which is run */ +/* by xmobar. */ +/* Created: ${timestamp} */ +/* */ +"$1 1 1 1", +/* Colors (none: transparent) */ +". c none", +/* Pixels */ +"$pixels" +}; +EOF +} + +# Width of the trayer window +width=$(xprop -name panel | grep 'program specified minimum size' | cut -d ' ' -f 5) + +# Icon file name +iconfile="/tmp/trayer-padding-${width}px.xpm" + +# If the desired icon does not exist create it +if [ ! -f $iconfile ]; then + create_xpm_icon $width $iconfile +fi + +# Output the icon tag for xmobar +echo "" diff --git a/.config/xmobar/xmobarrc b/.config/xmobar/xmobarrc new file mode 100644 index 0000000..5c67dd3 --- /dev/null +++ b/.config/xmobar/xmobarrc @@ -0,0 +1,60 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is the default xmobar configuration for DTOS. +-- This config is packaged in the DTOS repo as dtos-xmobar +-- Dependencies: otf-font-awesome ttf-mononoki ttf-ubuntu-font-family trayer +-- Also depends on scripts from dtos-local-bin from the dtos-core-repo. + +Config { font = "xft:Ubuntu:weight=bold:size=8:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#282c34" + , fgColor = "#ff6c6b" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 /: free")] [] 60 + , Run DiskU [("/home/", "\xf0c7 /home: free")] [] 60 + + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeXMonadLog + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeXmonadLog% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" + } diff --git a/.config/xmobar/xmobarrc-no-battery b/.config/xmobar/xmobarrc-no-battery new file mode 100644 index 0000000..c6bd04d --- /dev/null +++ b/.config/xmobar/xmobarrc-no-battery @@ -0,0 +1,54 @@ +-- Xmobar (http://projects.haskell.org/xmobar/) +-- This is the default xmobar configuration for DTOS. +-- This config is packaged in the DTOS repo as dtos-xmobar +-- Dependencies: otf-font-awesome ttf-mononoki ttf-ubuntu-font-family trayer +-- Also depends on scripts from dtos-local-bin from the dtos-core-repo. + +Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" + , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" + , "xft:Font Awesome 6 Free Solid:pixelsize=12" + , "xft:Font Awesome 6 Brands:pixelsize=12" + ] + , bgColor = "#282c34" + , fgColor = "#ff6c6b" + -- Position TopSize and BottomSize take 3 arguments: + -- an alignment parameter (L/R/C) for Left, Right or Center. + -- an integer for the percentage width, so 100 would be 100%. + -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. + -- NOTE: The height should be the same as the trayer (system tray) height. + , position = TopSize L 100 24 + , lowerOnStart = True + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %date% %trayerpad%" + }