167 lines
5.3 KiB
Plaintext
167 lines
5.3 KiB
Plaintext
## Launchers
|
|
bindsym $mod+d exec $menu
|
|
# window list
|
|
bindsym $mod+backslash exec $window_list
|
|
# pass
|
|
bindsym $mod+p exec passmenu
|
|
# bluetooth devices
|
|
bindsym $mod+Shift+Mod1+m exec btmenu
|
|
|
|
|
|
## Programs
|
|
# start a terminal
|
|
bindsym $mod+Return exec $term
|
|
|
|
|
|
|
|
bindsym $mod+b exec $browser
|
|
bindsym $mod+Mod1+b exec $chromium_work
|
|
bindsym $mod+Mod1+Shift+b exec $chromium_personal
|
|
bindsym $mod+Mod1+i exec $chromium_isolated
|
|
bindsym $mod+Mod1+Shift+i exec $chromium_anon
|
|
bindsym $mod+m exec $mua
|
|
bindsym $mod+Mod1+f exec $files
|
|
bindsym $mod+t exec $kitty_term
|
|
bindsym $mod+Mod1+t exec $alacritty_term
|
|
bindsym $mod+Shift+t exec $hyper_term
|
|
bindsym $mod+Mod1+l exec $lock
|
|
bindsym $mod+Shift+b exec $chbg
|
|
|
|
bindsym XF86AudioRaiseVolume exec /home/leo/.bin/volume.sh +
|
|
bindsym XF86AudioLowerVolume exec /home/leo/.bin/volume.sh -
|
|
bindsym XF86AudioMute exec /home/leo/.bin/volume.sh m
|
|
# bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
|
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
|
|
|
bindsym Print exec ~/.bin/screenshot.sh -w
|
|
bindsym Ctrl+Print exec ~/.bin/screenshot.sh -s
|
|
bindsym Ctrl+Mod1+Print exec ~/.bin/screenshot.sh
|
|
bindsym $mod+Ctrl+p exec mpc toggle
|
|
bindsym $mod+Ctrl+c exec mpc clear
|
|
|
|
bindsym --no-repeat F12 exec gdbus call -e -d net.sourceforge.mumble.mumble -o / -m net.sourceforge.mumble.Mumble.startTalk
|
|
bindsym --release F12 exec gdbus call -e -d net.sourceforge.mumble.mumble -o / -m net.sourceforge.mumble.Mumble.stopTalk
|
|
bindsym F9 exec swaymsg "input type:keyboard xkb_switch_layout 0"
|
|
bindsym F10 exec swaymsg "input type:keyboard xkb_switch_layout 1"
|
|
|
|
|
|
# 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 exit
|
|
|
|
## Control windows
|
|
# kill focused window
|
|
bindsym $mod+Shift+q kill
|
|
# move focus
|
|
bindsym $mod+$left focus left
|
|
bindsym $mod+$down focus down
|
|
bindsym $mod+$up focus up
|
|
bindsym $mod+$right focus 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
|
|
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+Shift+Left move left
|
|
bindsym $mod+Shift+Down move down
|
|
bindsym $mod+Shift+Up move up
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
## Workspaces:
|
|
workspace back_and_forth yes
|
|
#bindsym $mod+tab workspace back_and_forth
|
|
bindsym $mod+tab workspace next_on_output
|
|
bindsym $mod+Shift+tab workspace prev_on_output
|
|
|
|
# switch to workspace
|
|
bindsym $mod+1 workspace 1
|
|
bindsym $mod+2 workspace 2
|
|
bindsym $mod+3 workspace 3
|
|
bindsym $mod+4 workspace 4
|
|
bindsym $mod+5 workspace 5
|
|
bindsym $mod+6 workspace 6
|
|
bindsym $mod+7 workspace 7
|
|
bindsym $mod+8 workspace 8
|
|
bindsym $mod+9 workspace 9
|
|
bindsym $mod+0 workspace 10
|
|
# move focused container to workspace
|
|
bindsym $mod+Shift+1 move container to workspace 1
|
|
bindsym $mod+Shift+2 move container to workspace 2
|
|
bindsym $mod+Shift+3 move container to workspace 3
|
|
bindsym $mod+Shift+4 move container to workspace 4
|
|
bindsym $mod+Shift+5 move container to workspace 5
|
|
bindsym $mod+Shift+6 move container to workspace 6
|
|
bindsym $mod+Shift+7 move container to workspace 7
|
|
bindsym $mod+Shift+8 move container to workspace 8
|
|
bindsym $mod+Shift+9 move container to workspace 9
|
|
bindsym $mod+Shift+0 move container to workspace 10
|
|
|
|
## Layout stuff:
|
|
bindsym $mod+Control+h splith
|
|
bindsym $mod+Control+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
|
|
|
|
# Make the current focus fullscreen
|
|
bindsym $mod+f fullscreen
|
|
|
|
# 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
|
|
|
|
# move focus to the parent container
|
|
bindsym $mod+a focus parent
|
|
|
|
## Scratchpad:
|
|
# 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
|
|
|
|
## 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 10 px or 10 ppt
|
|
bindsym $down resize grow height 10 px or 10 ppt
|
|
bindsym $up resize shrink height 10 px or 10 ppt
|
|
bindsym $right resize grow width 10 px or 10 ppt
|
|
|
|
# ditto, with arrow keys
|
|
bindsym Left resize shrink width 10 px or 10 ppt
|
|
bindsym Down resize grow height 10 px or 10 ppt
|
|
bindsym Up resize shrink height 10 px or 10 ppt
|
|
bindsym Right resize grow width 10 px or 10 ppt
|
|
|
|
# return to default mode
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
bindsym $mod+r mode "resize"
|
|
|
|
default_border none
|