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
41 # drag and drop x utility for ranger
42 if ! command -v dragon &>/dev/null; then
44 git clone --depth=1 https://github.com/mwh/dragon.git &>/dev/null
53 mkdir -p instantos/notifications &>/dev/null
54 cd instantos/notifications
56 # gets executed by dunst on notification
57 curl -s "$RAW/instantos/instantos/master/programs/dunsttrigger" >dunsttrigger
60 if ! [ -e notification.ogg ]; then
61 wget -qO notification.ogg "https://notificationsounds.com/notification-sounds/me-too-603/download/ogg"
68 # set instantwm as default for lightdm
69 echo '[Desktop]' >.dmrc
70 echo 'Session=instantwm' >>.dmrc