aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/switch.d/fcitx5
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/mode/switch.d/fcitx5')
-rwxr-xr-x.local/share/mode/switch.d/fcitx54
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/share/mode/switch.d/fcitx5 b/.local/share/mode/switch.d/fcitx5
index 4b35478..d9d0032 100755
--- a/.local/share/mode/switch.d/fcitx5
+++ b/.local/share/mode/switch.d/fcitx5
@@ -1,5 +1,7 @@
#!/bin/sh
-cd "$XDG_DATA_HOME/fcitx5/themes/default"
+[ $no_cfg -eq 1 ] && return
+
+mkcd "$XDG_DATA_HOME/fcitx5/themes/default"
rounding=6
size=$(( 2 * $rounding + 4 ))
margin_h=6