Questions tagged [capslock]

27 questions
7
votes
2 answers

caps lock led not working on Linux console

When I switch to a TTY and turn on the caps lock, the caps lock LED on my keyboard isn't turning on. On X it works fine. When I activate caps lock and then switch to a TTY and then press caps lock (on the TTY) the LED stays on (Even though the TTY…
Kritzefitz
  • 673
  • 3
  • 12
  • 22
4
votes
4 answers

Map Capslock to Control on Wayland

I've updated to Fedora 26 and now my Capslock key behaves strangely (or not at all). In Fedora 25 the xkb setting worked perfectly for both my Ctrl and Caps changes. I've selected "Caps as Ctrl" in Gnome Tweak Tools, but Caps just does nothing at…
mike
  • 261
  • 4
  • 10
3
votes
2 answers

How to disable CapsLock in console?

I can disable Caps Lock in the GUI using following command: setxkbmap -option ctrl:nocaps But how can I disable it completely in the console, on a machine without X/GUI ?
400 the Cat
  • 819
  • 4
  • 37
  • 85
3
votes
2 answers

How can I disable Caps Lock in a simple way under X11 when there is no key binding for it?

I routinely disable Caps Lock and the respective modifier with a script, using xmodmap. That all works fine. Sometimes, however, for some reason unknown, Caps Lock is active. Having no key bound to Caps_Lock and no key bound to toggle the Lock…
Ned64
  • 8,486
  • 9
  • 48
  • 86
3
votes
1 answer

Caps Lock behavior under Sway / Wayland

Under X, I can make Caps Lock behave as Esc when pressed briefly, but as Ctrl when held down with: setxkbmap -option 'caps:ctrl_modifier' xcape -e 'Caps_Lock=Escape' -t 100 How can I replicate this behavior under Sway / Wayland?
Alexander
  • 9,607
  • 3
  • 40
  • 59
2
votes
0 answers

When switching tty, who is responsible for synchronizing the state of keyboard NumLock?

My Xorg program uses tty1. Use Ctrl+Alt+F[2~6] to switch between ttY[2~6]. At this time, the NumLock or CapsLock state (including the corresponding LED light on the keyboard) can be synchronized normally. If I switch between tty1 and tty[2~6], the…
2
votes
1 answer

Toggle capslock with command

I'm trying to enable capslock with a console command, is there a possibility to do so? I found setleds +/-caps but that only works in a non-graphical environment sadly. Any help is appreciated, thanks!
2
votes
2 answers

Update ZSH PS1 / prompt on keypress

Part of my ZSH prompt is a caps lock indicator. function Capslock(){ x=$(xset -q | grep Caps) 2> /dev/null || exit 0 x=${x:22:1} if [[ $x == "n" ]]; then echo "" …
Jonathan Hodgson
  • 342
  • 1
  • 3
  • 16
2
votes
2 answers

How to configure Deepin Desktop Environment (DDE) to change keyboard layout with caps lock?

My system is Manjaro Linux. But I think this does not metter. In settings panel I cannot make CapsLock as keyboard layout changer. Please help.
2
votes
0 answers

Disable CapsLock functionality on short press

Is there any way to make pressing CapsLock effective only on long press? for example it effect only when we press and hold it for half a second? (I'm using ubuntu 14.04)
Hossein Nasr
  • 257
  • 1
  • 4
  • 10
1
vote
2 answers

How to remap Ctrl to Caps Lock in a TTY?

I already understand how to remap keys in an X graphical server. However, I sometimes like to do work from a TTY and cannot seem to figure out a way to functionally remap Ctrl to Caps Lock. I have already tried creating a .keymap file with the…
se7enge
  • 13
  • 2
1
vote
2 answers

Permanently remap caps lock to escape

I am trying to remap caps lock to escape on the keyboard. I tried the following solution found on AskUbuntu without success: $ xmodmap -e "keycode 9 = Caps_Lock NoSymbol Caps_Lock" $ xmodmap -e "keycode 66 = Escape NoSymbol Escape" $ setxkbmap…
ecjb
  • 379
  • 3
  • 12
1
vote
1 answer

A Compose Key as a Part of a Layout Switch Combination

Why can't I switch my layout with these settings: setxkbmap -layout us,ru -option grp:alt_caps_toggle,compose:caps Is it possible at all to have a compose key assigned on CapsLock and a layout switch combination relied on this key? Also, how to…
1
vote
0 answers

Capslock LED does not turn on

I have a raspberry with raspbian-lite and the problem is that the capslock led does not work when the keyboard is connected to it. The problem is not with the keyboard, as it works on other computers. I tried doing ioctl(STDOUT_FILENO, KDSETLED,…
Garmekain
  • 270
  • 2
  • 10
1
vote
0 answers

Caps_Lock changed to Multi_key

As seen via xev, in my user session the CapsLock key (keycode 66) is bound to Multi_key. Whereas in another user (guest) session it is bound to Caps_Lock. In a terminal I've tried setxkbmap -option caps:capslock but nothing changes. Running…
Rene
  • 43
  • 4
1
2