added bin to path and fixed scripts

nixos
Moritz Böhme 2021-10-06 17:37:15 +02:00
parent 7ad9eb5726
commit 42208d0029
7 changed files with 18 additions and 58 deletions

View File

@ -1,16 +0,0 @@
#!/bin/bash
if [ -d "$HOME/aur/" ]; then
cd "$HOME/aur/custom-repo/x64_86" || exit
repo-add -q custom.db.tar.gz ./*.pkg.*
if [[ "$#" -eq 1 ]]; then
aur sync --repo custom --root "$(pwd)" --no-view -u "$1" >/dev/null
else
aur sync --repo custom --root "$(pwd)" --no-view -u >/dev/null
fi
mv custom.db.tar.gz custom.db
mv custom.files.tar.gz custom.files
git add .
git commit -a -q -m "$(date +"%F %T")"
git push -q
fi

View File

@ -1,3 +1,2 @@
#!/bin/bash #!/usr/bin/env zsh
cat="$(which bat 2>/dev/null || which cat)" curl -s "cheat.sh/$1" | bat
curl -s "cheat.sh/$1" | eval "$cat"

View File

@ -1,36 +0,0 @@
#!/bin/bash
B='#00000000' # blank
C='#FFFFFF22' # clear ish
D='#bd93f9' # default
T='#ff79c6' # text
W='#ff5555' # wrong
V='#50fa7b' # verifying
/usr/bin/i3lock \
--insidever-color=$C \
--ringver-color=$V \
\
--insidewrong-color=$C \
--ringwrong-color=$W \
\
--inside-color=$B \
--ring-color=$D \
--line-color=$B \
--separator-color=$D \
\
--verif-color=$T \
--wrong-color=$T \
--time-color=$T \
--date-color=$T \
--layout-color=$T \
--keyhl-color=$W \
--bshl-color=$W \
\
--screen 1 \
--blur 5 \
--clock \
--indicator \
--time-str="%H:%M:%S" \
--date-str="%A, %m %Y" \
--keylayout 1

View File

@ -1,2 +0,0 @@
#!/bin/bash
sudo pacman -Qtdq | sudo pacman -Rns -

9
bin/sup Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
pushd ~/.dotfiles
if [[ $1 =~ (update) ]]; then
sudo nixos-rebuild switch --flake .# --recreate-lock-file
fi
if [[ $1 =~ (apply) ]]; then
sudo nixos-rebuild switch --flake .#
fi
popd

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
awk '/^[a-z]/ && last {print "<small>",$0,"\t",last,"</small>"} {last=""} /^#/{last=$0}' ~/.config/sxhkd/sxhkdrc | awk '/^[a-z]/ && last {print "<small>",$0,"\t",last,"</small>"} {last=""} /^#/{last=$0}' ~/.config/sxhkd/sxhkdrc |
column -t -s $'\t' | column -t -s $'\t' |

View File

@ -32,6 +32,12 @@
home.username = "moritz"; home.username = "moritz";
home.homeDirectory = "/home/moritz"; home.homeDirectory = "/home/moritz";
home.sessionPath = [ "/home/moritz/bin" ];
home.file."bin" = {
recursive = true;
source = ../bin;
};
xdg.userDirs = { xdg.userDirs = {
enable = true; enable = true;
createDirectories = true; createDirectories = true;