#linux

Sway

Display manager

Based on Wayland, it only works on:

Terminal

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
}

Scripting with python

Tools list

get tree

swaymsg -t get_tree

switch next/previous window

React ?

This page was last modified: