{"id":1769,"date":"2020-12-12T13:48:57","date_gmt":"2020-12-12T18:48:57","guid":{"rendered":"http:\/\/www.both.org\/?p=1769"},"modified":"2020-12-14T08:10:39","modified_gmt":"2020-12-14T13:10:39","slug":"i-just-learned-something-cool","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=1769","title":{"rendered":"Setting the number of desktop workspaces for Xfce4"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"1769\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p>I just learned something very cool.<\/p>\n\n\n\n<p>Sometimes it is necessary to make remote modifications to a desktop using the command line. In this case I needed to reduce the number of workspaces on the Xfce panel from 4 to 3 at the request of the user. This is actually easy and only required about 20 minutes of searching on the Internet.<\/p>\n\n\n\n<p>The xfconf-query command can be used by non-root users to query and set various attributes for the xfwm4 window manager. In the sample below I have first verified the current setting of 4 workspaces, then set the number to 2, and finally verified the new setting. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[user@test1 ~]# <strong>xfconf-query -c xfwm4 -p \/general\/workspace_count<\/strong>\n4\n[user@test1 ~]# <strong>xfconf-query -c xfwm4 -p \/general\/workspace_count -s 2<\/strong>\n[user@test1 ~]# <strong>xfconf-query -c xfwm4 -p \/general\/workspace_count<\/strong>\n2\n[user@test1 ~]#<\/pre>\n\n\n\n<p>Also, the default workspace count and many other defaults for xfwm4 can be found and changed in the \/usr\/share\/xfwm4\/defaults file. So setting &#8220;workspace_count=4&#8221; to &#8220;workspace_count=2&#8221; changes the default for all users on the host.<\/p>\n\n\n\n<p>Look for more details about remote Xfce desktop configuration and the xconf-query command <a rel=\"noreferrer noopener\" href=\"http:\/\/www.linux-databook.info\/?page_id=6007\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just learned something very cool. Sometimes it is necessary to make remote modifications to a desktop using<\/p>\n","protected":false},"author":2,"featured_media":2381,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-1769","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"modified_by":null,"_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1769"}],"version-history":[{"count":7,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1769\/revisions"}],"predecessor-version":[{"id":1783,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1769\/revisions\/1783"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/2381"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}