summarylogtreecommitdiffstats
path: root/install.sh
blob: 4de519c010e13612a368b9cfca3c5b49f28b4f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
	if [ ! -f /etc/hyprlux/config.toml ]; then
        install -Dm644 /usr/share/hyprlux/config.toml /etc/hyprlux/config.toml
    fi

    systemctl enable hyprlux.service
    systemctl start hyprlux.service
}

post_upgrade() {
	if [ ! -f /etc/hyprlux/config.toml ]; then
        install -Dm644 /usr/share/hyprlux/config.toml /etc/hyprlux/config.toml
    fi

	systemctl restart hyprlux.service
}

post_remove() {
	rm /etc/hyprlux/config.toml
    systemctl stop hyprlux.service
    systemctl disable hyprlux.service
}