Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

How do I type the pipe symbol on a Swedish keyboard?

Writer Sebastian Wright

Being a Linux user, as most Linux users, I use the pipe symbol (|) daily.

I'm currently sitting at a Swedish keyboard. There are three keys on the keyboard that (together with an orgy of four or five other symbols) have the pipe symbol on it:

Swedish keyboard with pipe symbol highlighted

But for the life of me, I can't figure out how to make the pipe symbol materialize on the screen, and no amount of alt-gr-ing seems to get me there.

How can I type the pipe symbol (|) on a Swedish keyboard?

6

5 Answers

  • Danish: Alt Gr+´` found to the right of +?\.
  • Norwegian: §½ found to the left of 1!.
  • Norwegian with Sami: §½ found to the left of 1!.
  • Swedish: Alt Gr+<> found to the left of Z.
  • Swedish with Sami: Alt Gr+<> found to the left of Z.

If you couldn't get a single | by using Alt Gr, you are most likely using the Norwegian layout.

The keyboard layout is not "Swedish", it's the "Nordic" layout, used in Denmark, Norway, Sweeden and such. I'm not sure if it works with Linux, but on Windows with the Danish layout, it's "Alt Gr" + the key to the left of the backspace.

enter image description here

1

It is an old question, but since nobody gave the easy answer:

alt + 124

124 is the decimal equivalent for the | character in the ASCII table.

I'm using Windows 10, configured with a Swedish keyboard and for me, I press Alt Gr and the <>| key (the key in the red box at the bottom left of your diagram).

I had the same problem with Fedora 26. I used to get the pipe character when Fedora 23 was installed with AltGR + <>|. But instead of |, it outputs ı, which is i without the dot ("idotless").

Using xev, I saw:

KeyRelease event, serial 36, synthetic NO, window 0x5400001, root 0x296, subw 0x0, time 1097943857, (464,363), root:(509,472), state 0x80, keycode 31 (keysym 0x2b9, idotless), same_screen YES, XLookupString gives 2 bytes: (c4 b1) "ı" XFilterEvent returns: False

I used xmodmap to fix it back:

$ **xmodmap -e "keycode 31 = i I i I bar brokenbar"**

(it was keycode 31 = i I i I idotless bar)

Now it works.
And xev now shows:

KeyRelease event, serial 36, synthetic NO, window 0x5400001, root 0x296, subw 0x0, time 1099965050, (534,-197), root:(534,404), state 0x80, keycode 31 (keysym 0x7c, bar), same_screen YES, XLookupString gives 1 bytes: (7c) "|" XFilterEvent returns: False

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy