summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-11-10 18:28:32 +0200
committerThanos Apollo <[email protected]>2023-11-10 18:28:32 +0200
commitea8714e9ceaf6916576259c409f529c51340e1c6 (patch)
treeac50de4bd656d874e44d1343788d3646837936b6
parentd8facfa4a4625035953bd3c84fb1f1e1f2f52ea5 (diff)
autostart: Update autostart programs
-rwxr-xr-x.config/autostart/autostart.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/.config/autostart/autostart.sh b/.config/autostart/autostart.sh
index de8e84d..45592ec 100755
--- a/.config/autostart/autostart.sh
+++ b/.config/autostart/autostart.sh
@@ -1,18 +1,20 @@
#!/bin/bash
+WALLPAPER=~/wallpapers/library-fantasy-tree.jpg
+
start-picom() {
if pgrep -x "picom" >/dev/null; then
echo "picom is already running"
else
picom
- fi
+ fi;
}
set-wallpaper() {
if [ $HOSTNAME == zeus ]; then
- xwallpaper --focus ~/wallpapers/library-fantasy-tree.jpg --screen 0
+ xwallpaper --focus $WALLPAPER --screen 0
else
- feh --bg-scale ~/wallpapers/library-fantasy-tree.jpg
+ xwallpaper --focus $WALLPAPER
fi
}
@@ -20,11 +22,12 @@ get-started() {
(
start-picom &
set-wallpaper &
- ## set keyboard
- setxkbmap us -option ctrl:swapcaps &
+ syncthing --no-browser &
+ transmission-daemon &
+ setxkbmap us -option ctrl:swapcaps
)
}
-get-started
+get-started;