summaryrefslogtreecommitdiff
path: root/patch/thunar-refresh
blob: df912d73cb06ff59a24d02174b35f224331362e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

#<action>
#	<icon>view-refresh</icon>
#	<patterns>*</patterns>
#	<range/>
#	<name>Refresh</name>
#	<command>simulate-refresh</command>
#	<description>Refresh current content</description>
#	<directories/>
#</action>
# deps
sudo apt install xmlstarlet xdotool

sudo xmlstarlet ed -L \
	-i '/actions/action[1]' -t elem -n action \
	-s '/actions/action[1]' -t elem -n icon -v view-refresh \
	-s '/actions/action[1]' -t elem -n patterns -v '*' \
	-s '/actions/action[1]' -t elem -n range \
	-s '/actions/action[1]' -t elem -n name -v Refresh \
	-s '/actions/action[1]' -t elem -n command -v simulate-refresh \
	-s '/actions/action[1]' -t elem -n description -v 'Refresh current content' \
	-s '/actions/action[1]' -t elem -n directories \
	/etc/xdg/Thunar/uca.xml
sudo apt remove xmlstarlet

rm -f ~/.config/Thunar/uca.xml
thunar -q
pkill xfdesktop