tmux-dev-env-configuration/dotfiles/.local/bin/essentials

19 lines
656 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
#
# Execute essential script commands for startup
# speed up the x server
# From man xset:
# The first specifies the delay before autorepeat starts and the second specifies the re
# peat rate. In the case that the server supports the XKB extension, the delay is the
# number of milliseconds before autorepeat starts, and the rate is the number of repeats
# per second. If the rate or delay is not given, it will be set to the default value.
xset r rate 180 70 &
# make CapsLock behave like Ctrl:
setxkbmap -option ctrl:nocaps
# make short-pressed Ctrl behave like Escape:
# Default timeout is 500ms
xcape -t 250 -e 'Control_L=Escape'