[core] Rework core implementation
Experimental re-implementation of core functionality with the aim: - Depend only on the Python Standard Library for core - If modules are missing elsewhere, *never* throw - Unit test *everything* - Cleaner and more minimal implementation - Better integration points for existing implementations (charts, braille, etc.) - Full backwards-compatibility with existing module system (except where modules can be vastly simplified)
This commit is contained in:
parent
72f88b3409
commit
e931bb93c6
214 changed files with 45 additions and 13040 deletions
|
@ -1,30 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -f ~/.config/i3/config.template ]; then
|
||||
cp ~/.config/i3/config ~/.config/i3/config.template
|
||||
else
|
||||
cp ~/.config/i3/config.template ~/.config/i3/config
|
||||
fi
|
||||
|
||||
if [ -f ~/.config/i3/config.template.private ]; then
|
||||
cat ~/.config/i3/config.template.private >> ~/.config/i3/config
|
||||
fi
|
||||
|
||||
screens=$(xrandr -q|grep ' connected'| grep -P '\d+x\d+' |cut -d' ' -f1)
|
||||
|
||||
echo "screens: $screens"
|
||||
|
||||
while read -r line; do
|
||||
screen=$(echo $line | cut -d' ' -f1)
|
||||
others=$(echo $screens|tr ' ' '\n'|grep -v $screen|tr '\n' '-'|sed 's/.$//')
|
||||
|
||||
if [ -f ~/.config/i3/config.$screen-$others ]; then
|
||||
cat ~/.config/i3/config.$screen-$others >> ~/.config/i3/config
|
||||
else
|
||||
if [ -f ~/.config/i3/config.$screen ]; then
|
||||
cat ~/.config/i3/config.$screen >> ~/.config/i3/config
|
||||
fi
|
||||
fi
|
||||
done <<< "$screens"
|
||||
|
||||
i3-msg restart
|
Loading…
Add table
Add a link
Reference in a new issue