diff --git a/install.sh b/install.sh index 83f96d6..00149a5 100644 --- a/install.sh +++ b/install.sh @@ -4,4 +4,6 @@ cd ~/.dotfiles/ sudo pacman -S --needed $(comm -12 <(pacman -Slq | sort) <(sort pkglist.txt)) #extract dotfiles into home directory cd ~/.dotfiles/ -sudo stow bash git qtile vim Xorg \ No newline at end of file +sudo stow bash git qtile vim Xorg +#install vs code extensions +bash vscode.sh \ No newline at end of file diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index a8bfb71..71aa2be 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -30,13 +30,22 @@ from typing import List # noqa: F401 -from libqtile import bar, layout, widget +import os +import subprocess +from libqtile import bar, layout, widget, hook from libqtile.config import Click, Drag, Group, Key, Screen from libqtile.lazy import lazy mod = "mod4" terminal = "termite" +#region autostart +@hook.subscribe.startup_once +def autostart(): + layout = os.path.expanduser('~/.config/qtile/layout.sh') + subprocess.call([layout]) +#endregion + #region key_and_mouse_bindings keys = [ @@ -102,16 +111,13 @@ layouts = [ border_focus = '#00ff00', border_width = 2, new_at_current = True, - name = 'monadtall', ), - layout.Max( - name = 'max', - ), + layout.Floating(), + layout.Max(), layout.MonadWide( border_focus = '#00ff00', border_width = 2, new_at_current = True, - name = 'monadwide', ), ] #endregion diff --git a/vscode.sh b/vscode.sh new file mode 100644 index 0000000..be0a086 --- /dev/null +++ b/vscode.sh @@ -0,0 +1,4 @@ +code --install-extensions eamodio.gitlens +code --install-extensions ms-python.python +code --install-extensions ms-toolsai.jupyter +code --install-extensions vscodevim.vim