This commit is contained in:
Michael Zhang 2020-07-03 17:31:51 -05:00
parent 9cc4c70178
commit 84b2baf3ef
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
3 changed files with 22 additions and 15 deletions

4
common.sh Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Should not be executable, only sourced by other scripts
command_exists() { command -v ${1} >/dev/null; }

View file

@ -21,7 +21,7 @@ font pango:Roboto Mono for Powerline 11
#font pango:DejaVu Sans Mono 8 #font pango:DejaVu Sans Mono 8
# KEYBOARD SHORTCUTS # KEYBOARD SHORTCUTS
bindsym $mod+l exec i3lock-fancy bindsym $mod+F1 exec i3lock-fancy
bindsym Print exec $HOME/.local/scripts/screenshot.sh select bindsym Print exec $HOME/.local/scripts/screenshot.sh select
bindsym ctrl+Print exec $HOME/.local/scripts/screenshot.sh fullscreen bindsym ctrl+Print exec $HOME/.local/scripts/screenshot.sh fullscreen
bindsym $mod+p exec $HOME/.local/scripts/passmenu.sh bindsym $mod+p exec $HOME/.local/scripts/passmenu.sh

View file

@ -1,18 +1,21 @@
#!/bin/bash #!/bin/bash
cargo install \ source $(dirname "$0")/common.sh
bat \
cargo-edit \ command_exists cargo && \
cargo-expand \ cargo install \
cargo-tree \ bat \
cargo-update \ cargo-edit \
cargo-watch \ cargo-expand \
fd-find \ cargo-tree \
hexyl \ cargo-update \
just \ cargo-watch \
ripgrep \ fd-find \
tectonic \ hexyl \
tokei \ just \
topgrade \ ripgrep \
tectonic \
tokei \
topgrade \
; ;