From af2699a66e753404bfeb462bae2c0212d1c07321 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 15 Aug 2024 19:20:59 +0300 Subject: [PATCH] config/sway: adjust keybinds --- .config/sway/config.d/binds.conf | 4 +-- .config/sway/config.d/keybinds-resize.conf | 29 +++++++--------------- .config/sway/config.d/sticky.conf | 2 +- .config/sway/config.d/touchpad.conf | 2 +- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/.config/sway/config.d/binds.conf b/.config/sway/config.d/binds.conf index 38a8f1f..5fc2af4 100644 --- a/.config/sway/config.d/binds.conf +++ b/.config/sway/config.d/binds.conf @@ -1,2 +1,2 @@ -bindsym $mod+Alt+Return exec emacs -bindsym $mod+Shift+Alt+Return exec firefox +$bindsym $mod+Alt+Return exec emacs +$bindsym $mod+Shift+Alt+Return exec firefox diff --git a/.config/sway/config.d/keybinds-resize.conf b/.config/sway/config.d/keybinds-resize.conf index cea37f8..18607df 100644 --- a/.config/sway/config.d/keybinds-resize.conf +++ b/.config/sway/config.d/keybinds-resize.conf @@ -3,24 +3,13 @@ set $down j set $up k set $right l -## Resize in normal mode with vim keys -$bindsym $mod+Ctrl+Shift+$left resize shrink width 20px -$bindsym $mod+Ctrl+Shift+$down resize grow height 20px -$bindsym $mod+Ctrl+Shift+$up resize shrink height 20px -$bindsym $mod+Ctrl+Shift+$right resize grow width 20px +# Resize in normal mode with vim keys +$bindsym $mod+Ctrl+Shift+$left resize shrink width 50px +$bindsym $mod+Ctrl+Shift+$down resize grow height 50px +$bindsym $mod+Ctrl+Shift+$up resize shrink height 50px +$bindsym $mod+Ctrl+Shift+$right resize grow width 50px # Or with arrow keys -$bindsym $mod+Ctrl+Shift+Left resize shrink width 20px -$bindsym $mod+Ctrl+Shift+Down resize grow height 20px -$bindsym $mod+Ctrl+Shift+Up resize shrink height 20px -$bindsym $mod+Ctrl+Shift+Right resize grow width 20px - -bindsym $mod+$left focus left -bindsym $mod+$down focus down -bindsym $mod+$up focus up -bindsym $mod+$right focus right - -# Move the focused window with the same, but add Shift -bindsym $mod+Shift+$left move left -bindsym $mod+Shift+$down move down -bindsym $mod+Shift+$up move up -bindsym $mod+Shift+$right move right +$bindsym $mod+Ctrl+Shift+Left resize shrink width 50px +$bindsym $mod+Ctrl+Shift+Down resize grow height 50px +$bindsym $mod+Ctrl+Shift+Up resize shrink height 50px +$bindsym $mod+Ctrl+Shift+Right resize grow width 50px diff --git a/.config/sway/config.d/sticky.conf b/.config/sway/config.d/sticky.conf index 4abbabc..64677d7 100644 --- a/.config/sway/config.d/sticky.conf +++ b/.config/sway/config.d/sticky.conf @@ -1,2 +1,2 @@ -bindsym $mod+Alt+Shift+Up sticky toggle +$bindsym $mod+Alt+Shift+Up sticky toggle for_window [app_id="dragon-drop"] floating enable, sticky enable diff --git a/.config/sway/config.d/touchpad.conf b/.config/sway/config.d/touchpad.conf index 9ac411d..dec0199 100644 --- a/.config/sway/config.d/touchpad.conf +++ b/.config/sway/config.d/touchpad.conf @@ -4,7 +4,7 @@ input type:touchpad { } # TODO not working -bindsym $mod+Alt+t swaymsg input type:touchpad events toggle +$bindsym $mod+Alt+t swaymsg input type:touchpad events toggle #input "pointer:motion:MSFT0002:01.*" { # xinput events disable type:touchpad