feat: add syncthing

This commit is contained in:
Klesh Wong 2022-09-08 21:52:08 +08:00
parent d508cb5d8f
commit bbbaafcf8e
2 changed files with 20 additions and 0 deletions

View File

@ -5,6 +5,7 @@
! /bin/pgrep flameshot && flameshot &
! /bin/pgrep nm-applet && nm-applet &
! /bin/pgrep copyq && copyq &
! /bin/pgrep syncthing && syncthing &
# ! /bin/pgrep -f "lua virtcam.lua" && cd ~/dotfiles/gui/virtcam && lua virtcam.lua &
# input method

19
gui/syncthing.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
DIR=$(dirname "$(readlink -f "$0")")
. "$DIR/../env.sh"
log 'Setting up syncthing'
case "$UNAMEA" in
*Ubuntu*)
sudo apt install -y \
syncthing
;;
*artix*)
sudo pacman -S --noconfirm --needed \
syncthing
;;
esac
echo "export LOCKER=i3lock"