From 9e5b14b338fa07a0da3c8799125dc217d0c8f5e5 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 31 Aug 2020 23:39:55 +0200 Subject: switch to polybar --- i3/config | 17 ++---------- polybar/config | 75 ++++++++++++++++++++++++++++------------------------ xinitrc.d/00-misc.sh | 2 ++ xinitrc.d/99-wm.sh | 4 +-- 4 files changed, 47 insertions(+), 51 deletions(-) diff --git a/i3/config b/i3/config index 35a322b..e0d9461 100644 --- a/i3/config +++ b/i3/config @@ -320,21 +320,6 @@ default_floating_border none gaps inner 5 -bar { - i3bar_command i3bar -t - status_command python /usr/share/powerline/bindings/i3/powerline-i3.py - #status_command i3status - font pango:DejaVu Sans Mono for Powerline 12 - - colors { - background #00000000 - focused_workspace #00000000 #00000000 #FFFFFF - active_workspace #00000000 #00000000 #FFFFFF - inactive_workspace #00000000 #00000000 #555555 - urgent_workspace #00000000 #FF000033 #555555 - } -} - # Pulse Audio controls bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5% @@ -352,3 +337,5 @@ bindsym XF86AudioNext exec --no-startup-id playerctl next # https://gitlab.com/wavexx/acpilight bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5 -fps 30 # increase screen brightness bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5 -fps 30 # decrease screen brightness + +exec --no-startup-id "launch-polybar.sh" diff --git a/polybar/config b/polybar/config index 8d1e26b..6918754 100644 --- a/polybar/config +++ b/polybar/config @@ -1,25 +1,7 @@ -;========================================================== -; -; -; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ -; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ -; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ -; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ -; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ -; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ -; -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;========================================================== [colors] -background = #000000 -background-alt = #222222 -;foreground = ${xrdb:color7:#222} +background = #000000ff +background-alt = #222222ff foreground = #dfdfdf foreground-alt = #555 primary = #ffb52a @@ -27,9 +9,9 @@ secondary = #e60053 alert = #bd2c40 [bar/jonny] -monitor = ${env:MONITOR:DP-2} +monitor = ${env:MONITOR:} width = 100% -height = 27 +height = 25 ;offset-x = 1% ;offset-y = 1% ;radius = 6.0 @@ -137,7 +119,7 @@ index-sort = true wrapping-scroll = false ; Only show workspaces on the same output as the bar -;pin-workspaces = true +pin-workspaces = true label-mode-padding = 2 label-mode-foreground = #000 @@ -145,17 +127,19 @@ label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor label-focused = %index% -label-focused-background = ${module/bspwm.label-focused-background} -;label-focused-underline = ${module/bspwm.label-focused-underline} +;label-focused-background = ${module/bspwm.label-focused-background} +label-focused-underline = ${module/bspwm.label-focused-underline} label-focused-padding = ${module/bspwm.label-focused-padding} ; unfocused = Inactive workspace on any monitor label-unfocused = %index% +label-unfocused-foreground = ${colors.foreground-alt} label-unfocused-padding = ${module/bspwm.label-occupied-padding} ; visible = Active workspace on unfocused monitor label-visible = %index% -label-visible-background = ${self.label-focused-background} + +;label-visible-background = ${colors.background-alt} ;label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} @@ -165,7 +149,7 @@ label-urgent-background = ${module/bspwm.label-urgent-background} label-urgent-padding = ${module/bspwm.label-urgent-padding} ; Separator in between workspaces - label-separator = + label-separator = | [module/mpd] @@ -206,18 +190,40 @@ card = intel_backlight [module/cpu] type = internal/cpu interval = 2 -format-prefix = "CPU " +;format-prefix = "CPU " format-prefix-foreground = ${colors.foreground-alt} +format =