3 #############################################
4 ## installs all instantOS tools ##
5 #############################################
9 echo "installing instantOS tools"
11 RAW="https://raw.githubusercontent.com"
12 source <(curl -s $RAW/paperbenni/bash/master/import.sh)
16 LINK="$RAW/instantos/instantos/master"
18 curl -s "$LINK/termprograms.txt" >.cache/termprograms.txt
20 if ! [ ~/.local/share/fonts/symbola.ttf ]; then
21 mkdir -p .local/share/fonts
23 echo "installing symbola font"
24 wget -q "http://symbola.surge.sh/symbola.ttf"
29 # laptop specific stuff
30 if acpi | grep -q '[0-9]%' &>/dev/null; then
31 # config file to indicate being a laptop
37 # auto start script with instantWM
38 ls .instantos &>/dev/null || mkdir .instantos
39 curl -s $LINK/autostart.sh >.instantos/autostart.sh
40 chmod +x .instantos/autostart.sh
43 # drag and drop x utility for ranger
44 if ! command -v dragon &>/dev/null; then
46 git clone --depth=1 https://github.com/mwh/dragon.git &>/dev/null
55 mkdir -p instantos/notifications &>/dev/null
56 cd instantos/notifications
58 # gets executed by dunst on notification
59 curl -s "$RAW/instantos/instantos/master/programs/dunsttrigger" >dunsttrigger
62 if ! [ -e notification.ogg ]; then
63 wget -qO notification.ogg "https://notificationsounds.com/notification-sounds/me-too-603/download/ogg"
71 curl -s "$RAW/instantOS/instantWALLPAPER/master/wall.sh" >wall.sh
72 curl -s "$RAW/instantOS/instantWALLPAPER/master/offlinewall.sh" >offlinewall.sh
76 # set instantwm as default for lightdm
77 echo '[Desktop]' >.dmrc
78 echo 'Session=instantwm' >>.dmrc