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
# KEYBOARD SHORTCUTS
bindsym $mod+l exec i3lock-fancy
bindsym $mod+F1 exec i3lock-fancy
bindsym Print exec $HOME/.local/scripts/screenshot.sh select
bindsym ctrl+Print exec $HOME/.local/scripts/screenshot.sh fullscreen
bindsym $mod+p exec $HOME/.local/scripts/passmenu.sh

View file

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