Reorganize fish scripts
parent
05068799c0
commit
35e33047e2
|
@ -51,6 +51,7 @@
|
|||
fira-code
|
||||
fira-code-symbols
|
||||
font-awesome_5
|
||||
aileron
|
||||
];
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
|
|
26
home.nix
26
home.nix
|
@ -27,9 +27,10 @@ in {
|
|||
# command line utilities
|
||||
ag
|
||||
fzy
|
||||
imagemagick
|
||||
jq
|
||||
tldr
|
||||
imagemagick
|
||||
unzip
|
||||
# graphical applications
|
||||
alacritty
|
||||
atom
|
||||
|
@ -68,9 +69,26 @@ in {
|
|||
matthewess/fish-autovenv
|
||||
'';
|
||||
".config/fish/completions/systemctl.fish".source =
|
||||
./scripts/systemctl.fish;
|
||||
".config/fish/functions/kbl.fish".source = ./scripts/kbl.fish;
|
||||
".config/fish/functions/mkdcd.fish".source = ./scripts/mkdcd.fish;
|
||||
./assets/systemctl.fish;
|
||||
".config/fish/functions/kbl.fish".text = ''
|
||||
function kbl -a level
|
||||
set -l initial (cat /sys/class/leds/tpacpi\:\:kbd_backlight/brightness)
|
||||
test -z "$level"; and set -l level $initial
|
||||
echo $level > /sys/class/leds/tpacpi\:\:kbd_backlight/brightness
|
||||
end
|
||||
'';
|
||||
".config/fish/functions/mkdcd.fish".text = ''
|
||||
function mkdcd -a target
|
||||
mkdir $target
|
||||
cd $target
|
||||
end
|
||||
'';
|
||||
".config/fish/functions/unz.fish".text = ''
|
||||
function unz -a target
|
||||
string match \*.zip $target; and set target (basename target)
|
||||
unzip -d $target $target
|
||||
end
|
||||
'';
|
||||
".config/i3status/config".text = ''
|
||||
# i3status configuration file.
|
||||
# see "man i3status" for documentation.
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
function kbl -a level
|
||||
test -z "$level"; and set -l level (cat /sys/class/leds/tpacpi\:\:kbd_backlight/brightness)
|
||||
echo $level > /sys/class/leds/tpacpi\:\:kbd_backlight/brightness
|
||||
end
|
|
@ -1,4 +0,0 @@
|
|||
function mkdcd -a target
|
||||
mkdir $target
|
||||
cd $target
|
||||
end
|
Loading…
Reference in New Issue