···11+# Default config for sway
22+#
33+# Copy this to ~/.config/sway/config and edit it to your liking.
44+#
55+# Read `man 5 sway` for a complete reference.
66+77+### Variables
88+#
99+# Logo key. Use Mod1 for Alt.
1010+set $mod Mod4
1111+# Home row direction keys, like vim
1212+set $left h
1313+set $down j
1414+set $up k
1515+set $right l
1616+# Your preferred terminal emulator
1717+set $term alacritty
1818+# Your preferred application launcher
1919+# Note: pass the final command to swaymsg so that the resulting window can be opened
2020+# on the original workspace that the command was run on.
2121+set $menu dmenu_path | dmenu | xargs swaymsg exec --
2222+2323+### Output configuration
2424+#
2525+# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
2626+output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
2727+#
2828+# Example configuration:
2929+#
3030+# output HDMI-A-1 resolution 1920x1080 position 1920,0
3131+#
3232+# You can get the names of your outputs by running: swaymsg -t get_outputs
3333+output DP-1 disable
3434+3535+### Idle configuration
3636+#
3737+# Example configuration:
3838+#
3939+# exec swayidle -w \
4040+# timeout 300 'swaylock -f -c 000000' \
4141+# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
4242+# before-sleep 'swaylock -f -c 000000'
4343+#
4444+# This will lock your screen after 300 seconds of inactivity, then turn off
4545+# your displays after another 300 seconds, and turn your screens back on when
4646+# resumed. It will also lock your screen before your computer goes to sleep.
4747+4848+### Input configuration
4949+#
5050+# Example configuration:
5151+#
5252+# input "2:14:SynPS/2_Synaptics_TouchPad" {
5353+# dwt enabled
5454+# tap enabled
5555+# natural_scroll enabled
5656+# middle_emulation enabled
5757+# }
5858+#
5959+# You can get the names of your inputs by running: swaymsg -t get_inputs
6060+# Read `man 5 sway-input` for more information about this section.
6161+6262+input "type:keyboard" {
6363+ xkb_layout us
6464+ xkb_options ctrl:nocaps
6565+}
6666+6767+### Key bindings
6868+#
6969+# Basics:
7070+#
7171+ # Start a terminal
7272+ bindsym $mod+Return exec $term
7373+7474+ # Kill focused window
7575+ bindsym $mod+Shift+q kill
7676+7777+ # Start your launcher
7878+ bindsym $mod+d exec $menu
7979+8080+ # Drag floating windows by holding down $mod and left mouse button.
8181+ # Resize them with right mouse button + $mod.
8282+ # Despite the name, also works for non-floating windows.
8383+ # Change normal to inverse to use left mouse button for resizing and right
8484+ # mouse button for dragging.
8585+ floating_modifier $mod normal
8686+8787+ # Reload the configuration file
8888+ bindsym $mod+Shift+c reload
8989+9090+ # Exit sway (logs you out of your Wayland session)
9191+ bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
9292+#
9393+# Moving around:
9494+#
9595+ # Move your focus around
9696+ bindsym $mod+$left focus left
9797+ bindsym $mod+$down focus down
9898+ bindsym $mod+$up focus up
9999+ bindsym $mod+$right focus right
100100+ # Or use $mod+[up|down|left|right]
101101+ bindsym $mod+Left focus left
102102+ bindsym $mod+Down focus down
103103+ bindsym $mod+Up focus up
104104+ bindsym $mod+Right focus right
105105+106106+ # Move the focused window with the same, but add Shift
107107+ bindsym $mod+Shift+$left move left
108108+ bindsym $mod+Shift+$down move down
109109+ bindsym $mod+Shift+$up move up
110110+ bindsym $mod+Shift+$right move right
111111+ # Ditto, with arrow keys
112112+ bindsym $mod+Shift+Left move left
113113+ bindsym $mod+Shift+Down move down
114114+ bindsym $mod+Shift+Up move up
115115+ bindsym $mod+Shift+Right move right
116116+#
117117+# Workspaces:
118118+#
119119+ # Switch to workspace
120120+ bindsym $mod+1 workspace number 1
121121+ bindsym $mod+2 workspace number 2
122122+ bindsym $mod+3 workspace number 3
123123+ bindsym $mod+4 workspace number 4
124124+ bindsym $mod+5 workspace number 5
125125+ bindsym $mod+6 workspace number 6
126126+ bindsym $mod+7 workspace number 7
127127+ bindsym $mod+8 workspace number 8
128128+ bindsym $mod+9 workspace number 9
129129+ bindsym $mod+0 workspace number 10
130130+ # Move focused container to workspace
131131+ bindsym $mod+Shift+1 move container to workspace number 1
132132+ bindsym $mod+Shift+2 move container to workspace number 2
133133+ bindsym $mod+Shift+3 move container to workspace number 3
134134+ bindsym $mod+Shift+4 move container to workspace number 4
135135+ bindsym $mod+Shift+5 move container to workspace number 5
136136+ bindsym $mod+Shift+6 move container to workspace number 6
137137+ bindsym $mod+Shift+7 move container to workspace number 7
138138+ bindsym $mod+Shift+8 move container to workspace number 8
139139+ bindsym $mod+Shift+9 move container to workspace number 9
140140+ bindsym $mod+Shift+0 move container to workspace number 10
141141+ # Note: workspaces can have any name you want, not just numbers.
142142+ # We just use 1-10 as the default.
143143+#
144144+# Layout stuff:
145145+#
146146+ # You can "split" the current object of your focus with
147147+ # $mod+b or $mod+v, for horizontal and vertical splits
148148+ # respectively.
149149+ bindsym $mod+b splith
150150+ bindsym $mod+v splitv
151151+152152+ # Switch the current container between different layout styles
153153+ # bindsym $mod+s layout stacking
154154+ # bindsym $mod+w layout tabbed
155155+ # bindsym $mod+e layout toggle split
156156+157157+ # Make the current focus fullscreen
158158+ bindsym $mod+f fullscreen
159159+160160+ # Toggle the current focus between tiling and floating mode
161161+ bindsym $mod+Shift+space floating toggle
162162+163163+ # Swap focus between the tiling area and the floating area
164164+ bindsym $mod+space focus mode_toggle
165165+166166+ # Move focus to the parent container
167167+ # bindsym $mod+a focus parent
168168+#
169169+# Scratchpad:
170170+#
171171+ # Sway has a "scratchpad", which is a bag of holding for windows.
172172+ # You can send windows there and get them back later.
173173+174174+ # Move the currently focused window to the scratchpad
175175+ bindsym $mod+Shift+minus move scratchpad
176176+177177+ # Show the next scratchpad window or hide the focused scratchpad window.
178178+ # If there are multiple scratchpad windows, this command cycles through them.
179179+ bindsym $mod+minus scratchpad show
180180+#
181181+# Resizing containers:
182182+#
183183+mode "resize" {
184184+ # left will shrink the containers width
185185+ # right will grow the containers width
186186+ # up will shrink the containers height
187187+ # down will grow the containers height
188188+ bindsym $left resize shrink width 10px
189189+ bindsym $down resize grow height 10px
190190+ bindsym $up resize shrink height 10px
191191+ bindsym $right resize grow width 10px
192192+193193+ # Ditto, with arrow keys
194194+ bindsym Left resize shrink width 10px
195195+ bindsym Down resize grow height 10px
196196+ bindsym Up resize shrink height 10px
197197+ bindsym Right resize grow width 10px
198198+199199+ # Return to default mode
200200+ bindsym Return mode "default"
201201+ bindsym Escape mode "default"
202202+}
203203+bindsym $mod+r mode "resize"
204204+205205+#
206206+# Status Bar:
207207+#
208208+# Read `man 5 sway-bar` for more information about this section.
209209+bar {
210210+ position top
211211+212212+ # When the status_command prints a new line to stdout, swaybar updates.
213213+ # The default just shows the current date and time.
214214+ status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
215215+216216+ colors {
217217+ statusline #ffffff
218218+ background #323232
219219+ inactive_workspace #32323200 #32323200 #5c5c5c
220220+ }
221221+}
222222+223223+include /etc/sway/config.d/*