Skip to content

PyGTK+Bash based monitor/display & audio output switcher

Notifications You must be signed in to change notification settings

webodan/screenswitcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

screenswitcher

PyGTK+Bash based monitor & audio output switcher. Based on cb-exit from crunchbang linux.

How it works

You run screenswitcher-v2.sh and this draws a window with 3 buttons on it:

alt text

Each of them for a different display of the ones I have plugged into my machine. I click on one of them and the video output switches from my currently running display to the one I clicked to use. These are bash commands retrieved from the accompanying switchmon.sh bash script, and is called with a flag from screenswitcher.sh that defines which display device to switch into.

In order to make it easier for me, I used sed variables to define the PulseAudio sink outputs and XRandr monitor identifiers every time the program runs. Since I only have one monitor of each type (DVI, HDMI and VGA) XRandr differentiates between them easily.

This script can be easily modded to acommodate one's own setup, so in case it's ever useful to anyone, I made this repository for it.

About

PyGTK+Bash based monitor/display & audio output switcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published