Score:0

How to turn on change keyboard light on change lang

cn flag

how to cancel turn on/off keyboard light when i change language on ubuntu 20.04?

i configured my custom turn on and turn off by script

#!/bin/bash
if [ -f /tmp/keyboard_light ]; then
xset -led 3 && rm /tmp/keyboard_light
else
xset led 3 && touch /tmp/keyboard_light
fi

but when i change lang from tray or "Super+Space" keyboard light changed too

Score:0
cn flag

1)gsettings get org.gnome.desktop.input-sources xkb-options see ['grp_led:scroll']

  1. setxkbmap -layout 'us,ru' -option '' - turn off change scroll indicator on change lang

  2. xmodmap -pm and see

shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x69) mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) mod2 Num_Lock (0x4d) mod3 mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf) mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)

mod3 is empty

  1. xmodmap -e 'add mod3 = Scroll_Lock'

and my keyboard light is toggle on press Scroll Lock button

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.