mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
Add keyboard layout configuration example
This commit is contained in:
parent
2f84d6e349
commit
10889f3cfd
1 changed files with 23 additions and 1 deletions
24
config.in
24
config.in
|
|
@ -6,15 +6,19 @@
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
#
|
#
|
||||||
# Logo key. Use Mod1 for Alt.
|
# Windows key. Use Mod1 for Alt.
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
|
#
|
||||||
# Home row direction keys, like vim
|
# Home row direction keys, like vim
|
||||||
set $left h
|
set $left h
|
||||||
set $down j
|
set $down j
|
||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
|
#
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
|
# set $term kitty
|
||||||
set $term alacritty
|
set $term alacritty
|
||||||
|
#
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: it's recommended that you pass the final command to sway
|
# Note: it's recommended that you pass the final command to sway
|
||||||
set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||||
|
|
@ -48,6 +52,24 @@ output * bg @datadir@/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
|
# Keyboard layout:
|
||||||
|
#
|
||||||
|
# input * {
|
||||||
|
# xkb_layout de
|
||||||
|
# xkb_variant neo
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# or:
|
||||||
|
#
|
||||||
|
# input * {
|
||||||
|
# xkb_layout de
|
||||||
|
# xkb_variant nodeadkeys
|
||||||
|
# xkb_options caps:swapescape
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Touchpad:
|
||||||
|
#
|
||||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||||
# dwt enabled
|
# dwt enabled
|
||||||
# tap enabled
|
# tap enabled
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue