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`
|
BEAT_TIME=`beat -v`
|
||||||
|
|
||||||
xsetroot -name "Vol $VOLUME :: [$SONG] :: $MEMFT Mb Free :: Bat $BATT_PCT $BATT_TIME :: $DATE (@$BEAT_TIME)" || true
|
xsetroot -name "Vol $VOLUME :: [$SONG] :: $MEMFT Mb Free :: Bat $BATT_PCT $BATT_TIME :: $DATE (@$BEAT_TIME)" || true
|
||||||
|
$0 conf-ifaces
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"wallpaper")
|
"wallpaper")
|
||||||
~/Pictures/wallpapers/chooseWP.sh || true &
|
~/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")
|
"reset-screen")
|
||||||
$0 init-all
|
$0 init-all
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"init-all")
|
"init-all")
|
||||||
xrandr | grep "VGA2 disconnected" > /dev/null
|
xrandr | grep "VGA2 disconnected" > /dev/null
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]; then
|
||||||
then
|
|
||||||
$0 monitor laptop
|
$0 monitor laptop
|
||||||
else
|
else
|
||||||
$0 monitor extern
|
$0 monitor extern
|
||||||
|
@ -134,15 +143,18 @@ case $1 in
|
||||||
sudo dhcpcd eth0 -b -m 10 -p -t 0 &
|
sudo dhcpcd eth0 -b -m 10 -p -t 0 &
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
"suspend")
|
"suspend")
|
||||||
|
slock &
|
||||||
systemctl suspend
|
systemctl suspend
|
||||||
slock
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"lock")
|
"lock")
|
||||||
|
slock &
|
||||||
xset dpms force off
|
xset dpms force off
|
||||||
slock
|
;;
|
||||||
|
|
||||||
|
"print")
|
||||||
|
sudo systemctl start cups
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -77,7 +77,13 @@ SED=/bin/sed
|
||||||
#Stupid fucking viagra
|
#Stupid fucking viagra
|
||||||
:0
|
:0
|
||||||
* ^X-Mailer: Airmail.*
|
* ^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
|
$SPAMBOX
|
||||||
|
|
||||||
#Out trading
|
#Out trading
|
||||||
|
|
Loading…
Reference in a new issue