SalixOS Thunar Tips
Templates
In your home directory there is a directory called Templates, which is probably empty.
In this directory, you can create templates that then can be used in Thunar with a right click.
For this to work, the file ~/.config/user-dirs.dirs must exist and contain the path to the templates:
XDG_TEMPLATES_DIR="$HOME/Templates"
Bash template
Create a file called "bash.sh" in Templates with content:
#!/bin/sh
#
# Copyright (C) 2012 Your Name
#
Now you can create a bash file with the right-click in the directory you want with the content you have in the template.
Python template
Create a file called python.py in Templates with content:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#Copyright (C) 2012 Your Name.
#
Perl template
Create a file called perl.pl in Templates with content:
#!/usr/bin/perl -w
#
#Copyright (C) 2012 Your Name.
#
The content can be anything.
For example I have created html/css files that I then can use to make a website.
If you use OpenOffice/libre office, you can create templates even with these programs and save in Templates. I have created sub-directories in Templates, so it should be easier to find the template I want.
See Figure 1.
Figure 1.
Changed: 8-Jan-2012