last day (154 days later) » 

2:00 PM
That is damn annoying
 
;p
 
#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
schemalist=[]
out2,err2="",""
out2=out2.splitlines
for x in out:
	n="gsettings list keys "+x+":/org/compiz/profiles/unity/"
	out2.append(subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate().splitlines)
	schemalist.append(x)

out2=out2.splitlines()
print out2
print schemalist
 
 ./new.py
Traceback (most recent call last):
  File "./new.py", line 10, in <module>
    out2.append(subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate().splitlines)
AttributeError: 'builtin_function_or_method' object has no attribute 'append'
 
#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
schemalist=[]
out2=[]
for x in out:
	n="gsettings list keys "+x+":/org/compiz/profiles/unity/"
	out2.append(subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate().splitlines())
	schemalist.append(x)

print out2
print schemalist
Yet another time
 
Traceback (most recent call last):
File "./new.py", line 9, in <module>
out2.append(subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate().splitlines)
AttributeError: 'tuple' object has no attribute 'splitlines'
 
2:07 PM
@jokerdino try again
(I've edited it)
 
oh
same
 
@jokerdino +=works only if you have one on either side.
 
hm?
 
and the list of lists, you do [[1],[2,3],['nonsense',7],'yuikh'] like thing.
arbitrary combination of elements, elements can be lists.
a=[]
b is a list.
a.append(b) adds b as a member to a.
@jokerdino one variable, one expression.
 
fix it @amith
 
2:17 PM
wait... append throws error???
 
I've fixed that
And I need to go in a few minutes
 
ok.
 
damn
 
you'll get tuples I believe
 
i am
 
2:17 PM
list of tuples.
@jokerdino yes, you are?
 
11 mins ago, by jokerdino
Traceback (most recent call last):
File "./new.py", line 9, in <module>
out2.append(subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate().splitlines)
AttributeError: 'tuple' object has no attribute 'splitlines'
 
yo dawg.
unpack tuples.
like a,b=list[i]
and then a=a.splitlines()
 
dont know what
 
#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
schemalist=[]
for x in out:
	n="gsettings list-keys "+x+":/org/compiz/profiles/unity/"
	out2=subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()#FIXME:Add appending

	schemalist.append(x)

#make for loop to loop through schemalist and out2 and remove variables
 
I'll fix it.
 
2:21 PM
Good Luck @Mahesh
 
tyx
 
I'll keep an eye on this chat from my mobile
 
you going off for dinner?
 
No, I'm going off to "You used too much of the computer today. Now go do something else"
 
what?
parent filter?
 
2:23 PM
lolz. :P
 
Yeah
 
jeez
 
Aww this is interesting
I have a feeling this will reach unity
:P
 
:P
 
Oh and there is no guarantee this will work
 
2:25 PM
it better
 
If this doesen't work, we need to start using gio
 
bring it on !
 
5 minutes later jokerdino: Is this even python?
 
it's not python?
what?
 
it is
it just looks scary to me :P
 
2:27 PM
ok then
i can pick up python
 
@jokerdino pickup line
lol
 
lol nope
 
python, will you marry() me?
 
return NULL
 
we need something more modular
 
2:29 PM
??
 
just doing confman reset unity and be done with it :P
 
whats going on here?
 
Random stuff
 
?!?!?!
 
?!
wat
BBL
 
2:30 PM
bye
 
what are we trying to do here?
 
reset unity conf
 
i just got randomly confused.. :(
 
you are welcome
 
what does this output?
gsettings list-keys org.compiz.session
 
2:35 PM
 $ gsettings list-keys org.compiz.session
Schema 'org.compiz.session' is relocatable (path must be specified)
 
gsettings list-keys org.compiz.session:/org/compiz/profiles/unity/
 
ignore-match
save-legacy
 
gsettings reset org.compiz.session:/org/compiz/profiles/unity/ ignore-match
 
oi
 
just trying to get the syntax correct
 
2:37 PM
those things are not activated
 
???
 
that plugin is not activated
 
what do you mean?
 
never mind.
it showed no error
 
okay. then it worked.
are you sure about the path? because I have a feeling it must be user specific.
 
2:39 PM
it doesn't work though
 gsettings reset org.compiz.unityshell:/org/compiz/profiles/unity/ launcher-hide-mode
it does nothing -^
@Mahesh i think so too
 
and resetting it through dconf-editor works?
 
yeah
dconf reset  /org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode
that works --^
 
uh
 
dconf write  /org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode 1
 
we just needed to use dconf
 
2:41 PM
i did iut
gsettings reset org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode
works
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 1
works!!!
 
ok this script would work
 
we are going to be popular and awesome
 
you both are
 
wait.. why did it fail earlier?
 
I didn't really help now did I
 
2:43 PM
@Mahesh no full path
@AmithKK we are a team
 
:) we started things together. we do things together.
okay, end of senti stuff.
 
:))
you know, i was the last linking bit :P
 
