File: autoconfig-compiz.py

package info (click to toggle)
compiz-boxmenu 1.1.12-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 680 kB
  • sloc: ansic: 2,607; python: 1,349; makefile: 77; xml: 71; sh: 1
file content (25 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python2

import compizconfig

context = compizconfig.Context()

if 'run_command0_key' in context.Plugins['core'].Display:

    print "setting up for compiz 0.7.x+"

    context.Plugins['core'].Display['command0'].Value = 'compiz-boxmenu'
    context.Plugins['core'].Display['run_command0_key'].Value = '<Alt>F1'

    if 'vpswitch' in context.Plugins:
        vpswitch = context.Plugins['vpswitch']
        if not vpswitch.Enabled:
            vpswitch.Enabled = True
        vpswitch.Display['init_plugin'].Value = 'core'
        vpswitch.Display['init_action'].Value = 'run_command0_key'

    context.Write()

else:
    
    print "compiz-boxmenu requires compiz 0.7.x+ for full functionality"