#!/bin/sh
sleep 1&
/usr/lib/geoclue-2.0/demos/agent&
bash .screenlayout/layout.sh &
pulseaudio-ctl set 50 &
dunst &
nextcloud &
timeshift &
numlockx &
redshift-gtk -t 6500:3600 &
udiskie -t &
picom &
nm-applet &
blueman-applet &
thunderbird &
fcitx5 -d&
emacs --daemon &
# Use hostnamectl to get system information
chassis_type=$(hostnamectl status | grep "Chassis:" | awk '{print $2}')

# Check if the chassis type is "laptop"
if [ "$chassis_type" == "laptop" ]; then
    xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
    xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1
    cbatticon &
    # set font size for alacritty
    sed -i 's/size = [0-9][0-9]/size = 11/' ~/.config/alacritty/alacritty.toml
else
    # set font size for alacritty
    sed -i 's/size = [0-9][0-9]/size = 14/' ~/.config/alacritty/alacritty.toml
fi
