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