add change-theme script
[~bandali/configs] / .config / i3 / config
index 05bc178..c796761 100644 (file)
@@ -167,6 +167,17 @@ mode "resize" {
 }
 bindsym $mod+r mode "resize"
 
+# change theme mode
+set $mode_theme theme (d)ark | (l)ight
+mode "$mode_theme" {
+        bindsym d exec change-theme dark,  mode "default"
+        bindsym l exec change-theme light, mode "default"
+        bindsym Return mode "default"
+        bindsym Escape mode "default"
+        bindsym q      mode "default"
+}
+bindsym $mod+t mode "$mode_theme"
+
 # application-specific window configurations
 for_window [class="mpv"] floating enable
 for_window [class="Mumble"] floating enable