• Editing Dconf Values


    Hi there everyone! I am currently making a script for myself, but I can’t seem to make a certain dconf change in one of it’s values. THis is what I have, but it’s not working for me:

    dconf write /org/gnome/desktop/wm/preferences/button-layout/custom-value minimize,maximize,close:appmenu
    

    What should I change? Thank you!

    NOTE: I know I could do this in dconf-editor, but I want to make myself a script for a friend that does not know about this. This way, i can customize his experience🙂. And for myself. If i ever have to re-install Antergos, this way I have an easy way available to get everything back to how i want it.

    Thanks again!

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • Hi,

    It’s a bit tricky. As you’re storing a string, you need to use simple and double quotes this way:

    dconf write /org/gnome/desktop/wm/preferences/button-layout/custom-value "'minimize,maximize,close:appmenu'"

  • Thanks! It worked😀

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • Your command definately worked. @karasu, however once I ran that (with no errors displayed by the way) no visible change was discerned. Do I need to log out and then back in for it to show or something?

    Thanks!

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • @Keegan said in Editing Dconf Values:

    Do I need to log out and then back in for it to show or something?

    Nope, it should work. It will change your dconf settings only for the user that runs the command, though.

    You can also try gsettings that is the command we use with Cnchi.

  • Thanks! How can I do it with gsettings!

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • ╰─➤  gsettings get org.gnome.desktop.wm.preferences button-layout                                             
    'appmenu:minimize,maximize,close'
    
    gsettings set org.gnome.desktop.wm.preferences button-layout appmenu:minimize,maximize       
    gsettings get org.gnome.desktop.wm.preferences button-layout                           
    'appmenu:minimize,maximize'
    

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • Thanks @joekamprad! your middle command worked for me!

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • By the way, can I label both your answer, @joekamprad, and @karasu’s as correct ones, since they both technically are?

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • @Keegan said in Editing Dconf Values:

    By the way, can I label both your answer, @joekamprad, and @karasu’s as correct ones, since they both technically are?

    give this to @karasu > he was faster 😉

    gsettings get is to get the current value, gsettings set is to set new ones

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • Ah… so I need both your first value and then the second one also?

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • But due to your and @karasu’s help here, I now have my script all done and set up! You can find it on Github here:
    https://github.com/keeganmilsten/Elementary-Arch
    It is an easy script to convert a user’s Gnome desktop into one that looks like a mac one. the Elementary OS menu is even included!

    P.S. while I did make this, it was mostly for the challenge in and of itself. I do not plan on actually using this as I much prefer the way I have my system set up already. However, I know that there are others out there who love the Mac look, so I thought I might help them out a bit.

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • @Keegan said in Editing Dconf Values:

    Ah… so I need both your first value and then the second one also?

    No for a skript not… get is for watching the current value if you only want to set, set is what you need…

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • Thanks you for all of this helpful information, @joekamprad! It has been invaluable🙂.

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • @Keegan i was reading your question and remember the time when gnome3 was new… we need to use gsettings a lot !

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • So it just occurred to me that it would be nice to create a custom shortcut for one of applications I install via the script I have made. I know how to do this (and have already done so) in gnome-settings, but is there a simple way to do the same thing in the terminal via command line for my script?
    Thanks!

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • So here’s what I have so far to make my own shortcut:

    dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command "'/bin/panther_launcher'"
    dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding "'<Primary><F10>'"
    dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name "'panther-key'"
    

    But it’s still not working! What should I do / did wrong?

    Thanks!

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • @Keegan said in Editing Dconf Values:

    but is there a simple way to do the same thing in the terminal via command line for my script?

    Yes and no! each desktop has it own keybindings in their own xml files in their own folders. You’ll have to use xfconf, dconf, gconf… So even if you discover the commands to your DE you won’t be able to use them in other DEs

    Maybe is possible to make one for Xorg and one for Wayland as a more generic solution.

    Portergos site
    https://github.com/Portergos/portergos-iso

    Still in love with Antergos (default OS)
    I3wm

    Linux newbie since 06/2016

  • @fernandomaroto said in Editing Dconf Values:

    You’ll have to use xfconf, dconf, gconf…

    I found instructions for doing it in dconf, and i posted what I did in the post above. However, it fails to do anything in Gnome (the DE I am in, using, and made it for).

    Keep trying, never give up. In the end, you will find that it was all worth it

    My ISO: https://rebornos.wordpress.com

    Friend's Website: http://nwg.pl

  • @Keegan I’ll give you a simple answer: I don’t know 😛

    Portergos site
    https://github.com/Portergos/portergos-iso

    Still in love with Antergos (default OS)
    I3wm

    Linux newbie since 06/2016

dconf2 values1 editing1 Posts 34Views 2379
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.