From c363b1a07dde605947c556ead7955c8f3c532d19 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 1 Dec 2024 10:55:58 +0100 Subject: add custom keyboard layout I've been using my own custom variant of Colemak Mod-DH since at least 2019. --- user/sway/config | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'user/sway') diff --git a/user/sway/config b/user/sway/config index fc1967f..3fafa93 100644 --- a/user/sway/config +++ b/user/sway/config @@ -5,10 +5,10 @@ # Logo key. Use Mod1 for Alt. set $mod Mod4 # Home row direction keys, like vim -set $left h -set $down j -set $up k -set $right l +set $left k +set $down n +set $up e +set $right i # Your preferred terminal emulator set $term foot # Your preferred application launcher @@ -54,6 +54,10 @@ output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_19 # You can get the names of your inputs by running: swaymsg -t get_inputs # Read `man 5 sway-input` for more information about this section. +input "type:keyboard" { + xkb_file "~/config/colematik/colematik.xkb" +} + ### Key bindings # # Basics: @@ -62,7 +66,7 @@ output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_19 bindsym $mod+Return exec $term # Kill focused window - bindsym $mod+Shift+q kill + bindsym $mod+Shift+c kill # Start your launcher bindsym $mod+d exec $menu @@ -75,10 +79,10 @@ output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_19 floating_modifier $mod normal # Reload the configuration file - bindsym $mod+Shift+c reload + bindsym $mod+Shift+r reload # Exit sway (logs you out of your Wayland session) - 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' + bindsym $mod+Shift+q 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' # # Moving around: # @@ -142,7 +146,7 @@ output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_19 # Switch the current container between different layout styles bindsym $mod+s layout stacking bindsym $mod+w layout tabbed - bindsym $mod+e layout toggle split + bindsym $mod+t layout toggle split # Make the current focus fullscreen bindsym $mod+f fullscreen -- cgit v1.2.3