aboutsummaryrefslogtreecommitdiff
path: root/.config/sway/config
diff options
context:
space:
mode:
Diffstat (limited to '.config/sway/config')
-rwxr-xr-x.config/sway/config103
1 files changed, 103 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config
new file mode 100755
index 0000000..6230e4c
--- /dev/null
+++ b/.config/sway/config
@@ -0,0 +1,103 @@
+include ./monitors
+include ./exec
+include ./visuals
+
+set $mod Mod4
+
+# direction keys
+set $left h
+set $down j
+set $up k
+set $right l
+
+set $term foot
+set $menu foot --app-id otter-launcher -T foot otter-launcher
+for_window [app_id="otter-launcher"] floating enable
+
+# Screenshots
+set $scsh grim -g "$(slurp)" - | wl-copy
+set $fullscsh grim - | wl-copy
+
+### Input configuration
+# input "2:14:SynPS/2_Synaptics_TouchPad" {
+# dwt enabled
+# tap enabled
+# natural_scroll enabled
+# middle_emulation enabled
+# }
+#
+# You can get the names of your inputs by running: swaymsg -t get_inputs
+
+# -Key bindings-
+# Basics:
+ bindsym $mod+Return exec $term
+ bindsym $mod+c kill
+ bindsym $mod+r exec $menu
+ floating_modifier $mod normal
+ bindsym $mod+Shift+r reload
+ bindsym $mod+Shift+e exit
+
+# Moving around:
+ bindsym $mod+$left focus left
+ bindsym $mod+$down focus down
+ bindsym $mod+$up focus up
+ bindsym $mod+$right focus right
+
+ bindsym $mod+Shift+$left move left
+ bindsym $mod+Shift+$down move down
+ bindsym $mod+Shift+$up move up
+ bindsym $mod+Shift+$right move right
+
+# Workspaces:
+ bindsym $mod+1 workspace number 1
+ bindsym $mod+2 workspace number 2
+ bindsym $mod+3 workspace number 3
+ bindsym $mod+4 workspace number 4
+ bindsym $mod+5 workspace number 5
+ bindsym $mod+6 workspace number 6
+ bindsym $mod+7 workspace number 7
+ bindsym $mod+8 workspace number 8
+ bindsym $mod+9 workspace number 9
+ bindsym $mod+0 workspace number 10
+ bindsym $mod+n workspace number 11
+ bindsym $mod+m workspace number 12
+ bindsym $mod+Shift+1 move container to workspace number 1
+ bindsym $mod+Shift+2 move container to workspace number 2
+ bindsym $mod+Shift+3 move container to workspace number 3
+ bindsym $mod+Shift+4 move container to workspace number 4
+ bindsym $mod+Shift+5 move container to workspace number 5
+ bindsym $mod+Shift+6 move container to workspace number 6
+ bindsym $mod+Shift+7 move container to workspace number 7
+ bindsym $mod+Shift+8 move container to workspace number 8
+ bindsym $mod+Shift+9 move container to workspace number 9
+ bindsym $mod+Shift+0 move container to workspace number 10
+ bindsym $mod+Shift+n move container to workspace number 11
+ bindsym $mod+Shift+m move container to workspace number 12
+# You might want to change the keybinds for 11 and 12 ^
+
+# Layout stuff:
+ bindsym $mod+b splith
+ bindsym $mod+v splitv
+ bindsym $mod+s layout stacking
+ bindsym $mod+w layout tabbed
+ bindsym $mod+e layout toggle split
+
+ bindsym $mod+f fullscreen
+
+ # Toggle the current focus between tiling and floating mode
+ bindsym $mod+space floating toggle
+
+# Utilities:
+ # Volume
+ bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
+ bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
+ bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
+ bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle
+ # Brightness
+ bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
+ bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
+ # Screenshots
+ bindsym Print exec grim -g "$(slurp)" - | wl-copy
+ bindsym Shift+Print exec grim - | wl-copy
+
+include @sysconfdir@/sway/config.d/*