Initial commit
testing, not all config files yet
This commit is contained in:
commit
427f800051
11
.bashrc
Normal file
11
.bashrc
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#
|
||||||
|
# ~/.bashrc
|
||||||
|
#
|
||||||
|
|
||||||
|
# If not running interactively, don't do anything
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
|
||||||
|
export PATH=$PATH:~/bin
|
3
.xinitrc
Normal file
3
.xinitrc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
setxkbmap -layout us,ru -variant ,phonetic -option grp:win_space_toggle &
|
||||||
|
bash touchpad disable &
|
||||||
|
exec i3
|
35
bin/touchpad
Executable file
35
bin/touchpad
Executable file
|
@ -0,0 +1,35 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
xinput_touchpad_id=$(xinput | grep -i touchpad | sed 's/^.*id=\([0-9]*\).*/\1/')
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
|
||||||
|
enable)
|
||||||
|
xinput enable $xinput_touchpad_id
|
||||||
|
;;
|
||||||
|
disable)
|
||||||
|
xinput disable $xinput_touchpad_id
|
||||||
|
;;
|
||||||
|
id)
|
||||||
|
echo $xinput_touchpad_id
|
||||||
|
;;
|
||||||
|
--help | -h)
|
||||||
|
echo 'Usage: touchpad OPTION'
|
||||||
|
echo 'Used to manipulate touchpad.'
|
||||||
|
|
||||||
|
echo ''
|
||||||
|
echo ' --help: display this help and exit'
|
||||||
|
echo ' enable: enables touchpad'
|
||||||
|
echo ' disable: disables touchpad'
|
||||||
|
echo ' id: returns the xinput id of the touchpad'
|
||||||
|
;;
|
||||||
|
"")
|
||||||
|
echo 'No argument provided.'
|
||||||
|
echo 'Try "touchpad --help" for more information.'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo 'Invalid argument.'
|
||||||
|
echo 'Try "touchpad --help" for more information'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in a new issue