guest@dotshare [~/groups/wms/bspwm] $ ls Aqua-Blue---BSPWM-Polybar/ | cat

Aqua Blue - BSPWM + Polybar (scrot)

thepiguy Dec 20, 2021 (wms/bspwm)

bspwm_bspwmrc(raw, dl)

SCROT

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh
# ██████╗ ███████╗██████╗ ██╗    ██╗███╗   ███╗  Author: ThePiGuy
# ██╔══██╗██╔════╝██╔══██╗██║    ██║████╗ ████║
# ██████╔╝███████╗██████╔╝██║ █╗ ██║██╔████╔██║
# ██╔══██╗╚════██║██╔═══╝ ██║███╗██║██║╚██╔╝██║
# ██████╔╝███████║██║     ╚███╔███╔╝██║ ╚═╝ ██║
# ╚═════╝ ╚══════╝╚═╝      ╚══╝╚══╝ ╚═╝     ╚═╝


pgrep -x sxhkd > /dev/null || sxhkd &
dunst &
picom &
feh --bg-fill $HOME/.config/bspwm/wallpaper.jpg &
flameshot &
pulseaudio --start 
$HOME/.config/polybar/launch.sh &

bspc monitor -d I II III IV V VI VII VIII IX X

bspc config border_width	2
#bspc config window_gaps		7

bspc config focused_border_color "#65b3f7"
bspc config normal_border_color "#0c576e"

bspc config presel_feedback_color "#65b3f7"

#bspc rule -a PMenu state=floating
bspc rule -a Pavucontrol state=floating

CLICK TO VIEW

x

sxhkd_sxhkdrc(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# ███████╗██╗  ██╗██╗  ██╗██╗  ██╗██████╗  Author: ThePiGuy 
# ██╔════╝╚██╗██╔╝██║  ██║██║ ██╔╝██╔══██╗
# ███████╗ ╚███╔╝ ███████║█████╔╝ ██║  ██║
# ╚════██║ ██╔██╗ ██╔══██║██╔═██╗ ██║  ██║
# ███████║██╔╝ ██╗██║  ██║██║  ██╗██████╔╝
# ╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝ 

super + Return
	LIBGL_ALWAYS_SOFTWARE=1 alacritty	

super + d
	rofi -show drun

super + {_,shift +}w
	bspc node -{c,k}

super + shift + r
	pkill -USR1 -x sxhkd

super + alt + {q,r}
	bspc {quit,wm -r}

super + {_,shift + }{Left,Down,Up,Right}
	bspc node -{f,s} {west,south,north,east}

super + alt + {Left,Down,Up,Right}
	bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}

super + alt + shift + {Left,Down,Up,Right}
	bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}

super + {_,shift + }{1-9,0}
	bspc {desktop -f,node -d} '^{1-9,10}'

super + {t,shift + t,s,f}
	bspc node -t {tiled,pseudo_tiled,floating,fullscreen}

super + ctrl + @space
	bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel

super + shift + p : {Left,Down,Up,Right,@space}
	bspc node -p {west,south,north,east,cancel}

super + p ; {Left,Down,Up,Right,@space}
	bspc node -p {west,south,north,east,cancel}

super + r : {Left, Down, Up, Right}
	bspc node -z {	left -20 0 || bspc node -z right -20 0, \
			bottom 0 20 || bspc node -z top 0 20,\
			top 0 -20 || bspc node -z bottom 0 -20,\
			right 20 0 || bspc node -z left 20 0}

super + ctrl + p
	bash ~/.config/polybar/scripts/pi-rofi-power

super + l
	betterlockscreen -l dimblur

{shift + ,_} Print
	{flameshot gui, flameshot screen -c}
 

x

polybar_config.ini(raw, dl)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗  Author: ThePiGuy 
# ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ ASCI-Theme: ANSI Shadow
# ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝ 
# ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗ 
# ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║ 
# ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
     

[color]

#nope		= #e647607d

bg 		= #e639465c
fg 		= #ffffff

acolor 		= #dedede
acolor1 	= #8f8f8f

work 		= #85afd6
work2		= #6888a3

curgent 	= #EF5350
coccupied 	= #42A5F5

workspaces 	= #dbdbde
network 	= #8DDDC9
nonetwork 	= #f28d8d
time 		= #F8BBFF
date		= #A2CFFE

# not a color but EHHH
net 		= enp0s3 

;------------------------------
;          BAR/MAIN
;------------------------------

