~mil/sxmo-devel

sxmo-utils: sway: add config for Nokia N900 v1 APPLIED

Sicelo A. Mhlongo: 1
 sway: add config for Nokia N900

 1 files changed, 27 insertions(+), 0 deletions(-)
#1200477 test.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/sxmo-devel/patches/51186/mbox | git am -3
Learn more about email & git

[PATCH sxmo-utils] sway: add config for Nokia N900 Export this patch

The Nokia N900's keyboard has very few keys, and RightAlt is already
in use. Provide an alternative binding mode that suits this constraint
while remaining as close as possible to the existing sxmo keybindings
---
 configs/appcfg/sway_template | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/configs/appcfg/sway_template b/configs/appcfg/sway_template
index 72bd819..f188cbf 100644
--- a/configs/appcfg/sway_template
+++ b/configs/appcfg/sway_template
@@ -37,12 +37,39 @@ mode "menu" {
    bindsym XF86AudioLowerVolume exec wtype -k Down
}

mode "nomod" {
    # follow the standard sxmo keybinds as far as possible
    bindsym t exec $term; mode "default"
    bindsym q mode "default"
    bindsym Shift+p exec sxmo_appmenu.sh sys; mode "default"
    bindsym p exec sxmo_appmenu.sh; mode "default"
    bindsym d exec $menu; mode "default"
    bindsym Shift+q kill; mode "default"
    bindsym i exec sxmo_wmmenu.sh windowswitcher; mode "default"
    bindsym Shift+c reload; mode "default"
    bindsym f fullscreen; mode "default"
    bindsym Shift+space floating toggle; mode "default"
    bindsym a focus parent; mode "default"
}

### Key bindings
#
# Basics:
#
    input * xkb_options compose:ralt

    # Nokia N900 hardware keyboard
    input "1:1:TWL4030_Keypad" {
        xkb_model "nokiarx51"
        xkb_layout "us"
        # ralt has special meaning on N900 keyboard so do not use as
        # compose key
        xkb_options compose:rwin
    }

    # in the absence of a mod key (e.g. N900), provide a "nomod" mode
    bindsym Shift+space mode "nomod"

    # Start a terminal
    bindsym $mod+Return exec $term

-- 
2.43.0
sxmo-utils/patches/test.yml: SUCCESS in 23s

[sway: add config for Nokia N900][0] from [Sicelo A. Mhlongo][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/51186
[1]: mailto:absicsz@gmail.com

✓ #1200477 SUCCESS sxmo-utils/patches/test.yml https://builds.sr.ht/~mil/job/1200477
Interesting. Thanks!

To git@git.sr.ht:~mil/sxmo-utils
   8c0c0e43..91d4319d  master -> master