-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.rb
More file actions
106 lines (87 loc) · 2.25 KB
/
recipe.rb
File metadata and controls
106 lines (87 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package 'curl'
package 'lv'
package 'gnome-tweaks'
package 'wmctrl'
execute 'Google Chrome' do
command <<~COMMAND
cd /tmp
curl -sLO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get -y install ./google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
COMMAND
not_if 'type google-chrome'
end
execute '1Password' do
command <<~COMMAND
cd /tmp
curl -sLO https://downloads.1password.com/linux/debian/amd64/stable/1password-latest.deb
sudo apt-get -y install ./1password-latest.deb
rm 1password-latest.deb
COMMAND
not_if 'type 1password'
end
execute 'Ulauncher' do
command <<~COMMAND
cd /tmp
curl -sLO https://github.com/Ulauncher/Ulauncher/releases/download/5.15.7/ulauncher_5.15.7_all.deb
sudo apt-get -y install ./ulauncher_5.15.7_all.deb
rm ulauncher_5.15.7_all.deb
COMMAND
not_if 'type ulauncher'
end
define :dotfile do
source = File.expand_path("../#{params[:name]}", __FILE__)
target = "#{ENV.fetch('HOME')}/.config/#{params[:name]}"
directory File.dirname(target) do
#user node[:user]
user 'tfrkd'
end
# ln -s source target
link target do
to source
#user node[:user]
user 'tfrkd'
force true
end
end
# libskk
package 'ibus-skk'
dotfile 'libskk/rules/sticky-shift/metadata.json'
dotfile 'libskk/rules/sticky-shift/keymap/hiragana.json'
dotfile 'libskk/rules/sticky-shift/rom-kana/default.json'
# Ghostty
execute 'Ghostty' do
command <<~COMMAND
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/mkasberg/ghostty-ubuntu/HEAD/install.sh)"
COMMAND
not_if 'type ghostty'
end
dotfile 'ghostty/config'
# fish
package 'fish'
dotfile 'fish/conf.d/alias.fish'
dotfile 'fish/conf.d/ubuntu.fish'
dotfile 'fish/functions/fzf-select-repository.fish'
# Starship
execute 'Starship' do
command <<~COMMAND
cd /tmp
curl -sS -o install-starship.sh https://starship.rs/install.sh
chmod +x install-starship.sh
./install-starship.sh --yes
rm install-starship.sh
COMMAND
not_if 'type starship'
end
dotfile 'starship.toml'
# tmux
package 'tmux'
dotfile 'tmux/tmux.conf'
# Neovim
package 'neovim'
dotfile 'nvim/init.vim'
# IdeaVim
#dotfile 'ideavim/ideavimrc'
# Git
package 'git'
dotfile 'git/config'