-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·117 lines (105 loc) · 3.21 KB
/
install
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
#!/usr/bin/env fish
set exit_status 0
function mk-link -a link -a target
mkdir -p -- (dirname -- $link)
if not set -l current (readlink -- $link); or test $current != $target
if not ln -sT -- $target $link
set exit_status 1
end
end
end
set dir (dirname -- (realpath -- (status filename)))
function mk-plain-link -a path
mk-link ~/$path $dir/$path
end
function mk-dot-link -a path
mk-link ~/.$path $dir/$path
end
mk-plain-link bin/bash-source-env-diff
mk-plain-link bin/calc-replay-gain
if test -x /usr/bin/discord
mk-plain-link bin/discord
end
if test -x /usr/bin/element-desktop
mk-plain-link bin/element-desktop
end
mk-plain-link bin/env-diff
mk-plain-link bin/env-dump
if type -fq i3; and type -fq systemctl
mk-plain-link bin/i3-session
end
mk-plain-link bin/org-music
mk-plain-link bin/rgit
mk-plain-link bin/rre
if type -fq feh
mk-plain-link bin/wallpaper
end
if type -fq xsettingsd
mk-plain-link bin/xsettingsd-auto-dpi
end
mk-link ~/bin/git-reparent $dir/bin/git-reparent/git-reparent
if set x_terminal_emulator ( \
type -fp alacritty 2>/dev/null; or \
type -fp urxvt 2>/dev/null; or \
type -fp xterm 2>/dev/null)
mk-link ~/bin/x-terminal-emulator $x_terminal_emulator
end
mk-dot-link Xresources
mk-dot-link config/RawTherapee/profiles/default.pp3
mk-dot-link config/alacritty/alacritty.toml
mk-dot-link config/bat/config
mk-dot-link config/chrome-flags.conf
mk-dot-link config/fish/config.fish
mk-dot-link config/fish/functions
mk-dot-link config/fontconfig/fonts.conf
mk-dot-link config/git/config
mk-dot-link config/git/config-parity
mk-dot-link config/git/ignore-global
mk-dot-link config/gtk-3.0/settings.ini
mk-dot-link config/mimeapps.list
mk-dot-link config/msmtp/config
mk-dot-link config/msmtp/gmail-password.gpg
mk-dot-link config/picom/picom.conf
mk-dot-link config/profile-env
mk-dot-link config/python/startup.py
mk-dot-link config/spotify-flags.conf
mk-dot-link config/systemd/user/geoclue-agent.service
mk-dot-link config/systemd/user/graphical-apps.target
mk-dot-link config/systemd/user/i3-session.target
mk-dot-link config/systemd/user/i3.service
mk-dot-link config/systemd/user/lxpolkit.service
mk-dot-link config/systemd/user/picom.service
mk-dot-link config/systemd/user/redshift.service
mk-dot-link config/systemd/user/wallpaper.service
mk-dot-link config/systemd/user/xsettingsd-auto-dpi.service
mk-dot-link config/systemd/user/xss-lock.service
mk-dot-link config/xfce4/helpers.rc
mk-dot-link config/zathura/zathurarc
mk-dot-link gnupg/gpg-agent.conf
mk-dot-link gnupg/scdaemon.conf
mk-dot-link gtkrc-2.0
if test -x /usr/bin/discord
mk-dot-link local/share/applications/discord.desktop
end
if test -x /usr/bin/element-desktop
mk-dot-link local/share/applications/io.element.Element.desktop
end
mk-dot-link mailrc
mk-dot-link parallel/will-cite
mk-dot-link profile
mk-dot-link ssh/authorized_keys
mk-dot-link ssh/config
mk-dot-link ssh/parity-yubikey-a.pub
mk-dot-link vim
mk-dot-link xsession
if type -q dconf
if not dconf load / <$dir/config/dconf/user.txt
set exit_status 1
end
end
if type -q systemctl
if not systemctl --user --quiet enable graphical-apps.target
set exit_status 1
end
end
exit $exit_status