added theming support, calc and paint commands

This commit is contained in:
Josh Ashton
2023-12-05 20:00:34 -07:00
parent d89510bdfa
commit 9ad413861f
5 changed files with 30 additions and 0 deletions
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/zsh
source ~/dev/calculator/bin/activate
python ~/dev/calculator/calculator.py
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/zsh
BIN
View File
Binary file not shown.
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/zsh
python ~/dev/research/python.playground/gui/canvas.py
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/bin/zsh
# Get the current theme
theme=$(cat ~/.config/theme/active.theme)
# Apply the theme
base=$(echo $theme | grep -oP '(?<=base=).*')
accent=$(echo $theme | grep -oP '(?<=accent=).*')
hover=$(echo $theme | grep -oP '(?<=hover=).*')
sed -i "s/color=\(.*\)/color=$hover/g" ~/.config/i3blocks/i3blocks.conf
sed -i "s/set \$base .*/set \$base $base/g" ~/.config/i3/config
sed -i "s/set \$accent .*/set \$accent $accent/g" ~/.config/i3/config
sed -i "s/set \$hover .*/set \$hover $hover/g" ~/.config/i3/config
# Reload i3
i3-msg restart