mirror of https://github.com/ericonr/dotfiles.git
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:
parent
ab86f2612d
commit
c74dd73645
|
@ -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."
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
# https://www.tecmint.com/find-open-ports-in-linux/
|
||||
exec netstat -lntu
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xpkg -a | fzf --reverse --cycle --preview 'xq {}'
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
GTK_THEME=cdetheme exec castor "$@"
|
|
@ -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 ]
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
ps aux | rg -i "$@" | rg -v "(rg -i)|(rgps)"
|
|
@ -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
|
|
@ -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}'
|
Loading…
Reference in New Issue