#!/usr/bin/python

import sys
import os
import subprocess

def main():
	result = subprocess.check_output(["/usr/bin/xfconf-query","-c","xfce4-panel","-p","/panels/panel-0/autohide"]) 
	if result == "true\n" :
		#print "I am currently Autohiding, disabling authohiding."
		subprocess.call(["xfconf-query", "-c", "xfce4-panel", "-p", "/panels/panel-0/autohide","-s","false"])

	else:
		#print "I am currently not Authohiding, enabling Authohiding."
		subprocess.call(["xfconf-query", "-c", "xfce4-panel", "-p", "/panels/panel-0/autohide","-s","true"])
		

if __name__ == "__main__":
	main()

