diff options
-rw-r--r-- | .config/coc/extensions/package.json | 19 | ||||
-rw-r--r-- | .config/i3/autostart##template | 4 | ||||
-rwxr-xr-x | .config/yadm/bootstrap | 3 | ||||
-rwxr-xr-x | .local/share/bin/mode | 5 |
4 files changed, 22 insertions, 9 deletions
diff --git a/.config/coc/extensions/package.json b/.config/coc/extensions/package.json index 9a8b236..adda904 100644 --- a/.config/coc/extensions/package.json +++ b/.config/coc/extensions/package.json @@ -1,15 +1,18 @@ { "dependencies": { - "coc-css": ">=1.2.5", + "coc-css": ">=1.3.0", "coc-emmet": ">=1.1.6", - "coc-go": ">=0.12.1", - "coc-html": ">=1.2.4", - "coc-java": ">=1.5.0", - "coc-json": ">=1.2.6", + "coc-go": ">=1.3.0", + "coc-html": ">=1.6.1", + "coc-java": ">=1.5.5", + "coc-json": ">=1.6.1", "coc-neosnippet": ">=1.2.2", "coc-python": ">=1.2.12", - "coc-rust-analyzer": ">=0.54.0", + "coc-rust-analyzer": ">=0.68.2", "coc-tsserver": ">=1.5.8", - "coc-vimtex": ">=1.0.4" - } + "coc-vimtex": ">=1.1.5" + }, + "disabled": [], + "locked": [], + "lastUpdate": 1663853601152 }
\ No newline at end of file diff --git a/.config/i3/autostart##template b/.config/i3/autostart##template index 22bd22d..6c33a94 100644 --- a/.config/i3/autostart##template +++ b/.config/i3/autostart##template @@ -1,6 +1,10 @@ #!/bin/sh /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +{% if yadm.hostname == "thoncc" %} cat ~/.config/X11/base ~/.config/X11/light | xrdb & +{% else %} +cat ~/.config/X11/base ~/.config/X11/dark | xrdb & +{% endif %} polybar main -c ~/.config/polybar/config & zsh -c "rwall" & picom -b diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap new file mode 100755 index 0000000..6de9391 --- /dev/null +++ b/.config/yadm/bootstrap @@ -0,0 +1,3 @@ +#!/bin/sh +~/.local/share/bin/mode dark + 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..." |