diff --git a/.autostartrc b/.autostartrc new file mode 100755 index 0000000..db8841a --- /dev/null +++ b/.autostartrc @@ -0,0 +1,73 @@ +#!/bin/bash +# _ _ _ _ +# __ _ ___ | |_| |__ | | ___| |_ _ _ +# / _` |/ _ \| __| '_ \| |/ _ \ __| | | | +#| (_| | (_) | |_| |_) | | __/ |_| |_| | +# \__, |\___/ \__|_.__/|_|\___|\__|\__,_| +# |___/ +# https://www.youtube.com/user/gotbletu +# https://twitter.com/gotbletu +# https://plus.google.com/+gotbletu +# https://github.com/gotbletu +# gotbleu@gmail.com + +# demo: https://www.youtube.com/watch?v=snF7U-Ug4Qk +# info: this is how i like to handle autostarting of applications, +# instead of using the GUI from most desktop environment, +# we are just going to use a bash script and edit with our favorite text editor. +# Just make sure to add this script to your autostartup for the last time. + + +# --------------------- # +# Resolution # +# --------------------- # + +# ProscanTV: enable underscan and boarder +xrandr --output DVI-I-1 --set underscan on && xrandr --output DVI-I-1 --set "underscan hborder" 40 --set "underscan vborder" 25 & +# LGTV: enable underscan and boarder +xrandr --output HDMI-1 --set underscan on && xrandr --output HDMI-1 --set "underscan hborder" 40 --set "underscan vborder" 25 & + +# Single Monitor: LGTV +xrandr --output VGA-1 --off --output DVI-I-1 --off --output HDMI-1 --mode 1920x1080 --pos 0x0 --rotate normal & + +# Dual Monitor: LGTV (Primary) ProscanTV (secondary) +# xrandr --output VGA-1 --off --output DVI-I-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-1 --mode 1920x1080 --pos 0x0 --rotate normal & + +# --------------------- # +# Applications # +# --------------------- # + +xmodmap ~/.Xmodmap & +xcape -e 'Hyper_L=Return' & +xbindkeys & + +# --------------------- # +# Daemon # +# --------------------- # + +keynav daemonize & +transmission-daemon & +quicktile --daemonize & +~/.bin/rofi-clipboard-manager/mclip.py daemon & + +# --------------------- # +# Server # +# --------------------- # + +# list of all LAN port address +(sleep 100 && cd ~/.portaddress && python3 -m http.server 5000) & + +# calibre comic server +cbbook=~/MA_Calibre/Book +cbcomic=~/MA_Calibre/Comic +cbdojinshi=~/MA_Calibre/Dojinshi +cbsuper=~/MA_Calibre/Super +(sleep 120 && calibre-server -p 57770 --daemonize --with-library "$cbbook") & +(sleep 140 && calibre-server -p 57771 --daemonize --with-library "$cbcomic") & +(sleep 160 && calibre-server -p 57772 --daemonize --with-library "$cbdojinshi") & +(sleep 180 && calibre-server -p 57773 --daemonize --with-library "$cbsuper") & + +# Ubooquity manga server +(sleep 200 && cd ~/.ubooquity && java -jar Ubooquity.jar -webadmin -headless) & + +