Implemented custom system for creating and distributing color schemes based on wallpapers, and also cycling through wallpapers.
nixfmt'd the codebase
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
{ lib, config, pkgs, self, ... }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.shed = {
|
||||
aliases = {
|
||||
@@ -20,7 +26,7 @@
|
||||
mkexe = "chmod +x";
|
||||
shortdate = "date +%m-%d-%y";
|
||||
suvi = "sudoedit";
|
||||
suvide = "EDITOR=neovide; suvi";
|
||||
suvide = "EDITOR=neovide suvi";
|
||||
rustdev = "nix develop github:km-clay/devshells#rust";
|
||||
y = "yazi";
|
||||
|
||||
@@ -29,6 +35,8 @@
|
||||
gpush = "gitpush_sfx";
|
||||
gpull = "gitpull_sfx";
|
||||
grebase = "gitrebase_sfx";
|
||||
videconf = "EDITOR=neovide viconf";
|
||||
nix-shell = "command nix-shell --command 'exec shed'";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{ lib, config, self, pkgs, ... }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
self,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
shellsound = "${pkgs.myScripts.playshellsound}/bin/playshellsound";
|
||||
color-commit = "${pkgs.myScripts.color-commit}/bin/color-commit";
|
||||
@@ -15,6 +21,8 @@ in
|
||||
if [ "$0" = "-shed" ]; then
|
||||
${shellsound} $FLAKEPATH/assets/sound/login.wav
|
||||
fi
|
||||
|
||||
if [ -n "$LS_COLORS" ]; then unset LS_COLORS; fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -276,7 +276,6 @@ in
|
||||
|
||||
ls = /* bash */ ''
|
||||
eza -1 --group-directories-first --icons "$@"
|
||||
${shellsound} ${sndpath}/ls.wav
|
||||
'';
|
||||
|
||||
mkcd = /* bash */ ''
|
||||
@@ -286,7 +285,6 @@ in
|
||||
cd = /* bash */ ''
|
||||
eza -1 --group-directories-first --icons "$@" 2> /dev/null
|
||||
builtin cd "$@"
|
||||
${shellsound} ${sndpath}/cd.wav
|
||||
'';
|
||||
|
||||
hyprsock = /* bash */ ''
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
programs.shed = {
|
||||
functions = {
|
||||
_read_obj= /* bash */ ''
|
||||
_read_obj = /* bash */ ''
|
||||
_obj=""
|
||||
while read_key -v key; do
|
||||
if [[ "''${#_obj}" -ge 3 ]]; then return 1; fi
|
||||
|
||||
Reference in New Issue
Block a user