Skip to content

Commit

Permalink
sway: Reorganize some shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
juanibiapina committed Nov 29, 2024
1 parent 97328a6 commit 7d7d462
Showing 1 changed file with 31 additions and 42 deletions.
73 changes: 31 additions & 42 deletions dotfiles/sway/.config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -133,30 +133,19 @@ bindsym $mod+Shift+e exec swaymsg exit
# mouse button for dragging.
floating_modifier $mod normal

#
# 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
# 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

# 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
# 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
# Windows

# Focus windows
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right

# Move the focused window
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:

Expand Down Expand Up @@ -188,31 +177,31 @@ bindsym $mod+Shift+0 move container to workspace number 10
bindsym Menu+Shift+1 move container to workspace number 11
bindsym Menu+Shift+2 move container to workspace number 12

# Layout

# Layout stuff:
# 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

# 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
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen

# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle

# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
#bindsym $mod+space focus mode_toggle

# Swap focus between the tiling area and the floating area
#bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent

# Move focus to the parent container
bindsym $mod+a focus parent
#
# Scratchpad:
#
Expand Down

0 comments on commit 7d7d462

Please sign in to comment.