so list keys was not being honest.
 
ok
I think list keys has a verbose mode
 
whats the problem with using just dconf?
 
2:45 PM
-v ?
@Mahesh i dont know
the devs say that is not clean
 
reference?
 
@mahesh its not well documented
 
check the bounty quesiton
 
great.
 
68
Q: How do I reset my Unity configuration?

Jorge CastroI've been messing around with Unity and broke something, how do I "start over"?

 
2:47 PM
okay.
now, the dirty work.
 
Amiiiiiiiiiiiiiith.
 
lets get a list of all keys with full paths.
 
yeah!
one sec. sipping water
ok back
 
no neat way of getting full paths from gsettings.
gsettings cares only about schemas.
 
sigh
 
2:52 PM
dconf only about paths
and for relocatables, gsettings is a mess when you dont know the path.
 
fun time
 
manpage time
awwwwwww
so we use both
 
<3
yeah. no choice.
 
spit out dconf dump /org/compiz/profiles/unity/
 
or use gconf
 
2:54 PM
dconf dump /org/compiz/profiles/unity/
[/]
plugins-with-set-keys=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']

[plugins/unityshell]
disable-show-desktop=true
launcher-hide-mode=1

[plugins/expo]
ground-color1='#b3b3b3cc'
ground-color2='#b3b3b300'

[plugins/scale]
initiate-all-key='<Shift><Alt>Up'
overlay-icon=1
 
gconf is not being used.
 
@AmithKK gconf is depreciated stuff
 
@jokerdino thats all?
 
yeah
 
:/
 
2:56 PM
ok guys.
do a manual check of the two starred outputs.
 
like?
i am a natoob
 
we need to know if everything in first is covered in someway by second.
@jokerdino so am I
 
@mahesh, i think if i change something, they show up in that dump
 
@jokerdino yup. it is a snapshot of your current settings.
 
in default setting, nothing shows up
yeah
 
2:57 PM
you can save it to a file and then later dconf load it.
 
what?
 
the dconf dump can be used as a backup.
 
this is going to be in unity right?
 
dconf load accepts stdin and sets those values.
 
alright.
@AmithKK yippe
 
2:59 PM
in exactly the same format.
 
if not 12.10, def. 13.04
 
so unity wilare this at first run
 
dconf reset wipes everything.
 
*will make
 
@Mahesh it did
 
3:00 PM
dconf reset /org/compiz/profiles/unity/ should be clean.
 
 dconf dump /org/compiz/profiles/unity/
[/]
plugins-with-set-keys=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
 
it should reset unity, but leave apps untouched.
 
how do i load from file?
 
@jokerdino that looks like a clean entry with defaults.
 
wait a second
 
3:01 PM
@Mahesh yess
 
@jokerdino dconf load <file
 
nope
 
wwe can just reset compiz's profile
 
@jokerdino nope as in?
 
$ dconf load < /home/jokerdino/dconf.settings

(dconf:6936): GLib-WARNING **: (/build/buildd/glib2.0-2.34.0/./glib/gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)
error: dir not specified

Usage:
  dconf load DIR

Populate a subpath from stdin

Arguments:
  DIR       A directory path (starting and ending with '/')
 
3:02 PM
no need of any dconf or gsettings
 
@AmithKK ???
 
dconf load /org/compiz/profiles/unity/ <file
:P
@AmithKK ??
 
oh it works!
so we can just do this :P
load the default and stdin it back ;P
 
