less intensive light and urgent color; restrictive FIFO mode

This commit is contained in:
Łukasz Pankowski 2020-07-13 22:53:37 +02:00
parent 25a350d962
commit 0aaad0a08f
3 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ env:
colors:
primary:
background: '#1a3a34'
foreground: '#e2f6e1'
foreground: '#f2f6e1'
font:
size: 13.5

View File

@ -6,10 +6,10 @@ path = os.path.join(os.getenv('HOME'), '.config/alacritty/alacritty.yml')
with open(path, 'r+') as f:
cfg = f.read()
if " background: '#1a3a34'" in cfg:
cfg = cfg.replace(" background: '#1a3a34'", " background: '#e2f6e1'")
cfg = cfg.replace(" foreground: '#e2f6e1'", " foreground: '#1a3a34'")
cfg = cfg.replace(" background: '#1a3a34'", " background: '#f2f6e1'")
cfg = cfg.replace(" foreground: '#f2f6e1'", " foreground: '#1a3a34'")
else:
cfg = cfg.replace(" background: '#e2f6e1'", " background: '#1a3a34'")
cfg = cfg.replace(" foreground: '#1a3a34'", " foreground: '#e2f6e1'")
cfg = cfg.replace(" background: '#f2f6e1'", " background: '#1a3a34'")
cfg = cfg.replace(" foreground: '#1a3a34'", " foreground: '#f2f6e1'")
f.seek(0)
f.write(cfg)

View File

@ -1,15 +1,15 @@
#!/bin/sh
BAR_BG='#1a343a'
BAR_FG='#e2f6e1'
BAR_FG='#f2f6e1'
ACTIVE_BG='#3585ce'
URGENT_BG='#ff0000'
URGENT_BG='#9b0640'
FREE_FG='#808080'
PANEL_FIFO=~/.panel-fifo
[ -e "$PANEL_FIFO" ] && rm -f "$PANEL_FIFO"
mkfifo "$PANEL_FIFO"
mkfifo -m 600 "$PANEL_FIFO"
bspc subscribe > "$PANEL_FIFO" &