summaryrefslogtreecommitdiffstats
path: root/.config/i3
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2021-10-19 00:36:37 -0400
committerAmin Bandali <bandali@gnu.org>2021-10-19 00:36:37 -0400
commit298f42fef8c1cb876c6596cbca3920a549a9a6d0 (patch)
treefa4b4754c2bcb1094898541f569b46d55e55f5d3 /.config/i3
parent7dd9938023b620a4e65b57a50d5414ac577abf0c (diff)
downloadconfigs-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 '')
-rw-r--r--.config/i3/config11
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