wm-scheme-toggle

generic window manager scheme toggler
Index Commits Files Refs README LICENSE
commit 687514174ddead7377a9fe0a5ae72d2eb7a2bb32
parent ef0e82319d4f8fe13fc8b9358d15ed35c9efe4ec
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date:   Fri, 12 May 2023 21:00:25 -0300

add more comments

Diffstat:
Msys-dark-scheme | 15++++++++++-----
Msys-light-scheme | 17+++++++++++------
2 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/sys-dark-scheme b/sys-dark-scheme
@@ -2,7 +2,8 @@
 
 # Set system color scheme to dark
 
-# requires neovim-remote
+# requires neovim-remote and a custom function `DarkTheme` that changes the
+# vim color scheme to a dark one
 update_vim() {
     instances=$(nvr --serverlist)
     for instance in $instances; do
@@ -11,13 +12,17 @@ update_vim() {
     done
 }
 
+# Set dark mode bg
 # $HOME/.config/scheme/feh-dark-bg &
 
-# cp -f /home/mk/.config/scheme/lockscreen-dark-bg /home/mk/.config/scheme/lockscreen-bg
+# Set dark mode lockscreen background, you will need your lockscreen background
+# to point to `$HOME/.config/scheme/lockscreen-bg`
+# ln -sf $HOME/.config/scheme/lockscreen-dark-bg\
+#     $HOME/.config/scheme/lockscreen-bg
 
-# update file flag
+# Update file flag. This file allows the scripts and other programs to keep
+# track in which color scheme the system is currenlty in.
 [ ! -d $HOME/.config/scheme ] && mkdir $HOME/.config/scheme &
-
 rm -rf $HOME/.config/scheme/light ||: &
 touch $HOME/.config/scheme/dark &
 
@@ -32,7 +37,7 @@ kitty +kitten themes --reload-in=all default-dark &
 
 update_vim &
 
-# gtk and kde theme
+# gtk and kde config files
 gtk_conf="$HOME/.config/gtk-3.0/settings.ini"
 kde_conf="$HOME/.config/qt5ct/qt5ct.conf"
 
diff --git a/sys-light-scheme b/sys-light-scheme
@@ -1,8 +1,9 @@
 #!/bin/sh
 
-# Sets system color scheme to light
+# Set system color scheme to light
 
-# requires neovim-remote
+# requires neovim-remote and a custom function `LightTheme` that changes the
+# vim color scheme to a light one
 update_vim() {
     instances=$(nvr --serverlist)
     for instance in $instances; do
@@ -11,13 +12,17 @@ update_vim() {
     done
 }
 
+# Set light mode bg
 # $HOME/.config/scheme/feh-light-bg &
 
-# cp -f /home/mk/.config/scheme/lockscreen-light-bg /home/mk/.config/scheme/lockscreen-bg
+# Set light mode lockscreen background, you will need your lockscreen background
+# to point to `$HOME/.config/scheme/lockscreen-bg`
+# ln -sf $HOME/.config/scheme/lockscreen-light-bg\
+#     $HOME/.config/scheme/lockscreen-bg
 
-# update file flag
+# Update file flag. This file allows the scripts and other programs to keep
+# track in which color scheme the system is currenlty in.
 [ ! -d $HOME/.config/scheme ] && mkdir $HOME/.config/scheme &
-
 rm -rf $HOME/.config/scheme/dark ||: &
 touch $HOME/.config/scheme/light &
 
@@ -32,7 +37,7 @@ kitty +kitten themes --reload-in=all default-light &
 
 update_vim &
 
-# gtk and kde theme
+# gtk and kde config files
 gtk_conf="$HOME/.config/gtk-3.0/settings.ini"
 kde_conf="$HOME/.config/qt5ct/qt5ct.conf"