Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when suspending PC #1

Open
MichalLebeda opened this issue Apr 28, 2022 · 2 comments
Open

Crashes when suspending PC #1

MichalLebeda opened this issue Apr 28, 2022 · 2 comments

Comments

@MichalLebeda
Copy link

MichalLebeda commented Apr 28, 2022

Hi,
Crashes when I suspend my PC. Was not able to obtain any more info than this

$sudo journalctl -u rusty-keys :

Apr 28 16:33:10 lavarock systemd[1]: Started rusty-keys keymapper service.
Apr 28 16:37:08 lavarock rusty-keys[13887]: fatal error: Interrupted system call (os error 4)
Apr 28 16:37:08 lavarock systemd[1]: rusty-keys.service: Deactivated successfully.

When run manually from terminal (with sudo):
fatal error: Interrupted system call (os error 4)

/etc/rusty-keys/keymap.toml:

# pressing all of these keys along with a number key representing the index of keymaps changes the layout
# ie, in this case pressing both and 0 would go QWERTY, while both and 1 would go dvorak
switch_layout_keys = ['LEFTSHIFT','RIGHTSHIFT']

# pressing any of these keys reverts to the index specified in revert_keymap_index for only the duration of the pressing
# used so QWERTY shortcuts like Ctrl+C still work
revert_default_keys = []
revert_keymap_index = 1

# this is the default index to use when the program first starts
default_keymap_index = 1

# these are the keymaps available, you can add as many as you want or re-order them, just be aware the mapping is
# always done from the first one to all subsequent ones, so you probably want to leave QWERTY or similar up top
keymaps = [
    # default key layout, QWERTY in this case
    """
    ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,PAUSE,
    GRV, 1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC,     INS, HOME,PGUP,    NLCK,PSLS,PAST,PMNS,
    TAB, Q,   W,   E,   R,   T,   Y,   U,   I,   O,   P,   LBRC,RBRC,BSLS,     DEL, END, PGDN,    P7,  P8,  P9,
    CAPS,A,   S,   D,   F,   G,   H,   J,   K,   L,   SCLN,QUOT,     ENT,                         P4,  P5,  P6,  PPLS,
    LSFT,Z,   X,   C,   V,   B,   N,   M,   COMM,DOT, SLSH,          RSFT,          UP,           P1,  P2,  P3,
    LCTL,LGUI,LALT,          SPC,                     RALT,RGUI,APP, RCTL,     LEFT,DOWN,RGHT,    P0,       PDOT,PENT
    """,
    # default key layout, QWERTY in this case
    """
    ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,BSPC,
    GRV, 1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC,     INS, HOME,PGUP,    NLCK,PSLS,PAST,PMNS,
    TAB, Q,   W,   E,   R,   T,   Y,   U,   I,   O,   P,   LBRC,RBRC,BSLS,     DEL, END, PGDN,    P7,  P8,  P9,
    CAPS,A,   S,   D,   F,   G,   H,   J,   K,   L,   SCLN,QUOT,     ENT,                         P4,  P5,  P6,  PPLS,
    LSFT,Z,   X,   C,   V,   B,   N,   M,   COMM,DOT, SLSH,          RSFT,          UP,           P1,  P2,  P3,
    LCTL,LGUI,LALT,          SPC,                     RALT,RGUI,APP, RCTL,     LEFT,DOWN,RGHT,    P0,       PDOT,PENT
    """
    ]

(I have a faulty keyboard which sends Pause instead of Backspace)

@moparisthebest
Copy link
Owner

Hi! Thanks for the bug report. I'll look into this, but in the meantime I pushed up an updated systemd unit that should work for you, it simply restarts the service when it dies.

@MichalLebeda
Copy link
Author

thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants