Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Actions #27

Open
filipe-maia opened this issue Oct 23, 2024 · 0 comments
Open

More Actions #27

filipe-maia opened this issue Oct 23, 2024 · 0 comments

Comments

@filipe-maia
Copy link

filipe-maia commented Oct 23, 2024

Hi.

Thanks for making this.

I found out where the actions of Thunar are stored, they are in this XML:
~/.config/Thunar/uca.xml

The only thing that I think it's important is that the unique-id probably has to be unique

Here it is the contents of my XML, feel free to add my actions to your project:
<?xml version="1.0" encoding="UTF-8"?> <actions> <action> <icon>Terminal</icon> <name>Abrir no Terminal</name> <submenu></submenu> <unique-id>1693314942715520-1</unique-id> <command>exo-open --working-directory %f --launch TerminalEmulator</command> <description>Abrir o terminal na pasta seleccionada</description> <range></range> <patterns>*</patterns> <directories/> </action> <action> <icon>folder</icon> <name>Abrir como Administrador</name> <submenu></submenu> <unique-id>1693314942715670-2</unique-id> <command>pkexec thunar %F</command> <description>Abrir a pasta com privilégios de administrador</description> <range></range> <patterns>*</patterns> <directories/> </action> <action> <icon>emblem-symbolic-link</icon> <name>Criar ligação</name> <submenu></submenu> <unique-id>1693314942715826-3</unique-id> <command>ln -s %f &apos;Link to %n&apos;</command> <description>Criar um atalho para cada um dos itens seleccionados</description> <range></range> <patterns>*</patterns> <directories/> <audio-files/> <image-files/> <other-files/> <text-files/> <video-files/> </action> <action> <icon>gtk-find</icon> <name>Procurar</name> <submenu></submenu> <unique-id>1693314942716031-5</unique-id> <command>catfish %f</command> <description>Procurar Ficheiros</description> <range></range> <patterns>*</patterns> <directories/> </action> <action> <icon></icon> <name>CHECKSUM CHECKER</name> <submenu></submenu> <unique-id>1707398510573517-1</unique-id> <command>gtkhash %f</command> <description></description> <range>*</range> <patterns>*</patterns> <audio-files/> <image-files/> <other-files/> <text-files/> <video-files/> </action> <action> <icon>scanner</icon> <name>PDF to PNG</name> <submenu></submenu> <unique-id>1707410150096927-3</unique-id> <command>pdftoppm %f %n -png</command> <description>Use PDFTOPPM</description> <range>*</range> <patterns>*.pdf</patterns> <image-files/> <other-files/> <text-files/> </action> <action> <icon>application-x-cd-image</icon> <name>TOC to CUE</name> <submenu></submenu> <unique-id>1723990117814655-2</unique-id> <command>toc2cue %f %n.cue</command> <description>Use TOC2CUE</description> <range>*</range> <patterns>*.toc</patterns> <other-files/> <text-files/> </action> <action> <icon>application-x-cd-image</icon> <name>CUE to TOC</name> <submenu></submenu> <unique-id>1723990494645178-3</unique-id> <command>xfce4-terminal -e &quot;cue2toc %f&quot; --hold</command> <description>Use CUE2TOC in xfce4-terminal</description> <range>*</range> <patterns>*.cue</patterns> <other-files/> <text-files/> </action> <action> <icon>application-x-cd-image</icon> <name>CUE to CU2</name> <submenu></submenu> <unique-id>1724254002139203-2</unique-id> <command>xfce4-terminal -e &quot;python /usr/local/bin/cue2cu2.py %f&quot; --hold</command> <description>Use CUE2CU2.PY in python in xfce4-terminal</description> <range>*</range> <patterns>*.cue</patterns> <other-files/> <text-files/> </action> <action> <icon>application-x-cd-image</icon> <name>Merge BIN Image</name> <submenu></submenu> <unique-id>1724254979744628-3</unique-id> <command>xfce4-terminal -e &quot;python /usr/local/bin/binmerge %f %n.MERGED&quot; --hold</command> <description>Use BINMERGE in python in xfce4-terminal</description> <range>*</range> <patterns>*.cue</patterns> <other-files/> <text-files/> </action> <action> <icon>application-x-cd-image</icon> <name>UnMerge BIN Image</name> <submenu></submenu> <unique-id>1724255098005473-4</unique-id> <command>xfce4-terminal -e &quot;python /usr/local/bin/binmerge --split %f %n.UNMERGED&quot; --hold</command> <description>Use BINMERGE --SPLIT in python in xfce4-terminal</description> <range>*</range> <patterns>*.cue</patterns> <other-files/> <text-files/> </action> <action> <icon>application-x-cd-image</icon> <name>Extract Disc Image Uncompressed</name> <submenu></submenu> <unique-id>1723986056952333-1</unique-id> <command>xfce4-terminal -e &quot;chdman extractcd -o %n.TOCorCUEorGDI -i %f&quot; --hold</command> <description>Use CHDMAN in xfce4-terminal</description> <range>*</range> <patterns>*.chd</patterns> <other-files/> </action> <action> <icon>input-gaming</icon> <name>Remove LibCrypt PS1protection</name> <submenu></submenu> <unique-id>1723997338511358-4</unique-id> <command>xfce4-terminal -e &quot;lcp %f&quot; --hold</command> <description>Use LCP in xfce4-terminal</description> <range>*</range> <patterns>*.bin</patterns> <other-files/> </action> <action> <icon>application-x-java-archive</icon> <name>Run in Terminal</name> <submenu></submenu> <unique-id>1729278705321435-1</unique-id> <command>xfce4-terminal -e &quot;java -jar %f&quot; --hold</command> <description>Run JAR file in java in xfce4-terminal</description> <range>*</range> <patterns>*.jar</patterns> <other-files/> </action> <action> <icon>application-x-java</icon> <name>Run</name> <submenu></submenu> <unique-id>1729640160214346-1</unique-id> <command>java -jar %f</command> <description>Run JAR file in java</description> <range>*</range> <patterns>*.jar</patterns> <other-files/> </action> <action> <icon>text-x-java</icon> <name>Run in Terminal</name> <submenu></submenu> <unique-id>1729278772801458-2</unique-id> <command>xfce4-terminal -e &quot;java %n&quot; --hold</command> <description>Run CLASS file in java in xfce4-terminal</description> <range>*</range> <patterns>*.class</patterns> <other-files/> </action> <action> <icon>applications-java</icon> <name>Compile</name> <submenu></submenu> <unique-id>1729278841681491-3</unique-id> <command>xfce4-terminal -e &quot;javac %f&quot; --hold</command> <description>Run JAVA file in javac in xfce4-terminal</description> <range>*</range> <patterns>*.java</patterns> <other-files/> <text-files/> </action> <action> <icon>python</icon> <name>Run in Terminal</name> <submenu></submenu> <unique-id>1724253392693726-1</unique-id> <command>xfce4-terminal -e &quot;python %f&quot; --hold</command> <description>Run PY file in python in xfce4-terminal</description> <range>*</range> <patterns>*.py</patterns> <other-files/> <text-files/> </action> <action> <icon>org.xfce.terminalemulator</icon> <name>Run in Terminal</name> <submenu></submenu> <unique-id>1723997572718304-5</unique-id> <command>xfce4-terminal -e %f --hold</command> <description>Run SH file in xfce4-terminal</description> <range>*</range> <patterns>*.sh</patterns> <other-files/> <text-files/> </action> <action> <icon>application-x-executable</icon> <name>MARK AS EXECUTABLE</name> <submenu></submenu> <unique-id>1710776996211345-1</unique-id> <command>chmod +x %f</command> <description></description> <range>*</range> <patterns>*</patterns> <other-files/> <text-files/> </action> <action> <icon>gitg</icon> <name>GIT add all</name> <submenu></submenu> <unique-id>1729282706972319-1</unique-id> <command>xfce4-terminal -e &quot;git add --all&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon>gitg</icon> <name>GIT commit</name> <submenu></submenu> <unique-id>1729282706972319-2</unique-id> <command>xfce4-terminal -e &quot;git commit&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon>gitg</icon> <name>GIT push</name> <submenu></submenu> <unique-id>1729282706972319-3</unique-id> <command>xfce4-terminal -e &quot;git push&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon>gitg</icon> <name>GIT fetch</name> <submenu></submenu> <unique-id>1729282706972319-4</unique-id> <command>xfce4-terminal -e &quot;git fetch&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon>gitg</icon> <name>GIT pull</name> <submenu></submenu> <unique-id>1729282706972319-5</unique-id> <command>xfce4-terminal -e &quot;git pull&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon>gitg</icon> <name>GIT log oneline</name> <submenu></submenu> <unique-id>1729679978501191-1</unique-id> <command>xfce4-terminal -e &quot;git log --oneline&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon>gitg</icon> <name>GIT branch</name> <submenu></submenu> <unique-id>1729680302059277-2</unique-id> <command>xfce4-terminal -e &quot;git branch&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon>gitg</icon> <name>GIT switch master</name> <submenu></submenu> <unique-id>1729680327523466-3</unique-id> <command>xfce4-terminal -e &quot;git switch master&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon>gitg</icon> <name>GIT switch main</name> <submenu></submenu> <unique-id>1729680349891210-4</unique-id> <command>xfce4-terminal -e &quot;git switch main&quot; --hold</command> <description></description> <range>*</range> <patterns>.git</patterns> <directories/> </action> <action> <icon></icon> <name>MAVEN clean install</name> <submenu></submenu> <unique-id>1729680684937407-5</unique-id> <command>xfce4-terminal -e &quot;mvn clean install&quot; --hold</command> <description></description> <range>*</range> <patterns>pom.xml</patterns> <text-files/> </action> <action> <icon></icon> <name>MAVEN clean package</name> <submenu></submenu> <unique-id>1729680816352836-6</unique-id> <command>xfce4-terminal -e &quot;mvn clean package&quot; --hold</command> <description></description> <range>*</range> <patterns>pom.xml</patterns> <text-files/> </action> <action> <icon></icon> <name>MAVEN release update versions</name> <submenu></submenu> <unique-id>1729681006351963-9</unique-id> <command>xfce4-terminal -e &quot;mvn release:update-versions&quot; --hold</command> <description></description> <range>*</range> <patterns>pom.xml</patterns> <text-files/> </action> <action> <icon></icon> <name>MAVEN release prepare</name> <submenu>xfce4-terminal -e &quot;mvn release:prepare&quot; --hold</submenu> <unique-id>1729680911648468-7</unique-id> <command></command> <description></description> <range>*</range> <patterns>pom.xml</patterns> <text-files/> </action> <action> <icon></icon> <name>mvn release:prepare -d resume=false</name> <submenu></submenu> <unique-id>1729681058272290-10</unique-id> <command>xfce4-terminal -e &quot;mvn release:prepare -d resume=false&quot; --hold</command> <description></description> <range>*</range> <patterns>pom.xml</patterns> <text-files/> </action> <action> <icon></icon> <name>MAVEN release perform</name> <submenu></submenu> <unique-id>1729680949912242-8</unique-id> <command>xfce4-terminal -e &quot;mvn release:perform&quot; --hold</command> <description></description> <range>*</range> <patterns>pom.xml</patterns> <text-files/> </action> <action> <icon></icon> <name>mvn release:perform -d resume=false</name> <submenu></submenu> <unique-id>1729681102598100-11</unique-id> <command>xfce4-terminal -e &quot;mvn release:perform -d resume=false&quot; --hold</command> <description></description> <range>*</range> <patterns>pom.xml</patterns> <text-files/> </action> </actions>

Also, here more actions:

https://www.reddit.com/r/xfce/comments/4nprpu/thunar_custom_actions/

https://www.reddit.com/r/xfce/comments/1exla3l/what_are_some_of_your_best_thunar_custom_actions/

https://www.reddit.com/r/xfce/comments/lwqgzm/tip_simple_custom_action_to_merge_pdf_files_in/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant