rewrite and refactor a lot, delete redundant configs
This commit is contained in:
parent
ca61775d84
commit
c191adcc99
44 changed files with 334 additions and 1607 deletions
|
@ -1,15 +0,0 @@
|
|||
# create ~/permaclip if it doesnt exist already
|
||||
mkdir -p $HOME/permaclip
|
||||
|
||||
tr_name=$(echo ${@% (*} | xargs)
|
||||
if [ x"$tr_name" != x"" ]; then
|
||||
nohup bash -c "xclip -selection c -i $HOME/permaclip/${tr_name% (*}" > /dev/null
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo -e "\0markup-rows\x1ftrue"
|
||||
|
||||
for reg in $(ls ~/permaclip); do
|
||||
content=$(cat ~/permaclip/$reg)
|
||||
echo -e "$reg (<i>${content:0:50}...</i>)"
|
||||
done
|
|
@ -1,16 +0,0 @@
|
|||
# create ~/permaclip if it doesnt exist already
|
||||
mkdir -p $HOME/permaclip
|
||||
|
||||
tr_name=$(echo $@ | xargs)
|
||||
if [ x"$tr_name" != x"" ]; then
|
||||
tr_name="${tr_name% (*}"
|
||||
clipdata=$(xclip -selection c -o)
|
||||
echo "$clipdata" > $HOME/permaclip/$tr_name
|
||||
fi
|
||||
|
||||
echo -e "\0markup-rows\x1ftrue"
|
||||
|
||||
for reg in $(ls ~/permaclip); do
|
||||
content=$(cat ~/permaclip/$reg)
|
||||
echo -e "$reg (<i>${content:0:30}</i>)"
|
||||
done
|
|
@ -1,2 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
pkgs.writeShellScriptBin "searchwolf" (builtins.readFile ./searchwolf.sh)
|
|
@ -1,25 +0,0 @@
|
|||
if [ x"$@" = x"exit" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case $ROFI_RETV in
|
||||
0)
|
||||
;;
|
||||
1)
|
||||
val=${@%%.*}
|
||||
res=$(echo $ROFI_DATA | jq -r ".[$val]" )
|
||||
coproc ( librewolf --new-tab $res > /dev/null 2>&1 )
|
||||
exit 0
|
||||
;;
|
||||
2)
|
||||
ddgrout=$(ddgr --json --num=25 "$@" --url-handler 'librewolf')
|
||||
|
||||
for i in $(echo $ddgrout | jq -r 'keys | @sh'); do
|
||||
title=$(echo $ddgrout | jq -r .[$i].title)
|
||||
url=$(echo $ddgrout | jq -r .[$i].url)
|
||||
echo "$i. $title ($url)"
|
||||
done
|
||||
|
||||
echo -e "\0data\x1f$(echo $ddgrout | jq -r .[].url | jq -sRc '. | split("\n") | [ .[] | select(length > 0) ]')"
|
||||
;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue