Compare commits
3 Commits
v2.2
...
6cf1aac9de
Author | SHA1 | Date | |
---|---|---|---|
6cf1aac9de | |||
3f7f7d7b21 | |||
2c763ce6ea |
@ -3,7 +3,7 @@
|
|||||||
Accessibility setup script for the i3 window manager.
|
Accessibility setup script for the i3 window manager.
|
||||||
|
|
||||||
## i38.sh
|
## i38.sh
|
||||||
Released under the terms of the GPL License Version 3: http://www.wtfpl.net
|
Released under the terms of the GPL License Version 3: https://www.gnu.org/licenses/
|
||||||
This is a Stormux project: https://stormux.org
|
This is a Stormux project: https://stormux.org
|
||||||
|
|
||||||
|
|
||||||
|
2
i38.sh
2
i38.sh
@ -174,7 +174,7 @@ yesno() {
|
|||||||
|
|
||||||
help() {
|
help() {
|
||||||
echo "${0##*/}"
|
echo "${0##*/}"
|
||||||
echo "Released under the terms of the WTFPL License: http://www.wtfpl.net"
|
echo "Released under the terms of the GPL V3 License: https://www.gnu.org/licenses/"
|
||||||
echo -e "This is a Stormux project: https://stormux.org\n"
|
echo -e "This is a Stormux project: https://stormux.org\n"
|
||||||
echo -e "Usage:\n"
|
echo -e "Usage:\n"
|
||||||
echo "With no arguments, create the i3 configuration."
|
echo "With no arguments, create the i3 configuration."
|
||||||
|
@ -20,13 +20,13 @@ i3 = i3ipc.Connection()
|
|||||||
|
|
||||||
def on_new_window(self,i3):
|
def on_new_window(self,i3):
|
||||||
if i3.container.name == 'xfce4-notifyd':
|
if i3.container.name == 'xfce4-notifyd':
|
||||||
system('play -n synth .05 sq 1800 tri 2400 delay 0 .03 remix - repeat 2 echo .55 0.7 20 1 norm -12 &')
|
system('play -nqV0 synth .05 sq 1800 tri 2400 delay 0 .03 remix - repeat 2 echo .55 0.7 20 1 norm -12 &')
|
||||||
else:
|
else:
|
||||||
system('play -n synth .25 sin 440:880 sin 480:920 remix - norm -3 pitch -500 &')
|
system('play -nqV0 synth .25 sin 440:880 sin 480:920 remix - norm -3 pitch -500 &')
|
||||||
|
|
||||||
def on_close_window(self,i3):
|
def on_close_window(self,i3):
|
||||||
if i3.container.name != 'xfce4-notifyd':
|
if i3.container.name != 'xfce4-notifyd':
|
||||||
system('play -n synth .25 sin 880:440 sin 920:480 remix - norm -3 pitch -500 &')
|
system('play -nqV0 synth .25 sin 880:440 sin 920:480 remix - norm -3 pitch -500 &')
|
||||||
|
|
||||||
def on_mode(self,event):
|
def on_mode(self,event):
|
||||||
mode= event.change
|
mode= event.change
|
||||||
@ -37,7 +37,7 @@ def on_mode(self,event):
|
|||||||
elif mode == 'default':
|
elif mode == 'default':
|
||||||
system('play -qV0 "|sox -np synth .07 sq 400" "|sox -np synth .5 sq 800" fade h 0 .5 .5 norm -20 reverse &')
|
system('play -qV0 "|sox -np synth .07 sq 400" "|sox -np synth .5 sq 800" fade h 0 .5 .5 norm -20 reverse &')
|
||||||
else:
|
else:
|
||||||
system('play -n synth 0.05 pluck F3 norm -8 : synth 0.05 pluck C4 norm -8 : synth 0.05 pluck F4 norm -8 : synth 0.05 pluck C5 norm -8')
|
system('play -nqV0 synth 0.05 pluck F3 norm -8 : synth 0.05 pluck C4 norm -8 : synth 0.05 pluck F4 norm -8 : synth 0.05 pluck C5 norm -8')
|
||||||
|
|
||||||
def on_workspace_focus(self,i3):
|
def on_workspace_focus(self,i3):
|
||||||
#system('play -qnV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -8 speed 1 &')
|
#system('play -qnV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -8 speed 1 &')
|
||||||
@ -47,13 +47,13 @@ def on_workspace_move(self,i3):
|
|||||||
system('play -qnV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -8 speed 1 reverse &')
|
system('play -qnV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -8 speed 1 reverse &')
|
||||||
|
|
||||||
def on_restart(self,i3):
|
def on_restart(self,i3):
|
||||||
system('play -qn synth .25 saw 500:1200 fade .1 .25 .1 norm -8 &')
|
system('play -qnV0 synth .25 saw 500:1200 fade .1 .25 .1 norm -8 &')
|
||||||
|
|
||||||
def on_exit(self,i3):
|
def on_exit(self,i3):
|
||||||
system('play -qn synth .3 sin 700:200 fade 0 .3 0 &')
|
system('play -qnV0 synth .3 sin 700:200 fade 0 .3 0 &')
|
||||||
|
|
||||||
def on_fullscreen(self,i3):
|
def on_fullscreen(self,i3):
|
||||||
system('play -qn synth br flanger fade h .3 .3 0 &')
|
system('play -qnV0 synth br flanger fade h .3 .3 0 &')
|
||||||
|
|
||||||
i3 = i3ipc.Connection()
|
i3 = i3ipc.Connection()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user