3 ms·
The Fn key is superfluous. Four modifiers, Shift, Ctrl, Meta and Alt are enough. Use Alt and Shift to produce more letters like Alt-Y on my keyboard to make «
by _nalply 3y ago
The Fn key is superfluous.
Four modifiers, Shift, Ctrl, Meta and Alt are enough. Use Alt and Shift to produce more letters like Alt-Y on my keyboard to make « (opening guillemets). If a keyboard has about 48 keys to produce letters or digits, and if you use Shift, Alt and Shift-Alt you can generate 192 different letters or digits, and that's enough.
I reserve Meta for handling the window manager (for me it's sway). Sometimes I use Shift-Meta or Ctrl-Meta or Alt-Meta with the cursor keys. This is simple. Meta is not for applications, it is for the window manager.
Then there are the F1 to F12 keys. I can toggle the brightness keys, either I press F8 to make the display brighter or Fn-F8. I would prefer to use Meta-F8 instead. That's doable, so perhaps I am going to edit my .config/sway/config file to ignore the Fn-Fx keys.
But to toggle the keyboard backlight, I have to press Fn-Space bar, because it is hardcoded in the hardware keyboard controller. Whatever.
- mattpallissard 3y ago> But to toggle the keyboard backlight, I have to press Fn-Space bar, because it is hardcoded in the hardware keyboard controller. Whatever. bindsym $mod+Shift+m exec ~/bin/power_backlight_keyboard.sh #!/usr/bin/env bash sys_keyboard_path=/sys/class/leds/tpacpi::kbd_backlight/brightness if [ -f $sys_keyboard_path ]; then current=$(<$sys_keyboard_path) if [ "$current" -eq 0 ]; then new=1 else new=0 fi sudo tee ${sys_keyboard_path} <<< ${new} >/dev/null fi