Update scripts.

- Create rgps as script instead of alias
- Add lots of new stuff
- Stop reloading spotifyd in start-tmux-music
This commit is contained in:
Érico Rolim 2020-08-12 23:17:15 -03:00
parent ab86f2612d
commit c74dd73645
8 changed files with 20 additions and 2 deletions

View File

@ -31,7 +31,6 @@ alias weather='curl wttr.in/'
## Aliases for quick grepping
alias rgmod='lsmod | rg -i'
alias rgps='ps aux | rg -i'
function randpw -a digits \
--description "Generates a random password with the specified number of digits, and copies it into the Wayland buffer."

View File

@ -0,0 +1,3 @@
#!/bin/sh
# https://www.tecmint.com/find-open-ports-in-linux/
exec netstat -lntu

View File

@ -0,0 +1,2 @@
#!/bin/sh
xpkg -a | fzf --reverse --cycle --preview 'xq {}'

3
media/.local/bin/cde-castor Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
GTK_THEME=cdetheme exec castor "$@"

View File

@ -2,7 +2,7 @@
# start spotify session on tmux
tmux new-session -d -s music fish -C spd
tmux new-session -d -s music fish
STATUS=$?
if [ $STATUS -eq 0 ]

2
utils/.local/bin/rgps Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
ps aux | rg -i "$@" | rg -v "(rg -i)|(rgps)"

7
utils/.local/bin/s-runsvdir Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
pids="$(pgrep -x runsvdir)"
for pid in $pids
do
ps -o pid,command --cols 1000 -p $pid
echo
done

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec swaymsg -t get_outputs | jq -r '.[] | [ .name,.rect.x,.rect.y,.transform ] | @csv' | awk -F ',' '{ print "output " $1 " position "$2" "$3 "\nouput " $1 " transform " $4}'