-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_user
More file actions
executable file
·145 lines (100 loc) · 3.22 KB
/
setup_user
File metadata and controls
executable file
·145 lines (100 loc) · 3.22 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#!/usr/bin/env bash
set -e
exec 2> >(while read line; do echo -e "\e[01;31m$line\e[0m"; done)
source ./lib/functions.sh
script_name="$(basename "$0")"
dotfiles_dir="$(
cd "$(dirname "$0")"
pwd
)"
cd "$dotfiles_dir"
MY_GPG_KEY_ID="BEA596E7B5F0A834"
head "Setting up dotfiles for current user..."
link "bin"
link ".bundle/config"
link ".gitconfig"
link ".gitconfig-private"
link ".gitignore"
link ".ignore"
link ".tmux.conf"
link ".tmux.conf.local"
link ".zprofile"
link ".zshenv"
link ".zshrc"
link ".zsh"
link ".maid"
link ".config/kup_main_exclude"
link ".config/kup_projects_exclude"
link ".githooks"
link ".config/nvim"
link ".config/ranger/rc.conf"
link ".config/fd/ignore" #https://github.com/sharkdp/fd/issues/608
link ".config/trashrc"
link ".config/user-dirs.dirs"
link ".config/user-dirs.locale"
link ".config/autostart/libinput-gestures.desktop"
link ".config/alacritty/alacritty.yml"
link ".config/qalculate/qalc.cfg"
link ".config/libinput-gestures.conf"
link ".config/espanso"
link ".config/i3"
link ".config/dunst"
link ".config/i3status"
link ".config/compton.conf"
link ".config/polybar/main"
link ".config/opencode/opencode.json"
link ".config/opencode/agents"
link ".config/opencode/instructions"
link ".config/opencode/commands"
link ".config/opencode/rules"
link ".config/opencode/skills"
link ".config/opencode/tools"
link ".config/rofi/config.rasi"
link ".config/systemd/user/urlwatch.service"
link ".config/systemd/user/urlwatch.timer"
link ".config/systemd/user/maid.service"
link ".config/systemd/user/maid.timer"
link ".config/systemd/user/commit_notes.service"
link ".config/systemd/user/commit_notes.timer"
link ".config/systemd/user/tmux.service"
link ".config/systemd/user/gufw_icon.service"
link ".config/systemd/user/systembus-notify.service"
link ".config/systemd/user/espanso.service"
link ".config/systemd/user/maid.service"
link ".config/systemd/user/maid.timer"
link ".urlwatch/urls.yaml"
link ".gnupg/gpg-agent.conf"
link ".gnupg/gpg.conf"
link ".local/share/kservices5/ServiceMenus/OdsToCsv.desktop"
link ".local/share/kservices5/ServiceMenus/EncodeToUTF8.desktop"
link ".fonts/icomoon"
link ".gemrc"
link ".Xresources"
link ".xsettingsd"
link ".xinitrc"
link ".Xmodmap"
head "Enable userspace services..."
systemctl --user daemon-reload
# systemctl_enable_start "user" "tmux.service"
systemctl_enable_start "user" "maid.timer"
# systemctl_enable_start "user" "commit_notes.timer"
systemctl_enable_start "user" "gufw_icon.service"
systemctl_enable_start "user" "systembus-notify.service"
systemctl_enable_start "user" "espanso.service"
systemctl_enable_start "user" "maid.service"
head "Setup SSH-AGENT"
#if ! type "gnome-keyring" > /dev/null; then
link ".config/systemd/user/ssh-agent.service"
systemctl_enable_start "user" "ssh-agent.service"
#fi
# head "Setup git sources for current user..."
# stage_setup_sources
if ! gpg -k | grep "$MY_GPG_KEY_ID" > /dev/null; then
head "Importing my public PGP key"
curl -s https://keybase.io/bigforcegun/pgp_keys.asc | gpg --import
gpg --trusted-key "$MY_GPG_KEY_ID" > /dev/null
fi
find "$HOME/.gnupg" -type f -not -path "*#*" -exec chmod 600 {} \;
find "$HOME/.gnupg" -type d -exec chmod 700 {} \;
# head "Setting ZSH as main shell..."
chsh -s /usr/bin/zsh