`dconf write` with puppet

asked 2017-08-23 13:09:05 -0500

tylerecouture gravatar image

updated 2017-09-04 19:22:23 -0500

I am using this command to regain control of the "Alt" key on Ubuntu Desktop (for use in Blender, GIMP, Inkscape, Unity, etc)

 dconf write /org/gnome/desktop/wm/preferences/mouse-button-modifier '"<SUPER>"'

How could I do this using puppet?

EDIT:

https://github.com/simp/pupmod-simp-g... was suggested, but I don't know how to use it in a manifest pp file. Where would this go?

gnome::dconf_hash: 
   org.gnome.desktop.wm.preferences: 
      mouse-button-modifier: 
         value: "'<super>'"
edit retag flag offensive close merge delete

Comments

Lots of ways. One is to use the Provider written for he SIMP project https://github.com/simp/pupmod-simp-gnome You can also just use a custom exec or use the file_line type in stdlib

bess gravatar imagebess ( 2017-08-23 21:32:56 -0500 )edit

Thanks for the recommendation. How do I use it? THe docs say I should do something like: ```` gnome::dconf_hash: org.gnome.desktop.wm.preferences: mouse-button-modifier: value: "<super>" ```` But how do I use this in my puppet config file?

tylerecouture gravatar imagetylerecouture ( 2017-09-04 19:19:35 -0500 )edit