and imho, it should be the preferred way.
it just does a clean nice neat reset of just the part that we need.
 
yeah.
get back to coding minions
 
@joker dconf list /org/compiz/profiles/unity/
 
dconf list /org/compiz/profiles/unity/
plugins-with-set-keys
 
hmm...
 
i purged it
 
the only nice and neat way is to use dconf.
 
3:06 PM
it's the default value
 
i cant see how gsettings would be better.
@jokerdino I want you to change all keys to nondefault values under /org/compiz/profiles/unity/ and dump again.
 
oi
dconf dump /org/compiz/profiles/unity/
[/]
plugins-with-set-keys=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']

[plugins/unityshell]
backlight-mode=3
alt-tab-bias-viewport=false
launcher-capture-mouse=false
num-launchers=1
reveal-trigger=1
disable-show-desktop=true
dash-blur-experimental=1
autohide-animation=1
show-minimized-windows=false
@mah -^
not everything but whatever i can
 
@jokerdino the difference?
 
what difference?
 
that gives us the full paths. :D
@jokerdino what do you mean when you say not everything?
 
3:12 PM
there are so many settings to change in ccsm
 
you skipped somethings or they were not editable?
ok.
 
i didn't edit all but just a few
 
so, this thing gives us full paths.
wait a sec.
 
i can't default it
dconf load /org/compiz/profiles/unity/ < default.txt
no workie -^
cat default.txt
[/]
plugins-with-set-keys=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
 
load adds the values.
one sec
got the beast. :D
 
3:17 PM
;D
ok so
 
/org/compiz/profiles/unity/plugins/<plugin-name>/<key> is the structure.
 
go on
 
gsettings reset <schema>:<path> key
is what we should do.
 
example?
 
the path will be /org/compiz/profiles/unity/plugins/plugin-name
gsettings reset org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode
^that should work.
 
3:19 PM
win
didn't i post that earlier?
 
yup. you posted it earlier.
 
38 mins ago, by jokerdino
gsettings reset org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode
okay.
 
tell me another property.
i'll give the gsettings reset command.
 
zz
emblem in scale
icons, scale --> emblem
 
gsettings reset org.compiz.scale:/org/compiz/profiles/unity/plugins/scale/ emblem
emblem is the key name, right?
 
3:22 PM
emblem is not a property. it is the setting
 
the key name is?
 
overlay-icon
 
gsettings reset org.compiz.scale:/org/compiz/profiles/unity/plugins/scale/ overlay-icon
 
win
 
ok, now I have the pattern.
 
3:23 PM
cool
 
all that remains is to get a list of all keys.
that, gimme a minute.
 
sure
 
gsettings list-keys org.compiz.scale:/org/compiz/profiles/unity/
gsettings list-keys org.compiz.scale:/org/compiz/profiles/unity/plugins/scale
 
 gsettings list-keys org.compiz.scale:/org/compiz/profiles/unity/
button-bindings-toggle
darken-back
dnd-distance
hover-time
initiate-all-button
initiate-all-edge
initiate-all-key
initiate-button
initiate-edge
initiate-group-button
initiate-group-edge
initiate-group-key
initiate-key
initiate-output-button
initiate-output-edge
initiate-output-key
key-bindings-toggle
multioutput-mode
opacity
overlay-icon
show-desktop
spacing
speed
timestep
window-match
 
do both outputs match?
 
3:25 PM
gsettings list-keys org.compiz.scale:/org/compiz/profiles/unity/plugins/scale/
button-bindings-toggle
darken-back
dnd-distance
hover-time
initiate-all-button
initiate-all-edge
initiate-all-key
initiate-button
initiate-edge
initiate-group-button
initiate-group-edge
initiate-group-key
initiate-key
initiate-output-button
initiate-output-edge
initiate-output-key
key-bindings-toggle
multioutput-mode
opacity
overlay-icon
show-desktop
spacing
speed
timestep
window-match
yeah matches @mah
 
Congratulations buddy.
we've done it.
 
whee
 
now the stupid scripting.
 
Amiiiiiiiiiiiiiiiiith.
 
I'll do it.
 
3:26 PM
ok get started
 
how goes it
 
almost done
just need to do the scripting
 
awesome
 
yeah ;p
 
