aboutsummaryrefslogtreecommitdiff
path: root/home/dot_local/share/mode/switch.d/executable_polybar
diff options
context:
space:
mode:
Diffstat (limited to 'home/dot_local/share/mode/switch.d/executable_polybar')
-rw-r--r--home/dot_local/share/mode/switch.d/executable_polybar16
1 files changed, 16 insertions, 0 deletions
diff --git a/home/dot_local/share/mode/switch.d/executable_polybar b/home/dot_local/share/mode/switch.d/executable_polybar
new file mode 100644
index 0000000..7087735
--- /dev/null
+++ b/home/dot_local/share/mode/switch.d/executable_polybar
@@ -0,0 +1,16 @@
+#!/bin/sh
+[ $no_cfg -eq 1 ] && return
+
+mkcd "$XDG_CONFIG_HOME/polybar"
+cat << EOF > 'colors.ini'
+[color]
+bg = \${xrdb:background:$bg}
+fg = \${xrdb:foreground:$fg}
+fg-alt = \${xrdb:background:$bg}
+fg-half = \${xrdb:color8:$color8}
+
+alpha = #00000000
+
+; vim:ft=dosini
+EOF
+