mybin

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

commit d9a677f4ba698040c773bb7d7edd3191ca2faf92
parent 036a400a579bfc4d6ac31ec35f4cc72d935665b9
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 12 Mar 2015 01:16:22 +0100

use whoami

Diffstat:
dropbox | 3+--
startup | 4++--
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dropbox b/dropbox @@ -11,8 +11,7 @@ VOLUME="/home" # where quotas are setup ID=`whoami` PRIVATE="/home/$ID/.ssh/id_rsa" # an existing file that you want to protect QUOTA="4096000" # dropbox's quota, in bytes -ENDPOINT="/home/a3nm/mnt/dropbox" # where to mount dropbox (do not use '~') - +ENDPOINT="$HOME/mnt/dropbox" # where to mount dropbox (do not use '~') DCMD="sudo su dropbox -s /bin/bash -c" if groups dropbox | tr -d ':' | tr ' ' '\n' | grep -v '^$' | diff --git a/startup b/startup @@ -15,8 +15,8 @@ xsetroot -solid '#000000' & hsetroot -solid '#000000' & # is there a better way to reset xhost permissions? -xhost +si:localuser:a3nm -xhost | sed 1d | grep -v a3nm | while read l; do +xhost +si:localuser:`whoami` +xhost | sed 1d | grep -v `whoami` | while read l; do xhost "-$l" done