From 7e74f4acfdc61a7fbd5da5bec276072b1a6be265 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Mon, 23 Nov 2020 21:29:52 +0100 Subject: [PATCH] Lots of changes to polybar --- .../output/SoundMAGIC E10 adjusted.json | 88 +++++++++---------- arch-config/.config/polybar/colors.ini | 3 +- arch-config/.config/polybar/i3config.ini | 32 +++++-- arch-config/.config/polybar/launch.sh | 0 .../.config/polybar/modules/battery.ini | 20 ++--- arch-config/.config/polybar/modules/date.ini | 14 +-- arch-config/.config/polybar/modules/i3.ini | 15 ++-- .../.config/polybar/modules/modules.ini | 22 +++++ .../.config/polybar/modules/xwindow.ini | 4 +- 9 files changed, 117 insertions(+), 81 deletions(-) mode change 100644 => 100755 arch-config/.config/polybar/launch.sh diff --git a/arch-config/.config/PulseEffects/output/SoundMAGIC E10 adjusted.json b/arch-config/.config/PulseEffects/output/SoundMAGIC E10 adjusted.json index fc1ba5cd..3ef6431b 100644 --- a/arch-config/.config/PulseEffects/output/SoundMAGIC E10 adjusted.json +++ b/arch-config/.config/PulseEffects/output/SoundMAGIC E10 adjusted.json @@ -185,7 +185,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-5.5999999999999996", + "gain": "-6.2000000000000002", "frequency": "235", "q": "4.3600000000000003" }, @@ -195,7 +195,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-4", + "gain": "-4.4000000000000004", "frequency": "360", "q": "4.3600000000000003" }, @@ -205,7 +205,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-2.7000000000000002", + "gain": "-3.2000000000000002", "frequency": "500", "q": "4.3600000000000003" }, @@ -215,7 +215,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-1.8999999999999999", + "gain": "-2.7000000000000002", "frequency": "600", "q": "4.3600000000000003" }, @@ -225,7 +225,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-0.80000000000000004", + "gain": "-1.5", "frequency": "800", "q": "4.3600000000000003" }, @@ -235,7 +235,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-0.29999999999999999", + "gain": "-0.90000000000000002", "frequency": "899", "q": "4.3600000000000003" }, @@ -245,7 +245,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "0.40000000000000002", + "gain": "-0.10000000000000001", "frequency": "1100", "q": "4.3600000000000003" }, @@ -255,7 +255,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "1.3", + "gain": "0.59999999999999998", "frequency": "1400", "q": "4.3600000000000003" }, @@ -265,7 +265,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "2.5", + "gain": "1.6000000000000001", "frequency": "1800", "q": "4.3600000000000003" }, @@ -275,7 +275,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "4.5", + "gain": "2.8999999999999999", "frequency": "2300", "q": "4.3600000000000003" }, @@ -285,7 +285,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "5.5", + "gain": "3.8999999999999999", "frequency": "2475", "q": "4.3600000000000003" }, @@ -295,7 +295,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "5", + "gain": "3.5", "frequency": "2750", "q": "4.3600000000000003" }, @@ -305,7 +305,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "5.5", + "gain": "4.5", "frequency": "3000", "q": "4.3600000000000003" }, @@ -315,7 +315,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "6.2000000000000002", + "gain": "4.9000000000000004", "frequency": "3600", "q": "4.3600000000000003" }, @@ -325,7 +325,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "6.2999999999999998", + "gain": "5.2000000000000002", "frequency": "3800", "q": "4.3600000000000003" }, @@ -335,7 +335,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "6", + "gain": "4.5", "frequency": "4500", "q": "4.3600000000000003" }, @@ -345,7 +345,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "2.3999999999999999", + "gain": "1.5", "frequency": "5700", "q": "4.3600000000000003" }, @@ -355,7 +355,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-5.7000000000000002", + "gain": "-6.5999999999999996", "frequency": "7200", "q": "4.3600000000000003" }, @@ -365,7 +365,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-0.20000000000000001", + "gain": "-1", "frequency": "9000", "q": "4.3600000000000003" }, @@ -375,7 +375,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "3.2000000000000002", + "gain": "1.8999999999999999", "frequency": "11300", "q": "4.3600000000000003" }, @@ -385,7 +385,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "4.9000000000000004", + "gain": "4", "frequency": "14300", "q": "4.3600000000000003" }, @@ -395,7 +395,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-0.69999999999999996", + "gain": "-2", "frequency": "17900", "q": "4.3600000000000003" }, @@ -487,7 +487,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-5.5999999999999996", + "gain": "-6.2000000000000002", "frequency": "235", "q": "4.3600000000000003" }, @@ -497,7 +497,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-4", + "gain": "-4.4000000000000004", "frequency": "360", "q": "4.3600000000000003" }, @@ -507,7 +507,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-2.7000000000000002", + "gain": "-3.2000000000000002", "frequency": "500", "q": "4.3600000000000003" }, @@ -517,7 +517,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-1.8999999999999999", + "gain": "-2.7000000000000002", "frequency": "600", "q": "4.3600000000000003" }, @@ -527,7 +527,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-0.80000000000000004", + "gain": "-1.5", "frequency": "800", "q": "4.3600000000000003" }, @@ -537,7 +537,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-0.29999999999999999", + "gain": "-0.90000000000000002", "frequency": "899", "q": "4.3600000000000003" }, @@ -547,7 +547,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "0.40000000000000002", + "gain": "-0.10000000000000001", "frequency": "1100", "q": "4.3600000000000003" }, @@ -557,7 +557,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "1.3", + "gain": "0.59999999999999998", "frequency": "1400", "q": "4.3600000000000003" }, @@ -567,7 +567,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "2.5", + "gain": "1.6000000000000001", "frequency": "1800", "q": "4.3600000000000003" }, @@ -577,7 +577,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "4.5", + "gain": "2.8999999999999999", "frequency": "2300", "q": "4.3600000000000003" }, @@ -587,7 +587,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "5.5", + "gain": "3.8999999999999999", "frequency": "2475", "q": "4.3600000000000003" }, @@ -597,7 +597,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "5", + "gain": "3.5", "frequency": "2750", "q": "4.3600000000000003" }, @@ -607,7 +607,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "5.5", + "gain": "4.5", "frequency": "3000", "q": "4.3600000000000003" }, @@ -617,7 +617,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "6.2000000000000002", + "gain": "4.9000000000000004", "frequency": "3600", "q": "4.3600000000000003" }, @@ -627,7 +627,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "6.2999999999999998", + "gain": "5.2000000000000002", "frequency": "3800", "q": "4.3600000000000003" }, @@ -637,7 +637,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "6", + "gain": "4.5", "frequency": "4500", "q": "4.3600000000000003" }, @@ -647,7 +647,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "2.3999999999999999", + "gain": "1.5", "frequency": "5700", "q": "4.3600000000000003" }, @@ -657,7 +657,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-5.7000000000000002", + "gain": "-6.5999999999999996", "frequency": "7200", "q": "4.3600000000000003" }, @@ -667,7 +667,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-0.20000000000000001", + "gain": "-1", "frequency": "9000", "q": "4.3600000000000003" }, @@ -677,7 +677,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "3.2000000000000002", + "gain": "1.8999999999999999", "frequency": "11300", "q": "4.3600000000000003" }, @@ -687,7 +687,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "4.9000000000000004", + "gain": "4", "frequency": "14300", "q": "4.3600000000000003" }, @@ -697,7 +697,7 @@ "slope": "x1", "solo": "false", "mute": "false", - "gain": "-0.69999999999999996", + "gain": "-2", "frequency": "17900", "q": "4.3600000000000003" }, diff --git a/arch-config/.config/polybar/colors.ini b/arch-config/.config/polybar/colors.ini index ed99ea28..e35062e1 100644 --- a/arch-config/.config/polybar/colors.ini +++ b/arch-config/.config/polybar/colors.ini @@ -49,6 +49,7 @@ background = #0c0c0c foreground = #e5e5e5 +modbackground = #141414 alert = #ff0000 red = #ff0000 @@ -66,4 +67,4 @@ darkblue = #1e2c99 violet = #9232ff pink = #ff32fb black = #000000 -white = #ffffff \ No newline at end of file +white = #ffffff diff --git a/arch-config/.config/polybar/i3config.ini b/arch-config/.config/polybar/i3config.ini index 6992a65d..7d27a017 100644 --- a/arch-config/.config/polybar/i3config.ini +++ b/arch-config/.config/polybar/i3config.ini @@ -67,10 +67,23 @@ font-0 = "Noto Sans:size=10;0" font-1 = "FontAwesome:size=10;0" font-2 = "Noto Sans:size=10;0" font-3 = "Noto Sans Mono:size=10;0" +font-4 = Iosevka Nerd Font:style=Medium:size=16;3 -modules-left = i3 xwindow -modules-center = date -modules-right = volume battery +; Text Fonts +;font-0 = Iosevka Nerd Font:style=Medium:size=10;3 +; Icons Fonts +;font-1 = icomoon\-feather:style=Medium:size=10;3 +; Powerline Glyphs +;font-2 = Iosevka Nerd Font:style=Medium:size=16;3 +; Larger font size for bar fill icons +;font-3 = Iosevka Nerd Font:style=Medium:size=12;3 +; Smaller font size for shorter spaces +;font-4 = Iosevka Nerd Font:style=Medium:size=7;3 + + +modules-left = full i3 full right left full xwindow full right +modules-center = +modules-right = left full date battery full tray-detached = false tray-offset-x = 0 @@ -79,7 +92,7 @@ tray-padding = 2 tray-maxsize = 15 tray-scale = 1.0 tray-position = right -tray-background = ${colors.background} +tray-background = ${colors.modbackground} ; Enable support for inter-process messaging ; See the Messaging wiki page for more details. @@ -104,8 +117,11 @@ double-click-right = cursor-click = cursor-scroll = -padding-left = 1 -padding-right = 1 +padding-left = 0 +padding-right = 0 -module-margin-left = 3 -module-margin-right = 3 +module-margin-left = 0 +module-margin-right = 0 + +format-foreground = ${colors.foreground} +format-background = ${colors.background} diff --git a/arch-config/.config/polybar/launch.sh b/arch-config/.config/polybar/launch.sh old mode 100644 new mode 100755 diff --git a/arch-config/.config/polybar/modules/battery.ini b/arch-config/.config/polybar/modules/battery.ini index 6799786c..254b00b9 100644 --- a/arch-config/.config/polybar/modules/battery.ini +++ b/arch-config/.config/polybar/modules/battery.ini @@ -9,31 +9,31 @@ time-format = %H:%M format-charging = label-charging =  %percentage%% %time% left format-charging-foreground = ${colors.foreground} -format-charging-background = ${colors.background} +format-charging-background = ${colors.modbackground} format-charging-underline = ${colors.orange} format-discharging = label-discharging =  %percentage%% %time% left -format-discharging-underline = ${colors.orange} +format-discharging-underline = ${colors.violet} format-discharging-foreground = ${colors.foreground} -format-discharging-background = ${colors.background} +format-discharging-background = ${colors.modbackground} format-full-prefix = " " format-full-prefix-foreground = #a3c725 format-full-underline = ${colors.orange} format-foreground = ${colors.foreground} -format-background = ${colors.background} +format-background = ${colors.modbackground} ramp-capacity-0 =  -ramp-capacity-0-foreground = ${colors.orange} +ramp-capacity-0-foreground = ${colors.violet} ramp-capacity-1 =  -ramp-capacity-1-foreground = ${colors.orange} +ramp-capacity-1-foreground = ${colors.violet} ramp-capacity-2 =  -ramp-capacity-2-foreground = ${colors.orange} +ramp-capacity-2-foreground = ${colors.violet} ramp-capacity-3 =  -ramp-capacity-3-foreground = ${colors.orange} +ramp-capacity-3-foreground = ${colors.violet} ramp-capacity-4 =  -ramp-capacity-4-foreground = ${colors.orange} +ramp-capacity-4-foreground = ${colors.violet} ;ramp-capacity-foreground = #c7ae25 animation-charging-0 =  @@ -41,5 +41,5 @@ animation-charging-1 =  animation-charging-2 =  animation-charging-3 =  animation-charging-4 =  -animation-charging-foreground = ${colors.orange} +animation-charging-foreground = ${colors.violet} animation-charging-framerate = 750 diff --git a/arch-config/.config/polybar/modules/date.ini b/arch-config/.config/polybar/modules/date.ini index 9d428ca9..6391cd2e 100644 --- a/arch-config/.config/polybar/modules/date.ini +++ b/arch-config/.config/polybar/modules/date.ini @@ -6,13 +6,13 @@ interval = 5 ; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string ; NOTE: if you want to use syntax tags here you need to use %%{...} ;date = " %d-%m-%Y" -date = " %a %d." -date-alt = " %Y-%m-%d" -time = %H:%M -time-alt = %H:%M -format-prefix = " " +date = +date-alt = " %Y-%m-%d" +time = " %H:%M" +time-alt = +format-prefix = format-prefix-foreground = ${colors.orange} -format-underline = ${colors.orange} +format-underline = ${colors.violet} format-foreground = ${colors.foreground} -format-background = ${colors.background} +format-background = ${colors.modbackground} label = %date% %time% diff --git a/arch-config/.config/polybar/modules/i3.ini b/arch-config/.config/polybar/modules/i3.ini index 1555f586..842447be 100644 --- a/arch-config/.config/polybar/modules/i3.ini +++ b/arch-config/.config/polybar/modules/i3.ini @@ -51,13 +51,13 @@ fuzzy-match = false ;ws-icon-7 = 8; ;ws-icon-8 = 9; ;ws-icon-9 = 10; -ws-icon-default = " " +;ws-icon-default = " " ;     ; Available tags: ; (default) - gets replaced with ; (default) -format = +format = label-mode = %mode% label-mode-padding = 2 @@ -70,9 +70,9 @@ label-mode-padding = 2 ; Default: %icon% %name% ; focused = Active workspace on focused monitor label-focused = %name% -label-focused-background = ${colors.background} +label-focused-background = ${colors.modbackground} label-focused-foreground = ${colors.foreground} -label-focused-underline = ${colors.orange} +label-focused-underline = ${colors.violet} label-focused-padding = 2 ; Available tokens: @@ -83,7 +83,7 @@ label-focused-padding = 2 ; unfocused = Inactive workspace on any monitor label-unfocused = %name% label-unfocused-padding = 2 -label-unfocused-background = ${colors.background} +label-unfocused-background = ${colors.modbackground} label-unfocused-foreground = ${colors.foreground} label-unfocused-underline = @@ -101,8 +101,5 @@ label-visible-padding = 2 ; urgent = Workspace with urgency hint set label-urgent = %name% label-urgent-background = ${self.label-focused-background} -label-urgent-foreground = ${colors.orange} +label-urgent-foreground = ${colors.red} label-urgent-padding = 2 - -format-foreground = ${colors.foreground} -format-background = ${colors.background} \ No newline at end of file diff --git a/arch-config/.config/polybar/modules/modules.ini b/arch-config/.config/polybar/modules/modules.ini index 06895fe7..ed67eada 100644 --- a/arch-config/.config/polybar/modules/modules.ini +++ b/arch-config/.config/polybar/modules/modules.ini @@ -32,6 +32,28 @@ format-underline = #FFBB00 ################################################################################ +[module/decor-glyph] +type = custom/text +content-background = ${colors.background} +content-foreground = ${colors.modbackground} + +[module/right] +inherit = module/decor-glyph +content = " " + +[module/left] +inherit = module/decor-glyph +content = " " + +[module/full] +inherit = module/decor-glyph +content-background = ${colors.modbackground} +content = " " + + +################################################################################ + + [module/backlight-acpi] inherit = module/xbacklight type = internal/backlight diff --git a/arch-config/.config/polybar/modules/xwindow.ini b/arch-config/.config/polybar/modules/xwindow.ini index 3c032dab..1a2c5b3b 100644 --- a/arch-config/.config/polybar/modules/xwindow.ini +++ b/arch-config/.config/polybar/modules/xwindow.ini @@ -6,7 +6,7 @@ type = internal/xwindow ; %title% ; Default: %title% label = %title% -label-maxlen = 100 +label-maxlen = 40 format-foreground = ${colors.foreground} -format-background = ${colors.background} +format-background = ${colors.modbackground}