Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [capslock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
154 views

Map Caps Lock to AltGr and Escape - why does setxkbmap silence xcape daemon?

I'm on a 20.04 Ubuntu machine. I've been trying to use a combination of setxkmap and xcape to map AltGr and escape onto my caps-lock key, where a quick key press acts as escape and a longer key press ...
DBJ's user avatar
  • 1
0 votes
1 answer
249 views

Script that will set caps lock as upper or lower by choice

I am using Arch Linux and Openbox window manager with all the latset updates For years I have struggled with the caps lock key. I never know it's status until I come to use it. The same for all of us. ...
Kes's user avatar
  • 859
1 vote
2 answers
2k views

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 ...
se7enge's user avatar
  • 13
1 vote
2 answers
3k views

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 ...
ecjb's user avatar
  • 403
0 votes
0 answers
2k views

Setting xkbmap in Wayland

I am using Sway & Wayland on Arch with a fresh install. Everything is going well, besides one problem which I usually have, however this time I cannot solve it. On every Linux distro I have tried, ...
Alfie's user avatar
  • 1
2 votes
0 answers
106 views

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 ...
HeroesLoveToRoujiamo's user avatar
3 votes
2 answers
2k views

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 ?
Martin Vegter's user avatar
0 votes
1 answer
143 views

How do I make a Caps Lock from a Seach Button?

So, I got a Lenovo Chromebook running the latest ubuntu Mate, and I really hate this Searcch button bringing up the top left corner menu. So, I decided that I will make a Caps Lock from it, but I am ...
David58's user avatar
0 votes
0 answers
142 views

Notification (DBus?) when CapsLock status is changed

I need a program, say a Python script, to be notified when the CapsLock and NumLock status are changed. I may have several keyboards and the code must run in user space so I can't rely on a kind of ...
PeterHerb's user avatar
0 votes
1 answer
493 views

Remap CapsLock and make it not lock capital letters

I wanted to remap CapsLock to work as escape, and I did it. What I did was: setxkbmap -option caps:escape But that method has a problem. Whenever I press CapsLock, on top it of working as escape, it ...
Bix Moo's user avatar
3 votes
2 answers
2k views

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 ...
Ned64's user avatar
  • 8,802
2 votes
1 answer
892 views

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, ...
matthesinator's user avatar
0 votes
1 answer
227 views

Caps lock is behaving like shift lock

I'm not sure how this happened. Maybe it was when I was adding a second layout to my keyboard somehow (although I only added another language). When I press caps, which I only use and have only used ...
Paulo Soares's user avatar
1 vote
1 answer
238 views

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 ...
Monsieur Pierre Doune's user avatar
0 votes
1 answer
68 views

Can Capslock mimick the use of shift

I am using lightweight Linux, with Xorg, an minimal xbase-client for the only purpose to launch specific program on remote site. These programs used by lambda users works well with a single default. ...
dominix's user avatar
  • 655
4 votes
1 answer
7k views

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 ...
Alexander's user avatar
  • 9,880
1 vote
0 answers
166 views

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. ...
Garmekain's user avatar
  • 270
2 votes
2 answers
907 views

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 "" fi } ...
Jonathan Hodgson's user avatar
1 vote
0 answers
62 views

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 -...
Rene's user avatar
  • 53
4 votes
4 answers
6k views

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 ...
mike's user avatar
  • 271
2 votes
2 answers
5k views

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.
kyb's user avatar
  • 420
1 vote
1 answer
3k views

Remap Esc to Caps Lock after mapping Caps Lock to Ctrl and Esc with xcape

I currently have Caps Lock mapped to Ctrl when held and Esc when tapped (for vim) via these commands in .xinitrc setxkbmap -option 'caps:ctrl_modifier' xcape -e 'Caps_Lock=Escape' This works, but ...
hopibel's user avatar
  • 130
2 votes
0 answers
129 views

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's user avatar
1 vote
2 answers
3k views

How do I use the Python module "keyboardleds" to determine Caps Lock state?

I want my system to ascertain the state of Caps Lock (is it on or off) by inspecting the keyboard DIRECTLY. After much searching, I understand that this can be done in Python by using the module "...
dave's user avatar
  • 11
1 vote
0 answers
411 views

Disable Caps Lock when a modifier key is pressed, with XKB

I would like all modifier keys -- except Shift -- to disable Caps Lock. Since, I would like to swap some modifiers as well, I am trying to achieve both goals at the same time (I wouldn't know how to ...
Eleno's user avatar
  • 1,849
7 votes
2 answers
7k views

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 ...
Kritzefitz's user avatar
0 votes
0 answers
4k views

Is there a way to turn on the function key indicator based on capslock status on Lenovo ThinkPad Yoga?

The Caps Lock key comes with no LED indicator light on newer ThinkPad models. The Fn key has a light for when FnLk (function lock) is turned on (as if that's more important that the Caps Lock key‽). ...
trusktr's user avatar
  • 4,195