Bash one-liner to display ALL `gsettings` in Zenity or Yad


up vote
1
down vote
favorite
Recently I've been encountering many questions in Ask Ubuntu that require changing gsettings
to solve the problem. For example this question: How to prevent shutdown when one of two batteries is empty? references a gsettings
that is new to me:
org.gnome.settings-daemon.plugins.power use-time-for-policy false
Rather than stumble across gsettings
randomly every week (or so it seems), is there a bash one-liner to dump all the current gsettings
to zenity
(or yad
) so I can scroll through everything?
gnome bash gsettings zenity yad
add a comment |Â
up vote
1
down vote
favorite
Recently I've been encountering many questions in Ask Ubuntu that require changing gsettings
to solve the problem. For example this question: How to prevent shutdown when one of two batteries is empty? references a gsettings
that is new to me:
org.gnome.settings-daemon.plugins.power use-time-for-policy false
Rather than stumble across gsettings
randomly every week (or so it seems), is there a bash one-liner to dump all the current gsettings
to zenity
(or yad
) so I can scroll through everything?
gnome bash gsettings zenity yad
Why use Zenity or Yad when you could dump to a text file?gsettings list-recursively > gsettings_all.txt
Then you could usesort
for example, or import to LibreOffice Calc as a table.
â wjandrea
Mar 19 at 2:15
@wjandrea LibreOffice Calc is a great program and I love using it. Never thought of it to tell you the truth. Perhaps because of 3 to 14 second load up time and past head-banging-on-the-wall over .CSV import formats decades ago. It wouldn't be a one-liner you can copy and paste into the terminal but you could have a script. I'd be more than happy to upvote an answer based on LibreOffice.
â WinEunuuchs2Unix
Mar 19 at 2:18
LibreOffice is just an example. I'm trying to say that plaintext might be more flexible than other options.
â wjandrea
Mar 19 at 3:59
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Recently I've been encountering many questions in Ask Ubuntu that require changing gsettings
to solve the problem. For example this question: How to prevent shutdown when one of two batteries is empty? references a gsettings
that is new to me:
org.gnome.settings-daemon.plugins.power use-time-for-policy false
Rather than stumble across gsettings
randomly every week (or so it seems), is there a bash one-liner to dump all the current gsettings
to zenity
(or yad
) so I can scroll through everything?
gnome bash gsettings zenity yad
Recently I've been encountering many questions in Ask Ubuntu that require changing gsettings
to solve the problem. For example this question: How to prevent shutdown when one of two batteries is empty? references a gsettings
that is new to me:
org.gnome.settings-daemon.plugins.power use-time-for-policy false
Rather than stumble across gsettings
randomly every week (or so it seems), is there a bash one-liner to dump all the current gsettings
to zenity
(or yad
) so I can scroll through everything?
gnome bash gsettings zenity yad
gnome bash gsettings zenity yad
edited Mar 18 at 23:33
asked Mar 18 at 17:08


