From 147ca459fa3727ecf809265b3ac4ab8c1b005b5b Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Wed, 17 Nov 2021 00:08:23 -0800 Subject: [PATCH] update config to work with bspwm --- polybar-themes/sblocks/config.ini | 1 + polybar-themes/sblocks/modules.ini | 110 ++++++++++++++++------------- scripts/random-wallpaper.sh | 3 + 3 files changed, 64 insertions(+), 50 deletions(-) create mode 100755 scripts/random-wallpaper.sh diff --git a/polybar-themes/sblocks/config.ini b/polybar-themes/sblocks/config.ini index 5e6456a..63f4221 100644 --- a/polybar-themes/sblocks/config.ini +++ b/polybar-themes/sblocks/config.ini @@ -138,6 +138,7 @@ font-0 = "DroidSansMono Nerd Font:size=8;3" font-1 = icomoon-feather:size=8;3 font-2 = "Weather Icons:size=8;3" font-3 = "Material Icons:size=8;3" +font-4 = "Source Han Sans JP:size=8;3" ; ; Modules are added to one of the available blocks ; ; modules-left = cpu ram diff --git a/polybar-themes/sblocks/modules.ini b/polybar-themes/sblocks/modules.ini index ab1c572..5fb65fe 100644 --- a/polybar-themes/sblocks/modules.ini +++ b/polybar-themes/sblocks/modules.ini @@ -272,13 +272,13 @@ animation-charging-framerate = 750 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ -;;[module/bspwm] -;;type = internal/bspwm +[module/bspwm] +type = internal/bspwm ; Only show workspaces defined on the same output as the bar ; NOTE: The bspwm and XRandR monitor names must match, which they do by default. ; Default: true -;;pin-workspaces = true +pin-workspaces = true ; Output mode flags after focused state label ; Default: false @@ -286,7 +286,7 @@ animation-charging-framerate = 750 ; Create click handler used to focus workspace ; Default: true -;;enable-click = false +enable-click = false ; Create scroll handlers used to cycle workspaces ; Default: true @@ -301,28 +301,28 @@ animation-charging-framerate = 750 ; Example: code;♚ will apply the icon to all workspaces ; containing 'code' in the label ; Default: false -;;fuzzy-match = true +fuzzy-match = true ; ws-icon-[0-9]+ = label;icon ; Note that the label needs to correspond with the bspwm workspace name -;;ws-icon-0 = code;♚ -;;ws-icon-1 = office;♛ -;;ws-icon-2 = graphics;♜ -;;ws-icon-3 = mail;♝ -;;ws-icon-4 = web;♞ -;;ws-icon-default = ♟ +; ws-icon-0 = code;♚ +; ws-icon-1 = office;♛ +; ws-icon-2 = graphics;♜ +; ws-icon-3 = mail;♝ +; ws-icon-4 = web;♞ +; ws-icon-default = ♟ ; Available tags: ; ; - gets replaced with ; - gets replaced with ; Default: -;;format = +format = ; Available tokens: ; %name% ; Default: %name% -;;label-monitor = %name% +label-monitor = %name% ; If any values for label-dimmed-N are defined, the workspace/mode ; colors will get overridden with those values if the monitor is out of focus @@ -331,67 +331,67 @@ animation-charging-framerate = 750 ; label-dimmed-occupied ; label-dimmed-urgent ; label-dimmed-empty -;;label-dimmed-foreground = #555 -;;label-dimmed-underline = ${bar/top.background} -;;label-dimmed-focused-background = #f00 +label-dimmed-foreground = #555 +label-dimmed-underline = ${bar/top.background} +label-dimmed-focused-background = #f00 ; Available tokens: ; %name% ; %icon% ; %index% ; Default: %icon% %name% -;;label-focused = %icon% -;;label-focused-foreground = #ffffff -;;label-focused-background = #3f3f3f -;;label-focused-underline = #fba922 +label-focused = %icon% +label-focused-foreground = #ffffff +label-focused-background = #3f3f3f +label-focused-underline = #fba922 ; Available tokens: ; %name% ; %icon% ; %index% ; Default: %icon% %name% -;;label-occupied = %icon% -;;label-occupied-underline = #555555 +label-occupied = %icon% +label-occupied-underline = #555555 ; Available tokens: ; %name% ; %icon% ; %index% ; Default: %icon% %name% -;;label-urgent = %icon% -;;label-urgent-foreground = #000000 -;;label-urgent-background = #bd2c40 -;;label-urgent-underline = #9b0a20 +label-urgent = %icon% +label-urgent-foreground = #000000 +label-urgent-background = #bd2c40 +label-urgent-underline = #9b0a20 ; Available tokens: ; %name% ; %icon% ; %index% ; Default: %icon% %name% -;;label-empty = %icon% -;;label-empty-foreground = #55 +label-empty = %icon% +label-empty-foreground = #55 ; The following labels will be used to indicate the layout/mode ; for the focused workspace. Requires ; ; Available tokens: ; None -;label-monocle =  -;label-tiled =  -;label-fullscreen =  -;label-floating =  -;label-pseudotiled = P -;label-locked =  -;label-locked-foreground = #bd2c40 -;label-sticky =  -;label-sticky-foreground = #fba922 -;label-private =  -;label-private-foreground = #bd2c40 +abel-monocle =  +abel-tiled =  +abel-fullscreen =  +abel-floating =  +abel-pseudotiled = P +abel-locked =  +abel-locked-foreground = #bd2c40 +abel-sticky =  +abel-sticky-foreground = #fba922 +abel-private =  +abel-private-foreground = #bd2c40 ; Separator in between workspaces -;;label-separator = | -;;label-separator-padding = 2 -;;label-separator-foreground = #ffb52a +label-separator = | +label-separator-padding = 2 +label-separator-foreground = #ffb52a ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ @@ -1308,6 +1308,16 @@ enable-scroll = true ; icon-3 = 4; ; icon-4 = 5; ; icon-default =  +icon-1 = I;一 +icon-2 = II;二 +icon-3 = III;三 +icon-4 = IV;四 +icon-5 = V;五 +icon-6 = VI;六 +icon-7 = VII;七 +icon-8 = VIII;八 +icon-9 = IX;九 +icon-0 = X;十 ; Available tags: ; @@ -1327,8 +1337,8 @@ label-monitor = %name% ; %icon% ; %index% ; Default: %icon% %name% -; label-active = %icon% -label-active = %icon% %name% +label-active = %icon% +; label-active = %icon% %name% ; label-active-foreground = ${color.indigo} label-active-foreground = ${color.foreground} label-active-background = ${color.primary} @@ -1339,8 +1349,8 @@ label-active-background = ${color.primary} ; %icon% ; %index% ; Default: %icon% %name% -; label-occupied = %icon% -label-occupied = %icon% %name% +label-occupied = %icon% +; label-occupied = %icon% %name% ; label-occupied-foreground = ${color.indigo} label-occupied-foreground = ${color.foreground} label-occupied-background = ${color.black} @@ -1350,8 +1360,8 @@ label-occupied-background = ${color.black} ; %icon% ; %index% ; Default: %icon% %name% -; label-urgent = %icon% -label-urgent = %icon% %name% +label-urgent = %icon% +; label-urgent = %icon% %name% ; label-urgent-foreground = ${color.indigo} label-urgent-foreground = ${color.red} label-urgent-background = ${color.red} @@ -1361,8 +1371,8 @@ label-urgent-background = ${color.red} ; %icon% ; %index% ; Default: %icon% %name% -; label-empty = %icon% -label-empty = %icon% %name% +label-empty = %icon% +; label-empty = %icon% %name% ; label-empty-foreground = ${color.indigo} label-empty-foreground = ${color.foreground} label-empty-background = ${color.background-alt} diff --git a/scripts/random-wallpaper.sh b/scripts/random-wallpaper.sh new file mode 100755 index 0000000..a3ae12d --- /dev/null +++ b/scripts/random-wallpaper.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +# find "$HOME/Pictures/wallpapers" -type f | shuf -n 1 +feh --bg-scale "$(find "$HOME/Pictures/wallpapers" -type f | shuf -n 1)"