Heyya,
I've written a simple script to alternate audio out between my laptop speakers and phone out. This script is intended for scrotwm, but also can be used on its own.
As usual, feel free to copy this file and improve it. You can see by the Gist that there's 2 files, the first is .scrotwm.conf and the next one is audioout.sh (see the file name on bottom right of the embed).
The .scrotwm.conf is a snippet of configuration needed to make the script work with scrotwm's key binding. As you can see, I've set the key binding to Mod+Shift+a key. So whenever I press the key binding, the audio output will swap between speaker and phone out. Very simple. All I need to do is add the snippet to ~/.scrotwm.conf.
Then I need to save the 2nd file as audioout.sh and save it in /usr/local/share/scrotwm/. There's a few other default scrotwm's script inside there. Make sure the audioout.sh is executable, if not do chmod 755 or similar which is suitable for your environment. Then enjoy.
Previously I would need to manually mute/unmute both master and phone out as I sometime uses headphone. Now I can simply press Mod+Shift+a to swap between it.
Take note that this script can be used even without scrotwm. You just need to copy the 2nd file to your ~/ (home) and run it by typing ./audioout.sh or use another keybinding if available. Later.
Thursday, September 08, 2011
Monday, September 05, 2011
OpenBSD: Setting up GIT to store my dotfiles.
Ok. So I'm on Git now. As I'm not on a programming project whatsoever, my Git is basically just to store (or maybe sync) my dotfiles. Also will be used for embedding any of the dotfiles according to my blog post.
As I'm using it on my company's network, which has a very restrictive firewall and I'm online through a proxy, this is what I did to get my Git working. Take note that I'm using GitHub and most of the references are contained there.
1) Install Git.
I installed the Git package.
2) Set up proxy environment for Git.
In xterm, I set the http proxy value. Take note that I have set up my http_proxy env in ~/.profile:
# git config --global http.proxy $http_proxy
3) Set Git to ignore SSL verification.
I have to set this option, you might not need to touch this. In my ~/.profile, I add the following:
export GIT_SSL_NO_VERIFY=true
4) Follow Github's guide for my first git. Enjoy.
The GitHub's website is very easy to follow. At no time I have successfully push my first commit to it. I will post more bout this after I commit my dotfiles. Later.
As I'm using it on my company's network, which has a very restrictive firewall and I'm online through a proxy, this is what I did to get my Git working. Take note that I'm using GitHub and most of the references are contained there.
1) Install Git.
I installed the Git package.
2) Set up proxy environment for Git.
In xterm, I set the http proxy value. Take note that I have set up my http_proxy env in ~/.profile:
# git config --global http.proxy $http_proxy
3) Set Git to ignore SSL verification.
I have to set this option, you might not need to touch this. In my ~/.profile, I add the following:
export GIT_SSL_NO_VERIFY=true
4) Follow Github's guide for my first git. Enjoy.
The GitHub's website is very easy to follow. At no time I have successfully push my first commit to it. I will post more bout this after I commit my dotfiles. Later.
Subscribe to:
Posts (Atom)
6.5 amd64: Modify existing certbot certificates.
Hi, It's been quite some time eh. As you can see, I still upgrade my OpenBSD system regularly but currently I do not have the time to ...
-
Now FreeBSD has version 6.x fer production purpose and 7 fer current. I missed quite a release nowadays. But 1 of the most important news I...
-
Update: My Updated wmiirc Status Bar Script is the recent version, there's a bit of error in the script below so you guys better take a...
-
Ok. I'm still testing to get auto proxy setting script. But in the mean time, you can copy and use this simple script to dial/disconnect...