From 457a28ed89be9e2f698786e83538ee61292ae08c Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 27 Feb 2023 13:02:09 +0100 Subject: merged xmobar configs into one and changed the font to match pango syntax --- config/X/xmobar/scripts/winfo | 6 +- config/X/xmobar/scripts/winfo_icons | 30 ++++---- config/X/xmobar/xmobarrc.hs | 98 ++++++++++++++++++++++++ config/X/xmobar/xmobarrc0.hs | 20 ----- config/X/xmobar/xmobarrc1.hs | 149 ------------------------------------ 5 files changed, 116 insertions(+), 187 deletions(-) create mode 100644 config/X/xmobar/xmobarrc.hs delete mode 100644 config/X/xmobar/xmobarrc0.hs delete mode 100644 config/X/xmobar/xmobarrc1.hs (limited to 'config/X') diff --git a/config/X/xmobar/scripts/winfo b/config/X/xmobar/scripts/winfo index 033ab49..f60bd7f 100755 --- a/config/X/xmobar/scripts/winfo +++ b/config/X/xmobar/scripts/winfo @@ -45,9 +45,9 @@ GetCWD (){ echo -n "${PROCESS}" \ | sed \ - -e "s;^zsh$;&;g" \ - -e "s;^htop$; &;g" \ - -e "s;^ranger$; &;g" + -e "s;^zsh$;&;g" \ + -e "s;^htop$; &;g" \ + -e "s;^ranger$; &;g" } # Get title of window / name of process diff --git a/config/X/xmobar/scripts/winfo_icons b/config/X/xmobar/scripts/winfo_icons index dbdc3ae..7cfeda0 100644 --- a/config/X/xmobar/scripts/winfo_icons +++ b/config/X/xmobar/scripts/winfo_icons @@ -1,15 +1,15 @@ - alacritty kitty - firefox - minecraft multimc - virt-manager virtualbox rustdesk - mpv -ﭮ discord - jetbrains-clion - pinentry-gtk-2 - code-oss -響 mumble - soffice libreoffice-writer - steam - packettracer - ktouch - signal + alacritty kitty + firefox + minecraft multimc + virt-manager virtualbox rustdesk + mpv +ﭮ discord + jetbrains-clion + pinentry-gtk-2 + code-oss +響 mumble + soffice libreoffice-writer + steam + packettracer + ktouch + signal diff --git a/config/X/xmobar/xmobarrc.hs b/config/X/xmobar/xmobarrc.hs new file mode 100644 index 0000000..2f18a46 --- /dev/null +++ b/config/X/xmobar/xmobarrc.hs @@ -0,0 +1,98 @@ +Config { font = "Cantarell Mono Regular 12" + , position = Top + -- , borderColor = "#2e3440" + -- , borderWidth = 2 + -- , border = BottomB + , bgColor = "#2e3440" + , fgColor = "#2aa198" + , lowerOnStart = True + , pickBroadest = False + , persistent = False + , hideOnStart = False + , iconRoot = "/home/aluc/.config/xmobar/icons" + , overrideRedirect = True + , wmName = "xmobar2" + , commands = [ Run Cpu [ "-t", "%" + ,"-l", "#2e3440,#58e1ac" + ,"-L", "20" + ,"-n", "#4c566a,#58e1ac" + ,"-h", "#cb4b16,#58e1ac" + ,"-H", "50" + ,"-w", "3" + ] 10 + + , Run Memory ["-t", "%" + ,"-l", "#2e3440,#58e1ac" + ,"-L", "20" + ,"-n", "#4c566a,#58e1ac" + ,"-h", "#cb4b16,#58e1ac" + ,"-H", "50" + ,"-w", "2" + ] 10 + + -- Focused window info + , Run Com "/home/aluc/.config/xmobar/scripts/winfo" ["-n"] "FWname" 3 + , Run Com "/home/aluc/.config/xmobar/scripts/winfo" ["-t"] "FWtitle" 3 + , Run Com "/home/aluc/.config/xmobar/scripts/winfo" ["-i"] "FWicon" 3 + , Run Com "/home/aluc/.config/xmobar/scripts/checkupds" ["-i"] "updates" 3600 + -- , Run ComX "$HOME/bin/cmusP" [] "" "cmus" 1 + , Run Com "uname" ["-r"] "" 36000 + , Run Date " %b %_d %Y - %H:%M:%S" "date" 10 + , Run PipeReader "/home/aluc/.config/xmobar/scripts/volume-pipe" "vol" + , Run StdinReader + ] + , sepChar = "%" + , alignSep = "}{" + + + -- COLORS + -- #2aa198 : Blue/green -- fg + -- + -- #d08770 : pinkish brown -- memory + -- #ff00ff : pink/purple -- swap + -- #828be6 : perrywinkle -- FWname + -- #825be6 : purpley -- FWtitle + -- bgColor = "#2e3440" + -- fgColor = "#2aa198" + -- #58e1ac + + , template = " \ + -- Left + + \%StdinReader% \ + + \\ + \ %uname% \ + \\ + + \\ + \ %vol% \ + \\ + + \\ + \ Dmenu \ + \\ + + + -- Centered + \}\ + + -- Right + \{ \ + + \\ + \ %updates% \ + \\ + + \\ + \ %cpu% \ + \%memory% \ + \\ + + \\ + \ %date% \ + \ " + + } + + diff --git a/config/X/xmobar/xmobarrc0.hs b/config/X/xmobar/xmobarrc0.hs deleted file mode 100644 index e3824f2..0000000 --- a/config/X/xmobar/xmobarrc0.hs +++ /dev/null @@ -1,20 +0,0 @@ -Config { font = "xft:Ubuntu Mono:pixelsize=14:style=bold:antialias=true:hinting:=true" - -- Only 1 font, so height automatic - , position = BottomW C 16 - , bgColor = "#2e3440" - , fgColor = "#2aa198" - , lowerOnStart = True - , pickBroadest = False - , persistent = False - , hideOnStart = False - , overrideRedirect = True - , wmName = "xmobar2" - - , commands = [ - Run StdinReader - ] - , sepChar = "%" - , alignSep = "}{" - - , template = "} %StdinReader% {"} - diff --git a/config/X/xmobar/xmobarrc1.hs b/config/X/xmobar/xmobarrc1.hs deleted file mode 100644 index a187055..0000000 --- a/config/X/xmobar/xmobarrc1.hs +++ /dev/null @@ -1,149 +0,0 @@ -Config { font = "xft:Ubuntu Mono:pixelsize=14:style=bold:antialias=true:hinting:=true" - , additionalFonts = [ - "xft:Mononoki Nerd Font Mono:style=bold:pixelsize=24:antialias=true:hinting=true", - "xft:Mononoki Nerd Font Mono:style=bold:pixelsize=24:antialias=false:hinting=true" - ] - , position = TopH 24 - , borderColor = "#2e3440" - , borderWidth = 2 - , border = BottomB - , bgColor = "#2e3440" - , fgColor = "#2aa198" - , lowerOnStart = True - , pickBroadest = False - , persistent = False - , hideOnStart = False - , iconRoot = "/home/aluc/.config/xmobar/icons" - , overrideRedirect = True - , commands = [ Run Cpu [ "-t", "%" - ,"-l", "#2e3440,#58e1ac" - ,"-L", "20" - ,"-n", "#4c566a,#58e1ac" - ,"-h", "#cb4b16,#58e1ac" - ,"-H", "50" - ,"-w", "3" - ] 10 - - , Run Memory ["-t", "%" - ,"-l", "#2e3440,#58e1ac" - ,"-L", "20" - ,"-n", "#4c566a,#58e1ac" - ,"-h", "#cb4b16,#58e1ac" - ,"-H", "50" - ,"-w", "2" - ] 10 - - -- Focused window info - , Run Com "/home/aluc/.config/xmobar/scripts/winfo" ["-n"] "FWname" 3 - , Run Com "/home/aluc/.config/xmobar/scripts/winfo" ["-t"] "FWtitle" 3 - , Run Com "/home/aluc/.config/xmobar/scripts/winfo" ["-i"] "FWicon" 3 - , Run Com "/home/aluc/.config/xmobar/scripts/checkupds" ["-i"] "updates" 3600 - -- , Run ComX "$HOME/bin/cmusP" [] "" "cmus" 1 - , Run Com "uname" ["-r"] "" 36000 - , Run Date "\xf073 %b %_d %Y - %H:%M:%S" "date" 10 - , Run PipeReader "/home/aluc/.config/xmobar/scripts/volume-pipe" "vol" - ] - , sepChar = "%" - , alignSep = "}{" - - - -- COLORS - -- #2aa198 : Blue/green -- fg - -- - -- #d08770 : pinkish brown -- memory - -- #ff00ff : pink/purple -- swap - -- #828be6 : perrywinkle -- FWname - -- #825be6 : purpley -- FWtitle - -- bgColor = "#2e3440" - -- fgColor = "#2aa198" - -- #58e1ac - - , template = " \ - -- Left - - \\ - \\ - \\ - \  %uname% \ - \\ - \\ - \\ - - \\ - \\ - \\ - \ %vol% \ - \\ - \\ - \\ - - \\ - \\ - \\ - \\ - \ dmenu \ - \\ - \\ - \\ - \\ - - - -- Centered - \}\ - \\ - \\ - \\ - \ %FWicon% \ - \\ - \\ - \\ - \\ - \%FWname% \ - \\ - \\ - \\ - \\ - \\ - \%FWtitle%\ - \\ - \\ - \\ - \ \ - \\ - - - -- Right - \{ \ - - \\ - \\ - \\ - \ %updates% \ - \\ - \\ - \\ - - \\ - \\ - \\ - \ %cpu% \ - \\ - \\ - \\ - \%memory% \ - \\ - \\ - \\ - \\ - - \\ - \\ - \\ - \ %date% \ - \\ - \\ - \ " - - } - - -- cgit v1.2.3