Use Ctrl instead of Shift for certain keybindings, add a keybinding to move a window to the prev/next workspace, and make the default terminal alacritty

This commit is contained in:
Kevin MacMartin 2024-04-25 14:27:59 -04:00
parent b1f912d774
commit 7a9d1ad006

View file

@ -21,7 +21,7 @@ set $up Up
set $right Right set $right Right
# Your preferred terminal emulator # Your preferred terminal emulator
set $term xfce4-terminal set $term alacritty
# Keyboard # Keyboard
input "1:1:AT_Translated_Set_2_keyboard" { input "1:1:AT_Translated_Set_2_keyboard" {
@ -81,6 +81,9 @@ bindsym $mod+w kill
# Start your launcher # Start your launcher
bindsym $mod+space exec xfce4-appfinder bindsym $mod+space exec xfce4-appfinder
# Hide the mouse after a period of inactivity
seat seat0 hide_cursor 5000
# Drag floating windows by holding down $mod and left mouse button. # Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod. # Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows. # Despite the name, also works for non-floating windows.
@ -89,7 +92,7 @@ bindsym $mod+space exec xfce4-appfinder
floating_modifier $mod normal floating_modifier $mod normal
# Reload the configuration file # Reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Ctrl+c reload
# Lock screen # Lock screen
bindsym $mod+l exec swaylock -f -i $HOME/.config/sway/wallpapers/lockscreen_wallpaper.jpg bindsym $mod+l exec swaylock -f -i $HOME/.config/sway/wallpapers/lockscreen_wallpaper.jpg
@ -126,10 +129,10 @@ bindsym $mod+$up focus up
bindsym $mod+$right focus right bindsym $mod+$right focus right
# Move the focused window with the same, but add Shift # Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left bindsym $mod+Ctrl+$left move left
bindsym $mod+Shift+$down move down bindsym $mod+Ctrl+$down move down
bindsym $mod+Shift+$up move up bindsym $mod+Ctrl+$up move up
bindsym $mod+Shift+$right move right bindsym $mod+Ctrl+$right move right
# #
# Workspaces: # Workspaces:
@ -139,6 +142,10 @@ bindsym $mod+Shift+$right move right
bindsym $mod+p workspace prev bindsym $mod+p workspace prev
bindsym $mod+n workspace next bindsym $mod+n workspace next
# Move focused container and switch to next/previous workspace
bindsym $mod+Ctrl+p move container to workspace prev; workspace prev
bindsym $mod+Ctrl+n move container to workspace next; workspace next
# Switch to a particular workspace # Switch to a particular workspace
bindsym $mod+1 workspace number 1 bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2 bindsym $mod+2 workspace number 2
@ -152,16 +159,16 @@ bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10 bindsym $mod+0 workspace number 10
# Move focused container and switch to a particular workspace # Move focused container and switch to a particular workspace
bindsym $mod+Shift+1 move container to workspace number 1; workspace number 1 bindsym $mod+Ctrl+1 move container to workspace number 1; workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2; workspace number 2 bindsym $mod+Ctrl+2 move container to workspace number 2; workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3; workspace number 3 bindsym $mod+Ctrl+3 move container to workspace number 3; workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4; workspace number 4 bindsym $mod+Ctrl+4 move container to workspace number 4; workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5; workspace number 5 bindsym $mod+Ctrl+5 move container to workspace number 5; workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6; workspace number 6 bindsym $mod+Ctrl+6 move container to workspace number 6; workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7; workspace number 7 bindsym $mod+Ctrl+7 move container to workspace number 7; workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8; workspace number 8 bindsym $mod+Ctrl+8 move container to workspace number 8; workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9; workspace number 9 bindsym $mod+Ctrl+9 move container to workspace number 9; workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10; workspace number 10 bindsym $mod+Ctrl+0 move container to workspace number 10; workspace number 10
# Note: workspaces can have any name you want, not just numbers. # Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default. # We just use 1-10 as the default.
@ -183,8 +190,8 @@ bindsym $mod+v splitv
# Switch the current container between different layout styles # Switch the current container between different layout styles
bindsym $mod+s layout stacking bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed bindsym $mod+t layout tabbed
bindsym $mod+Shift+s layout toggle split bindsym $mod+Ctrl+s layout toggle split
bindsym $mod+Shift+t layout toggle split bindsym $mod+Ctrl+t layout toggle split
# Make the current focus fullscreen # Make the current focus fullscreen
bindsym $mod+f fullscreen bindsym $mod+f fullscreen
@ -202,7 +209,7 @@ bindsym Alt+Tab focus mode_toggle
# Sway has a "scratchpad", which is a bag of holding for windows. # Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later. # You can send windows there and get them back later.
# Move the currently focused window to the scratchpad # Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad bindsym $mod+Ctrl+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.