{"id":8240,"date":"2024-08-11T10:50:04","date_gmt":"2024-08-11T17:50:04","guid":{"rendered":"https:\/\/jasonsblog.ddns.net\/?p=8240"},"modified":"2024-08-12T07:48:58","modified_gmt":"2024-08-12T14:48:58","slug":"how-to-center-application-windows-in-ubuntu","status":"publish","type":"post","link":"https:\/\/jasonsblog.ddns.net\/index.php\/2024\/08\/11\/how-to-center-application-windows-in-ubuntu\/","title":{"rendered":"How to Center Application Windows in Ubuntu"},"content":{"rendered":"\n<p>I&#8217;m not a huge fan of Gnome, but I use it sometimes to test it out. This was one of the things that annoyed me, not remembering where applications were. But this works and makes the point, maybe I should spend some time looking through settings and Gnome Tweaks for other options that might make it better. I have added quite a few extensions for enabling KDE Connect based phone integration among other things, but there are a lot of ways to customize the desktop environment though not as easy as KDE. Consequently, Gnome is kind of tailored to people coming from Mac, with KDE and Cinnamon more tailored to Windows users. And I believe I saw an extension where you can make Gnome look like a Windows desktop if you prefer and your OS doesn&#8217;t have other desktops to easily install. But I do find Gnome very usable with some features I wish other had like super key mouse scroll to change virtual desktops. <\/p>\n\n\n\n<p><a href=\"https:\/\/ubuntushell.com\/make-applications-start-at-center\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/ubuntushell.com\/make-applications-start-at-center\/<\/a><\/p>\n\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_43b213c7-40a6-42d8-881d-abc6a911d5ac\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 2px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/ubuntushell.com\/wp-content\/uploads\/2022\/02\/centering-terminal-position-1024x576.jpg.webp\" alt=\"Make Applications Start in the Center of Screen in Ubuntu\" title=\"How to Center Application Windows in Ubuntu\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/ubuntushell.com\/wp-content\/uploads\/2022\/02\/centering-terminal-position.jpg\"><\/a><\/p>\n\n\n\n<p>You may be paying less attention or ignoring it because of the effort.<\/p>\n\n\n\n<p>In Linux, whenever you <a href=\"https:\/\/ubuntushell.com\/open-linux-terminal\/\" target=\"_blank\" rel=\"noreferrer noopener\">open the terminal<\/a> or any other application, such as a file manager, they pop up in the top left corner. Those who prefer to use the terminal in the middle get annoyed because every time they need to drag the window to the center.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ubuntushell.com\/wp-content\/uploads\/2022\/02\/checking-terminal-position.gif\"><img decoding=\"async\" src=\"https:\/\/ubuntushell.com\/wp-content\/uploads\/2022\/02\/checking-terminal-position.gif\" alt=\"Terminal gets opened on the top right corner\" class=\"wp-image-2344\"\/><\/a><\/figure>\n\n\n\n<p>If you have the same experience as mine, then it&#8217;s time to resolve it using any of the below-mentioned methods.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method 1: Using Gnome-Tweak to Center the Application Window<\/h2>\n\n\n\n<p>If you haven&#8217;t installed gnome-tweak on your system, <a href=\"https:\/\/ubuntushell.com\/open-linux-terminal\/\" target=\"_blank\" rel=\"noreferrer noopener\">open the terminal<\/a> and execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install gnome-tweaks<\/code><\/pre>\n\n\n\n<p>After the installation is complete, open <strong>&#8220;tweaks&#8221;<\/strong> from the Activity menu, navigate to the <strong>&#8220;Windows&#8221;<\/strong> section, and click on the <strong>&#8220;Center New Windows&#8221;<\/strong> button as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ubuntushell.com\/wp-content\/uploads\/2022\/02\/centering-terminal.gif\"><img decoding=\"async\" src=\"https:\/\/ubuntushell.com\/wp-content\/uploads\/2022\/02\/centering-terminal.gif\" alt=\"Using Gnome-Tweak to Center Application Window\" class=\"wp-image-2345\"\/><\/a><\/figure>\n\n\n\n<p>All terminals, files, settings, and browser windows will appear in the center, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ubuntushell.com\/wp-content\/uploads\/2022\/02\/rechecking-terminal-position.gif\"><img decoding=\"async\" src=\"https:\/\/ubuntushell.com\/wp-content\/uploads\/2022\/02\/rechecking-terminal-position.gif\" alt=\"Window being centered\" class=\"wp-image-2347\"\/><\/a><\/figure>\n\n\n\n<p>If you want to revert, follow the same method and uncheck the &#8220;<strong>Center New Windows<\/strong>&#8221; option.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method 2: Using Command to Center the Application Window<\/h2>\n\n\n\n<p>If you prefer to use a terminal, execute the below command to center the application window on startup in Linux.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gsettings set org.gnome.mutter center-new-windows true<\/code><\/pre>\n\n\n\n<p>To revert to the old settings, execute the below command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gsettings set org.gnome.mutter center-new-windows false<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Final Word<\/h2>\n\n\n\n<p>We do not tag this as an issue or an operating system fault. Ubuntu users might have experienced it in the past, and it is the default nature of the GNOME desktop environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not a huge fan of Gnome, but I use it sometimes to test it out. This was one of the things that annoyed me, not remembering where applications were. But this works and makes the point, maybe I should spend some time looking through settings and Gnome Tweaks for other options that might make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-8240","post","type-post","status-publish","format-standard","hentry","category-tech"],"blocksy_meta":[],"featured_image_src":null,"author_info":{"display_name":"Jason","author_link":"https:\/\/jasonsblog.ddns.net\/index.php\/author\/jturning\/"},"_links":{"self":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/8240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=8240"}],"version-history":[{"count":2,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/8240\/revisions"}],"predecessor-version":[{"id":8251,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/8240\/revisions\/8251"}],"wp:attachment":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=8240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/categories?post=8240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/tags?post=8240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}