Cleanup and small tweaks

This commit is contained in:
Riyyi
2020-04-08 01:29:18 +02:00
parent b9e5a8c9be
commit 55c6f990f7
14 changed files with 55 additions and 27 deletions
+5 -5
View File
@@ -10,10 +10,10 @@ BACKGROUND="&"
# List of directories to exclude
EXCLUDES="
Code
Documents
code
documents
dotfiles
Downloads
downloads
pictures
.cache
.clangd
@@ -34,8 +34,8 @@ pictures
# List of files to include
INCLUDES="
Documents/vm/backup/backup.sh
Documents/vm/commands.org
documents/vm/backup/backup.sh
documents/vm/commands.org
dotfiles/dotfiles.sh
"
+5 -5
View File
@@ -37,20 +37,20 @@ ${B}ARGS${N}
EOF
}
# If no option is provided
[ "$#" -eq 0 ] && help && exit
# Exit if no option is provided
[ "$#" -eq 0 ] && help && exit 1
# Set required X variables
export DISPLAY=:0
export XAUTHORITY="$XDG_DATA_HOME/xorg/Xauthority"
SCRIPT="$(basename "$0")"
# Option handling
SCRIPT="$(basename "$0")"
while getopts ':h?d:k:s:' opt; do
case $opt in
h)
help
exit
exit 1
;;
d)
dev="SYNA3602:00 0911:5288 Touchpad"
@@ -105,8 +105,8 @@ keyboard() {
fi
}
shift $((OPTIND - 2))
# Command handling
[ $OPTIND -ge 2 ] && shift $((OPTIND - 2))
if [ "$dev" = "Keyboard" ]; then
keyboard "$1"
else
+2 -1
View File
@@ -35,8 +35,8 @@ EOF
# Exit if no option is provided
[ "$#" -eq 0 ] && help && exit 1
SCRIPT="$(basename "$0")"
# Option handling
SCRIPT="$(basename "$0")"
while getopts ':h?e:w:' opt; do
case $opt in
h)
@@ -79,6 +79,7 @@ wireless() {
fi
}
# Command handling
[ $OPTIND -ge 2 ] && shift $((OPTIND - 2))
case "$1" in
1 | on)