some things for disk encryption
This commit is contained in:
parent
1359e48151
commit
3c9a78671e
3 changed files with 49 additions and 8 deletions
|
@ -91,11 +91,11 @@ case $1 in
|
|||
MEMFT=`echo "$MEMFREE + $MEMCACHED" | bc`
|
||||
BEAT_TIME=`beat -v`
|
||||
|
||||
xsetroot -name "Vol $VOLUME :: [$SONG] :: $MEMFT Mb Free :: Bat $BATT_PCT $BATT_TIME :: $DATE (@$BEAT_TIME)"
|
||||
xsetroot -name "Vol $VOLUME :: [$SONG] :: $MEMFT Mb Free :: Bat $BATT_PCT $BATT_TIME :: $DATE (@$BEAT_TIME)" || true
|
||||
;;
|
||||
|
||||
"wallpaper")
|
||||
~/Pictures/wallpapers/chooseWP.sh &
|
||||
~/Pictures/wallpapers/chooseWP.sh || true &
|
||||
;;
|
||||
|
||||
"reset-screen")
|
||||
|
@ -119,7 +119,7 @@ case $1 in
|
|||
;;
|
||||
|
||||
"init-mouse")
|
||||
sudo tpkbdctl -s255
|
||||
sudo tpkbdctl -s255 || true
|
||||
;;
|
||||
|
||||
"init-wifi")
|
||||
|
|
47
install.sh
47
install.sh
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
function deploy_directory()
|
||||
{ # {{{
|
||||
# @arg1: dst directory
|
||||
|
@ -76,7 +76,21 @@ function deploy_vim()
|
|||
|
||||
function deploy_ssh()
|
||||
{ # {{{
|
||||
if [ ! -d "~/.ssh" ]; then mkdir .ssh/; fi;
|
||||
cd ~
|
||||
if [ -d ~/.ssh && ! -h ~/.ssh ]; then
|
||||
mv ~/.ssh ~/.sshBAK
|
||||
fi;
|
||||
|
||||
if [ ! -d "$SECURE_DIR/.ssh/" ]; then
|
||||
mkdir "$SECURE_DIR/.ssh"
|
||||
if [ -d ~/.sshBAK ]; then #could've reversed 2 ifs, i know
|
||||
mv ~/.sshBAK/* $SECURE_DIR/.ssh/
|
||||
rm -f ~/.sshBAK
|
||||
fi;
|
||||
fi;
|
||||
|
||||
ln -s $SECURE_DIR/.ssh/ ~/.ssh
|
||||
|
||||
cd ~/.ssh
|
||||
ln -s $WAI/ssh/config ./
|
||||
} # }}}
|
||||
|
@ -86,7 +100,21 @@ function deploy_mutt()
|
|||
cd ~
|
||||
ln -s $WAI/mailcap ./.mailcap
|
||||
|
||||
if [ ! -d "~/.mutt" ]; then mkdir ~/.mutt/; fi;
|
||||
if [ -d ~/.mutt && ! -h ~/.mutt ]; then
|
||||
mv ~/.mutt ~/.muttBAK
|
||||
fi;
|
||||
|
||||
if [ ! -d $SECURE_DIR/.mutt ]; then
|
||||
mkdir $SECURE_DIR/.mutt;
|
||||
if [ -d ~/.muttBAK ]; then
|
||||
mv ~/.muttBAK/* $SECURE_DIR/.mutt/
|
||||
fi;
|
||||
fi;
|
||||
|
||||
if [ ! -h ~/.mutt ]; then
|
||||
ln -s $SECURE_DIR/.mutt/ ~/.mutt/
|
||||
fi
|
||||
|
||||
cd ~/.mutt
|
||||
ln -s $WAI/mutt/muttrc ./
|
||||
ln -s $WAI/mutt/killsig ./
|
||||
|
@ -97,11 +125,24 @@ function deploy_mutt()
|
|||
ln -s $WAI/mutt/unlock-pass.sh ./
|
||||
ln -s $WAI/mutt/account.frank ./
|
||||
ln -s $WAI/mutt/account.aei ./
|
||||
|
||||
mkdir ~/.mutt/certificates
|
||||
mkdir ~/.mutt/cache
|
||||
mkdir ~/.mutt/cache/bodies
|
||||
mkdir ~/.mutt/cache/headers
|
||||
} # }}}
|
||||
|
||||
|
||||
WAI=`pwd`
|
||||
|
||||
if [ $(hostname) = "intersect" ]; then
|
||||
SECURE_DIR=~/Private
|
||||
else
|
||||
SECURE_DIR=~
|
||||
echo "FIXME"
|
||||
exit
|
||||
fi;
|
||||
|
||||
#simple files
|
||||
cd ~
|
||||
ln -s ~/Programmation/dotfiles/Utils/ .my_utils
|
||||
|
|
4
xinitrc
4
xinitrc
|
@ -31,7 +31,7 @@ if [ -s ~/.Xmodmap ]; then
|
|||
fi
|
||||
|
||||
$OCTOPUS init-all 1>> /dev/shm/Octopus_logs 2>> /dev/shm/Octopus_logs &
|
||||
ftpfct.sh >/dev/null &
|
||||
ftpfct.sh >/dev/null || true &
|
||||
|
||||
ps aux | grep mpd | grep -v grep
|
||||
if [ $? -eq 1 ]; then
|
||||
|
@ -55,7 +55,7 @@ while true; do
|
|||
done &
|
||||
|
||||
xautolock -time 60 -locker "systemctl suspend" &
|
||||
redshift -l 46:6&
|
||||
redshift -l 46:6 || true &
|
||||
|
||||
#ssh-agent -t 10 /home/frank/Programmation/dotfiles/dwm/dwm
|
||||
/home/frank/Programmation/dotfiles/dwm/dwm
|
||||
|
|
Loading…
Reference in a new issue