blob: 4ca1086de6c32bc8d3b0a182c99e2d96cf006429 (
plain)
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
|
#!/bin/sh
# #
# zsh
# #
ZSH=$HOME/.config/zsh/ohmyzsh
if [ ! -d "$ZSH" ]; then
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
# #
# vim
# #
if command -v nvim > /dev/null 2>&1; then
nvim --headless '+Lazy! sync' '+qall'
fi
# #
# gammastep
# #
if command -v gammastep > /dev/null 2>&1; then
sudo ln -s "$HOME/.config/gammastep/systemd/gammastep-user@.service" /etc/systemd/user/
systemctl --user enable "gammastep-user$(pass latitude):$(pass longitude)" --now
fi
# #
# fcitx5
# #
if command -v fcitx5 > /dev/null 2>&1; then
sudo ln -s "$HOME/.config/fcitx5/systemd/fcitx5-user.service" /etc/systemd/user/
sudo ln -s "$HOME/.config/fcitx5/systemd/fcitx5-user.timer" /etc/systemd/user/
systemctl --user enable 'fcitx5-user.timer' --now
fi
# #
# pacman
# #
# linux-lts-versioned-bin
if [ ! -f "/usr/share/libalpm/hooks/linux-lts-versioned-bin.hook" ]; then
sudo ln -s "$HOME/.config/pacman/hooks/linux-lts-versioned-bin.hook" /usr/share/libalpm/hooks/linux-lts-versioned-bin.hook
sudo ln -s "$HOME/.config/pacman/bin/linux-lts-versioned-bin-hook" /usr/local/bin/linux-lts-versioned-bin-hook
fi
|