diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-09-22 15:35:54 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-09-22 15:35:54 +0200 |
commit | d27fa4a68abeb5fe1249a4cdfd94e589bc47196b (patch) | |
tree | e7b4a064a7b8a2e5936e8bd312240a36993ea581 /.local/share/bin/mode | |
parent | ead62ddbff0770c7fe5b34b700d9e558adf31c0d (diff) |
bootstrap script + mode restore + i3 autostart theme
Diffstat (limited to '.local/share/bin/mode')
-rwxr-xr-x | .local/share/bin/mode | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.local/share/bin/mode b/.local/share/bin/mode index 6515350..23f069d 100755 --- a/.local/share/bin/mode +++ b/.local/share/bin/mode @@ -1,5 +1,7 @@ #!/bin/sh +MODE="$1" + get_color() { xrdb -query | grep $1 | head -n1 | cut -f2 } @@ -159,7 +161,8 @@ switch_cfgs() { touch ~/.local/share/mode/$1 } -[[ $1 == "dark" || $1 == "light" ]] && switch_cfgs $1 +[[ $MODE == "restore" ]] && MODE=`cat ~/.local/share/mode/active` +[[ $MODE == "dark" || $MODE == "light" ]] && switch_cfgs $MODE reload_apps() { echo "reloading programs..." |