Added function to toggle audible bell for germinal

This commit is contained in:
David Thurstenson 2016-04-29 10:18:05 -05:00
parent 0c939ccfee
commit 695e0ac72d
1 changed files with 10 additions and 2 deletions

12
.bashrc
View File

@ -1,3 +1,4 @@
#!/bin/bash
#
# ~/.bashrc
#
@ -9,7 +10,7 @@
[[ $- != *i* ]] && return
# Use powerline if it's installed
[ ! -z "$USING_TTY" -a -s "/usr/lib/python3.5/site-packages/powerline/bindings/bash/powerline.sh" ] && {
[ ! -z "$USING_TTY" ] && [ -s "/usr/lib/python3.5/site-packages/powerline/bindings/bash/powerline.sh" ] && {
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
@ -20,7 +21,7 @@
# See bash(1) for more options
HISTCONTROL=ignoreboth
# These are the default colors, but some other programs, such as tee(1), like to use this variable
# Some programs, such as tee(1), like to use this variable
LS_COLORS='di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'
export LS_COLORS
@ -58,6 +59,13 @@ awman() {
awman "$@"
}
# This function toggles audible bell for germinal
# because for some reason, the bell turns off after a while
gbel() {
dconf write /org/gnome/Germinal/audible-bell false
dconf write /org/gnome/Germinal/audible-bell true
}
### PROMPT ###