Initial commit

testing, not all config files yet
This commit is contained in:
ObeseTermite 2024-06-13 06:39:06 -07:00
commit 427f800051
3 changed files with 49 additions and 0 deletions

11
.bashrc Normal file
View 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
View 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
View 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