linux

Sway

→ Display manager

Based on Wayland, it only works on:

→ Terminal

should likely move to swayr + fuzzel

→ automate keys / mouse

→ Bar

→ Notifications

→ Copy/paste

→ copy/paste

→ Image display

→ Screens

→ Keyboards and mouse

Get the device list:

swaymsg -t get_inputs

Then configure each one:

input "6127:24704:Lite-On_Tech_Lenovo_USB_Travel_Keyboard_with_Ultra_Nav" {
    xkb_layout "us"
    xkb_variant altgr-intl
    xkb_options caps:escape,ctrl:swap_lalt_lctl,lv3:ralt_alt,lv3:switch
}

input "6127:24704:Lite-On_Tech_Lenovo_USB_Travel_Keyboard_with_Ultra_Nav_Mouse" {
        dwt enabled
        natural_scroll disabled
        middle_emulation enabled
        scroll_button 274
        scroll_method on_button_down
}

→ Disable touchpad

# Toggle touchpad on/off with Caps Lock key
bindsym Caps_Lock exec swaymsg "input 'type:touchpad' events toggle"

This will disable the standard Caps Lock function so it only works as a modifier:

input * {
    xkb_options caps:none
}

→ Scripting with python

→ Tools list

→ get tree

swaymsg -t get_tree

→ switch next/previous window

React ?

This page was last modified: