diff options
1 files changed, 36 insertions, 0 deletions
| -rwxr-xr-x | scripts/bin/autostart | 36 |
diff --git a/scripts/bin/autostart b/scripts/bin/autostart new file mode 100755 index 0000000..0473e7b --- /dev/null +++ b/scripts/bin/autostart @@ -0,0 +1,36 @@ +#!/bin/bash + +device="desktop" + +#[ $device = "desktop" ] && xrandr --output HDMI-A-0 --mode 1920x1080 --rate 100 --primary + +xhost +local: +~/.fehbg & # wallpaper +# lead & # hot corners, this is MageJohn's fork: https://github.com/MageJohn/lead +xcape -e 'Super_L=Super_L|P' & # used for the "windows" menu +rm -rf ~/.tmp/* + +$HOME/.scripts/start-panels & +picom & # compositor + +if [[ $device == "desktop" ]]; then + xset m 1 1 # disable mouse acceleration (not a very proper way to do it, I know) +fi + +if [[ $device == "laptop" ]]; then + # while :; do if grep -Fq "closed" /proc/acpi/button/lid/LID0/state; then ~/.a/sys/lock.sh suspend && sleep 3; fi; sleep 0.5; done & # lock screen on lid closing; you'll also need to uncomment the HandleLidSwitch variable and assign to it "lock" (HandleLidSwitch=lock) inside /etc/systemd/logind.conf + libinput-gestures-setup start & # start gestures + blueberry & # bluetooth app +fi + +pnmixer & # volume applet +nm-applet & # network applet +dunst-applet & # notification toggler https://gitlab.com/Syndamia/dunst-applet + +flameshot & # screenshot utility +redshift-gtk & # screen color temperature changer +copyq & # clipboard manager +barrier & # share mouse and keyboard between devices +nextcloud & # cloud/source control + +firefox-bin & |
