0

When using Windows, pressing the combination CTRL+ALT+W prints a ?character.

When I'm using Ubuntu, this can be done using AltGr+W, but I'd rather use CTRL+ALT+W.

How can I achieve this?

@EDIT

I tried setting a custom shortcut, as suggested in an answer, but it doesn't work:

enter image description here enter image description here

LeoColman
  • 101
  • Could you add to your post the output of localectl status, and take a screenshot of the image shown after running this: gkbd-keyboard-display -l $(localectl status | awk '/X11 Layout/ {print $3}')$'\t'$(localectl status | awk '/X11 Variant/ {print $3}')? Seems an XY problem. Maybe you already have that symbol – Pablo Bianchi Jun 22 '23 at 18:49

2 Answers2

1

The standard for Linux keyboard is AltGr+W. But, if your prefer, could customize this shortcut in your keyboard:

  1. Go to System Settings > Keyboard, Shortcuts;
  2. Create a new Custom Shortcut (chose it and press +);
  3. Click on word "Disabled" so it will turn to "New Accelerator...";
  4. Press Ctrl+Alt+W.
  5. Close this window

so:enter image description here

Redbob
  • 1,596
0

Fellow brazilian here and this was the first thing I searched when I installed Ubuntu. I've been used to using Ctrl + Alt + W for far too long now and simply was unable to readapt to Shift + / hahaha

I'm going to write this just in case anyone else searches for it in the future.

Here's how I did it:


Install xdotool

sudo apt install xdotool

Creating the script

(copy and paste or follow along)

mkdir scripts
cd scripts
touch ctrl_alt_w.sh
echo 'xdotool keyup ctrl+alt+w
sleep 0.2
xdotool key shift+ctrl+u+0+0+3+f' >> ctrl_alt_w.sh
chmod -R 777 .
  1. Open the terminal using Ctrl + Alt + T.
  2. Create a folder called scripts.
  3. Create a script, lets call it ctrl_alt_w for the sake of it.
  4. Add my code to the script by using echo.
  5. Modify the permission to allow it to run as a program.

Ok! Now the script part is ready. Let's set a shortcut for it:


Creating the shortcut

  1. Go to Settings > Keyboard > Custom Shortcuts
  2. Create a new one like so:
Name: ?   
Command: ./scripts/ctrl_alt_w.sh  
Shortcut: Ctrl + Alt + W

Screenshot

Sources: Creating the script and this question; xdotool docs

Hope it helps someone!