From 0ef8fb571af5786e2e71e9043d1b71b9c41fe964 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sat, 31 Oct 2020 18:11:16 -0400 Subject: [PATCH] Replace xfce4-panel with polybar --- .config/bspwm/bspwmrc | 8 +- .config/picom/picom.conf | 5 + .config/polybar/config | 388 +++++++++++++++++++++++++++++++++++++++ sync | 1 + 4 files changed, 398 insertions(+), 4 deletions(-) create mode 100644 .config/polybar/config diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 8e99626..541cbbb 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -4,7 +4,7 @@ setxkbmap -option altwin:swap_alt_win setxkbmap -option ctrl:swapcaps sxhkd & wmname LG3D -xfce4-panel -d & +polybar m-bar & xfce4-screensaver & picom -b ~/.fehbg & @@ -12,14 +12,14 @@ picom -b bspc monitor -d I II III IV V VI VII bspc config border_width 2 -bspc config window_gap 12 -bspc config top_padding 24 +bspc config window_gap 8 +bspc config top_padding 0 bspc config split_ratio 0.52 bspc config borderless_monocle true bspc config gapless_monocle true -bspc config focused_border_color '#83a598' +bspc config focused_border_color '#689d6a' # bspc rule -a Gimp desktop='^8' state=floating follow=on # bspc rule -a Chromium desktop='^2' diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf index 5071267..2b12ecd 100644 --- a/.config/picom/picom.conf +++ b/.config/picom/picom.conf @@ -13,3 +13,8 @@ blur-background = true blur-kern = "11x11gaussian" vsync = true + +wintypes: +{ + dock = { full-shadow = true; }; +}; diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 0000000..04f52de --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,388 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[colors] +;background = ${xrdb:color0:#222} +background = #282828 +background-alt = #3c3836 +;foreground = ${xrdb:color7:#222} +foreground = #ebdbb2 +foreground-alt = #fbf1c7 +primary = #689d6a +secondary = #458588 +alert = #cc241d + +[bar/m-bar] +;monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 25 +;offset-x = 1% +;offset-y = 1% +radius = 0.0 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +border-size = 8 +border-color = #00000000 + +padding-left = 0 +padding-right = 0 + +module-margin-left = 0 +module-margin-right = 1 + +font-0 = JetBrains Mono:pixelsize=10;1 +font-1 = JetBrains Mono:pixelsize=8;0 +font-2 = JetBrains Mono:pixelsize=10;1 +#font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +#font-2 = siji:pixelsize=10;1 + +modules-left = bspwm +modules-center = xwindow +modules-right = pulseaudio filesystem xkeyboard cpu memory eth date powermenu + +tray-position = right +tray-padding = 2 +tray-background = ${colors.background} + +wm-restack = bspwm +;wm-restack = i3 + +;override-redirect = true + +scroll-up = bspwm-desknext +scroll-down = bspwm-deskprev + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/xwindow] +type = internal/xwindow +label = %title:0:30:...% + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +format-prefix = " " +format-prefix-foreground = ${colors.foreground-alt} +format-prefix-underline = ${colors.secondary} + +label-layout = %layout% +label-layout-underline = ${colors.secondary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-background = ${colors.secondary} +label-indicator-underline = ${colors.secondary} + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / +mount-1 = /home + +label-mounted = %{F#458588}%mountpoint%%{F-}: %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} + +[module/bspwm] +type = internal/bspwm + +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-padding = 2 + +label-urgent = %index%! +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %index% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +; Separator in between workspaces +; label-separator = | + +[module/mpd] +type = internal/mpd +format-online = + +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  + +label-song-maxlen = 25 +label-song-ellipsis = true + +[module/xbacklight] +type = internal/xbacklight + +format =