<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/index.php?action=history&amp;feed=atom&amp;title=Sway_customization_guide</id>
	<title>Sway customization guide - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/index.php?action=history&amp;feed=atom&amp;title=Sway_customization_guide"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Sway_customization_guide&amp;action=history"/>
	<updated>2026-04-27T12:10:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Sway_customization_guide&amp;diff=31246&amp;oldid=prev</id>
		<title>John3-16: Applying section title &quot;Sway - Full-Sized Views, Navigating Using Alt+Tab&quot; approved by patroller on 13.10.2025 in Talk:Sway.  Moved introductory passage specific to this configuration option into this section.</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Sway_customization_guide&amp;diff=31246&amp;oldid=prev"/>
		<updated>2025-10-16T18:04:44Z</updated>

		<summary type="html">&lt;p&gt;Applying section title &amp;quot;Sway - Full-Sized Views, Navigating Using Alt+Tab&amp;quot; approved by patroller on 13.10.2025 in Talk:Sway.  Moved introductory passage specific to this configuration option into this section.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:04, 16 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page documents various customization options available for [[Sway]] that may be of benefit for both desktop/non-technical and technical use. Install [[Sway]] and copy the [[Sway#Sway config file|Sway config file]] before you proceed.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page documents various customization options available for [[Sway]] that may be of benefit for both desktop/non-technical and technical use. Install [[Sway]] and copy the [[Sway#Sway config file|Sway config file]] before you proceed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Sway - Full-Sized Views, Navigating Using Alt+Tab ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To set up an environment that launches applications full-sized and to {{Key|Alt}}+{{Key|Tab}} between these much as in [[Xfce|XFCE]] or in various other desktop environments, then a quick setup of the {{Path|config}} file could effect this. &amp;#039;&amp;#039;Step 4&amp;#039;&amp;#039; is indicated to be sidestepped by those electing an {{Pkg|i3}}-style, tiled default layout.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To set up an environment that launches applications full-sized and to {{Key|Alt}}+{{Key|Tab}} between these much as in [[Xfce|XFCE]] or in various other desktop environments, then a quick setup of the {{Path|config}} file could effect this. &amp;#039;&amp;#039;Step 4&amp;#039;&amp;#039; is indicated to be sidestepped by those electing an {{Pkg|i3}}-style, tiled default layout.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A launchbar is not set up &amp;quot;out of the box&amp;quot;, nor here, so this section only reviews essential &amp;#039;&amp;#039;keybindings&amp;#039;&amp;#039; (or &amp;quot;shortcuts&amp;quot;), saving first-time users from immediately requiring to digest a longer &amp;#039;&amp;#039;&amp;quot;cheatsheet&amp;quot;&amp;#039;&amp;#039; of keybindings that might include resizing, moving and swapping windows (called &amp;#039;&amp;#039;&amp;quot;views&amp;quot;&amp;#039;&amp;#039;), say, from smaller tiles (called &amp;#039;&amp;#039;&amp;quot;containers&amp;quot;&amp;#039;&amp;#039;) into larger tiles;  these may be learned at a later stage.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A launchbar is not set up &amp;quot;out of the box&amp;quot;, nor here, so this section only reviews essential &amp;#039;&amp;#039;keybindings&amp;#039;&amp;#039; (or &amp;quot;shortcuts&amp;quot;), saving first-time users from immediately requiring to digest a longer &amp;#039;&amp;#039;&amp;quot;cheatsheet&amp;quot;&amp;#039;&amp;#039; of keybindings that might include resizing, moving and swapping windows (called &amp;#039;&amp;#039;&amp;quot;views&amp;quot;&amp;#039;&amp;#039;), say, from smaller tiles (called &amp;#039;&amp;#039;&amp;quot;containers&amp;quot;&amp;#039;&amp;#039;) into larger tiles;  these may be learned at a later stage.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Quickstart - config file ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The quickstart configuration of the {{Path|config}} file &amp;#039;&amp;#039;may be prepared within or without &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; e.g. within an &amp;#039;&amp;#039;&amp;#039;Xorg&amp;#039;&amp;#039;&amp;#039; session or another compositor, or on another installation, before eventually copying over the finished {{Path|config}} file onto the target system – except:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The quickstart configuration of the {{Path|config}} file &amp;#039;&amp;#039;may be prepared within or without &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; e.g. within an &amp;#039;&amp;#039;&amp;#039;Xorg&amp;#039;&amp;#039;&amp;#039; session or another compositor, or on another installation, before eventually copying over the finished {{Path|config}} file onto the target system – except:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>John3-16</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Sway_customization_guide&amp;diff=31236&amp;oldid=prev</id>
		<title>Prabuanand: added back the previous section heading with corrected heading level</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Sway_customization_guide&amp;diff=31236&amp;oldid=prev"/>
		<updated>2025-10-15T04:23:30Z</updated>

		<summary type="html">&lt;p&gt;added back the previous section heading with corrected heading level&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:23, 15 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A launchbar is not set up &amp;quot;out of the box&amp;quot;, nor here, so this section only reviews essential &amp;#039;&amp;#039;keybindings&amp;#039;&amp;#039; (or &amp;quot;shortcuts&amp;quot;), saving first-time users from immediately requiring to digest a longer &amp;#039;&amp;#039;&amp;quot;cheatsheet&amp;quot;&amp;#039;&amp;#039; of keybindings that might include resizing, moving and swapping windows (called &amp;#039;&amp;#039;&amp;quot;views&amp;quot;&amp;#039;&amp;#039;), say, from smaller tiles (called &amp;#039;&amp;#039;&amp;quot;containers&amp;quot;&amp;#039;&amp;#039;) into larger tiles;  these may be learned at a later stage.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A launchbar is not set up &amp;quot;out of the box&amp;quot;, nor here, so this section only reviews essential &amp;#039;&amp;#039;keybindings&amp;#039;&amp;#039; (or &amp;quot;shortcuts&amp;quot;), saving first-time users from immediately requiring to digest a longer &amp;#039;&amp;#039;&amp;quot;cheatsheet&amp;quot;&amp;#039;&amp;#039; of keybindings that might include resizing, moving and swapping windows (called &amp;#039;&amp;#039;&amp;quot;views&amp;quot;&amp;#039;&amp;#039;), say, from smaller tiles (called &amp;#039;&amp;#039;&amp;quot;containers&amp;quot;&amp;#039;&amp;#039;) into larger tiles;  these may be learned at a later stage.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Quickstart - config file ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The quickstart configuration of the {{Path|config}} file &amp;#039;&amp;#039;may be prepared within or without &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; e.g. within an &amp;#039;&amp;#039;&amp;#039;Xorg&amp;#039;&amp;#039;&amp;#039; session or another compositor, or on another installation, before eventually copying over the finished {{Path|config}} file onto the target system – except:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The quickstart configuration of the {{Path|config}} file &amp;#039;&amp;#039;may be prepared within or without &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; e.g. within an &amp;#039;&amp;#039;&amp;#039;Xorg&amp;#039;&amp;#039;&amp;#039; session or another compositor, or on another installation, before eventually copying over the finished {{Path|config}} file onto the target system – except:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* If one prefers alternative applications to those proposed initially in &amp;#039;&amp;#039;Step 6&amp;#039;&amp;#039; for assignment into specific workspaces.  Any such modifications (to be executed in &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039;) could be performed:  (a) simply during one&amp;#039;s first &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; session; or (b) by determining what those applications&amp;#039; {{ic|app_id}} / {{ic|class}} are (as detailed in &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039;), possibly in another &amp;#039;&amp;#039;&amp;#039;Wayland&amp;#039;&amp;#039;&amp;#039; session or externally e.g. from documentation.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* If one prefers alternative applications to those proposed initially in &amp;#039;&amp;#039;Step 6&amp;#039;&amp;#039; for assignment into specific workspaces.  Any such modifications (to be executed in &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039;) could be performed:  (a) simply during one&amp;#039;s first &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; session; or (b) by determining what those applications&amp;#039; {{ic|app_id}} / {{ic|class}} are (as detailed in &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039;), possibly in another &amp;#039;&amp;#039;&amp;#039;Wayland&amp;#039;&amp;#039;&amp;#039; session or externally e.g. from documentation.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* One will likewise require to verify at some point whether one&amp;#039;s chosen applications are installed on the target system;  and to install those missing (last step, &amp;#039;&amp;#039;Step 12&amp;#039;&amp;#039;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* One will likewise require to verify at some point whether one&amp;#039;s chosen applications are installed on the target system;  and to install those missing (last step, &amp;#039;&amp;#039;Step 12&amp;#039;&amp;#039;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 1:&amp;#039;&amp;#039;  Assign the main modifier key&amp;#039;&amp;#039;&amp;#039;.  In a text editor, open the {{Path|/home/&amp;lt;var&amp;gt;username&amp;lt;/var&amp;gt;/.config/sway/config}} file that had been copied over.  We will declare what would be the main modifier key for many of our keybindings:  {{Key|Window}}, {{Key|Alt}} or otherwise.  The {{Path|config}} file has already set the main modifier, called the {{ic|$mod}} key, to default as the {{ic|Mod4}} key, also known as the {{Key|Window}}, {{ic|Super}} or &amp;#039;&amp;#039;Logo&amp;#039;&amp;#039; key.  Verify this towards the beginning of the file:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 1:&amp;#039;&amp;#039;  Assign the main modifier key&amp;#039;&amp;#039;&amp;#039;.  In a text editor, open the {{Path|/home/&amp;lt;var&amp;gt;username&amp;lt;/var&amp;gt;/.config/sway/config}} file that had been copied over.  We will declare what would be the main modifier key for many of our keybindings:  {{Key|Window}}, {{Key|Alt}} or otherwise.  The {{Path|config}} file has already set the main modifier, called the {{ic|$mod}} key, to default as the {{ic|Mod4}} key, also known as the {{Key|Window}}, {{ic|Super}} or &amp;#039;&amp;#039;Logo&amp;#039;&amp;#039; key.  Verify this towards the beginning of the file:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Prabuanand</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Sway_customization_guide&amp;diff=31233&amp;oldid=prev</id>
		<title>Prabuanand: moved the Sway#Quickstart - config File to it&#039;s own page as per Talk:Sway#Sway#Quickstart_-_config_File</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Sway_customization_guide&amp;diff=31233&amp;oldid=prev"/>
		<updated>2025-10-15T04:10:32Z</updated>

		<summary type="html">&lt;p&gt;moved the &lt;a href=&quot;/wiki/Sway#Quickstart_-_config_File&quot; title=&quot;Sway&quot;&gt;Sway#Quickstart - config File&lt;/a&gt; to it&amp;#039;s own page as per &lt;a href=&quot;/wiki/Talk:Sway#Sway#Quickstart_-_config_File&quot; title=&quot;Talk:Sway&quot;&gt;Talk:Sway#Sway#Quickstart_-_config_File&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page documents various customization options available for [[Sway]] that may be of benefit for both desktop/non-technical and technical use. Install [[Sway]] and copy the [[Sway#Sway config file|Sway config file]] before you proceed.&lt;br /&gt;
&lt;br /&gt;
To set up an environment that launches applications full-sized and to {{Key|Alt}}+{{Key|Tab}} between these much as in [[Xfce|XFCE]] or in various other desktop environments, then a quick setup of the {{Path|config}} file could effect this. &amp;#039;&amp;#039;Step 4&amp;#039;&amp;#039; is indicated to be sidestepped by those electing an {{Pkg|i3}}-style, tiled default layout.&lt;br /&gt;
&lt;br /&gt;
A launchbar is not set up &amp;quot;out of the box&amp;quot;, nor here, so this section only reviews essential &amp;#039;&amp;#039;keybindings&amp;#039;&amp;#039; (or &amp;quot;shortcuts&amp;quot;), saving first-time users from immediately requiring to digest a longer &amp;#039;&amp;#039;&amp;quot;cheatsheet&amp;quot;&amp;#039;&amp;#039; of keybindings that might include resizing, moving and swapping windows (called &amp;#039;&amp;#039;&amp;quot;views&amp;quot;&amp;#039;&amp;#039;), say, from smaller tiles (called &amp;#039;&amp;#039;&amp;quot;containers&amp;quot;&amp;#039;&amp;#039;) into larger tiles;  these may be learned at a later stage.&lt;br /&gt;
&lt;br /&gt;
The quickstart configuration of the {{Path|config}} file &amp;#039;&amp;#039;may be prepared within or without &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; e.g. within an &amp;#039;&amp;#039;&amp;#039;Xorg&amp;#039;&amp;#039;&amp;#039; session or another compositor, or on another installation, before eventually copying over the finished {{Path|config}} file onto the target system – except:&lt;br /&gt;
* If one prefers alternative applications to those proposed initially in &amp;#039;&amp;#039;Step 6&amp;#039;&amp;#039; for assignment into specific workspaces.  Any such modifications (to be executed in &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039;) could be performed:  (a) simply during one&amp;#039;s first &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; session; or (b) by determining what those applications&amp;#039; {{ic|app_id}} / {{ic|class}} are (as detailed in &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039;), possibly in another &amp;#039;&amp;#039;&amp;#039;Wayland&amp;#039;&amp;#039;&amp;#039; session or externally e.g. from documentation. &lt;br /&gt;
* One will likewise require to verify at some point whether one&amp;#039;s chosen applications are installed on the target system;  and to install those missing (last step, &amp;#039;&amp;#039;Step 12&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 1:&amp;#039;&amp;#039;  Assign the main modifier key&amp;#039;&amp;#039;&amp;#039;.  In a text editor, open the {{Path|/home/&amp;lt;var&amp;gt;username&amp;lt;/var&amp;gt;/.config/sway/config}} file that had been copied over.  We will declare what would be the main modifier key for many of our keybindings:  {{Key|Window}}, {{Key|Alt}} or otherwise.  The {{Path|config}} file has already set the main modifier, called the {{ic|$mod}} key, to default as the {{ic|Mod4}} key, also known as the {{Key|Window}}, {{ic|Super}} or &amp;#039;&amp;#039;Logo&amp;#039;&amp;#039; key.  Verify this towards the beginning of the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
# Logo key. Use Mod1 for Alt.&lt;br /&gt;
set $mod Mod4&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As proposed there, one could change that {{ic|$mod}} key to be the {{Key|Alt}} key a.k.a. the {{ic|Mod1}} key.  To change the {{ic|$mod}} key assignment, as with any line in this file, one could edit/delete the lines or comment such line out i.e. add a hashtag (&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;) at the start of any line that does not begin with a hashtag, so that such line would not be executed by &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; but would be left there for reference;  and then enter the customised version of that line below it.  Note that &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; [https://github.com/swaywm/sway/wiki#comments does not support] comments at the end of an executable line, following a hashtag.  &lt;br /&gt;
&lt;br /&gt;
According to the {{ic|man 5 sway}} page, &amp;#039;&amp;#039;XKB modifier names&amp;#039;&amp;#039; can be used to refer to modifier keys, plus certain aliases found among the following list, all of these &amp;quot;{{ic|codes}}&amp;quot; being acceptable for use throughout the configuration file:&lt;br /&gt;
&lt;br /&gt;
* {{ic|Mod1}} - {{Key|Alt}} - Alternatively expressed as {{ic|Alt}};&lt;br /&gt;
* {{ic|Mod2}} - Although not universally mapped, here it refers to the {{Key|Num Lock}} key;  &lt;br /&gt;
* {{ic|Mod3}} - It could be programmed, as an XKB modifier key;&lt;br /&gt;
* {{ic|Mod4}} - Alternatively expressed as the {{ic|Super}} key, a.k.a. the {{Key|Window}} or &amp;#039;&amp;#039;Logo&amp;#039;&amp;#039; key;&lt;br /&gt;
* {{ic|Mod5}} - {{Key|AltGr}};&lt;br /&gt;
* {{ic|Lock}} - {{Key|Caps Lock}};&lt;br /&gt;
* {{ic|Control}} - {{Key|Ctrl}} - Alternatively expressed as {{ic|Ctrl}};  and&lt;br /&gt;
* {{ic|Shift}} - {{Key|Shift}}.&lt;br /&gt;
&lt;br /&gt;
It might be best not to use the {{Key|Ctrl}} key as the &amp;#039;&amp;#039;main modifier&amp;#039;&amp;#039;, as it is often used in applications e.g. {{Key|Control}}+{{Key|c}} to &amp;#039;&amp;#039;copy&amp;#039;&amp;#039;, {{Key|Control}}+{{Key|b}} for &amp;#039;&amp;#039;bold&amp;#039;&amp;#039;, etc.  Similarly when considering the {{ic|Shift}} as main modifier.&lt;br /&gt;
&lt;br /&gt;
So, if one were to choose, say, the {{Key|Alt}} key as the main modifier, that {{ic|Mod4}} line could be changed to: {{ic|set $mod Alt}} or {{ic|set $mod Mod1}}.  We will preserve the default, {{ic|Mod4}} ({{Key|Window}}), as the main modifier.  Note that any modification will not be manifested until one chooses at any time to reload the {{Path|config}} file by hitting {{ic|$mod+Shift+c}} (cf. &amp;#039;&amp;#039;Step 10&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 2:&amp;#039;&amp;#039; Declare what your default terminal and menu launcher will be&amp;#039;&amp;#039;&amp;#039;.  In this {{Path|config}} file, these are currently configured to be the {{Pkg|foot}} terminal;  and {{Pkg|wmenu}}, which supplies the {{ic|wmenu-run}} command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
# Your preferred terminal emulator&lt;br /&gt;
set $term foot&lt;br /&gt;
# Your preferred application launcher&lt;br /&gt;
set $menu wmenu-run&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You could leave these &amp;#039;as is&amp;#039; if you are happy with these selections.  Otherwise, substitute any of them. &lt;br /&gt;
&lt;br /&gt;
A word to the wise regarding one&amp;#039;s initial choice of &amp;#039;&amp;#039;terminal&amp;#039;&amp;#039; &amp;#039;&amp;#039;if not currently running &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;:   if a different terminal were to be chosen, then one would not be able to {{Key|Alt}}+{{Key|Tab}} back and forth from a launched &amp;#039;&amp;#039;&amp;#039;foot&amp;#039;&amp;#039;&amp;#039; terminal into other opened workspaces unless that terminal&amp;#039;s {{ic|app_id}} / {{ic|class}} could somehow be determined and specified by the user in &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039;.  It may be more suitable therefore to leave &amp;#039;&amp;#039;&amp;#039;foot&amp;#039;&amp;#039;&amp;#039; as the default terminal until one of these could be determined once a &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; session is run, so that the terminal (&amp;#039;&amp;#039;&amp;#039;foot&amp;#039;&amp;#039;&amp;#039;) would land in a specified workspace when launched, and then easily {{Key|Alt}}+{{Key|Tab}} to and from it.  Alternatively, one could left-click on the chosen terminal&amp;#039;s workspace button on the top {{Pkg|swaybar}} in order to switch to that workspace.  (Note also that &amp;#039;&amp;#039;&amp;#039;foot&amp;#039;&amp;#039;&amp;#039; would already be installed if &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; had been installed using {{ic|$ doas setup-desktop sway}}).  On the other hand, &amp;#039;&amp;#039;if one is currently running &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;, then it is straightforward to change this default terminal choice here, if so wished; a tweak for the preferred terminal could be made in &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039;.  &lt;br /&gt;
&lt;br /&gt;
One&amp;#039;s choice of menu launcher here is more flexible, regardless of the compositor/window manager currently being used, as the launcher will appear in any workspace currently displayed on-screen – a.k.a. the workspace &amp;#039;&amp;#039;in focus&amp;#039;&amp;#039; – using the keybinding declared in the following step (&amp;#039;&amp;#039;Step 3&amp;#039;&amp;#039;).  Insert the preferred launcher&amp;#039;s launch command here. For example, one may prefer {{Pkg|rofi}} over &amp;#039;&amp;#039;&amp;#039;wmenu&amp;#039;&amp;#039;&amp;#039;;  Alpine Linux&amp;#039;s &amp;#039;&amp;#039;&amp;#039;rofi&amp;#039;&amp;#039;&amp;#039; port now supports &amp;#039;&amp;#039;&amp;#039;Wayland&amp;#039;&amp;#039;&amp;#039;, just as [https://github.com/davatorium/rofi rofi&amp;#039;s mainline version] officially has since 2025.  If so, that {{ic|set $menu wmenu-run}} line could be changed as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
set $menu &amp;#039;/usr/bin/rofi -combi-modi run,drun,window,filebrowser -show combi -sort&amp;#039;&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With that menu instruction, whenever &amp;#039;&amp;#039;&amp;#039;rofi&amp;#039;&amp;#039;&amp;#039; is launched using the keybinding reviewed in the next step, it would first offer a &amp;#039;&amp;#039;combi&amp;#039;&amp;#039; (combination) menu of all packages and of &amp;lt;code&amp;gt;.desktop&amp;lt;/code&amp;gt; files that match the the command name while it is being typed in;  alternatively, one could follows this on by hitting {{Key|Control}}+{{Key|Tab}}, which in turn would offer (a) a &amp;#039;&amp;#039;drun&amp;#039;&amp;#039; menu (a launcher strictly of &amp;lt;code&amp;gt;.desktop&amp;lt;/code&amp;gt; files);  (b) a listing of opened &amp;#039;&amp;#039;&amp;quot;window&amp;quot;&amp;#039;&amp;#039;/view selections; or (c) a simple &amp;#039;&amp;#039;filebrowser&amp;#039;&amp;#039;, etc.&lt;br /&gt;
&lt;br /&gt;
A tally of the chosen packages is being kept for any required installation later.  &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 3:&amp;#039;&amp;#039; Choose key combinations to open the terminal and launcher and others&amp;#039;&amp;#039;&amp;#039;.  From the configuration file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
bindsym $mod+Return exec $term&lt;br /&gt;
[...]&lt;br /&gt;
bindsym $mod+d exec $menu&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify these keybindings if so wished, which refer to the terminal and application launcher chosen in &amp;#039;&amp;#039;Step 2&amp;#039;&amp;#039;.  Ensure that any different chosen key combination(s) has/have not already been assigned elsewhere in this {{Path|config}} file.  Make note of your chosen terminal and menu keybindings so as to know how to launch them later.  As it stands:&lt;br /&gt;
* {{Key|Window}}+{{Key|Return}} for your terminal;  &lt;br /&gt;
* {{Key|Window}}+{{Key|m}} for your menu launcher;   &lt;br /&gt;
Substitute the {{Key|Window}} key for your assigned {{ic|$mod}} key, or with any other chosen combination that has not been used elsewhere in the configuration file.  &lt;br /&gt;
&lt;br /&gt;
Keybindings may also be made without requiring to define applications as variables that use the {{ic|set}} instruction and the {{ic|$}} variable prefix.  For example, having ensured that there was no previous binding for {{ic|Control+Alt+w}}, one could add the following keybinding:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
# LibreOffice Writer shortcut&lt;br /&gt;
bindsym Control+Alt+w exec &amp;#039;/usr/bin/libreoffice --writer&amp;#039;&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 4:&amp;#039;&amp;#039;  Applications to launch full-sized and in tabbed layout (Optional)&amp;#039;&amp;#039;&amp;#039;.  At the beginning of the {{ic|# Layout stuff:}} section, Consider inserting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
workspace_layout tabbed&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, each launched application will launch full-sized.  Each application will be named in a tab.  &lt;br /&gt;
If opting for a default tiled layout, this step is omitted.  Tiling sends applications by default into tiles/&amp;quot;containers&amp;quot;, splitting the screen, unless assigned to different workspaces in &amp;#039;&amp;#039;Steps 6-7&amp;#039;&amp;#039;.  A further alternative would be:  {{ic|workspace_layout stacking}}.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 5:&amp;#039;&amp;#039;  Focus when launched (Optional)&amp;#039;&amp;#039;&amp;#039;.  Make &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; to immediately focus on any newly-opened application.  At the end of the {{ic|# Workspaces:}} section in this {{Path|config}} file, consider adding:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
for_window [app_id=.*] focus&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This may be suitable to avoid having to navigate to its tab/workspace.  It also ensures that dialog boxes such as &amp;#039;&amp;#039;&amp;quot;Open ...&amp;quot;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;quot;Save as...&amp;quot;&amp;#039;&amp;#039; appear in the currently focused workspace.  &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 6:&amp;#039;&amp;#039;  Assign workspaces&amp;#039;&amp;#039;&amp;#039;.  This is proposed for your most oftenly-used applications, so that most applications will land into different workspaces, and then one could {{Key|Alt}}+{{Key|Tab}} between those applications/workspaces.&lt;br /&gt;
&lt;br /&gt;
Consider copying and pasting the following model in this same {{ic|# Workspaces:}} passage. Customise each line for user preferences.  These specify the {{ic|app_id}} for various applications, including that of the {{Pkg|keepassxc}} password vault, the lean {{Pkg|corepad}} text editor and {{Pkg|okular}} pdf viewer.  Then, one finishes off each line with a chosen workspace number. (There may be no documented upper limit of workspaces, but one would need two keystrokes to move applications into two-digit workspaces if and when such keybindings were eventually learned and used.) &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Pre&amp;gt;&lt;br /&gt;
# APPLICATIONS TO APPEAR IN SPECIFIC WORKSPACES&lt;br /&gt;
 assign [app_id=&amp;quot;foot&amp;quot;] 1&lt;br /&gt;
 assign [app_id=&amp;quot;chromium&amp;quot;] 2&lt;br /&gt;
 assign [app_id=&amp;quot;org.keepassxc.KeePassXC&amp;quot;] 3&lt;br /&gt;
 assign [app_id=&amp;quot;cc.cubocore.CorePad&amp;quot;] 4&lt;br /&gt;
 assign [app_id=&amp;quot;libreoffice-writer&amp;quot;] 5&lt;br /&gt;
 assign [app_id=&amp;quot;libreoffice-calc&amp;quot;] 6&lt;br /&gt;
 assign [app_id=&amp;quot;org.kde.okular&amp;quot;] 7&lt;br /&gt;
 assign [app_id=&amp;quot;thunar&amp;quot;] 8&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One could use workspace names instead of numbers, but then one would need to change their instances in the default {{Path|config}} file.  Some applications, not listed here, may require identification by their {{ic|class}} name instead of by {{ic|app_id}} – particularly, some that were originally designed for &amp;#039;&amp;#039;&amp;#039;X11&amp;#039;&amp;#039;&amp;#039; (such as &amp;#039;&amp;#039;&amp;#039;xterm&amp;#039;&amp;#039;&amp;#039;) – see &amp;#039;&amp;#039;Step 6&amp;#039;&amp;#039;.  &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; supplies the {{ic|swaymsg}} command that could determine the {{ic|app_id}} and/or {{ic|class}} name of one&amp;#039;s chosen applications. &lt;br /&gt;
&lt;br /&gt;
{{Tip|The &amp;#039;&amp;#039;&amp;#039;keepassxc&amp;#039;&amp;#039;&amp;#039; password vault is assigned to appear in a different workspace than the &amp;#039;&amp;#039;&amp;#039;chromium&amp;#039;&amp;#039;&amp;#039; browser.  After both are launched, then one would be able to {{Key|Alt}}+{{Key|Tab}} between the two workspaces to fetch/paste password data without engaging a browser password extension, if preferred.}}&lt;br /&gt;
&lt;br /&gt;
If alternative applications are to be assigned workspaces, proceed to the next step.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 7:&amp;#039;&amp;#039;  Assign alternative application choices for specific workspaces (Optional)&amp;#039;&amp;#039;&amp;#039;.  This may require being run in a &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; session.  &amp;#039;&amp;#039;If not currently running Sway&amp;#039;&amp;#039;, then consider conserving whichever part of the code block in &amp;#039;&amp;#039;Step 6&amp;#039;&amp;#039; that is applicable for user purposes in the configuration file and resuming this &amp;#039;&amp;#039;Step 7&amp;#039;&amp;#039; once the first &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; session is run.  &lt;br /&gt;
&lt;br /&gt;
This step may succeed alternatively in a different &amp;#039;&amp;#039;&amp;#039;Wayland&amp;#039;&amp;#039;&amp;#039; compositor provided that:  (a) &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; or {{Pkg|sway-bash-completion}} has been installed, seeing how either supply the required {{ic|swaymsg}} command;  or (b) one has a different means of determining the {{ic|app_id}} / {{ic|class}} of the alternative application(s).&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Launch the alternative applications that are to be assigned to workspaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Run {{ic|&amp;lt;nowiki&amp;gt;swaymsg -t get_tree | grep &amp;quot;app_id&amp;quot;&amp;lt;/nowiki&amp;gt;}} in a terminal.  The command examines metadata for your opened windows, and the result is then whittled down (or &amp;#039;&amp;#039;&amp;quot;grepped&amp;quot;&amp;#039;&amp;#039;) to display {{ic|app_id}} values.  For example: &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;pre&amp;gt; $ swaymsg -t get_tree | grep &amp;quot;app_id&amp;quot;&lt;br /&gt;
                  &amp;quot;app_id&amp;quot;: &amp;quot;Alacritty&amp;quot;,&lt;br /&gt;
                  &amp;quot;app_id&amp;quot;: &amp;quot;firefox-esr&amp;quot;,&lt;br /&gt;
                  &amp;quot;app_id&amp;quot;: &amp;quot;librewolf&amp;quot;,&lt;br /&gt;
                  &amp;quot;app_id&amp;quot;: &amp;quot;pavucontrol-qt&amp;quot;,&lt;br /&gt;
                  &amp;quot;app_id&amp;quot;: &amp;quot;featherpad&amp;quot;,&lt;br /&gt;
                  &amp;quot;app_id&amp;quot;: &amp;quot;audacious&amp;quot;,&lt;br /&gt;
                  &amp;quot;app_id&amp;quot;: &amp;quot;org.gnome.Epiphany&amp;quot;,&lt;br /&gt;
                  &amp;quot;app_id&amp;quot;: &amp;quot;org.qutebrowser.qutebrowser&amp;quot;,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Plug the {{ic|app_id}} values for any preferred applications into the {{ic|assign}} listings code block above;  end each line with a chosen workspace number.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In case any application name did not appear with an {{ic|app_id}}, then it is possible that the application was originally designed for &amp;#039;&amp;#039;&amp;#039;Xorg&amp;#039;&amp;#039;&amp;#039; and has not been fully adapted for &amp;#039;&amp;#039;&amp;quot;pure &amp;#039;&amp;#039;&amp;#039;Wayland&amp;#039;&amp;#039;&amp;#039;&amp;quot;&amp;#039;&amp;#039;:  for example, {{Pkg|xterm}}.  In that case, one would need to determine what its {{ic|class}} is instead:  &amp;#039;&amp;#039;with {{Pkg|xwayland}} installed and not disabled&amp;#039;&amp;#039; in &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039;, launch &amp;#039;&amp;#039;&amp;#039;xterm&amp;#039;&amp;#039;&amp;#039;;  then, in a terminal, run:&amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ swaymsg -t get_tree | grep &amp;quot;class&amp;quot;&lt;br /&gt;
                    &amp;quot;class&amp;quot;: &amp;quot;XTerm&amp;quot;,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Determine the {{ic|class}} values for the remainder of the preferred applications that required {{ic|class}} identifiers instead of {{ic|app_id}} and create lines for them in the {{ic|assign}} code block above.  For instance, for &amp;#039;&amp;#039;&amp;#039;xterm&amp;#039;&amp;#039;&amp;#039; to land in workspace 9, add a line to specify its &amp;#039;&amp;#039;class&amp;#039;&amp;#039; and its assigned workspace &amp;#039;&amp;#039;number&amp;#039;&amp;#039;:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 assign [class=&amp;quot;XTerm&amp;quot;] 9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 8:&amp;#039;&amp;#039;  Navigating between applications in different workspaces&amp;#039;&amp;#039;&amp;#039;.  Tell &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; what will be the chosen way to &amp;#039;&amp;#039;tab back&amp;#039;&amp;#039; through the workspaces that contain launched applications on a single monitor, say, {{Key|Alt}}+{{Key|Tab}}.  In the {{ic|# Moving around:}} passage, consider adding:-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
bindsym Alt+Tab workspace prev_on_output&lt;br /&gt;
bindsym Super+Tab workspace next_on_output&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We have additionally assigned {{Key|Super}}+{{Key|Tab}} to tab &amp;#039;&amp;#039;forwards&amp;#039;&amp;#039; through workspaces, in case that this could be useful to the user (optional).&lt;br /&gt;
&lt;br /&gt;
As mentioned, one can alternatively focus a different workspace by left-clicking on its worskpace button in the &amp;#039;&amp;#039;&amp;#039;swaybar&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 9:&amp;#039;&amp;#039;  Navigating between applications within the same workspace&amp;#039;&amp;#039;&amp;#039;.  If two or more instances of the same application get launched (say, two instances of &amp;#039;&amp;#039;&amp;#039;foot&amp;#039;&amp;#039;&amp;#039;), then they will both appear in the same workspace that had been assigned to them, if any. In such case, {{Key|Alt}}+{{Key|Tab}} would not work to navigate between these because that keybinding navigates between applications being displayed in &amp;#039;&amp;#039;different&amp;#039;&amp;#039; workspaces.  Instead, one may navigate between those two instances/tabs within that same workspace in &amp;#039;&amp;#039;three alternative ways&amp;#039;&amp;#039;;  no edits need be done, but one may need to make note of these methods:-&lt;br /&gt;
&lt;br /&gt;
* The default {{Path|config}} file has already bound {{ic|$mod+Left}} and {{ic|$mod+Right}} to switch focus onto tabs shown to the left and right within the same workspace;  in our setup, that would be {{Key|Window}}+{{Key|←}} and {{Key|Window}}+{{Key|→}}.&lt;br /&gt;
* The default {{Path|config}} file has similarly bound {{ic|$mod+$left}} and {{ic|$mod+$right}} for these same commands;  the {{ic|$left}} and {{ic|$right}} &amp;#039;&amp;#039;&amp;quot;key variables&amp;quot;&amp;#039;&amp;#039;, along with two others, have been defined in a fashion that would be familiar to those using {{Pkg|vim}}:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 set $left h&lt;br /&gt;
 set $down j&lt;br /&gt;
 set $up k&lt;br /&gt;
 set $right l &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Although the {{ic|Left}} key ({{Key|←}}) is distinct from the {{ic|$left}} key (assigned here to be the {{Key|h}} key), this {{Path|config}} file has &amp;#039;&amp;#039;bound them both&amp;#039;&amp;#039; to enact the same action when combined with the {{ic|$mod}} key, specifically, to move &amp;#039;&amp;#039;left&amp;#039;&amp;#039; through tabs in the same workspace (different users prefer alternative methods):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
    bindsym $mod+$left focus left&lt;br /&gt;
 [...]&lt;br /&gt;
    bindsym $mod+Left focus left &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Similarly for the {{ic|$right}} and {{ic|Right}} keys.&lt;br /&gt;
&lt;br /&gt;
* Alternatively, one could &amp;#039;&amp;#039;left-click&amp;#039;&amp;#039; on a tab to focus on a specific application instance, similarly to how one might click on &amp;#039;&amp;#039;taskbar&amp;#039;&amp;#039; items in other desktop environments.&lt;br /&gt;
&lt;br /&gt;
Any applications that were not assigned into a workspace in the {{ic|assign}} &amp;#039;&amp;#039;Steps 6-7&amp;#039;&amp;#039; above will also launch into the workspace currently focused.  In such cases, therefore, their tabs would be created in the current workspace too, and one could navigate between such applications, within that same workspace, using any way reviewed in this step also.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 10:&amp;#039;&amp;#039; Floating, dragging, tiling, fullscreen, etc&amp;#039;&amp;#039;&amp;#039;.  &lt;br /&gt;
* One may make a focused application to &amp;#039;&amp;#039;&amp;#039;float&amp;#039;&amp;#039;&amp;#039;, and to toggle &amp;#039;&amp;#039;&amp;quot;floating&amp;quot;&amp;#039;&amp;#039; off as-and-when needed, with:  {{ic|$mod+Shift+space}} .  In our setup:  {{Key|Window}}+{{Key|Shift}}+{{Key|Space}}. &lt;br /&gt;
&lt;br /&gt;
* The {{Path|config}} file points out that one may &amp;#039;&amp;#039;&amp;quot;drag floating windows by holding down $mod and left mouse button&amp;quot;&amp;#039;&amp;#039;.  Seeing how {{ic|$mod}} was kept assigned as the {{Key|Window}} key:  {{Key|Window}}+&amp;#039;&amp;#039;&amp;#039;drag&amp;#039;&amp;#039;&amp;#039;. The window needs to be floating first;  in some instances, one may need to drag at the tab.&lt;br /&gt;
&lt;br /&gt;
* One could make some applications to launch &amp;quot;floating&amp;quot; by default (optional).  An application that is sometimes made to float by default is the {{Pkg|galculator}} calculator pad;  just add:&lt;br /&gt;
:{{ic|&amp;lt;nowiki&amp;gt;for_window [app_id=&amp;quot;galculator&amp;quot;] floating enable&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* To toggle through &amp;#039;&amp;#039;&amp;#039;tiled layouts&amp;#039;&amp;#039;&amp;#039; within a workspace:  {{ic|$mod+e}} / {{Key|Window}}+{{Key|e}}&lt;br /&gt;
&lt;br /&gt;
* To return to &amp;#039;&amp;#039;&amp;#039;full-sized tabs&amp;#039;&amp;#039;&amp;#039; i.e. window-sized after being in a tiled layout, yet not fullscreen, thereby retaining toolbars, etc:  {{ic|$mod+w}} / {{Key|Window}}+{{Key|w}} .  Floating windows and fullscreen windows need to be toggled off first.&lt;br /&gt;
&lt;br /&gt;
* To toggle in and out of &amp;#039;&amp;#039;&amp;#039;fullscreen&amp;#039;&amp;#039;&amp;#039;:  {{ic|$mod+f}} / {{Key|Window}}+{{Key|f}}  &lt;br /&gt;
&lt;br /&gt;
Take note of two final keybindings, or modify these first: &lt;br /&gt;
&lt;br /&gt;
* To &amp;#039;&amp;#039;&amp;#039;reload&amp;#039;&amp;#039;&amp;#039; the &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; configuration file after editing it during a session: {{ic|$mod+Shift+c}} / {{Key|Window}}+{{Key|Shift}}+{{Key|c}}&lt;br /&gt;
&lt;br /&gt;
* To &amp;#039;&amp;#039;&amp;#039;exit&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; and the login session (save your work first):  {{ic|$mod+Shift+e}} / {{Key|Window}}+{{Key|Shift}}+{{Key|e}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 11:&amp;#039;&amp;#039;  Add variables and autostart instructions&amp;#039;&amp;#039;&amp;#039;.  These could be added to the beginning of this {{Path|config}} file.  Typically, various environment variables would require being set before launching a &amp;#039;&amp;#039;&amp;#039;Wayland&amp;#039;&amp;#039;&amp;#039; compositor, for example, in {{Path|~/.profile}} . Do not add ampersands (&amp;#039;&amp;#039;&amp;#039;&amp;amp;&amp;#039;&amp;#039;&amp;#039;) at the end of each line in {{Path|config}}, unlike with {{Path|.xinitrc}} syntax in &amp;#039;&amp;#039;&amp;#039;Xorg&amp;#039;&amp;#039;&amp;#039;.  &lt;br /&gt;
&lt;br /&gt;
{{Pkg|xwayland}}, if not required, can be disabled by inserting a line here to that effect.  Alternatively, omit that line or comment it out by using a hashtag, as in the following example of autostart instructions, where &amp;#039;&amp;#039;&amp;#039;Sway&amp;#039;&amp;#039;&amp;#039; is assumed to have been launched [[Sway#Starting_Sway|using a {{ic|dbus-run-session}}]];  gui runlevel is started now if &amp;#039;&amp;#039;&amp;#039;PipeWire&amp;#039;&amp;#039;&amp;#039; and associated services are being [[PipeWire#Pipewire_user_service|launched as user services]];  and where &amp;#039;&amp;#039;&amp;#039;chromium&amp;#039;&amp;#039;&amp;#039; is also autostarted:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
exec dbus-update-activation-environment WAYLAND_DISPLAY DISPLAY XDG_CURRENT_DESKTOP=sway SWAYSOCK I3SOCK XCURSOR_SIZE XCURSOR_THEME&lt;br /&gt;
# xwayland disable&lt;br /&gt;
# Start gui runlevel for PipeWire and associated services to launch now&lt;br /&gt;
exec openrc -U gui&lt;br /&gt;
exec /usr/bin/chromium&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Tip|Running &amp;#039;&amp;#039;&amp;quot;pure &amp;#039;&amp;#039;&amp;#039;Wayland&amp;#039;&amp;#039;&amp;#039;&amp;quot;&amp;#039;&amp;#039; – i.e. without the &amp;#039;&amp;#039;&amp;#039;xwayland&amp;#039;&amp;#039;&amp;#039; layer/package – may remove a possible attack surface.  &amp;#039;&amp;#039;&amp;#039;Xwayland&amp;#039;&amp;#039;&amp;#039; could be required, however, to run certain &amp;#039;&amp;#039;&amp;#039;Xorg&amp;#039;&amp;#039;&amp;#039;-designed software, such as {{Pkg|xterm}}.  One may also investigate &amp;#039;&amp;#039;&amp;#039;libreoffice&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;okular&amp;#039;&amp;#039;&amp;#039; functionality.}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Step 12:&amp;#039;&amp;#039;  Install selected packages&amp;#039;&amp;#039;&amp;#039;.  Ensure that all mentioned applications have been installed:  {{ic|apk info -e &amp;lt;var&amp;gt;package1&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;package2&amp;lt;/var&amp;gt;}}.  Substitute entries in the following list with one&amp;#039;s packages mentioned in the {{Path|config}} file:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ apk info -e foot wmenu chromium keepassxc corepad libreoffice okular thunar xterm galculator}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;wmenu&amp;#039;&amp;#039;&amp;#039; was preserved for that listing;  swap it out for &amp;#039;&amp;#039;&amp;#039;rofi&amp;#039;&amp;#039;&amp;#039; or otherwise, if necessary.  One may have decided also not to include &amp;#039;&amp;#039;&amp;#039;xterm&amp;#039;&amp;#039;&amp;#039;, etc.&lt;br /&gt;
&lt;br /&gt;
Install any application not appearing in the output of that instruction.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Sway]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Compositor]]&lt;/div&gt;</summary>
		<author><name>Prabuanand</name></author>
	</entry>
</feed>