mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Add alacritty, bettrscreenlock config & update qtile, nvim
This commit is contained in:
parent
88cbabb443
commit
f407ac09bc
13 changed files with 304 additions and 36 deletions
|
|
@ -13,6 +13,6 @@ case "$1" in
|
|||
*.7z) 7z x $1 ;;
|
||||
*.deb) ar x $1 ;;
|
||||
*.tar.xz) tar xf $1 ;;
|
||||
*.tar.zst) unzstd $1 ;;
|
||||
*.tar.zst) unzstd $1 ;;
|
||||
*) echo "'$1' is not a valid file" ;;
|
||||
esac
|
||||
|
|
|
|||
16
bin/giti
16
bin/giti
|
|
@ -1,16 +1,12 @@
|
|||
#!/bin/sh
|
||||
add() {
|
||||
local file="$1"
|
||||
echo $file >> .gitignore
|
||||
echo $1 >> .gitignore
|
||||
}
|
||||
del() {
|
||||
local file="$1"
|
||||
sed -i "/$file/d" .gitignore
|
||||
sed -i "/$1/d" .gitignore
|
||||
}
|
||||
edit() {
|
||||
local oldname="$1"
|
||||
local newanme="$2"
|
||||
sed -in "s|$oldname|$newanme|g" .gitignore
|
||||
sed -in "s|$1|$2|g" .gitignore
|
||||
}
|
||||
show() {
|
||||
if [ -f '/usr/bin/bat' ]
|
||||
|
|
@ -22,8 +18,8 @@ show() {
|
|||
}
|
||||
|
||||
case "$1" in
|
||||
add|a) shift; add "$@" ;;
|
||||
del|d) shift; del "$@" ;;
|
||||
add|a) shift; add "$@" ;;
|
||||
del|d) shift; del "$@" ;;
|
||||
mv) shift; edit "$@" ;;
|
||||
show|s) shift; show ;;
|
||||
help) echo "add/a - filename add to ignore"
|
||||
|
|
@ -32,4 +28,4 @@ case "$1" in
|
|||
echo "show - show ignore file"
|
||||
;;
|
||||
*) echo "Command is not valid"
|
||||
esac
|
||||
esac
|
||||
2
bin/kbhl
2
bin/kbhl
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
case "$1" in
|
||||
"on"|"-on"|"--on"|1) xset led on ;;
|
||||
"on"|"-on"|"--on"|1) xset led on ;;
|
||||
"of"|"off"|"-off"|"--off"|0) xset led off ;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue