sway,nvim
This commit is contained in:
parent
b583011a73
commit
8a033df31f
2 changed files with 71 additions and 67 deletions
|
@ -184,6 +184,10 @@ vim.keymap.set("v", "d", '"_d')
|
|||
vim.keymap.set("n", "<C-s>", ":w<CR>")
|
||||
vim.keymap.set("i", "<C-s>", "<ESC>:w<CR>a")
|
||||
|
||||
-- vv for visual block
|
||||
vim.keymap.set("n", "vv", "<C-v>")
|
||||
vim.keymap.set("i", "vv", "<C-v>")
|
||||
|
||||
-- ; for command mode
|
||||
vim.keymap.set("n", ";", ":")
|
||||
|
||||
|
|
|
@ -99,15 +99,15 @@ input "type:keyboard" {
|
|||
#
|
||||
# Basics:
|
||||
#
|
||||
bindsym $mod+g exec $term fish -c y
|
||||
bindsym $mod+Return exec $term
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+Space exec $menu
|
||||
bindsym $mod+Tab workspace next
|
||||
bindsym $mod+Backspace exec ~/.scripts/kitty_shell.fish ~/.scripts/power.fish
|
||||
bindsym $mod+Slash exec ~/.scripts/kitty_shell.fish ~/.scripts/switcher.fish
|
||||
bindsym $mod+grave exec ~/.scripts/shot.fish
|
||||
bindsym $mod+backslash exec KS_WIDTH=30c KS_HEIGHT=1c ~/.scripts/kitty_shell.fish ~/.scripts/search.fish
|
||||
bindsym --to-code $mod+g exec $term fish -c y
|
||||
bindsym --to-code $mod+Return exec $term
|
||||
bindsym --to-code $mod+Shift+q kill
|
||||
bindsym --to-code $mod+Space exec $menu
|
||||
bindsym --to-code $mod+Tab workspace next
|
||||
bindsym --to-code $mod+Backspace exec ~/.scripts/kitty_shell.fish ~/.scripts/power.fish
|
||||
bindsym --to-code $mod+Slash exec ~/.scripts/kitty_shell.fish ~/.scripts/switcher.fish
|
||||
bindsym --to-code $mod+grave exec ~/.scripts/shot.fish
|
||||
bindsym --to-code $mod+backslash exec KS_WIDTH=30c KS_HEIGHT=1c ~/.scripts/kitty_shell.fish ~/.scripts/search.fish
|
||||
|
||||
# Drag floating windows by holding down $mod and left mouse button.
|
||||
# Resize them with right mouse button + $mod.
|
||||
|
@ -117,59 +117,59 @@ input "type:keyboard" {
|
|||
floating_modifier $mod normal
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym --to-code $mod+Shift+c 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 --to-code $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'
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
# Move your focus around
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
bindsym --to-code $mod+$left focus left
|
||||
bindsym --to-code $mod+$down focus down
|
||||
bindsym --to-code $mod+$up focus up
|
||||
bindsym --to-code $mod+$right focus right
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
bindsym --to-code $mod+Left focus left
|
||||
bindsym --to-code $mod+Down focus down
|
||||
bindsym --to-code $mod+Up focus up
|
||||
bindsym --to-code $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 --to-code $mod+Shift+$left move left
|
||||
bindsym --to-code $mod+Shift+$down move down
|
||||
bindsym --to-code $mod+Shift+$up move up
|
||||
bindsym --to-code $mod+Shift+$right move right
|
||||
# Ditto, with arrow keys
|
||||
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 --to-code $mod+Shift+Left move left
|
||||
bindsym --to-code $mod+Shift+Down move down
|
||||
bindsym --to-code $mod+Shift+Up move up
|
||||
bindsym --to-code $mod+Shift+Right move right
|
||||
#
|
||||
# Workspaces:
|
||||
#
|
||||
# Switch to workspace
|
||||
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 --to-code $mod+1 workspace number 1
|
||||
bindsym --to-code $mod+2 workspace number 2
|
||||
bindsym --to-code $mod+3 workspace number 3
|
||||
bindsym --to-code $mod+4 workspace number 4
|
||||
bindsym --to-code $mod+5 workspace number 5
|
||||
bindsym --to-code $mod+6 workspace number 6
|
||||
bindsym --to-code $mod+7 workspace number 7
|
||||
bindsym --to-code $mod+8 workspace number 8
|
||||
bindsym --to-code $mod+9 workspace number 9
|
||||
bindsym --to-code $mod+0 workspace number 10
|
||||
# Move focused container to workspace
|
||||
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 --to-code $mod+Shift+1 move container to workspace number 1
|
||||
bindsym --to-code $mod+Shift+2 move container to workspace number 2
|
||||
bindsym --to-code $mod+Shift+3 move container to workspace number 3
|
||||
bindsym --to-code $mod+Shift+4 move container to workspace number 4
|
||||
bindsym --to-code $mod+Shift+5 move container to workspace number 5
|
||||
bindsym --to-code $mod+Shift+6 move container to workspace number 6
|
||||
bindsym --to-code $mod+Shift+7 move container to workspace number 7
|
||||
bindsym --to-code $mod+Shift+8 move container to workspace number 8
|
||||
bindsym --to-code $mod+Shift+9 move container to workspace number 9
|
||||
bindsym --to-code $mod+Shift+0 move container to workspace number 10
|
||||
# Note: workspaces can have any name you want, not just numbers.
|
||||
# We just use 1-10 as the default.
|
||||
#
|
||||
|
@ -178,25 +178,25 @@ input "type:keyboard" {
|
|||
# You can "split" the current object of your focus with
|
||||
# $mod+b or $mod+v, for horizontal and vertical splits
|
||||
# respectively.
|
||||
bindsym $mod+b splith
|
||||
bindsym $mod+v splitv
|
||||
bindsym --to-code $mod+b splith
|
||||
bindsym --to-code $mod+v splitv
|
||||
|
||||
# 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 --to-code $mod+s layout stacking
|
||||
bindsym --to-code $mod+w layout tabbed
|
||||
bindsym --to-code $mod+e layout toggle split
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
bindsym --to-code $mod+f fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym --to-code $mod+Shift+space floating toggle
|
||||
|
||||
# Swap focus between the tiling area and the floating area
|
||||
bindsym $mod+z focus mode_toggle
|
||||
bindsym --to-code $mod+z focus mode_toggle
|
||||
|
||||
# Move focus to the parent container
|
||||
bindsym $mod+a focus parent
|
||||
bindsym --to-code $mod+a focus parent
|
||||
|
||||
|
||||
# Resizing containers:
|
||||
|
@ -206,22 +206,22 @@ mode "resize" {
|
|||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym $left resize shrink width 10px
|
||||
bindsym $down resize grow height 10px
|
||||
bindsym $up resize shrink height 10px
|
||||
bindsym $right resize grow width 10px
|
||||
bindsym --to-code $left resize shrink width 10px
|
||||
bindsym --to-code $down resize grow height 10px
|
||||
bindsym --to-code $up resize shrink height 10px
|
||||
bindsym --to-code $right resize grow width 10px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 10px
|
||||
bindsym Down resize grow height 10px
|
||||
bindsym Up resize shrink height 10px
|
||||
bindsym Right resize grow width 10px
|
||||
bindsym --to-code Left resize shrink width 10px
|
||||
bindsym --to-code Down resize grow height 10px
|
||||
bindsym --to-code Up resize shrink height 10px
|
||||
bindsym --to-code Right resize grow width 10px
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym --to-code Return mode "default"
|
||||
bindsym --to-code Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
bindsym --to-code $mod+r mode "resize"
|
||||
|
||||
|
||||
### Autostart
|
||||
|
|
Loading…
Reference in a new issue