WinEunuuchs2Unix
35.9k759134
35.9k759134
Why use Zenity or Yad when you could dump to a text file?gsettings list-recursively > gsettings_all.txt
Then you could usesort
for example, or import to LibreOffice Calc as a table.
â wjandrea
Mar 19 at 2:15
@wjandrea LibreOffice Calc is a great program and I love using it. Never thought of it to tell you the truth. Perhaps because of 3 to 14 second load up time and past head-banging-on-the-wall over .CSV import formats decades ago. It wouldn't be a one-liner you can copy and paste into the terminal but you could have a script. I'd be more than happy to upvote an answer based on LibreOffice.
â WinEunuuchs2Unix
Mar 19 at 2:18
LibreOffice is just an example. I'm trying to say that plaintext might be more flexible than other options.
â wjandrea
Mar 19 at 3:59
add a comment |Â
Why use Zenity or Yad when you could dump to a text file?gsettings list-recursively > gsettings_all.txt
Then you could usesort
for example, or import to LibreOffice Calc as a table.
â wjandrea
Mar 19 at 2:15
@wjandrea LibreOffice Calc is a great program and I love using it. Never thought of it to tell you the truth. Perhaps because of 3 to 14 second load up time and past head-banging-on-the-wall over .CSV import formats decades ago. It wouldn't be a one-liner you can copy and paste into the terminal but you could have a script. I'd be more than happy to upvote an answer based on LibreOffice.
â WinEunuuchs2Unix
Mar 19 at 2:18
LibreOffice is just an example. I'm trying to say that plaintext might be more flexible than other options.
â wjandrea
Mar 19 at 3:59
Why use Zenity or Yad when you could dump to a text file?
gsettings list-recursively > gsettings_all.txt
Then you could use sort
for example, or import to LibreOffice Calc as a table.â wjandrea
Mar 19 at 2:15
Why use Zenity or Yad when you could dump to a text file?
gsettings list-recursively > gsettings_all.txt
Then you could use sort
for example, or import to LibreOffice Calc as a table.â wjandrea
Mar 19 at 2:15
@wjandrea LibreOffice Calc is a great program and I love using it. Never thought of it to tell you the truth. Perhaps because of 3 to 14 second load up time and past head-banging-on-the-wall over .CSV import formats decades ago. It wouldn't be a one-liner you can copy and paste into the terminal but you could have a script. I'd be more than happy to upvote an answer based on LibreOffice.
â WinEunuuchs2Unix
Mar 19 at 2:18
@wjandrea LibreOffice Calc is a great program and I love using it. Never thought of it to tell you the truth. Perhaps because of 3 to 14 second load up time and past head-banging-on-the-wall over .CSV import formats decades ago. It wouldn't be a one-liner you can copy and paste into the terminal but you could have a script. I'd be more than happy to upvote an answer based on LibreOffice.
â WinEunuuchs2Unix
Mar 19 at 2:18
LibreOffice is just an example. I'm trying to say that plaintext might be more flexible than other options.
â wjandrea
Mar 19 at 3:59
LibreOffice is just an example. I'm trying to say that plaintext might be more flexible than other options.
â wjandrea
Mar 19 at 3:59
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
Yad works but not Zenity (yet)
I tried doing this with zenity
but couldn't figure it out. I managed to make it work with yad
but after a couple of clock days had to turn to google groups to get help from the yad experts. They fixed my one-liner bash code in 12 hours!
If you don't have yad
installed already you need to use:
sudo apt install yad
yad
lets you sort the list by any column in ascending/descending order. You can grab the scroll bar to quickly move up and down the list. The Up/Down arrow, PgUp, PgDn, Home and End keys navigate as expected.
The one-liner bash code
Here's the bash one-liner code you can copy and paste into your terminal window:
gsettings list-recursively | sed 's/ */n/;s/ */n/;s/&/&/g' | yad --list --title "gsettings" --item-seperator='n' --width=1800 --height=800 --wrap-width=600 --column=Group --column=Key --column=Setting --no-markup
This is for a 1080p display where the screen is 1920 pixels wide. If your screen is smaller, reduce the size of these arguments:
--width=1800 --height=800 --wrap-width=600
Sample output
When the yad
scroll box opened I:
- Clicked on the
Group
column heading to sort by group. Otherwise the order is random asgsettings list-recursively
dumps out the database. - Scrolled down
org.gnome.settings-daemon.plugins.power
section. - Noticed a
gsettings
I've never seen before but might help me solve suspend problems I've encountered (as highlighted in screen shot below)
The one-liner pays for itself right away
Here is the new gsettings
I discovered:
$ gsettings get org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
false
The gsettings
contradicts a systemd
setting I have:
$ cat /etc/systemd/logind.conf | grep -i lidswitchdock | grep -vF "#"
HandleLidSwitchDocked=suspend
dconf-editor a complete GUI application
There is also dconf-editor
a full blown GUI you can use: What is dconf, what is its function, and how do I use it?
To summarize the link, install it using:
sudo apt install dconf-tools
The whole link is highly recommended reading and it covers gsettings
in depth as well.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Yad works but not Zenity (yet)
I tried doing this with zenity
but couldn't figure it out. I managed to make it work with yad
but after a couple of clock days had to turn to google groups to get help from the yad experts. They fixed my one-liner bash code in 12 hours!
If you don't have yad
installed already you need to use:
sudo apt install yad
yad
lets you sort the list by any column in ascending/descending order. You can grab the scroll bar to quickly move up and down the list. The Up/Down arrow, PgUp, PgDn, Home and End keys navigate as expected.
The one-liner bash code
Here's the bash one-liner code you can copy and paste into your terminal window:
gsettings list-recursively | sed 's/ */n/;s/ */n/;s/&/&/g' | yad --list --title "gsettings" --item-seperator='n' --width=1800 --height=800 --wrap-width=600 --column=Group --column=Key --column=Setting --no-markup
This is for a 1080p display where the screen is 1920 pixels wide. If your screen is smaller, reduce the size of these arguments:
--width=1800 --height=800 --wrap-width=600
Sample output
When the yad
scroll box opened I:
- Clicked on the
Group
column heading to sort by group. Otherwise the order is random asgsettings list-recursively
dumps out the database. - Scrolled down
org.gnome.settings-daemon.plugins.power
section. - Noticed a
gsettings
I've never seen before but might help me solve suspend problems I've encountered (as highlighted in screen shot below)
The one-liner pays for itself right away
Here is the new gsettings
I discovered:
$ gsettings get org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
false
The gsettings
contradicts a systemd
setting I have:
$ cat /etc/systemd/logind.conf | grep -i lidswitchdock | grep -vF "#"
HandleLidSwitchDocked=suspend
dconf-editor a complete GUI application
There is also dconf-editor
a full blown GUI you can use: What is dconf, what is its function, and how do I use it?
To summarize the link, install it using:
sudo apt install dconf-tools
The whole link is highly recommended reading and it covers gsettings
in depth as well.
add a comment |Â
up vote
1
down vote
Yad works but not Zenity (yet)
I tried doing this with zenity
but couldn't figure it out. I managed to make it work with yad
but after a couple of clock days had to turn to google groups to get help from the yad experts. They fixed my one-liner bash code in 12 hours!
If you don't have yad
installed already you need to use:
sudo apt install yad
yad
lets you sort the list by any column in ascending/descending order. You can grab the scroll bar to quickly move up and down the list. The Up/Down arrow, PgUp, PgDn, Home and End keys navigate as expected.
The one-liner bash code
Here's the bash one-liner code you can copy and paste into your terminal window:
gsettings list-recursively | sed 's/ */n/;s/ */n/;s/&/&/g' | yad --list --title "gsettings" --item-seperator='n' --width=1800 --height=800 --wrap-width=600 --column=Group --column=Key --column=Setting --no-markup
This is for a 1080p display where the screen is 1920 pixels wide. If your screen is smaller, reduce the size of these arguments:
--width=1800 --height=800 --wrap-width=600
Sample output
When the yad
scroll box opened I:
- Clicked on the
Group
column heading to sort by group. Otherwise the order is random asgsettings list-recursively
dumps out the database. - Scrolled down
org.gnome.settings-daemon.plugins.power
section. - Noticed a
gsettings
I've never seen before but might help me solve suspend problems I've encountered (as highlighted in screen shot below)
The one-liner pays for itself right away
Here is the new gsettings
I discovered:
$ gsettings get org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
false
The gsettings
contradicts a systemd
setting I have:
$ cat /etc/systemd/logind.conf | grep -i lidswitchdock | grep -vF "#"
HandleLidSwitchDocked=suspend
dconf-editor a complete GUI application
There is also dconf-editor
a full blown GUI you can use: What is dconf, what is its function, and how do I use it?
To summarize the link, install it using:
sudo apt install dconf-tools
The whole link is highly recommended reading and it covers gsettings
in depth as well.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Yad works but not Zenity (yet)
I tried doing this with zenity
but couldn't figure it out. I managed to make it work with yad
but after a couple of clock days had to turn to google groups to get help from the yad experts. They fixed my one-liner bash code in 12 hours!
If you don't have yad
installed already you need to use:
sudo apt install yad
yad
lets you sort the list by any column in ascending/descending order. You can grab the scroll bar to quickly move up and down the list. The Up/Down arrow, PgUp, PgDn, Home and End keys navigate as expected.
The one-liner bash code
Here's the bash one-liner code you can copy and paste into your terminal window:
gsettings list-recursively | sed 's/ */n/;s/ */n/;s/&/&/g' | yad --list --title "gsettings" --item-seperator='n' --width=1800 --height=800 --wrap-width=600 --column=Group --column=Key --column=Setting --no-markup
This is for a 1080p display where the screen is 1920 pixels wide. If your screen is smaller, reduce the size of these arguments:
--width=1800 --height=800 --wrap-width=600
Sample output
When the yad
scroll box opened I:
- Clicked on the
Group
column heading to sort by group. Otherwise the order is random asgsettings list-recursively
dumps out the database. - Scrolled down
org.gnome.settings-daemon.plugins.power
section. - Noticed a
gsettings
I've never seen before but might help me solve suspend problems I've encountered (as highlighted in screen shot below)
The one-liner pays for itself right away
Here is the new gsettings
I discovered:
$ gsettings get org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
false
The gsettings
contradicts a systemd
setting I have:
$ cat /etc/systemd/logind.conf | grep -i lidswitchdock | grep -vF "#"
HandleLidSwitchDocked=suspend
dconf-editor a complete GUI application
There is also dconf-editor
a full blown GUI you can use: What is dconf, what is its function, and how do I use it?
To summarize the link, install it using:
sudo apt install dconf-tools
The whole link is highly recommended reading and it covers gsettings
in depth as well.
Yad works but not Zenity (yet)
I tried doing this with zenity
but couldn't figure it out. I managed to make it work with yad
but after a couple of clock days had to turn to google groups to get help from the yad experts. They fixed my one-liner bash code in 12 hours!
If you don't have yad
installed already you need to use:
sudo apt install yad
yad
lets you sort the list by any column in ascending/descending order. You can grab the scroll bar to quickly move up and down the list. The Up/Down arrow, PgUp, PgDn, Home and End keys navigate as expected.
The one-liner bash code
Here's the bash one-liner code you can copy and paste into your terminal window:
gsettings list-recursively | sed 's/ */n/;s/ */n/;s/&/&/g' | yad --list --title "gsettings" --item-seperator='n' --width=1800 --height=800 --wrap-width=600 --column=Group --column=Key --column=Setting --no-markup
This is for a 1080p display where the screen is 1920 pixels wide. If your screen is smaller, reduce the size of these arguments:
--width=1800 --height=800 --wrap-width=600
Sample output
When the yad
scroll box opened I:
- Clicked on the
Group
column heading to sort by group. Otherwise the order is random asgsettings list-recursively
dumps out the database. - Scrolled down
org.gnome.settings-daemon.plugins.power
section. - Noticed a
gsettings
I've never seen before but might help me solve suspend problems I've encountered (as highlighted in screen shot below)
The one-liner pays for itself right away
Here is the new gsettings
I discovered:
$ gsettings get org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
false
The gsettings
contradicts a systemd
setting I have:
$ cat /etc/systemd/logind.conf | grep -i lidswitchdock | grep -vF "#"
HandleLidSwitchDocked=suspend
dconf-editor a complete GUI application
There is also dconf-editor
a full blown GUI you can use: What is dconf, what is its function, and how do I use it?
To summarize the link, install it using:
sudo apt install dconf-tools
The whole link is highly recommended reading and it covers gsettings
in depth as well.
edited Mar 19 at 11:09
answered Mar 18 at 17:08


WinEunuuchs2Unix
35.9k759134
35.9k759134
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017045%2fbash-one-liner-to-display-all-gsettings-in-zenity-or-yad%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Why use Zenity or Yad when you could dump to a text file?
gsettings list-recursively > gsettings_all.txt
Then you could usesort
for example, or import to LibreOffice Calc as a table.â wjandrea
Mar 19 at 2:15
@wjandrea LibreOffice Calc is a great program and I love using it. Never thought of it to tell you the truth. Perhaps because of 3 to 14 second load up time and past head-banging-on-the-wall over .CSV import formats decades ago. It wouldn't be a one-liner you can copy and paste into the terminal but you could have a script. I'd be more than happy to upvote an answer based on LibreOffice.
â WinEunuuchs2Unix
Mar 19 at 2:18
LibreOffice is just an example. I'm trying to say that plaintext might be more flexible than other options.
â wjandrea
Mar 19 at 3:59