init
This commit is contained in:
23
conf.d/binds/common
Normal file
23
conf.d/binds/common
Normal file
@ -0,0 +1,23 @@
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
bindsym Control+Alt+t exec $term
|
||||
bindsym $mod+Shift+r reload
|
||||
|
||||
# Start application launcher
|
||||
bindsym $mod+d exec rofi -show run
|
||||
|
||||
# Kill focused window
|
||||
bindsym Alt+F4 kill
|
||||
|
||||
# Drag floating windows by holding down $mod and left mouse button.
|
||||
# Resize them with right mouse button + $mod.
|
||||
# Despite the name, also works for non-floating windows.
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
floating_modifier $mod normal
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym $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'
|
1
conf.d/binds/input
Normal file
1
conf.d/binds/input
Normal file
@ -0,0 +1 @@
|
||||
bindsym $mod+minus exec ~/.config/sway/scripts/touchpad_toggle
|
72
conf.d/binds/movement
Normal file
72
conf.d/binds/movement
Normal file
@ -0,0 +1,72 @@
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode. $mod+click to move.
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
# Move focus to the parent container
|
||||
bindsym $mod+a focus parent
|
||||
# Swap focus between the tiling area and the floating area
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
#
|
||||
# Focus
|
||||
#
|
||||
# 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
|
||||
|
||||
#
|
||||
# Resizing containers:
|
||||
#
|
||||
mode "resize" {
|
||||
# left will shrink the containers width
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
#
|
||||
# Split
|
||||
#
|
||||
# You can "split" the current object of your focus with
|
||||
# $mod+b or $mod+v, for horizontal and vertical splits
|
||||
# respectively.
|
||||
bindsym $mod+h 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
|
9
conf.d/binds/scratchpad
Normal file
9
conf.d/binds/scratchpad
Normal file
@ -0,0 +1,9 @@
|
||||
# Sway has a "scratchpad", which is a bag of holding for windows.
|
||||
# You can send windows there and get them back later.
|
||||
|
||||
# Move the currently focused window to the scratchpad
|
||||
#bindsym $mod+Shift+minus move scratchpad
|
||||
|
||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||
# If there are multiple scratchpad windows, this command cycles through them.
|
||||
#bindsym $mod+minus scratchpad show
|
12
conf.d/binds/utilites
Normal file
12
conf.d/binds/utilites
Normal file
@ -0,0 +1,12 @@
|
||||
# Special keys to adjust volume via PulseAudio
|
||||
bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym --locked XF86AudioRaiseVolume exec ~/.config/sway/scripts/volume +
|
||||
bindsym --locked XF86AudioLowerVolume exec ~/.config/sway/scripts/volume -
|
||||
bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
|
||||
# Special keys to adjust brightness via brightnessctl
|
||||
bindsym XF86MonBrightnessUp exec ~/.config/sway/scripts/brightness +
|
||||
bindsym XF86MonBrightnessDown exec ~/.config/sway/scripts/brightness -
|
||||
|
||||
# Special key to take a screenshot with grim
|
||||
bindsym Print exec grim -g "$(slurp)" - | wl-copy
|
46
conf.d/binds/workspaces
Normal file
46
conf.d/binds/workspaces
Normal file
@ -0,0 +1,46 @@
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 exec ~/.config/sway/scripts/workspace-manager 1
|
||||
bindsym $mod+2 exec ~/.config/sway/scripts/workspace-manager 2
|
||||
bindsym $mod+3 exec ~/.config/sway/scripts/workspace-manager 3
|
||||
bindsym $mod+4 exec ~/.config/sway/scripts/workspace-manager 4
|
||||
bindsym $mod+5 exec ~/.config/sway/scripts/workspace-manager 5
|
||||
bindsym $mod+6 exec ~/.config/sway/scripts/workspace-manager 6
|
||||
bindsym $mod+7 exec ~/.config/sway/scripts/workspace-manager 7
|
||||
bindsym $mod+8 exec ~/.config/sway/scripts/workspace-manager 8
|
||||
bindsym $mod+9 exec ~/.config/sway/scripts/workspace-manager 9
|
||||
bindsym $mod+0 exec ~/.config/sway/scripts/workspace-manager 0
|
||||
bindsym $mod+F1 exec ~/.config/sway/scripts/workspace-manager F1
|
||||
bindsym $mod+F2 exec ~/.config/sway/scripts/workspace-manager F2
|
||||
bindsym $mod+F3 exec ~/.config/sway/scripts/workspace-manager F3
|
||||
bindsym $mod+F4 exec ~/.config/sway/scripts/workspace-manager F4
|
||||
bindsym $mod+F5 exec ~/.config/sway/scripts/workspace-manager F5
|
||||
bindsym $mod+F6 exec ~/.config/sway/scripts/workspace-manager F6
|
||||
bindsym $mod+F7 exec ~/.config/sway/scripts/workspace-manager F7
|
||||
bindsym $mod+F8 exec ~/.config/sway/scripts/workspace-manager F8
|
||||
bindsym $mod+F9 exec ~/.config/sway/scripts/workspace-manager F9
|
||||
bindsym $mod+F10 exec ~/.config/sway/scripts/workspace-manager F10
|
||||
bindsym $mod+F11 exec ~/.config/sway/scripts/workspace-manager F11
|
||||
bindsym $mod+F12 exec ~/.config/sway/scripts/workspace-manager F12
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 exec ~/.config/sway/scripts/workspace-manager 1 move
|
||||
bindsym $mod+Shift+2 exec ~/.config/sway/scripts/workspace-manager 2 move
|
||||
bindsym $mod+Shift+3 exec ~/.config/sway/scripts/workspace-manager 3 move
|
||||
bindsym $mod+Shift+4 exec ~/.config/sway/scripts/workspace-manager 4 move
|
||||
bindsym $mod+Shift+5 exec ~/.config/sway/scripts/workspace-manager 5 move
|
||||
bindsym $mod+Shift+6 exec ~/.config/sway/scripts/workspace-manager 6 move
|
||||
bindsym $mod+Shift+7 exec ~/.config/sway/scripts/workspace-manager 7 move
|
||||
bindsym $mod+Shift+8 exec ~/.config/sway/scripts/workspace-manager 8 move
|
||||
bindsym $mod+Shift+9 exec ~/.config/sway/scripts/workspace-manager 9 move
|
||||
bindsym $mod+Shift+0 exec ~/.config/sway/scripts/workspace-manager 0 move
|
||||
bindsym $mod+Shift+F1 exec ~/.config/sway/scripts/workspace-manager F1 move
|
||||
bindsym $mod+Shift+F2 exec ~/.config/sway/scripts/workspace-manager F2 move
|
||||
bindsym $mod+Shift+F3 exec ~/.config/sway/scripts/workspace-manager F3 move
|
||||
bindsym $mod+Shift+F4 exec ~/.config/sway/scripts/workspace-manager F4 move
|
||||
bindsym $mod+Shift+F5 exec ~/.config/sway/scripts/workspace-manager F5 move
|
||||
bindsym $mod+Shift+F6 exec ~/.config/sway/scripts/workspace-manager F6 move
|
||||
bindsym $mod+Shift+F7 exec ~/.config/sway/scripts/workspace-manager F7 move
|
||||
bindsym $mod+Shift+F8 exec ~/.config/sway/scripts/workspace-manager F8 move
|
||||
bindsym $mod+Shift+F9 exec ~/.config/sway/scripts/workspace-manager F9 move
|
||||
bindsym $mod+Shift+F10 exec ~/.config/sway/scripts/workspace-manager F10 move
|
||||
bindsym $mod+Shift+F11 exec ~/.config/sway/scripts/workspace-manager F11 move
|
||||
bindsym $mod+Shift+F12 exec ~/.config/sway/scripts/workspace-manager F12 move
|
Reference in New Issue
Block a user