update laptop config with bspwm

This commit is contained in:
ksyasuda 2021-12-06 15:40:50 -08:00
parent 542d007185
commit 664cacf190
4 changed files with 21 additions and 14 deletions

View File

@ -137,6 +137,7 @@ module-margin-right = 0
font-0 = "DroidSansMono Nerd Font:size=9;3" font-0 = "DroidSansMono Nerd Font:size=9;3"
font-1 = "icomoon-feather:size=9;3" font-1 = "icomoon-feather:size=9;3"
font-2 = "Weather Icons:size=9;3" font-2 = "Weather Icons:size=9;3"
font-3 = "Source Han Sans JP:size=8;3"
; Modules are added to one of the available blocks ; Modules are added to one of the available blocks
; modules-left = cpu ram ; modules-left = cpu ram
@ -144,7 +145,7 @@ font-2 = "Weather Icons:size=9;3"
; modules-right = ipc clock ; modules-right = ipc clock
; modules-left = sep menu sep workspaces sep cust-mpd-prev custom-mpd cust-mpd-next ; modules-left = sep menu sep workspaces sep cust-mpd-prev custom-mpd cust-mpd-next
modules-left = sep launcher sep i3-workspaces sep chrome flameshot color-picker sep cust-mpd-icon cust-mpd-prev custom-mpd cust-mpd-next modules-left = sep launcher sep bspwm-workspaces chrome flameshot color-picker sep cust-mpd-icon cust-mpd-prev custom-mpd cust-mpd-next
modules-center = title-icon title package-updates-trigger package-updates modules-center = title-icon title package-updates-trigger package-updates
; modules-right = color-switch sep alsa sep battery sep network sep date sep sysmenu sep ; modules-right = color-switch sep alsa sep battery sep network sep date sep sysmenu sep
modules-right = sep bluetooth-4k sep pulseaudio sep battery sep network sep date weather sep sysmenu sep modules-right = sep bluetooth-4k sep pulseaudio sep battery sep network sep date weather sep sysmenu sep
@ -161,7 +162,9 @@ dim-value = 1.0
; If the value is empty or undefined, the atom value ; If the value is empty or undefined, the atom value
; will be created from the following template: polybar-[BAR]_[MONITOR] ; will be created from the following template: polybar-[BAR]_[MONITOR]
; NOTE: The placeholders are not available for custom values ; NOTE: The placeholders are not available for custom values
wm-name = i3 ; wm-name = i3
wm-name = bspwm
; Locale used to localize various module data (e.g. date) ; Locale used to localize various module data (e.g. date)
; Expects a valid libc locale, for example: sv_SE.UTF-8 ; Expects a valid libc locale, for example: sv_SE.UTF-8
@ -210,11 +213,12 @@ tray-scale = 1.0
; Currently supported WM's: ; Currently supported WM's:
; bspwm ; bspwm
; i3 (requires: `override-redirect = true`) ; i3 (requires: `override-redirect = true`)
wm-restack = i3 ; wm-restack = i3
wm-restack = bspwm
; Set a DPI values used when rendering text ; Set a DPI values used when rendering text
; This only affects scalable fonts ; This only affects scalable fonts
dpi = 188 dpi = 192
; Enable support for inter-process messaging ; Enable support for inter-process messaging
; See the Messaging wiki page for more details. ; See the Messaging wiki page for more details.

View File

@ -854,7 +854,7 @@ interface = eth0
[module/wireless-network] [module/wireless-network]
type = internal/network type = internal/network
interface = wlp2s0 interface = wlan0
[module/network-wlan] [module/network-wlan]
@ -968,7 +968,7 @@ ramp-signal-padding = 1
; Normal Module ; Normal Module
[module/network] [module/network]
type = internal/network type = internal/network
interface = wlp2s0 interface = wlan0
; Seconds to sleep between updates ; Seconds to sleep between updates
; Default: 1 ; Default: 1
@ -1412,7 +1412,7 @@ label-monitor = %name%
; %icon% ; %icon%
; %index% ; %index%
; Default: %icon% %name% ; Default: %icon% %name%
label-active = %icon% label-active = %name%
label-active-foreground = ${color.foreground} label-active-foreground = ${color.foreground}
label-active-background = ${color.primary} label-active-background = ${color.primary}
@ -1422,7 +1422,7 @@ label-active-background = ${color.primary}
; %icon% ; %icon%
; %index% ; %index%
; Default: %icon% %name% ; Default: %icon% %name%
label-occupied = %icon% label-occupied = %name%
label-occupied-foreground = ${color.foreground} label-occupied-foreground = ${color.foreground}
label-occupied-background = ${color.black} label-occupied-background = ${color.black}
@ -1431,7 +1431,7 @@ label-occupied-background = ${color.black}
; %icon% ; %icon%
; %index% ; %index%
; Default: %icon% %name% ; Default: %icon% %name%
label-urgent = %icon% label-urgent = %name%
label-urgent-foreground = ${color.red} label-urgent-foreground = ${color.red}
label-urgent-background = ${color.red} label-urgent-background = ${color.red}
@ -1440,7 +1440,7 @@ label-urgent-background = ${color.red}
; %icon% ; %icon%
; %index% ; %index%
; Default: %icon% %name% ; Default: %icon% %name%
label-empty = %icon% label-empty = %name%
label-empty-foreground = ${color.foreground} label-empty-foreground = ${color.foreground}
label-empty-background = ${color.background-alt} label-empty-background = ${color.background-alt}

View File

@ -57,7 +57,10 @@ fixed-center = true
line-size = 2 line-size = 2
radius = 0 radius = 0
override-redirect = true override-redirect = true
wm-restack = i3 ; override-redirect = false
; wm-restack = i3
wm-restack = bspwm
override-redirect = true
#background = ${color.bg} #background = ${color.bg}
; background = #282c34 ; background = #282c34
@ -73,7 +76,7 @@ font-2 = Weather Icons:size=20;1
font-3 = "Source Han Sans JP:pixelsize=20;antialias=true;3" font-3 = "Source Han Sans JP:pixelsize=20;antialias=true;3"
font-4 = "PowerlineSymbols:pixelsize=20;antialias=true;3" font-4 = "PowerlineSymbols:pixelsize=20;antialias=true;3"
dpi = 90 dpi = 100
;========================================================== ;==========================================================

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env bash
## Add this to your wm startup file. ## Add this to your wm startup file.
@ -6,7 +6,7 @@
killall -q polybar killall -q polybar
# Wait until the processes have been shut down # Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done while pgrep -u "$UID" -x polybar >/dev/null; do sleep 1; done
# polybar -c ~/i3/configs/config.ini main & # polybar -c ~/i3/configs/config.ini main &
# polybar -c ~/SudacodeRice/polybar/config.ini main & # polybar -c ~/SudacodeRice/polybar/config.ini main &