forked from andonome/lk
change formatting
input examples are now given as ```bash input $ARG1 ``` While outputs use md's '> ' sign as a quote.
This commit is contained in:
@@ -3,6 +3,8 @@ title: "brightness"
|
||||
tags: [ "Documentation", "hardware" ]
|
||||
---
|
||||
# Brightness
|
||||
/sys/class/backlight/*/brightness
|
||||
|
||||
Edit this file:
|
||||
|
||||
> /sys/class/backlight/*/brightness
|
||||
|
||||
|
@@ -6,11 +6,15 @@ tags: [ "Documentation", "keyboard" ]
|
||||
|
||||
Set layout to British English.
|
||||
|
||||
> setxkbmap -layout gb
|
||||
```bash
|
||||
setxkbmap -layout gb
|
||||
```
|
||||
|
||||
Or Polish with:
|
||||
|
||||
> setxkbmap -layout pl
|
||||
```bash
|
||||
setxkbmap -layout pl
|
||||
```
|
||||
|
||||
| Language | short |
|
||||
|:--------|:------|
|
||||
@@ -19,7 +23,9 @@ Or Polish with:
|
||||
|
||||
Set 'alt + shift', as the command which cycles through the British English, Polish and Serbian keyboard layout.
|
||||
|
||||
> setxkbmap -layout gb,pl,rs -option grp:alt_shift_toggle
|
||||
```bash
|
||||
setxkbmap -layout gb,pl,rs -option grp:alt_shift_toggle
|
||||
```
|
||||
|
||||
## Alt_GR
|
||||
|
||||
@@ -33,22 +39,30 @@ Remap, e.g., the right Windows key, to Alt_Gr.
|
||||
|
||||
Copy your keymap, e.g. if it's polish-1, then:
|
||||
|
||||
> cp /usr/share/kbd/keymaps/i386/qwerty/pl1.map.gz /usr/share/kbd/keymaps/*custom*.map.gz
|
||||
```bash
|
||||
cp /usr/share/kbd/keymaps/i386/qwerty/pl1.map.gz /usr/share/kbd/keymaps/*custom*.map.gz
|
||||
```
|
||||
|
||||
Then change that map:
|
||||
|
||||
> sudo vim /usr/share/kbd/keymaps/custom.map.gz
|
||||
```bash
|
||||
sudo vim /usr/share/kbd/keymaps/custom.map.gz
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
You can switch Escape and Caps Lock with a single line:
|
||||
|
||||
> sudo sh -c "gunzip -c /usr/share/kbd/keymaps/i386/qwerty/pl1.map.gz | sed 's/ Escape/ PLACEHOLDER/ ; s/Caps_Lock/Escape/g ; s/PLACEHOLDER/Caps_Lock/' | gzip > /usr/share/kbd/keymaps/custom.map.gz"
|
||||
```bash
|
||||
sudo sh -c "gunzip -c /usr/share/kbd/keymaps/i386/qwerty/pl1.map.gz | sed 's/ Escape/ PLACEHOLDER/ ; s/Caps_Lock/Escape/g ; s/PLACEHOLDER/Caps_Lock/' | gzip > /usr/share/kbd/keymaps/custom.map.gz"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Change the default keyboard mapping to the custom map:
|
||||
|
||||
> echo 'KEYMAP="/usr/share/kbd/keymaps/*custom*.map.gz"' | sudo tee /etc/vconsole.conf
|
||||
```bash
|
||||
echo 'KEYMAP="/usr/share/kbd/keymaps/*custom*.map.gz"' | sudo tee /etc/vconsole.conf
|
||||
```
|
||||
|
||||
Reboot to have changes take effect.
|
||||
|
Reference in New Issue
Block a user