1 # Default config for sway
3 # Copy this to ~/.config/sway/config and edit it to your liking.
5 # Read `man 5 sway` for a complete reference.
9 # Logo key. Use Mod1 for Alt.
11 # Home row direction keys, like vim
16 # Your preferred terminal emulator
20 set $font "InputSansCompressed Light 12"
21 set $highlight #4F8FE6
22 set $background #0F261FF2
23 set $foreground #DAE6E3
29 font pango:InputSansCompressed Light 12
31 # class / border / bg / fg / indicator / child_border
32 client.focused $accent $accent $background $accent $accent
33 client.focused_inactive $accent2 $accent2 $background $accent2 $accent2
34 client.unfocused $background $background #90A6A2 $background $background
35 client.urgent $danger $danger $foreground #01FF00 $danger
40 # Your preferred application launcher
41 # Note: pass the final command to swaymsg so that the resulting window can be opened
42 # on the original workspace that the command was run on.
43 set $menu bemenu-run -n -H 26 --hp 10 --fn $font -p ">" --ff "$background" --tf "$accent" --nf "$background" --cf "$accent2" --af "#00140d" --hb "$accent" --hf "$background" --hf "$foreground" --nb "$foreground" --tb "$foreground" --fb "$foreground" --cb "$foreground" --ab "$foreground" | xargs swaymsg exec
45 ### Output configuration
47 # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
48 exec swaybg -o \* -i ~/Pictures/wallpapers/lisa-congdon/Quilt_No._4_800x800.webp -m tile
49 # output HDMI-A-1 resolution 1920x1080 position 1920,0
51 # You can get the names of your outputs by running: swaymsg -t get_outputs
53 ### Idle configuration
55 # Example configuration:
58 # timeout 300 'swaylock -f -c 000000' \
59 # timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
60 # before-sleep 'swaylock -f -c 000000'
62 # This will lock your screen after 300 seconds of inactivity, then turn off
63 # your displays after another 300 seconds, and turn your screens back on when
64 # resumed. It will also lock your screen before your computer goes to sleep.
66 ### Input configuration
68 # Example configuration:
70 # input "2:14:SynPS/2_Synaptics_TouchPad" {
73 # natural_scroll enabled
74 # middle_emulation enabled
77 # You can get the names of your inputs by running: swaymsg -t get_inputs
78 # Read `man 5 sway-input` for more information about this section.
81 xkb_options ctrl:nocaps
89 bindsym $mod+Return exec $term
92 bindsym $mod+Shift+q kill
95 bindsym $mod+d exec $menu
97 # Drag floating windows by holding down $mod and left mouse button.
98 # Resize them with right mouse button + $mod.
99 # Despite the name, also works for non-floating windows.
100 # Change normal to inverse to use left mouse button for resizing and right
101 # mouse button for dragging.
102 floating_modifier $mod normal
104 # Reload the configuration file
105 bindsym $mod+Shift+c reload
107 # Exit sway (logs you out of your Wayland session)
108 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'
112 # Move your focus around
113 bindsym $mod+$left focus left
114 bindsym $mod+$down focus down
115 bindsym $mod+$up focus up
116 bindsym $mod+$right focus right
117 # Or use $mod+[up|down|left|right]
118 bindsym $mod+Left focus left
119 bindsym $mod+Down focus down
120 bindsym $mod+Up focus up
121 bindsym $mod+Right focus right
123 # Move the focused window with the same, but add Shift
124 bindsym $mod+Shift+$left move left
125 bindsym $mod+Shift+$down move down
126 bindsym $mod+Shift+$up move up
127 bindsym $mod+Shift+$right move right
128 # Ditto, with arrow keys
129 bindsym $mod+Shift+Left move left
130 bindsym $mod+Shift+Down move down
131 bindsym $mod+Shift+Up move up
132 bindsym $mod+Shift+Right move right
136 # Switch to workspace
137 bindsym $mod+1 workspace number 1
138 bindsym $mod+2 workspace number 2
139 bindsym $mod+3 workspace number 3
140 bindsym $mod+4 workspace number 4
141 bindsym $mod+5 workspace number 5
142 bindsym $mod+6 workspace number 6
143 bindsym $mod+7 workspace number 7
144 bindsym $mod+8 workspace number 8
145 bindsym $mod+9 workspace number 9
146 bindsym $mod+0 workspace number 10
147 # Move focused container to workspace
148 bindsym $mod+Shift+1 move container to workspace number 1
149 bindsym $mod+Shift+2 move container to workspace number 2
150 bindsym $mod+Shift+3 move container to workspace number 3
151 bindsym $mod+Shift+4 move container to workspace number 4
152 bindsym $mod+Shift+5 move container to workspace number 5
153 bindsym $mod+Shift+6 move container to workspace number 6
154 bindsym $mod+Shift+7 move container to workspace number 7
155 bindsym $mod+Shift+8 move container to workspace number 8
156 bindsym $mod+Shift+9 move container to workspace number 9
157 bindsym $mod+Shift+0 move container to workspace number 10
158 # Note: workspaces can have any name you want, not just numbers.
159 # We just use 1-10 as the default.
163 # You can "split" the current object of your focus with
164 # $mod+b or $mod+v, for horizontal and vertical splits
166 bindsym $mod+b splith
167 bindsym $mod+v splitv
169 # Switch the current container between different layout styles
170 bindsym $mod+s layout stacking
171 bindsym $mod+w layout tabbed
172 bindsym $mod+e layout toggle split
174 # Make the current focus fullscreen
175 bindsym $mod+f fullscreen
177 # Toggle the current focus between tiling and floating mode
178 bindsym $mod+Shift+space floating toggle
180 # Swap focus between the tiling area and the floating area
181 bindsym $mod+space focus mode_toggle
183 # Move focus to the parent container
184 bindsym $mod+a focus parent
188 # Sway has a "scratchpad", which is a bag of holding for windows.
189 # You can send windows there and get them back later.
191 # Move the currently focused window to the scratchpad
192 bindsym $mod+Shift+minus move scratchpad
194 # Show the next scratchpad window or hide the focused scratchpad window.
195 # If there are multiple scratchpad windows, this command cycles through them.
196 bindsym $mod+minus scratchpad show
198 # Resizing containers:
201 # left will shrink the containers width
202 # right will grow the containers width
203 # up will shrink the containers height
204 # down will grow the containers height
205 bindsym $left resize shrink width 10px
206 bindsym $down resize grow height 10px
207 bindsym $up resize shrink height 10px
208 bindsym $right resize grow width 10px
210 # Ditto, with arrow keys
211 bindsym Left resize shrink width 10px
212 bindsym Down resize grow height 10px
213 bindsym Up resize shrink height 10px
214 bindsym Right resize grow width 10px
216 # Return to default mode
217 bindsym Return mode "default"
218 bindsym Escape mode "default"
220 bindsym $mod+r mode "resize"
226 bindgesture swipe:3:left workspace next
227 bindgesture swipe:3:right workspace prev
232 # Read `man 5 sway-bar` for more information about this section.
236 # When the status_command prints a new line to stdout, swaybar updates.
237 # The default just shows the current date and time.
238 status_command while ~/.config/sway/status.sh; do sleep 1; done
242 background $background
243 # class / border / bg / fg
244 focused_workspace #23C17CF2 #23C17CF2 #000000F2
245 inactive_workspace $background $background #90A6A2
246 active_workspace #4F8FE6F2 #4F8FE6F2 $foreground
247 urgent_workspace #FA2B00F2 #FA2B00F2 $foreground
251 include /etc/sway/config.d/*