alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Moar DO confs
author
j3s
date
5 years ago
(Jul 9, 2021, 11:39 AM -0500)
commit
887f0966
887f096693fc3ea040bd4382ae4ba9417930a349
parent
b06fc925
b06fc92528f72fe541aaea3a1694042575206b78
+70
-10
5 changed files
Expand all
Collapse all
Unified
Split
.config
nvim
init.vim
sway
config
zora
bin
chtf
xdg-open
+19
-1
.config/nvim/init.vim
Reviewed
···
8
8
require'lspconfig'.gopls.setup{}
9
9
EOF
10
10
11
11
-
" set keybinds for go LSP
11
11
+
" set keybinds for go LSP - warning: disgusting
12
12
lua << EOF
13
13
local nvim_lsp = require('lspconfig')
14
14
···
53
53
end
54
54
EOF
55
55
56
56
+
57
57
+
" tabstops for my langs
58
58
+
autocmd FileType sh setlocal et ts=4 sw=4
59
59
+
autocmd FileType go setlocal noet ts=4 sw=4
60
60
+
autocmd FileType python setlocal et ts=4 sw=4
61
61
+
autocmd FileType ruby setlocal et ts=2 sw=2
62
62
+
autocmd FileType text setlocal tw=80
63
63
+
autocmd FileType html setlocal et ts=2 sw=2
64
64
+
autocmd FileType yaml setlocal et ts=2 sw=2
65
65
+
autocmd FileType mail setlocal noautoindent
66
66
+
augroup filetypedetect
67
67
+
autocmd BufRead,BufNewFile *mutt-* setfiletype mail
68
68
+
augroup filetypedetect
69
69
+
autocmd FileType markdown setlocal tw=80 et ts=2 sw=2
70
70
+
71
71
+
" bindings
72
72
+
let mapleader = ","
73
73
+
nmap <leader>m Go<esc>:put =strftime(\"%Y-%m-%d\")<cr>o----------------<cr><esc>
+2
.config/sway/config
Reviewed
···
191
191
for_window [class="Steam"] floating enable
192
192
for_window [class="Mumble"] floating enable
193
193
for_window [class="Dino"] floating enable
194
194
+
for_window [title="Firefox — Sharing Indicator"] floating enable
195
195
+
for_window [title="Firefox — Sharing Indicator"] kill
194
196
# for_window [class="Dota 2"] floating enable, border none
195
197
#
196
198
# Scratchpad:
+3
.config/sway/zora
Reviewed
···
11
11
12
12
for_window [class="Firefox"] inhibit_idle fullscreen
13
13
for_window [class="Chromium"] inhibit_idle fullscreen
14
14
+
15
15
+
# Laptop outputs are managed automatically using kanshi
16
16
+
exec_always pkill kanshi; exec kanshi
+40
bin/chtf
Reviewed
···
1
1
+
#!/bin/sh
2
2
+
#
3
3
+
# list installed tf versions +
4
4
+
# switch terraform versions +
5
5
+
# + download tf if not found
6
6
+
7
7
+
tf_version="$1"
8
8
+
tf_install_dir="${HOME}/.local/share/chtf"
9
9
+
tf_link_name="${HOME}/bin/terraform"
10
10
+
11
11
+
# make some os assumptions
12
12
+
if [ $(uname) == "Linux" ]; then
13
13
+
os="linux"
14
14
+
else
15
15
+
os="Darwin"
16
16
+
fi
17
17
+
18
18
+
mkdir -p "$tf_install_dir"
19
19
+
20
20
+
if [ -z "$tf_version" ]; then
21
21
+
# if no arguments, list versions of tf plus list symlink pointer.
22
22
+
printf "available:\n"
23
23
+
ls "$tf_install_dir"
24
24
+
printf "active:\n"
25
25
+
if [ -e "$tf_link_name" ]; then
26
26
+
readlink "$tf_link_name" | xargs basename
27
27
+
fi
28
28
+
else
29
29
+
if [ ! -f "${tf_install_dir}/${tf_version}" ]; then
30
30
+
# download tf version if not found
31
31
+
printf "terraform version not found. downloading...\n"
32
32
+
dl="https://releases.hashicorp.com/terraform/${tf_version}/terraform_${tf_version}_${os}_amd64.zip"
33
33
+
printf "downloading ${dl}\n"
34
34
+
curl -L --output /tmp/tf.zip "$dl"
35
35
+
unzip /tmp/tf.zip -d /tmp
36
36
+
mv /tmp/terraform "${tf_install_dir}/${tf_version}"
37
37
+
rm /tmp/tf.zip
38
38
+
fi
39
39
+
ln -sf "${tf_install_dir}/${tf_version}" "$tf_link_name"
40
40
+
fi
+6
-9
bin/xdg-open
Reviewed
···
1
1
#!/bin/sh
2
2
case "${1%%:*}" in
3
3
-
http|https)
4
4
-
exec chromium "$1"
5
5
-
;;
3
3
+
http|https)
4
4
+
exec firefox "$1"
5
5
+
;;
6
6
*.pdf)
7
7
exec zathura "$1"
8
8
;;
9
9
-
mailto)
10
10
-
exec aerc "$1"
11
11
-
;;
12
12
-
*)
13
13
-
exec /usr/bin/xdg-open "$@"
14
14
-
;;
9
9
+
*)
10
10
+
exec /usr/bin/xdg-open "$@"
11
11
+
;;
15
12
esac