dotfiles

personal configuration files and scripts
git clone https://tongong.net/git/dotfiles.git
Log | Files | Refs | README

autostart.sh (1233B)


      1 #!/usr/bin/env bash
      2 
      3 # only run this script once
      4 if [ -e /tmp/.autostart-done ]
      5 then
      6     echo "autostart already done."
      7 else
      8     touch /tmp/.autostart-done
      9 
     10     # window manager settings
     11     picom &
     12     nitrogen --restore &
     13     # run slock on standby and suspend
     14     xss-lock -l ~/.dwm/transfer-sleep-slock.sh &
     15 
     16     # dwm statusbar
     17     statnot ~/.dwm/statnot/statnot-config.py &
     18     dsblocks &
     19     ~/.dwm/blocks/pulse-daemon.sh &
     20     ~/.dwm/blocks/music-daemon.sh &
     21 
     22     # refresh arch package lists (to show number of updates in statusbar
     23     # sudo /usr/local/bin/refreshpkglist &
     24 
     25     # autostart programs
     26     clipmenud &
     27     # i am really unhappy with this solution as i need to start 3 programs for
     28     # clipboard management but i didn't find something better
     29     autocutsel -fork
     30     autocutsel -selection PRIMARY -fork
     31     syncthing -no-browser &
     32     timetracker | timetracker-save &
     33 
     34     # set keyboard layout (required for xdotool to work properly)
     35     # xdotool still struggles with "`" character...
     36     setxkbmap de
     37     # disable touchscreen
     38     xinput disable 9
     39 
     40     # remind me to take a break
     41     while true; do sleep 1800; notify-send "  you have been sitting here for 30 minutes. maybe take a break?"; done &
     42 fi