mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit f41bb72ba951213f48c6fea5336b158d1b0a7c6b
parent f177d88ca4ee315a00ae282da078f14effb06f93
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 23 Dec 2018 16:45:23 +0100

refactor startup scripts

Diffstat:
fix_ux330u | 17+++++++++++++++++
startup | 21++++++---------------
startup_i3 | 17+++++++++++++++++
3 files changed, 40 insertions(+), 15 deletions(-)

diff --git a/fix_ux330u b/fix_ux330u @@ -0,0 +1,17 @@ +#!/bin/bash + +# work around some quirks with the Asus Zenbook UX330U hardware + +# previously, needed to load 8723au, NOT r8723au +# and recompile and install ~/apps/rtl8723* +# but it looks like this is no longer true + +if [ `hostname` = gamma -o `hostname` = gamma.a3nm.net ] +then + # somehow the mouse pointer doesn't always work + (sudo modprobe -r psmouse; sudo modprobe psmouse) & + + # somehow wifi is not properly initialized + (sudo ifconfig wlan0 up; sudo iwconfig wlan0 mode managed; sudo service network-manager restart) & +fi + diff --git a/startup b/startup @@ -1,6 +1,6 @@ #!/bin/bash -~/bin_private/fix_gamma +~/bin/fix_ux330u #~/bin_private/proxy.sh ~/bin/notmuch-new.sh & @@ -8,22 +8,13 @@ urxvtd & ~/bin_private/myfetchmail ~/bin/rehashpath nm-applet & -#~/bin_private/logkeys rm ~/temp/terminals -~/bin/layout -~/bin/kiwix + +# no longer working: ~/bin_private/logkeys +# no longer working: ~/bin/kiwix + # pulseaudio cannot start by itself due to the uncommon socket folder pulseaudio & -if [ `whoami` = a3nm ] -then - COLOR="#000000" -else - # easy reminder that this is not my real session - COLOR="#400000" -fi -xsetroot -solid "$COLOR" & -# when using compton -hsetroot -solid "$COLOR" & # is there a better way to reset xhost permissions? xhost +si:localuser:`whoami` @@ -32,7 +23,7 @@ xhost | sed 1d | grep -v `whoami` | while read l; do done # for now, browser can access the X server -# TODO: use Xpra +# TODO: use wayland xhost +si:localuser:browser xhost +si:localuser:browser2 xhost +si:localuser:bitcoin diff --git a/startup_i3 b/startup_i3 @@ -0,0 +1,17 @@ +#!/bin/bash + +~/bin/layout +~/bin/startup + +if [ `whoami` = a3nm ] +then + COLOR="#000000" +else + # easy reminder that this is not my real session + COLOR="#400000" +fi + +xsetroot -solid "$COLOR" & +# when using compton +hsetroot -solid "$COLOR" & +