Gen 423: Updated shell script nix files to point to sound files in the root directory
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
compress = pkgs.writeShellScriptBin "compress" (''
|
compress = pkgs.writeShellScriptBin "compress" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
crs = pkgs.writeShellScriptBin "crs" (''
|
crs = pkgs.writeShellScriptBin "crs" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
extract = pkgs.writeShellScriptBin "extract" (''
|
extract = pkgs.writeShellScriptBin "extract" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
garbage-collect = pkgs.writeShellScriptBin "garbage-collect" (''
|
garbage-collect = pkgs.writeShellScriptBin "garbage-collect" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
homep = pkgs.writeShellScriptBin "homep" (''
|
homep = pkgs.writeShellScriptBin "homep" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
homer = pkgs.writeShellScriptBin "homer" (''
|
homer = pkgs.writeShellScriptBin "homer" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
invoke = pkgs.writeShellScriptBin "invoke" (''
|
invoke = pkgs.writeShellScriptBin "invoke" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
keybinds = pkgs.writeShellScriptBin "keybinds" (''
|
keybinds = pkgs.writeShellScriptBin "keybinds" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
lofi = pkgs.writeShellScriptBin "lofi" (''
|
lofi = pkgs.writeShellScriptBin "lofi" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
maxfetch = pkgs.writeShellScriptBin "maxfetch" (''
|
maxfetch = pkgs.writeShellScriptBin "maxfetch" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
mcd = pkgs.writeShellScriptBin "mcd" (''
|
mcd = pkgs.writeShellScriptBin "mcd" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
music = pkgs.writeShellScriptBin "music" (''
|
music = pkgs.writeShellScriptBin "music" (''
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
nixcommit = pkgs.writeShellScriptBin "nixcommit" (''
|
nixcommit = pkgs.writeShellScriptBin "nixcommit" (''
|
||||||
#!/run/current-system/sw/bin/bash
|
#!/run/current-system/sw/bin/bash
|
||||||
|
|
||||||
scheck && runbg aplay ~/media/sound/sys/nixswitch-start.wav
|
scheck && runbg aplay ${self}/media/sound/nixswitch-start.wav
|
||||||
builtin cd "$HOME/sysflakes" || exit
|
builtin cd "$HOME/sysflakes" || exit
|
||||||
nix flake update
|
nix flake update
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
@@ -17,14 +17,14 @@ gen=$((gen + 1))
|
|||||||
|
|
||||||
diffcheck=$(git status | grep "working tree clean")
|
diffcheck=$(git status | grep "working tree clean")
|
||||||
if [ -n "$diffcheck" ]; then
|
if [ -n "$diffcheck" ]; then
|
||||||
scheck && runbg aplay ~/media/sound/sys/warning.wav
|
scheck && runbg aplay ${self}/media/sound/warning.wav
|
||||||
echo "Nothing to commit"
|
echo "Nothing to commit"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Gen $gen: $1"
|
git commit -m "Gen $gen: $1"
|
||||||
git push
|
git push
|
||||||
scheck && runbg aplay ~/media/sound/sys/gitpush.wav
|
scheck && runbg aplay ${self}/media/sound/gitpush.wav
|
||||||
builtin cd - || exit
|
builtin cd - || exit
|
||||||
'');
|
'');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
nixp = pkgs.writeShellScriptBin "nixp" (''
|
nixp = pkgs.writeShellScriptBin "nixp" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
nixr = pkgs.writeShellScriptBin "nixr" (''
|
nixr = pkgs.writeShellScriptBin "nixr" (''
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
nixswitch = pkgs.writeShellScriptBin "nixswitch" (''
|
nixswitch = pkgs.writeShellScriptBin "nixswitch" (''
|
||||||
#!/run/current-system/sw/bin/bash
|
#!/run/current-system/sw/bin/bash
|
||||||
|
|
||||||
scheck && runbg aplay ~/media/sound/sys/nixswitch-start.wav
|
scheck && runbg aplay ${self}/media/sound/nixswitch-start.wav
|
||||||
builtin cd "$HOME/sysflakes" || exit
|
builtin cd "$HOME/sysflakes" || exit
|
||||||
|
|
||||||
nix flake update
|
nix flake update
|
||||||
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse-laptop"
|
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse-laptop"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
scheck && runbg aplay ~/media/sound/sys/update.wav
|
scheck && runbg aplay ${self}/media/sound/update.wav
|
||||||
else
|
else
|
||||||
scheck && runbg aplay ~/media/sound/sys/error.wav
|
scheck && runbg aplay ${self}/media/sound/error.wav
|
||||||
fi
|
fi
|
||||||
builtin cd "$OLDPWD" || exit
|
builtin cd "$OLDPWD" || exit
|
||||||
'');
|
'');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
nsp = pkgs.writeShellScriptBin "nsp" (''
|
nsp = pkgs.writeShellScriptBin "nsp" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
power-menu = pkgs.writeShellScriptBin "power-menu" (''
|
power-menu = pkgs.writeShellScriptBin "power-menu" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
record = pkgs.writeShellScriptBin "record" (''
|
record = pkgs.writeShellScriptBin "record" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
runbg = pkgs.writeShellScriptBin "runbg" (''
|
runbg = pkgs.writeShellScriptBin "runbg" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
s_check = pkgs.writeShellScriptBin "s_check" (''
|
s_check = pkgs.writeShellScriptBin "s_check" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
shutdown-script = pkgs.writeShellScriptBin "shutdown-script" (''
|
shutdown-script = pkgs.writeShellScriptBin "shutdown-script" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
splash = pkgs.writeShellScriptBin "splash" (''
|
splash = pkgs.writeShellScriptBin "splash" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
switchmon = pkgs.writeShellScriptBin "switchmon" (''
|
switchmon = pkgs.writeShellScriptBin "switchmon" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
toggle_blur = pkgs.writeShellScriptBin "toggle_blur" (''
|
toggle_blur = pkgs.writeShellScriptBin "toggle_blur" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
toggle_float = pkgs.writeShellScriptBin "toggle_float" (''
|
toggle_float = pkgs.writeShellScriptBin "toggle_float" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
toggle_oppacity = pkgs.writeShellScriptBin "toggle_oppacity" (''
|
toggle_oppacity = pkgs.writeShellScriptBin "toggle_oppacity" (''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs }:
|
{ self, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
toggle_waybar = pkgs.writeShellScriptBin "toggle_waybar" (''
|
toggle_waybar = pkgs.writeShellScriptBin "toggle_waybar" (''
|
||||||
|
|||||||
Reference in New Issue
Block a user