瀏覽代碼

Update arch-i3.md

Nordstrand 1 年之前
父節點
當前提交
ecf2c8b8ec
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      personal-device/arch-i3.md

+ 3 - 3
personal-device/arch-i3.md

@@ -390,12 +390,12 @@ Note: Install _either_ the LightDM (X11 GUI) or Ly (TTY TUI) display manager, no
             ```
         1. (Optional) Reboot and try writing to the file without root.
     1. Add a script/program for changing the brightness:
-        1. Create a `/usr/local/bin/backlight` script to control the backlight. See the snippet below for the content.
+        1. Create a `/usr/local/bin/display-backlight` script to control the backlight. [Example script.](https://github.com/HON95/configs/blob/master/linux/display-backlight.sh)
     1. Add i3 keybinds:
         1. In the i3 config, add:
             ```
-            bindsym XF86MonBrightnessUp exec --no-startup-id /usr/local/bin/backlight +20%
-            bindsym XF86MonBrightnessDown exec --no-startup-id /usr/local/bin/backlight -20%
+            bindsym XF86MonBrightnessUp exec --no-startup-id /usr/local/bin/display-backlight +1
+            bindsym XF86MonBrightnessDown exec --no-startup-id /usr/local/bin/display-backlight -1
             ```
 1. (Optional) Setup better console font:
     1. (Note) Using the MesloLGS font. See [this](https://github.com/romkatv/powerlevel10k#fonts) for more info.