guest@dotshare [~/groups/wms/bspwm] $ ls Quarantine-with-Qubes-OS/ | cat

Quarantine with Qubes OS (scrot)

mohabaks Jul 12, 2020 (wms/bspwm)

polybar(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
 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
;*********************************************************
;
;                          COLORS
;
;**********************************************************
[colors]
; Base colors from .Xresources
bg          =  ${xrdb:background}
bg-alt      =  #1b2535
fg          =  ${xrdb:foreground}
fg-alt      =  ${xrdb:color8}
red         =  ${xrdb:color1}
red-alt     =  ${xrdb:color9}
green       =  ${xrdb:color2}
green-alt   =  ${xrdb:color10}
yellow      =  ${xrdb:color3}
yellow-alt  =  ${xrdb:color11}
blue        =  ${xrdb:color4}
blue-alt    =  ${xrdb:color12}
magenta     =  ${xrdb:color5}
magenta-alt =  ${xrdb:color13}
cyan        =  ${xrdb:color6}
cyan-alt    =  ${xrdb:color14}
white       =  ${xrdb:color7}
white-alt   =  ${xrdb:color15}

;**********************************************************
;
;                       GLOBAL WM SETTINGS
;
;**********************************************************
[global/wm]
margin-top = 0
margin-bottom = 0

;*********************************************************
;
;                       BAR SETTINGS
;
;********************************************************

[bar/right]
monitor   = ${env:MONITOR:HDMI2}
bottom    = false
width     = 99%
height    = 24
offset-x  = 10
offset-y  = 10
override-redirect = false

background = ${colors.bg}
foreground = ${colors.fg}

border-bottom-size = 0
border-bottom-color = ${colors.bg}
border-top-size = 0
border-top-color = ${colors.bg}
border-right-size = 0
border-right-color = ${colors.bg}
border-left-size = 0
border-left-color = ${colors.bg}

spacing = 0
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 0

font-0 = Iosevka Slab:style=Regular:size=8;2
font-1 = Font Awesome 5 Free:style=Solid:size=9;3
font-2 = monofur for Powerline:style=Regular:size=18;4

tray-position = none
tray-padding = 0
tray-transparent = true
tray-background = ${colors.bg}

modules-left = search p-menu bspwm p-wm
modules-center = 
modules-right = p-right-black-alt disk p-right-black temp p-right-black-alt memory p-right-black cpu p-right-black-alt bat

[bar/left]
monitor   = ${env:MONITOR:HDMI1}
bottom    = false
width     = 99%
height    = 24
offset-x  = 10
offset-y  = 10
override-redirect = false

background = ${colors.bg}
foreground = ${colors.fg}

border-bottom-size = 0
border-bottom-color = ${colors.bg}
border-top-size = 0
border-top-color = ${colors.bg}
border-right-size = 0
border-right-color = ${colors.bg}
border-left-size = 0
border-left-color = ${colors.bg}

spacing = 0
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 0

font-0 = Iosevka Slab:style=Regular:size=8;2
font-1 = Font Awesome 5 Free:style=Solid:size=9;3
font-2 = monofur for Powerline:style=Regular:size=18;4

tray-position = none
tray-padding = 1
tray-transparent = true
tray-background = #10171e

modules-left = search p-menu bspwm p-wm
modules-center = 
modules-right =  p-left-black-alt wifi p-left-black mail p-left-black-alt qubes p-left-black volume p-left-black-alt date 

;**********************************************************
;
;                   MODULES SETTINGS
;
;**********************************************************

[module/bspwm]
type = internal/bspwm

strip-wsnumbers = true

label-focused = "%name%"
label-focused-foreground = ${colors.green}
label-focused-background = ${colors.bg-alt}
label-focused-padding = 1

label-occupied = "%name%"
label-occupied-padding = 1
label-occupied-foreground = ${colors.white-alt}
label-occupied-background = ${colors.bg-alt}

label-urgent = "%name%"
label-urgent-foreground = ${colors.cyan}
label-urgent-background = ${colors.bg-alt}
label-urgent-padding = 1

label-empty = "%name%"
label-empty-foreground = ${colors.fg-alt}
label-empty-background = ${colors.bg-alt}
label-empty-padding = 1

[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "  "
format-prefix-foreground = ${colors.magenta-alt}
label = "%percentage%% "

[module/memory]
type = internal/memory
interval = 2
format-background = ${colors.bg-alt}
format-prefix = "  "
format-prefix-foreground = ${colors.cyan}
label = "%percentage_used%% "

[module/bat]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 100

label-discharging = "%percentage%% " 
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-background = ${colors.bg-alt}
format-charging-background = ${colors.bg-alt}

label-full = " Battery Full "
format-full-prefix = 
format-full-prefix-foreground = ${colors.white-alt}
format-full-background = ${colors.bg-alt}

ramp-capacity-0 = " "
ramp-capacity-1 = " "
ramp-capacity-2 = " "
ramp-capacity-foreground = ${colors.red}

label-charging = "Charging %percentage%% "
label-charging-foreground = ${colors.fg}

animation-charging-0 = " "
animation-charging-1 = " "
animation-charging-2 = " "
animation-charging-foreground = ${colors.green}
animation-charging-framerate = 750

[module/temp]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60

format = <ramp> <label>
format-warn = <ramp> <label-warn>

label = "%temperature-c% "
label-warn = "%temperature-c% "
label-warn-foreground = ${colors.red}

ramp-0 = " "
ramp-1 = " "
ramp-2 = " "
ramp-foreground = ${colors.green}

[module/mail]
type = custom/script
interval = 120
format = " <label> "
format-prefix = "  "
format-prefix-foreground = ${colors.red}
exec = ~/.config/polybar/.m

[module/date]
type = internal/date
interval = 5
date = "%a %d %b %Y "

time-alt = "%H:%M "
time = "%H:%M "

label = %date%%time%

format-prefix = "  "
format-prefix-foreground = ${colors.blue}
format-foreground = ${colors.fg}
format-background = ${colors.bg-alt}

[module/qubes]
type = custom/script
interval = 120
format = "<label> "
format-background = ${colors.bg-alt}
format-prefix = "  "
format-prefix-foreground = ${colors.green}
exec = ~/.config/polybar/status_qubes

[module/wifi]
type = custom/script
interval = 120
format = "<label> "
format-background = ${colors.bg-alt}
format-prefix = "  "
format-prefix-foreground = ${colors.cyan}
exec = ~/.config/polybar/status_net

[module/disk]
type = custom/script
interval = 1200
format = "<label> "
format-background = ${colors.bg-alt}
format-prefix = "  "
format-prefix-foreground = ${colors.yellow}
exec = ~/.config/polybar/status_disk

[module/volume]
type = custom/script
interval = 60
format = <label>
format-prefix = "  "
format-prefix-foreground = ${colors.yellow}
exec = ~/.config/polybar/status_volume

[module/search]
type = custom/text

content = "%{T2}  %{T-}"
content-foreground = ${colors.white-alt}
content-background = ${colors.bg}
click-left = ~/.config/polybar/search

;
;
;   Fancy Powerline - left
;

[module/p-left-black]
type = custom/text

content = "%{T3}%{T-}"
content-foreground = ${colors.bg}
content-background = ${colors.bg-alt}

[module/p-left-black-alt]
type = custom/text

content = "%{T3}%{T-}"
content-foreground = ${colors.bg-alt}
content-background = ${colors.bg}

;
;
;   Fancy Powerline - right
;

[module/p-right-black]
type = custom/text

content = "%{T3}%{T-}"
content-foreground = ${colors.bg}
content-background = ${colors.bg-alt}

[module/p-right-black-alt]
type = custom/text

content = "%{T3}%{T-}"
content-foreground = ${colors.bg-alt}
content-background = ${colors.bg}

[module/p-menu]
type = custom/text

content = "%{T3}%{T-}"
content-foreground = ${colors.bg}
content-background = ${colors.bg-alt}

[module/p-wm]
type = custom/text

content = "%{T3}%{T-}"
content-foreground = ${colors.bg-alt}
content-background = ${colors.bg}
; vim:ft=dosini

CLICK TO VIEW

x

bspwm(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
#! /usr/bin/bash
#                                                                      
#  ▄▄                                                                   
#  ██                                                                   
#  ██▄███▄   ▄▄█████▄  ██▄███▄  ██      ██ ████▄██▄   ██▄████   ▄█████▄ 
#  ██▀  ▀██  ██▄▄▄▄ ▀  ██▀  ▀██ ▀█  ██  █▀ ██ ██ ██   ██▀      ██▀    ▀ 
#  ██    ██   ▀▀▀▀██▄  ██    ██  ██▄██▄██  ██ ██ ██   ██       ██       
#  ███▄▄██▀  █▄▄▄▄▄██  ███▄▄██▀  ▀██  ██▀  ██ ██ ██   ██       ▀██▄▄▄▄█ 
#  ▀▀ ▀▀▀     ▀▀▀▀▀▀   ██ ▀▀▀     ▀▀  ▀▀   ▀▀ ▀▀ ▀▀   ▀▀         ▀▀▀▀▀  
#                      ██                                               
#    
#                                     Config by: https://github.com/mohabaks
#
#

#  Autostart apps
$HOME/.config/bspwm/autostart

# Set border color
BLK="#1d2636"

# Check if the monitor is connected
if `xrandr -q | grep -q "HDMI2 connected"`
then

        #
        # Monitor & Destop Settings
        # 

        bspc monitor HDMI1 -d 1 2 3 4 5
        bspc monitor HDMI2 -d 6 7 8 9 10
        bspc config -m HDMI2 window_gap           10
        bspc config -m HDMI2 border_width         2
        bspc config -m HDMI1 window_gap           10
        bspc config -m HDMI1 border_width         2

        #
        # Global Settings
        #

        bspc config -m HDMI2 normal_border_color   "$BLK"
        bspc config -m HDMI1 normal_border_color   "$BLK"
        bspc config -m HDMI2 active_border_color   "$BLK"
        bspc config -m HDMI1 active_border_color   "$BLK"
        bspc config -m HDMI2 focused_border_color  "$BLK"
        bspc config -m HDMI1 focused_border_color  "$BLK"
        bspc config -m HDMI2 urgent_border_color   "$BLK"
        bspc config -m HDMI1 urgent_border_color   "$BLK"
        bspc config -m HDMI2 presel_border_color   "$BLK"
        bspc config -m HDMI1 presel_border_color   "$BLK"

	# Start polybar
	polybar --config=$HOME/.config/polybar/configMonitor left 2> /dev/null &
	#sleep 1
	polybar --config=$HOME/.config/polybar/configMonitor right 2> /dev/null &



else
	# Check focus for bspwm and color border for Qubes
	#$HOME/.config/bspwm/change_focused_border_color.py &
	
	bspc config border_width         1
	bspc config window_gap           0

	bspc config split_ratio          0.50
	bspc config borderless_monocle   true
	bspc config gapless_monocle      true
	bspc config focus_by_distance    true
	bspc config history_aware_focus  true

	bspc monitor -d I II III IV

	BLK="#101010"
	bspc config normal_border_color   "$BLK"
	bspc config focused_border_color  "$BLK"
	bspc config urgent_border_color   "$BLK"
	bspc config presel_border_color   "$BLK"

	# Start polybar
	polybar --config=$HOME/.config/polybar/config mybar 2> /dev/null &
fi


#
# Global Settings
#

bspc config split_ratio           0.50
bspc config borderless_monocle    false
bspc config gapless_monocle       false


#
#  Rule Settings
#

# apps in float mode
bspc rule -a Nitrogen state=floating focus=on
bspc rule -a feh state=floating focus=on
bspc rule -a Lxappearance state=floating focus=on
bspc rule -a Pavucontrol state=floating focus=on
bspc rule -a Qubes-update-gui state=floating focus=on
 

x

Notes

Updates dots can be found here