Readme stuff and screenshots
This commit is contained in:
parent
a41859f71c
commit
62e3287ca5
|
@ -13,35 +13,7 @@ alias la 'll -A' # show all
|
|||
# other file aliases
|
||||
alias tree 'tree -Csuh'
|
||||
alias f fzf
|
||||
alias rcp 'rsync -ah --progress'
|
||||
|
||||
function ltl --description 'Echoes the newest file in the specified directory (or current directory if none is given)'
|
||||
set d $argv[1] .
|
||||
set -l l ""
|
||||
for f in $d[1]/*
|
||||
if test -z $l; set l $f; continue; end
|
||||
if command test $f -nt $l; and test ! -d $f
|
||||
set l $f
|
||||
end
|
||||
end
|
||||
echo $l
|
||||
end
|
||||
|
||||
function scount -d "Silent count" -w count
|
||||
count $argv > /dev/null
|
||||
end
|
||||
|
||||
function ltld --description 'Echoes the newest subdirectory in the specified directory (or current directory if none is given)'
|
||||
set d $argv[1] .
|
||||
set -l l ""
|
||||
for f in $d[1]/*
|
||||
if test -z $l; set l $f; continue; end
|
||||
if command test $f -nt $l; and test -d $f
|
||||
set l $f
|
||||
end
|
||||
end
|
||||
echo $l
|
||||
end
|
||||
alias rcp 'rsync -r -ah --progress'
|
||||
|
||||
alias vltl "$EDITOR (ltl)"
|
||||
alias cdltl "cd (ltld)"
|
||||
|
|
|
@ -1,6 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
scrot_dir="$NICE_HOME/img/scrots/"
|
||||
# shellcheck disable=SC2012
|
||||
latest_scrot="$(\ls -Art "${scrot_dir}" | tail -n 1)"
|
||||
krita "${scrot_dir}${latest_scrot}"
|
||||
krita "$(ltl "$NICE_HOME/img/scrots/")"
|
||||
|
|
13
bin/ltl
Executable file
13
bin/ltl
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
# Echoes the newest file in the specified directory (or current directory if none is given)
|
||||
|
||||
set d $argv[1] .
|
||||
set -l l ""
|
||||
for f in $d[1]/*
|
||||
if test -z $l; set l $f; continue; end
|
||||
if command test $f -nt $l; and test ! -d $f
|
||||
set l $f
|
||||
end
|
||||
end
|
||||
echo $l
|
13
bin/ltld
Executable file
13
bin/ltld
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
# Echoes the newest subdirectory in the specified directory (or current directory if none is given)
|
||||
|
||||
set d $argv[1] .
|
||||
set -l l ""
|
||||
for f in $d[1]/*
|
||||
if test -z $l; set l $f; continue; end
|
||||
if command test $f -nt $l; and test -d $f
|
||||
set l $f
|
||||
end
|
||||
end
|
||||
echo $l
|
6
bin/scount
Executable file
6
bin/scount
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
# Silent count
|
||||
|
||||
count $argv > /dev/null
|
||||
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
SCROT_DIR="$NICE_HOME/img/scrots"
|
||||
mkdir -p "$SCROT_DIR/"
|
||||
FILENAME="$SCROT_DIR/screenshot_%Y-%m-%d_%H-%M-%S_\$wx\$h.png"
|
||||
scrot "$@" "${FILENAME}" >/dev/null && echo "Saved screenshot to: ${FILENAME}"
|
||||
FILENAME="$SCROT_DIR/screenshot_$(date +%Y-%m-%d_%H-%M-%S).png"
|
||||
grim -t png "$@" "${FILENAME}" >/dev/null && echo "Saved screenshot to: ${FILENAME}"
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
# lytedev's dotfiles
|
||||
|
||||
This repository is undergoing some massive changes.
|
||||
![Desktop Screenshot][desktop-screenshot]
|
||||
|
||||
Tread lightly.
|
||||
My various configuration files. Don't use them directly, just take from them at
|
||||
will. And don't run this:
|
||||
|
||||
```
|
||||
curl -s -L https://git.lyte.dev/lytedev/dotfiles/raw/branch/master/bin/init-dotfiles | sh
|
||||
|
@ -10,7 +11,6 @@ curl -s -L https://git.lyte.dev/lytedev/dotfiles/raw/branch/master/bin/init-dotf
|
|||
|
||||
[🖥️ Upstream][upstream] • [🐙 GitHub Mirror][github]
|
||||
|
||||
|
||||
## To Do
|
||||
|
||||
+ Setup `nnn`
|
||||
|
|
Reference in a new issue