dotfiles/.config/sway/basic_key_bindings

139 lines
4.1 KiB
Text

### gestures
bindgesture swipe:up workspace prev
bindgesture swipe:down workspace next
### sets
# Noctalia
set $ipc noctalia msg
# Logo key. Use Mod1 for Alt.
set $mod Mod4
set $mod1 Alt
# Home row direction keys, like vim
set $left k
set $down l
set $up o
set $right m
# screens
set $laptop eDP-1
set $external HDMI-A-1
# Preferred apps
set $term foot
# set $menu wofi --show drun
set $file nautilus
set $browser flatpak run app.zen_browser.zen
### keybindings
#
# basics
#
# Noctalia
bindsym $mod+z exec $ipc panel-toggle control-center
bindsym $mod+comma exec $ipc settings-toggle
bindsym $mod+exclam exec $ipc panel-toggle control-center weather
bindsym $mod+colon exec $ipc panel-toggle control-center calendar
bindsym $mod+b exec $ipc bar-toggle
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+q kill
# Start your launcher
bindsym $mod+space exec $ipc panel-toggle launcher
# bindsym $mod+space exec $menu bindsym $mod+shift+d exec wofi --show run
# Start a file manager
# bindsym $mod+e exec $file
# test of yazi as a CLI file manager
bindsym $mod+e exec --no-startup-id foot -e yazi
# Start browser
bindsym $mod+a exec $browser
# 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
# clipboard manager
# bindsym $mod+semicolon exec clipman pick --tool wofi -T'--prompt=clipboard-history -i'
bindsym $mod+semicolon exec $ipc panel-toggle clipboard
# notification center
# bindsym $mod+Shift+n exec swaync-client -t -sw
bindsym $mod+n exec $ipc panel-toggle control-center notifications
# Reload the configuration file
bindsym $mod+Shift+r 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'
#
# 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
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+ampersand workspace 01
bindsym $mod+eacute workspace 02
bindsym $mod+quotedbl workspace 03
bindsym $mod+apostrophe workspace 04
bindsym $mod+parenleft workspace 05
bindsym $mod+minus workspace 06
bindsym $mod+egrave workspace 07
bindsym $mod+underscore workspace 08
bindsym $mod+ccedilla workspace 09
bindsym $mod+agrave workspace 010
# Move focused container to workspace
bindsym $mod+Shift+ampersand move container to workspace 01
bindsym $mod+Shift+eacute move container to workspace 02
bindsym $mod+Shift+quotedbl move container to workspace 03
bindsym $mod+Shift+apostrophe move container to workspace 04
bindsym $mod+Shift+parenleft move container to workspace 05
bindsym $mod+Shift+minus move container to workspace 06
bindsym $mod+Shift+egrave move container to workspace 07
bindsym $mod+Shift+underscore move container to workspace 08
bindsym $mod+Shift+ccedilla move container to workspace 09
bindsym $mod+Shift+agrave move container to workspace 010
bindsym $mod+tab workspace next
bindsym $mod1+tab workspace prev