Gen 423: Updated shell script nix files to point to sound files in the root directory

This commit is contained in:
pagedMov
2024-10-12 17:29:04 -04:00
parent 07b2f5cab9
commit ed16562d58
28 changed files with 34 additions and 34 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
compress = pkgs.writeShellScriptBin "compress" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
crs = pkgs.writeShellScriptBin "crs" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
extract = pkgs.writeShellScriptBin "extract" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
garbage-collect = pkgs.writeShellScriptBin "garbage-collect" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
homep = pkgs.writeShellScriptBin "homep" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
homer = pkgs.writeShellScriptBin "homer" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
invoke = pkgs.writeShellScriptBin "invoke" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
keybinds = pkgs.writeShellScriptBin "keybinds" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
lofi = pkgs.writeShellScriptBin "lofi" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
maxfetch = pkgs.writeShellScriptBin "maxfetch" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
mcd = pkgs.writeShellScriptBin "mcd" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
music = pkgs.writeShellScriptBin "music" (''

View File

@@ -1,10 +1,10 @@
{ pkgs }:
{ self, pkgs }:
{
nixcommit = pkgs.writeShellScriptBin "nixcommit" (''
#!/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
nix flake update
if [ -n "$2" ]; then
@@ -17,14 +17,14 @@ gen=$((gen + 1))
diffcheck=$(git status | grep "working tree clean")
if [ -n "$diffcheck" ]; then
scheck && runbg aplay ~/media/sound/sys/warning.wav
scheck && runbg aplay ${self}/media/sound/warning.wav
echo "Nothing to commit"
exit
fi
git add .
git commit -m "Gen $gen: $1"
git push
scheck && runbg aplay ~/media/sound/sys/gitpush.wav
scheck && runbg aplay ${self}/media/sound/gitpush.wav
builtin cd - || exit
'');
}

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
nixp = pkgs.writeShellScriptBin "nixp" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
nixr = pkgs.writeShellScriptBin "nixr" (''

View File

@@ -1,18 +1,18 @@
{ pkgs }:
{ self, pkgs }:
{
nixswitch = pkgs.writeShellScriptBin "nixswitch" (''
#!/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
nix flake update
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse-laptop"
if [ $? -eq 0 ]; then
scheck && runbg aplay ~/media/sound/sys/update.wav
scheck && runbg aplay ${self}/media/sound/update.wav
else
scheck && runbg aplay ~/media/sound/sys/error.wav
scheck && runbg aplay ${self}/media/sound/error.wav
fi
builtin cd "$OLDPWD" || exit
'');

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
nsp = pkgs.writeShellScriptBin "nsp" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
power-menu = pkgs.writeShellScriptBin "power-menu" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
record = pkgs.writeShellScriptBin "record" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
runbg = pkgs.writeShellScriptBin "runbg" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
s_check = pkgs.writeShellScriptBin "s_check" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
shutdown-script = pkgs.writeShellScriptBin "shutdown-script" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
splash = pkgs.writeShellScriptBin "splash" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
switchmon = pkgs.writeShellScriptBin "switchmon" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
toggle_blur = pkgs.writeShellScriptBin "toggle_blur" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
toggle_float = pkgs.writeShellScriptBin "toggle_float" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
toggle_oppacity = pkgs.writeShellScriptBin "toggle_oppacity" (''

View File

@@ -1,4 +1,4 @@
{ pkgs }:
{ self, pkgs }:
{
toggle_waybar = pkgs.writeShellScriptBin "toggle_waybar" (''