From b23dfe545999faacbc46c46de0222eb3636f8b51 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 27 Oct 2023 00:13:17 +0300 Subject: autostart: Fix naming & rewrite --- .config/autostart/autostart.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 .config/autostart/autostart.sh (limited to '.config/autostart') diff --git a/.config/autostart/autostart.sh b/.config/autostart/autostart.sh new file mode 100755 index 0000000..87ee293 --- /dev/null +++ b/.config/autostart/autostart.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +start-picom() { + if pgrep -x "picom" >/dev/null; then + echo "picom is already running" + else + picom + fi +} + +set-wallpaper() { + if [ $HOSTNAME == zeus ]; then + feh --bg-scale ~/wallpapers/cyberpunk-red.png + else + feh --bg-scale ~/wallpapers/library-fantasy-tree.jpg + fi +} + +get-started() { + ( + start-picom + set-wallpaper + ## set keyboard + setxkbmap us -option ctrl:swapcaps & + ) + +} + + +get-started -- cgit v1.2.3