good work @Mahesh
 
3:32 PM
@jokerdino do you see scaleaddon in dconf?
@AmithKK :D thanks. I just got lucky.
 
i resetted and so no
 
use dconf-editor
 
when reset, no
but when i modify from ccsm, then yes
 
oh.. I see.
try modifying.
 
hm
when modified yes
 
3:35 PM
does dconf dump show it when modified?
 
yeah
dconf dump /org/compiz/profiles/unity/
[/]
plugins-with-set-keys=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']

[plugins/unityshell]
launcher-hide-mode=1

[plugins/scale]
overlay-icon=1
 
wait..
scaleaddons doesn't show?
 
scale?
 
scale and scaleaddons are different.
 
not available in quantal
 
3:37 PM
gsettings list-keys org.compiz.scaleaddons:/org/compiz/profiles/unity/
@jokerdino what do you mean?
 
 gsettings list-keys org.compiz.scaleaddons:/org/compiz/profiles/unity/
No such schema 'org.compiz.scaleaddons'
 
I'm back
 
@Mahesh i think they removed that plugin in quantal
 
good. then list-relocatable-schemas shouldn't show it.
but it does. :(
 
:(
 
3:38 PM
gsettings list-relocatable-schemas |grep org.compiz.scaleaddons
 
yeah positive
 
thats a positive, right?
 
yesh
 
okay. I got a workaround.
 
good
 
3:39 PM
@AmithKK etherpad mightr be useful. we can code together.
 
oi @amith
 
no resolve
 
I get it fine.
 
never mind
hm still no resolve
can you put it on port 80 @amith?
 
3:48 PM
@jokerdino I'll try
 
thanks
actually never mind.
it's too late in the night for me
 
#!/usr/bin/python
import subprocess
#out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
#schemalist = out.splitlines()
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
	n="gsettings list-keys "+schema+":/org/compiz/profiles/unity/"
that should do the trick.
 
indentation error
File "./python.py", line 8
    n="gsettings list-keys "+schema+":/org/compiz/profiles/unity/"
    ^
IndentationError: unexpected indent
 
blame the chat.
 
hee ;d
 
3:51 PM
nope. blame tabs.
one sec.
#!/usr/bin/python
import subprocess
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
    n="gsettings list-keys "+schema+":/org/compiz/profiles/unity/"
    out,err=subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()
    keys=out.splitlines()
    path="/org/compiz/profiles/unity/plugins/"+plugin+"/"
 
do ir eplace?
 
I use 4 spaces per tab and autoreplace tabs. Amith uses tabs.
python thinks tabs are 8 spaces each.
 
wah
 
did it do the trick?
 
./python.py
./python.py: line 5: composite,: command not found
./python.py: line 7: syntax error near unexpected token `schema='org.compiz.'+plugin'
./python.py: line 7: `    schema='org.compiz.'+plugin'
 
3:54 PM
where did you get that extra ' from?
copy paste properly.
 
no idea
 
ypu moved a quote from line 5 at the end of word composite to line 7 after plugin.
 
no exit
the file doesn't terminate
 
takes time.
 
okk
whee!@
 
3:56 PM
lot of keys. spawning processes takes time. one process per key.
bad way.
 
Wait what
 
@jokerdino works? :D
 
why so many processes
 
one more time testing
yayayaya
 
we did it the dirty way. let me clean it up.
 
3:57 PM
workings!!!@#!@
 
AWESOME
 
omg i get 500 bounty for this
 
lol
You'll soon get to 20k this way
 
haha
 
#!/usr/bin/python
import subprocess
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
    path="/org/compiz/profiles/unity/plugins/"+plugin+"/"
    resetter="gsettings reset-recursively "+schema+":"+path
    out,err=subprocess.Popen(resetter,shell=True, stdout=subprocess.PIPE).communicate()
wait, the bounty is mine. :|
 
3:58 PM
@Mahesh :)
you go ahead with the bounty
 
You can take it @Mahesh
 
and this new one should finish faster with the same effect.
 
amith, package the script
 
YAY!!!!!!!
 
and i'll get it into unity. cheers
team work!
 
3:59 PM
okie
 
with our names as authors.
 
good night
@Mahesh :)
 

  last day (154 days later) »