mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-02 00:56:39 +02:00
25 lines
1.0 KiB
Bash
Executable File
25 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
systemctl --user stop keyswap >/dev/null 2>&1
|
|
systemctl --user disable keyswap >/dev/null 2>&1
|
|
systemctl --user stop keyswap.timer >/dev/null 2>&1
|
|
systemctl --user disable keyswap.timer >/dev/null 2>&1
|
|
mkdir -p ~/.config/systemd/user
|
|
mkdir -p ~/.config/autostart
|
|
cp ./system-config/keyswap.service ~/.config/systemd/user/keyswap.service
|
|
cp ./system-config/kinto.desktop ~/.config/autostart/kinto.desktop
|
|
cp ./kintox11/binary/kintox11 ~/.config/kinto/kintox11
|
|
cp ./system-config/xactive.sh ~/.config/kinto/xactive.sh
|
|
cp ./system-config/caret_status.sh ~/.config/kinto/caret_status.sh
|
|
cp ./system-config/cleanup.sh ~/.config/kinto/cleanup.sh
|
|
cp ./system-config/.firefox-nw ~/.config/kinto/.firefox-nw
|
|
sed -i "s/{username}/`whoami`/g" ~/.config/systemd/user/keyswap.service
|
|
sed -i "s/{displayid}/`echo "$DISPLAY"`/g" ~/.config/systemd/user/keyswap.service
|
|
if [ "${#DISPLAY}" -gt 2 ]
|
|
then
|
|
sed -i "s/#Environment/Environment/g" ~/.config/systemd/user/keyswap.service
|
|
fi
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable keyswap
|
|
systemctl --user start keyswap
|