[bar/main]
width 		= 100%
height 		= 30
offset-x 	= 0
offset-y 	= 0
bottom 		= false
fixed-center 	= true
line-size 	= 5
background 	= ${color.bg}
foreground 	= ${color.fg}

tray-position 	= left 

spacing 	= 0
module-margin 	= 1 
padding 	= 0

enable-ipc 	= true
cursor-click 	= pointer

wm-restack 	= bspwm

;--------------- FONT ---------------

font-0 	= "Fira Code:pixelsize=9;3"
font-1 	= "Fira Code:pixelsize=12;3"
font-2 	= "Font Awesome 5 Free:pixelsize=10;3"

font-3	= "Terminus:pixelsize=23;5"
font-4 	= "Iosevka Nerd Font:pixelsize=8.7;2.9"
font-5 	= "Font Awesome 5 Free:pixelsize=23;5"
font-6 	= "Iosevka Nerd Font:pixelsize=9;4"

;------------------------------
;           MODULES
;------------------------------

modules-left 	= workspaces
modules-center 	= xwindow 
modules-right 	= audio network date time 

[module/xwindow]
type 	= internal/xwindow
label 	= %title%

[module/workspaces]
type 			= internal/xworkspaces

pin-workspaces 		= true
enable-click 		= true
enable-scroll 		= true

format-padding 		= 0
format 			= %{T2}<label-state>%{T-}
format-foreground	= ${color.work}
format-background 	= ${color.bg}

icon-0 			= I;1
icon-1 			= II;2
icon-2 			= III;3
icon-3 			= IV;4
icon-4 			= V;5
icon-5 			= VI;6
icon-6 			= VII;7
icon-7 			= VIII;8
icon-8 			= IX;9
icon-9 			= X;0

icon-default 		= X 

label-active 		= %icon%
label-occupied 		= %icon% 
label-urgent 		= %icon% 
label-empty		= %icon%


label-empty-padding 	= 1
label-active-padding 	= 1
label-urgent-padding 	= 1
label-occupied-padding 	= 1

label-empty-foreground 	= ${color.workspaces}
label-active-background = ${color.work2}
label-active-foreground = ${color.workspaces}
label-urgent-foreground = ${color.curgent}
label-occupied-foreground = ${color.work}

;---------------- RIGHT ---------------------

[module/audio]
type 				= internal/pulseaudio

sink 				= alsa_output.pci-0000_00_05.0.analog-stereo
use-ui-max 			= false
interval 			= 5

format-volume 			= %{T2}[<ramp-volume> = <label-volume>]%{T-}
format-volume-foreground 	= #f2d58d

label-muted 			= %{T2}[= --%]%{T-}
label-muted-foreground 		= ${color.nonetwork}

ramp-volume-0 			= 奄 
ramp-volume-1 			= 奔
ramp-volume-2 			= 墳

click-right 			= pavucontrol

[module/network]
type 				= internal/network
interface 			= ${color.net} 
interval 			= 30

format-connected 		= <label-connected>
format-connected-foreground 	= ${color.network}
format-disconnected 		= %{T2}[= N/A]%{T-} 
format-disconnected-foreground 	= ${color.nonetwork} 

label-connected 		= %{T2}[= %ifname%]%{T-}

[module/date]
type 			= internal/date
interval 		= 1.0
label 			= %date%
label-padding-left 	= 0
label-background 	= ${color.bg}
label-foreground 	= ${color.date}
date 			= %{T2}[= %a %d/%m]%{T-}
date-alt 		= %{T2}[=%d/%m/%Y]%{T-}

[module/time]
type 			= internal/date
interval 		= 1.0
label 			=  %time%
label-background 	= ${color.bg}
label-foreground 	= ${color.time}
time 			= %{T2}[= %I:%M %p]%{T-}
time-alt 		= %{T2}[= %H:%M:%S]%{T-}
 

x

polybar_launch.sh(raw, dl)

1
2
3
4
5
6
7
#! /usr/bin/env sh

killall -q polybar

while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

polybar -c ~/.config/polybar/config.ini main &
 

x

Notes

Aqua Blue - My first rice

WM - BSPWM
BAR - Polybar
Menu - rofi
Terminal - Alacritty

!! NOTE Alacritty launches with LIBGL_ALWAYS_SOFTWARE=1 because I use these dots in a VM which does not support opengl 3.3. If your machine does support then change the entry in sxhkdrc to not have that variable

GitHub Link (in case you want the whole config or create an issue)

github