reorganize to use stow to manage configs, remove fish and stumpwm configs

This commit is contained in:
2020-07-21 06:50:01 +02:00
parent 8dfd72a3de
commit a8668f5409
23 changed files with 24 additions and 272 deletions

View File

@ -0,0 +1,62 @@
# See: /usr/share/doc/alacritty/example/alacritty.yml
env:
TERM: xterm-256color
schemas:
lupan_light: &dark
primary:
background: '#1a3a34'
foreground: '#f2f6e1'
normal:
black: '#000000'
red: '#e6436d'
green: '#59c19f'
yellow: '#f6bc25'
blue: '#55b3fd'
magenta: '#dc88e9'
cyan: '#77adc4'
white: '#f2f6e1'
bright:
black: '#888888'
red: '#e694a9'
green: '#94e6a9'
yellow: '#fbda62'
blue: '#1081ff'
magenta: '#b056b5'
cyan: '#169191'
white: '#ffffff'
lupan_light: &light
primary:
background: '#f2f6e1'
foreground: '#1a3a34'
normal:
black: '#000000'
red: '#e6436d'
green: '#1ebf33'
yellow: '#d6a708'
blue: '#1155e8'
magenta: '#a708d6'
cyan: '#2081a0'
white: '#f2f6e1'
bright:
black: '#888888'
red: '#e694a9'
green: '#94e6a9'
yellow: '#fbda62'
blue: '#1081ff'
magenta: '#b056b5'
cyan: '#169191'
white: '#ffffff'
colors: *dark
font:
size: 13.5
normal:
family: Iosevka
key_bindings:
- key: F6
mods: Control|Shift
command: { program: "/bin/sh", args: ["-c", "~/.config/alacritty/switch_bg.py"] }

View File

@ -0,0 +1,17 @@
#!/usr/bin/python3
import os
import sys
action = 'switch'
if len(sys.argv) > 1:
action = sys.argv[1]
path = os.path.join(os.getenv('HOME'), '.config/alacritty/alacritty.yml')
with open(path, 'r+') as f:
cfg = f.read()
if "colors: *dark" in cfg and action in ['switch', 'light']:
cfg = cfg.replace("colors: *dark", "colors: *light")
elif "colors: *light" in cfg and action in ['switch', 'dark']:
cfg = cfg.replace("colors: *light", "colors: *dark")
f.seek(0)
f.write(cfg)