AutoYADM commit: 2025-06-03 20:05:22
This commit is contained in:
parent
d962ff6dc2
commit
e889b84eca
6 changed files with 595 additions and 1 deletions
9
.config/qutebrowser/userscripts/localhost
Normal file
9
.config/qutebrowser/userscripts/localhost
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [[ $1 -eq 'list' ]] && [[ -z $QUTE_COUNT ]];
|
||||
then
|
||||
PORTS="$(ss -nltp | tail -n +2 | awk '{print $4}' | awk -F: '{print $2}')"
|
||||
QUTE_COUNT=$(echo "$PORTS" | dmenu )
|
||||
fi
|
||||
|
||||
echo open -t localhost:${QUTE_COUNT:-8080} > $QUTE_FIFO
|
Loading…
Add table
Add a link
Reference in a new issue