Code Monkey home page Code Monkey logo

Comments (14)

ddevault avatar ddevault commented on May 18, 2024

This seems unnecessarily tbh.

from swaylock.

 avatar commented on May 18, 2024

Still would be a nice addition anyway, instead of switching multiple layouts to enter a password.

from swaylock.

emersion avatar emersion commented on May 18, 2024

I'd rather add a command to switch the current keyboard layout in sway. You could then run it right before locking.

from swaylock.

 avatar commented on May 18, 2024

Would be really nice, but there seems another issue with checking a keyboard layout (setxkbmap -query) on the wlroots side.

from swaylock.

emersion avatar emersion commented on May 18, 2024

setxkbmap won't work. This would need to be a sway command.

from swaylock.

 avatar commented on May 18, 2024

It all references to setxkbmap support, as far as I see the situation, so then we just can set setxkbmap on both before-sleep and after-resume to have a special layout on unlock.

from swaylock.

emersion avatar emersion commented on May 18, 2024

setxkbmap won't work

(setxkbmap is a X11 tool, it doesn't work on Wayland)

from swaylock.

 avatar commented on May 18, 2024

Is an setxkbmap implementation planned? Seems an important tool.

from swaylock.

emersion avatar emersion commented on May 18, 2024

setxkbmap is a X11 tool, it doesn't work on Wayland

from swaylock.

 avatar commented on May 18, 2024

setxkbmap is a X11 tool, it doesn't work on Wayland

So how to change/lookup a keyboard layout from the terminal?

from swaylock.

emersion avatar emersion commented on May 18, 2024

I'd rather add a command to switch the current keyboard layout in sway.

from swaylock.

emersion avatar emersion commented on May 18, 2024

Note that you can already completely change the layout with swaymsg input '*' xkb_layout 'layout1,layout2' like in the config. This new command would be to switch between layout1 and layout2.

from swaylock.

 avatar commented on May 18, 2024

swaymsg input '*' xkb_layout 'ru' doesn't change a layout at all.

from swaylock.

tindzk avatar tindzk commented on May 18, 2024

@ghost You can configure the keyboard layouts as follows in the Sway configuration:

input * xkb_layout  us,ru
input * xkb_variant us

To change the layout prior to swaylock, run this command:

swaymsg input '*' xkb_switch_layout 0

from swaylock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.