rofi
This commit is contained in:
parent
254b42d5d9
commit
3d52fc00a1
13
stow_home/rofi/.config/rofi/scripts/add-link.sh
Executable file
13
stow_home/rofi/.config/rofi/scripts/add-link.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
edittags(){
|
||||
posts="/home/chrono/git/joelchrono12.ml/_posts/"
|
||||
file=$(/usr/bin/ls ${posts} | rofi -dmenu -p "Pick post")
|
||||
oldtags=$(cat ${posts}${file} | grep "tags:" | head -1 | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}')
|
||||
newtags=$(rofi -dmenu -p "Tags" -filter "$oldtags")
|
||||
sed -i "s/$oldtags/$newtags/g" "${posts}${file}"
|
||||
|
||||
}
|
||||
|
||||
|
||||
edittags
|
6
stow_home/rofi/.config/rofi/scripts/test.txt
Normal file
6
stow_home/rofi/.config/rofi/scripts/test.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
will this work I wonder?
|
||||
|
||||
What about spaces and such things?
|
||||
|
||||
I am curious to see
|
||||
|
47
stow_home/rofi/.config/rofi/scripts/toot
Normal file
47
stow_home/rofi/.config/rofi/scripts/toot
Normal file
|
@ -0,0 +1,47 @@
|
|||
[?1049h[22;0;0t[22;0t[?1h=[H[2J]11;?[?2004h[?u[c[?25h[?25l(B[m[H[2J[?1004h[?25h[?25l[?1002h[?1006h[38;2;192;202;245m[48;2;26;27;38m[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[K
|
||||
[J[H(B[m[38;2;59;66;97m[48;2;26;27;38m (B[m[38;2;59;66;97m[48;2;26;27;38m1 (B[m[38;2;192;202;245m[48;2;26;27;38m
|
||||
(B[m[38;2;26;27;38m[48;2;26;27;38m~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
~[K
|
||||
(B[m[38;2;21;22;30m[48;2;122;162;247m NORMAL (B[m[38;2;122;162;247m[48;2;59;66;97m test.txt (B[m[38;2;192;202;245m[48;2;22;22;30m unix | utf-8 | text (B[m[38;2;122;162;247m[48;2;59;66;97m 100% (B[m[38;2;21;22;30m[48;2;122;162;247m 0:0 (B[m[38;2;169;177;214m[48;2;26;27;38m
|
||||
[J[1;7H[?25h
|
Loading…
Reference in New Issue
Block a user