diff --git a/os/+arch/.config/bspwm/bspwmrc b/os/+arch/.config/bspwm/bspwmrc index 7bdba271..e3c80fe8 100755 --- a/os/+arch/.config/bspwm/bspwmrc +++ b/os/+arch/.config/bspwm/bspwmrc @@ -1,8 +1,7 @@ #!/usr/bin/bash -# lemonbar -~/.config/panel/panel >~/.config/panel/panel.log 2>&1 & - +# top-bar +pgrep -x polybar >/dev/null || polybar main >~/.config/polybar/polybar.log 2>&1 & # # Appearance @@ -54,17 +53,17 @@ primary=$(bspc query -M -m prmary) host=$(hostname) case $host in triton*) - { - bspc monitor DVI-I-1 -n C - bspc monitor HDMI-0 -n R - bspc monitor DVI-D-0 -n L - } >/dev/null 2>&1 + # { + # bspc monitor DVI-I-1 -n C + # bspc monitor HDMI-0 -n R + # bspc monitor DVI-D-0 -n L + # } >/dev/null 2>&1 - bspc monitor C -d C/{1,2,3,4,5} - [[ $nmon > 1 ]] && bspc monitor R -d R/1 - [[ $nmon > 2 ]] && bspc monitor L -d L/1 + bspc monitor DVI-I-1 -d {1,2,3,4,5} + [[ $nmon > 1 ]] && bspc monitor HDMI-0 -d HDMI-0/1 + [[ $nmon > 2 ]] && bspc monitor DVI-D-0 -d DVI-D-0/1 - bspc config -m C top_padding 30 + bspc config -m DVI-I-1 top_padding 30 ;; *) bspc monitor "$primary" -n C ;; diff --git a/os/+arch/.config/polybar/config b/os/+arch/.config/polybar/config new file mode 100644 index 00000000..418d50ec --- /dev/null +++ b/os/+arch/.config/polybar/config @@ -0,0 +1,398 @@ +;===================================================== +; +; To learn more about how to configure Polybar +; go to https://github.com/jaagr/polybar +; +; The README contains alot of information +; +;===================================================== + +[colors] +background = #8801040b +background-alt = #22252c +foreground = #e5e8e6 +foreground-alt = #55 +primary = #ffb52a +secondary = #e60053 +alert = ${xrdb:color5} + +[global/wm] +margin-top = 4 +margin-bottom = 5 + +[bar/main] +monitor = "DVI-I-1" +width = 100% +height = 29 +offset-x = 0 +offset-y = 0 + +;background = ${xrdb:color9} +background = ${colors.background} +foreground = ${colors.foreground} + +overline-size = 2 +overline-color = #f00 +underline-size = 2 +underline-color = #00f + +border-bottom-size = 0 +border-bottom-color = #333 + +spacing = 2 +padding-left = 0 +padding-right = 2 +module-margin-left = 2 +module-margin-right = 2 + +font-0 = "Fira Sans:fontformat=truetype:style=Bold:size=10;1" +font-1 = "Fira Mono:fontformat=truetype:style=Bold:size=10;1" +font-2 = FontAwesome:fontformat=truetype:size=10.5;1 + +modules-left = bspwm +modules-center = xwindow +; modules-right = volume date redshift +modules-right = pkg mail volume date redshift powermenu + +;tray-position = center +tray-padding = 2 +;tray-transparent = true +;tray-background = #0063ff + +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 + + +[module/xwindow] +type = internal/xwindow +label = %title:0:60:...% + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +format-underline = ${colors.secondary} +format-prefix = " " +format-prefix-foreground = ${colors.foreground-alt} + +label-layout = %layout% + +label-indicator-padding = 2 +label-indicator-background = ${colors.secondary} +label-indicator-underline = ${colors.secondary} + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / +mount-1 = /home +mount-2 = /invalid/mountpoint + +label-mounted = %mountpoint%: %percentage_free% + +label-unmounted = %mountpoint%: not mounted +label-unmounted-foreground = ${colors.foreground-alt} + +[module/bspwm] +type = internal/bspwm + +pin-workspaces = true +enable-click = true + +ws-icon-0 = 1; +ws-icon-1 = 2; +ws-icon-2 = 3; +ws-icon-3 = 4; +ws-icon-4 = 5; +ws-icon-default = x + +format = + +label-focused = %icon% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +label-occupied = %icon% +label-occupied-padding = 2 + +label-urgent = %icon% +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %icon% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.primary} + +label-focused = %index% +label-focused-background = ${module/bspwm.label-focused-background} +label-focused-underline = ${module/bspwm.label-focused-underline} +label-focused-padding = ${module/bspwm.label-focused-padding} + +label-unfocused = %index% +label-unfocused-padding = ${module/bspwm.label-occupied-padding} + +label-urgent = %index%! +label-urgent-background = ${module/bspwm.label-urgent-background} +label-urgent-padding = ${module/bspwm.label-urgent-padding} + +label-visible = %index% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +[module/mpd] +type = internal/mpd +host = /home/hlissner/.config/mpd/mpd.sock + +format-online = + +label-song-maxlen = 35 +label-song-ellipsis = true + +icon-prev =  +icon-seekb =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  +icon-seekf =  + +icon-random =  +icon-repeat =  + +toggle-on-foreground = ${colors.primary} +toggle-off-foreground = #66 + +[module/backlight] +type = internal/xbacklight + +format =