From 9007df35415f157ba32e554256b2248860d0103d Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Fri, 17 Jun 2022 10:31:51 +0300 Subject: rewrite config from scratch and remove xmobar config xmobar config is now written in haskell instead of it's own weird config format and it will be available on my dotfiles repo. --- xmobar/separator.sh | 3 -- xmobar/trayer-padding-icon.sh | 48 ------------------- xmobar/xmobarrc | 107 ------------------------------------------ xmobar/xmobarrc.bak | 30 ------------ 4 files changed, 188 deletions(-) delete mode 100755 xmobar/separator.sh delete mode 100755 xmobar/trayer-padding-icon.sh delete mode 100755 xmobar/xmobarrc delete mode 100644 xmobar/xmobarrc.bak (limited to 'xmobar') diff --git a/xmobar/separator.sh b/xmobar/separator.sh deleted file mode 100755 index e305e52..0000000 --- a/xmobar/separator.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -echo "|" diff --git a/xmobar/trayer-padding-icon.sh b/xmobar/trayer-padding-icon.sh deleted file mode 100755 index efb8ef6..0000000 --- a/xmobar/trayer-padding-icon.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/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="$HOME/.xmonad/xpm/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/xmobar/xmobarrc b/xmobar/xmobarrc deleted file mode 100755 index 6770406..0000000 --- a/xmobar/xmobarrc +++ /dev/null @@ -1,107 +0,0 @@ --- https://projects.haskell.org/xmobar/ --- uses font awesome --- vim:se syntax=haskell: - -Config { font = "xft:Lato:weight=bold:pixelsize=12:antialias=true:hinting=true" - , additionalFonts = [ "xft:Font Awesome 5 Free Solid:pixelsize=12" - , "xft:Font Awesome 5 Brands:pixelsize=14" - -- sitelen pona pona by jackhumbert - --, "xft:sitelen\-pona:pixelsize=20:antialias=true:hinting=true" - -- linja pona - , "xft:linja pona:pixelsize=22:antialias=true:hinting=true" - ] - , bgColor = "#111111" - , fgColor = "#ccbbcc" - , position = TopSize C 100 24 - , lowerOnStart = True - , hideOnStart = False - , persistent = True - , iconRoot = ".config/xmonad/xpm/" - , commands = [ Run UnsafeStdinReader - , Run Com "uname" ["-r"] "" 0 - , Run Uptime - ["-t" - -- normie - --, "\xf017 uptime: d" - -- sitelen pona pona by jackhumbert - --, "\xee6b\xee64\xee3d" - -- linja pona - , "\xe66b\xe664\xe63d" - -- tenpo suno nanpa - ] 60 - , Run Cpu - ["-t" - -- normie - --, "\xf108cpu: %" - -- sitelen pona pona by jackhumbert - --, "\xee24\xee4d\xee0e\xee3d: %" - -- linja pona - , "\xe624\xe730\xe60e\xe63d: %" - -- lawa pi ilo sona - , "-H", "50", "--high", "red" - ] 20 - , Run Memory - ["-t" - -- normie - --, "\xf538 ram: M (%)" - -- sitelen pona pona by jackhumbert - --, "\xee53\xee49: M (%)" - -- linja pona - , "\xe653\xf174: M (%)" - -- poki pali - ] 20 - , Run DiskU - [("/home" - -- normie - --, "\xf0a0 hdd: free") - -- sitelen pona pona by jackhumbert - --, "\xee53\xee08: ") - -- linja pona - , "\xe653\xf109: ") - -- poki awen - ] [] 60 - , Run Kbd - -- normie - --[ ("us", "\xf11c EN") - --, ("ru", "\xf11c RU") - --] - -- sitelen pona pona by jackhumbert - --[ ("us", "\xee6c\xee4d\xee0e\xee60 inli") - --, ("ru", "\xee6c\xee4d\xee0e\xee60 losi") - --] - -- toki pi ilo sitelen - -- linja pona - [ ("us", "\xe66c\xe730\xe619\xe660 [INLI]") - , ("ru", "\xe66c\xe730\xe619\xe660 [LOSI]") - ] - -- toki pi ilo sitelen - , Run Date - -- normie - --"\xf017 %d %b %Y %R" - -- sitelen pona pona by jackhumbert - --"\xee6b %d-%m-%Y %R" - -- linja pona - "\xe66b %d-%m-%Y %R" - -- tenpo - "date" 50 - , Run Network "wg0" - ["-t" - -- normie - --, "\xf6d5" - -- sitelen pona pona by jackhumbert - --, "\xee01" - -- linja pona - , "\xe601" - -- akesi - ] 20 - , Run Com ".config/xmonad/xmobar/trayer-padding-icon.sh" - ["panel"] "trayerpad" 10 - , Run Com ".config/xmonad/xmobar/separator.sh" [] "s" 0 - ] - , sepChar = "%" - , alignSep = "}{" - -- ... }{  ... -- normie - -- ... }{  linu ... -- sitelen pona pona by jackhumbert - -- ... }{  [_L_IN_U] ... -- linja pona - , template = " %s% %UnsafeStdinReader% }{  [LINU] %uname% %s% %uptime% %s% %cpu% %s% %memory% %s% %disku% %s% %kbd% %s% %date% %s% %wg0% %trayerpad%" -} diff --git a/xmobar/xmobarrc.bak b/xmobar/xmobarrc.bak deleted file mode 100644 index 79daa12..0000000 --- a/xmobar/xmobarrc.bak +++ /dev/null @@ -1,30 +0,0 @@ -Config { font = "xft:Jet Brains Mono:pixelsize=12:antialias=true;hinting=true" - , additionalFonts = [] - , bgColor = "#2e3440" - , fgColor = "#d8dee9" - , position = Top - , lowerOnStart = True - , hideOnStart = False - , allDesktops = True - , persistent = True - , iconRoot = "/home/aaoth/.xmonad/xpm/" -- default: "." - , commands = [ - -- Time and date - Run Date "%b %d %Y %H:%M" "date" 50 - -- Network up and down - , Run Network "eno1" ["-t", "kb kb"] 20 - , Run Network "wg0" ["-t", "kb kb"] 20 - -- Cpu usage in percent - , Run Cpu ["-t", "%","-H","50","--high","red"] 20 - -- Ram used number and percent - , Run Memory ["-t", "M (%)"] 20 - -- Disk space free - , Run DiskU [("/", " free")] [] 60 - -- Runs a standard shell command 'uname -r' to get kernel version - , Run Com "uname" ["-r"] "" 3600 - ] - , sepChar = "%" - , alignSep = "}{" - , template = "}{%uname% | %cpu% | %memory% | %disku% | %eno1% wg: %wg0% | %date% " - } - -- cgit v1.2.3