octopus and procmail
This commit is contained in:
parent
c8bfe72cfb
commit
903dd570a3
2 changed files with 24 additions and 6 deletions
|
@ -92,20 +92,29 @@ case $1 in
|
|||
BEAT_TIME=`beat -v`
|
||||
|
||||
xsetroot -name "Vol $VOLUME :: [$SONG] :: $MEMFT Mb Free :: Bat $BATT_PCT $BATT_TIME :: $DATE (@$BEAT_TIME)" || true
|
||||
$0 conf-ifaces
|
||||
;;
|
||||
|
||||
"wallpaper")
|
||||
~/Pictures/wallpapers/chooseWP.sh || true &
|
||||
;;
|
||||
|
||||
"conf-ifaces")
|
||||
ifconfig eth0 | grep netmask > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo ifconfig wlan0 down
|
||||
else
|
||||
sudo ifconfig wlan0 up
|
||||
fi
|
||||
;;
|
||||
|
||||
"reset-screen")
|
||||
$0 init-all
|
||||
;;
|
||||
|
||||
"init-all")
|
||||
xrandr | grep "VGA2 disconnected" > /dev/null
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
$0 monitor laptop
|
||||
else
|
||||
$0 monitor extern
|
||||
|
@ -134,15 +143,18 @@ case $1 in
|
|||
sudo dhcpcd eth0 -b -m 10 -p -t 0 &
|
||||
;;
|
||||
|
||||
|
||||
"suspend")
|
||||
slock &
|
||||
systemctl suspend
|
||||
slock
|
||||
;;
|
||||
|
||||
"lock")
|
||||
slock &
|
||||
xset dpms force off
|
||||
slock
|
||||
;;
|
||||
|
||||
"print")
|
||||
sudo systemctl start cups
|
||||
;;
|
||||
|
||||
esac
|
||||
|
|
|
@ -77,7 +77,13 @@ SED=/bin/sed
|
|||
#Stupid fucking viagra
|
||||
:0
|
||||
* ^X-Mailer: Airmail.*
|
||||
* X-Original-To:.*tor.*
|
||||
* ^X-Original-To:.*tor.*
|
||||
$SPAMBOX
|
||||
|
||||
#Out fcking ads
|
||||
* ^To:.*tor@vi-di.fr.*
|
||||
* ^From:.*(Prizer|Prizer).*
|
||||
* ^Subject:.*(S|s)av(ings|e).*
|
||||
$SPAMBOX
|
||||
|
||||
#Out trading
|
||||
|
|
Loading…
Reference in a new issue