Readme stuff and screenshots

This commit is contained in:
Daniel Flanagan 2020-11-06 11:16:29 -06:00
parent a41859f71c
commit 62e3287ca5
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
7 changed files with 39 additions and 39 deletions

View File

@ -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)"

View File

@ -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
View 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
View 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
View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
# Silent count
count $argv > /dev/null

View File

@ -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}"

View File

@ -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`