diff options
author | Amin Bandali <bandali@gnu.org> | 2021-10-19 00:36:37 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2021-10-19 00:36:37 -0400 |
commit | 298f42fef8c1cb876c6596cbca3920a549a9a6d0 (patch) | |
tree | fa4b4754c2bcb1094898541f569b46d55e55f5d3 /.config/i3 | |
parent | 7dd9938023b620a4e65b57a50d5414ac577abf0c (diff) | |
download | configs-298f42fef8c1cb876c6596cbca3920a549a9a6d0.tar.gz configs-298f42fef8c1cb876c6596cbca3920a549a9a6d0.tar.xz configs-298f42fef8c1cb876c6596cbca3920a549a9a6d0.zip |
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.
Diffstat (limited to '.config/i3')
-rw-r--r-- | .config/i3/config | 11 |
1 files changed, 11 insertions, 0 deletions
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 |