aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/mode
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-02-20 14:52:00 +0100
committerlonkaars <loek@pipeframe.xyz>2022-02-20 14:52:00 +0100
commit599a99c067339b9f2dcfaeba399233f8fd2d6274 (patch)
treedff3ee89bab92b1d8bbf3c99a581802434e9e9e7 /.local/share/bin/mode
parent20dd2e2ad6b3b0071395fa99937c1d599cca75d4 (diff)
fix directory doesn't exist error in `mode` script
Diffstat (limited to '.local/share/bin/mode')
-rwxr-xr-x.local/share/bin/mode1
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/share/bin/mode b/.local/share/bin/mode
index 5d8e7f1..166aa7f 100755
--- a/.local/share/bin/mode
+++ b/.local/share/bin/mode
@@ -117,6 +117,7 @@ switch_cfgs() {
switch_zathura $1
switch_gtk $1
+ mkdir -p ~/.local/share/mode
echo $1 > ~/.local/share/mode/active
rm ~/.local/share/mode/dark ~/.local/share/mode/light 2> /dev/null
touch ~/.local/share/mode/$1