| Author |
Message |
gerry
Joined: 26 Jul 2007 Posts: 944 Location: England
|
Posted: Fri 15 Oct 2010, 15:25 Post subject:
Slow Breathing timer needed |
|
I've dicovered a technique known as "Slow Breathing" for getting your blood pressure down. I could do with a pet which would display an image, could be just a line or circle, which would expand for two seconds and then take four seconds to return to it's original size.
The deluxe version would be adjustable to be slower.
I'm using Puppy 431, or Wary 0.9
Anyone able to help?
gerry
|
|
Back to top
|
|
 |
linuxsansdisquedur

Joined: 13 Jan 2009 Posts: 250 Location: South of France
|
Posted: Fri 15 Oct 2010, 16:33 Post subject:
|
|
Just make a gif
_________________ le max avec le min
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Fri 15 Oct 2010, 19:20 Post subject:
|
|
| Code: | #!/bin/sh
POS="\E[$1;$2H"
V=$1;H=$2
shift 2
echo $#
clear
echo -e $POS"| {$@} |"
sleep .5
clear
echo -e $POS"| { $@ } |"
sleep .5
clear
echo -e $POS"| { $@ } |"
sleep .5
clear
echo -e $POS"| { $@ } |"
sleep .5
clear
echo -e $POS"|{ $@ }|"
sleep 1
clear
echo -e $POS"| { $@ } |"
sleep 1
clear
echo -e $POS"| { $@ } |"
sleep 1
clear
echo -e $POS"| { $@ } |"
sleep 1
echo $#
$0 $V $H $@ |
usage:
breath vertical# horizontal# "message"
adjust values and characters to your liking - press Ctrl+C to quit
Edit maybe I should add a function like this to bashbox as a "now processing" display rather than just a rotating line or series of dots (maybe we could even get some funding for puppy this way as part of a psyc study )
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 15 Oct 2010, 23:33 Post subject:
Re: Slow Breathing timer needed |
|
| gerry wrote: | I've discovered a technique known as "Slow Breathing" for getting your blood pressure down. I could do with a pet which would display an image, could be just a line or circle, which would expand for two seconds and then take four seconds to return to it's original size.
The deluxe version would be adjustable to be slower.
I'm using Puppy 431, or Wary 0.9
Anyone able to help?
gerry |
great script
http://www.wikihow.com/Lower-High-Blood-Pressure-Using-Slow-Breathing-with-Music
What you are describing is used in vipassana
and samatha meditation
http://en.wikipedia.org/wiki/Samatha
It is also used in pranayama and yoga nidrah
These same deep breathing patterns are induced when walking
through forests
sitting by the shore
fishing by the river
listening to soothing music
or doing tai chi
m m m . . . just had an idea
hope the above is of interest whilst I find
a solution devoid of religious connotations
this code should work in wary
(create a file called 'breath'
change permissions to executible - right click on file
run by typing ./breath on command line)
| Code: | #! /bin/bash
# breath test for Gerry by Lobster
NUM=33 # Change the number of breaths
yaf-splash -bg yellow -fontsize x-large -timeout 3 -text 'Hello'
yaf-splash -bg yellow -fontsize x-large -timeout 3 -text 'Relax and breath slowly'
yaf-splash -bg yellow -fontsize x-large -timeout 3 -text 'Feel calm'
yaf-splash -bg yellow -fontsize x-large -timeout 3 -text 'Lengthen breath'
repetitions=$NUM
for g in $(eval echo {$repetitions..1})
do
yaf-splash -bg yellow -fontsize x-large -timeout 2 -text 'breath in 1 . . . 2 . . .'
yaf-splash -bg yellow -fontsize x-large -timeout 4 -text 'breath out 1 . . . 2 . . . 3 . . . 4 . . .'
done |
Have started a thread to promote technosaurus idea of 'lowering blood pressure'
whilst awaiting events
http://www.murga-linux.com/puppy/viewtopic.php?p=458835#458835
Puppy Linux
Reduces blood pressure
. . . or your money back
_________________ Puppy WIKI
Last edited by Lobster on Sat 16 Oct 2010, 00:26; edited 2 times in total
|
|
Back to top
|
|
 |
jrb

Joined: 11 Dec 2007 Posts: 972 Location: Smithers, BC, Canada
|
Posted: Fri 15 Oct 2010, 23:56 Post subject:
|
|
Nice work technosaurus!
I feel more relaxed already.
I packaged it as a pet with entry on the Fun menu.
Edit: There's a pet of Lobster's script on his thread
| Description |
Relaxed computing
|

Download |
| Filename |
slow_breath.pet |
| Filesize |
714 Bytes |
| Downloaded |
191 Time(s) |
_________________ SFS-TCZ_Linker, http://puppylinuxstuff.meownplanet.net/choicepup/ user=puppy, password=linux
|
|
Back to top
|
|
 |
gerry
Joined: 26 Jul 2007 Posts: 944 Location: England
|
Posted: Sat 16 Oct 2010, 12:21 Post subject:
|
|
Thanks everyone. Didn't think there would be any interest!
I'm using jrb's pet, although in that form it misses out the user input, and just runs. But it's fine as is.
Just need to sort out a suitable music cd from the pile...
gerry
|
|
Back to top
|
|
 |
|