summaryrefslogtreecommitdiff
path: root/patch/thunar-refresh
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2023-01-03 23:42:47 +0600
committerLibravatar Mubashshir <ahmubashshir@gmail.com>2023-01-03 23:42:47 +0600
commitf58c88726ec16c97f1eaa6645780f4832905100e (patch)
tree706be603399fea2969cc436769ee237b4a66122a /patch/thunar-refresh
parent312834342d06470ef24e51402a09997394336425 (diff)
downloadpatches-f58c88726ec16c97f1eaa6645780f4832905100e.tar.gz
patches-f58c88726ec16c97f1eaa6645780f4832905100e.zip
xfce: Implement refresh context menu
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'patch/thunar-refresh')
-rwxr-xr-xpatch/thunar-refresh22
1 files changed, 22 insertions, 0 deletions
diff --git a/patch/thunar-refresh b/patch/thunar-refresh
new file mode 100755
index 0000000..b48723f
--- /dev/null
+++ b/patch/thunar-refresh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+#<action>
+# <icon>view-refresh</icon>
+# <patterns>*</patterns>
+# <range/>
+# <name>Refresh</name>
+# <command>simulate-refresh</command>
+# <description>Refresh current content</description>
+# <directories/>
+#</action>
+
+xml 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