repos/scripts

Simple scripts that I made for my personal computer to map keys, make bluetooth work, brightness keys, etc.
Commits Files Refs README LICENSE
keyboardmap (21 lines)
   1 #!/bin/bash
   2 
   3 # swaps escape with caps-lock and lalt with lsuper
   4 
   5 # setxkbmap -option caps:swapescape
   6 
   7 # setxkbmap -option altwin:swap_lalt_lwin
   8 
   9 # setxkbmap -option altwin:swap_alt_win
  10 
  11 # make CapsLock behave like Ctrl:
  12 # setxkbmap -option ctrl:nocaps
  13 
  14 setxkbmap -option altwin:swap_lalt_lwin,altwin:swap_alt_win,ctrl:nocaps
  15 
  16 # make short-pressed Ctrl behave like Escape:
  17 xcape -e 'Control_L=Escape'
  18 
  19 # xcape -e 'Caps_Lock=Escape' -t 100
  20 
  21 # setxkbmap -option caps:super ; xcape -e 'Super_L=Escape'