sway_config/bindings.conf

180 lines
5.7 KiB
Plaintext
Raw Normal View History

2021-05-25 23:21:35 +02:00
## Launchers
bindsym $mod+d exec $menu
# window list
bindsym $mod+backslash exec $window_list
# pass
bindsym $mod+p exec passmenu
2022-01-21 16:50:02 +01:00
# passotp
bindsym $mod+Shift+p exec otpmenu
2021-05-25 23:21:35 +02:00
# 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
2021-06-24 09:59:50 +02:00
bindsym $mod+t exec $kitty_term
2021-05-25 23:21:35 +02:00
bindsym $mod+Mod1+t exec $alacritty_term
2021-06-24 09:59:50 +02:00
bindsym $mod+Shift+t exec $hyper_term
2021-05-25 23:21:35 +02:00
bindsym $mod+Mod1+l exec $lock
bindsym $mod+Shift+b exec $chbg
2021-07-14 14:47:58 +02:00
bindsym $mod+c exec $clipboard
2023-05-14 11:44:22 +02:00
bindsym $mod+y exec net-copy
bindsym $mod+v exec net-paste
2021-07-14 14:47:58 +02:00
bindsym $mod+Shift+f exec $files
2021-05-25 23:21:35 +02:00
2021-07-02 16:42:13 +02:00
bindsym XF86AudioRaiseVolume exec volumectl raise
bindsym XF86AudioLowerVolume exec volumectl lower
2023-05-14 11:42:59 +02:00
bindsym XF86AudioMute exec volumectl %
2021-07-02 16:42:13 +02:00
bindsym XF86AudioMicMute exec volumectl mute --mic
bindsym Ctrl+Mod1+m exec volumectl mute --mic
bindsym XF86MonBrightnessUp exec lightctl raise
bindsym XF86MonBrightnessDown exec lightctl lower
2021-05-25 23:21:35 +02:00
2023-05-14 11:43:54 +02:00
bindsym Print exec ~/.bin/screenshot.sh -w -e
bindsym Ctrl+Print exec ~/.bin/screenshot.sh -s -e
bindsym Ctrl+Mod1+Print exec ~/.bin/screenshot.sh -S -e
bindsym Ctrl+Shift+p exec ~/.bin/screenshot.sh -w -e
2021-05-25 23:21:35 +02:00
bindsym $mod+Ctrl+p exec mpc toggle
bindsym $mod+Ctrl+c exec mpc clear
2022-01-21 16:49:48 +01:00
bindsym $mod+Ctrl+k exec 'pkill Xephyr && notify-send "Adam" "Killed"'
2021-05-25 23:21:35 +02:00
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
2021-09-20 11:42:39 +02:00
bindsym F9 exec 'swaymsg "input type:keyboard xkb_switch_layout 0" && notify-send "US layout"'
bindsym F10 exec 'swaymsg "input type:keyboard xkb_switch_layout 1" && notify-send "IT layout"'
2021-05-25 23:21:35 +02:00
# 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"
2023-05-14 11:44:42 +02:00
bindsym $mod+Shift+r exec /home/leo/.bin/toggle_resolution_headless.sh
2021-05-25 23:21:35 +02:00
default_border none
2023-05-14 11:41:46 +02:00
# vim:syntax=swayconfig: