Update .config/sway/config.d/default

Update .config/sway/config.d/input
Update .config/sway/config.d/output
This commit is contained in:
2024-12-18 22:31:12 +01:00
parent 3295a6339a
commit 27e934e4c5
3 changed files with 165 additions and 149 deletions

View File

@@ -1,24 +1,30 @@
### Input configuration
#
# Example configuration:
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Put your touchpad's ID to replace "Touchpad-ID" (keep the quotation marks)
# Read `man 5 sway-input` for more information about this section.
# Touchpad configuration
input type:touchpad {
dwt enabled
tap enabled
natural_scroll enabled
}
# Read `man 5 sway-input` for more information about this section.
#
input type:keyboard {
xkb_layout "us"
}
# Enable numlock by default
input type:keyboard xkb_numlock enabled
# Set keyboard layout and variant based on current system settings
exec_always {
'swaymsg input type:keyboard xkb_layout "$(localectl status | grep "X11 Layout" | sed -e "s/^.*X11 Layout://")"'
'swaymsg input type:keyboard xkb_variant "$(localectl status | grep "X11 Variant" | sed -e "s/^.*X11 Variant://")"'
}
#output DP-2 transform 270
# # Toggle between keyboard layouts. This example has the "us" and "gb"
# # keyboard layouts, and uses Alt+Shift to toggle between them.
# input "type:keyboard" {
# xkb_layout "us,gb"
# xkb_options "grp:alt_shift_toggle"
# }
# # Assign the same binding to "pkill -RTMIN+1 waybar" to send signal to
# # the Waybar keyboard module (so the module shows the updated layout).
# # This example uses Alt + left Shift.
# bindsym Alt+Shift_L exec "pkill -RTMIN+1 waybar"