added bin to path and fixed scripts
This commit is contained in:
parent
7ad9eb5726
commit
42208d0029
7 changed files with 18 additions and 58 deletions
16
bin/aursync
16
bin/aursync
|
@ -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
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/bash
|
||||
cat="$(which bat 2>/dev/null || which cat)"
|
||||
curl -s "cheat.sh/$1" | eval "$cat"
|
||||
#!/usr/bin/env zsh
|
||||
curl -s "cheat.sh/$1" | bat
|
||||
|
|
36
bin/lock
36
bin/lock
|
@ -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
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
sudo pacman -Qtdq | sudo pacman -Rns -
|
9
bin/sup
Executable file
9
bin/sup
Executable 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
|
|
@ -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 |
|
||||
column -t -s $'\t' |
|
||||
|
|
|
@ -32,6 +32,12 @@
|
|||
home.username = "moritz";
|
||||
home.homeDirectory = "/home/moritz";
|
||||
|
||||
home.sessionPath = [ "/home/moritz/bin" ];
|
||||
home.file."bin" = {
|
||||
recursive = true;
|
||||
source = ../bin;
|
||||
};
|
||||
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
|
|
Loading…
Reference in a new issue