diff --git a/calc b/calc new file mode 100755 index 0000000..dde4cbe --- /dev/null +++ b/calc @@ -0,0 +1,4 @@ +#!/bin/zsh + +source ~/dev/calculator/bin/activate +python ~/dev/calculator/calculator.py diff --git a/control b/control new file mode 100755 index 0000000..cc54a2e --- /dev/null +++ b/control @@ -0,0 +1,3 @@ +#!/bin/zsh + + diff --git a/mark b/mark index 2eb85ef..a5c021d 100755 Binary files a/mark and b/mark differ diff --git a/paint b/paint new file mode 100755 index 0000000..eb5b940 --- /dev/null +++ b/paint @@ -0,0 +1,3 @@ +#!/bin/zsh + +python ~/dev/research/python.playground/gui/canvas.py diff --git a/set-theme b/set-theme new file mode 100755 index 0000000..0293b13 --- /dev/null +++ b/set-theme @@ -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