From 298f42fef8c1cb876c6596cbca3920a549a9a6d0 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 19 Oct 2021 00:36:37 -0400 Subject: add change-theme script allows changing themes for future application instances as well as currently-running ones on the fly. xterm and emacs have been tested and are known to work so far. --- .config/i3/config | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.config/i3/config') diff --git a/.config/i3/config b/.config/i3/config index 05bc178..c796761 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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 -- cgit v1.2.3-60-g2f50