How can I add the View menu to right click in Thunar? I would like to be able to right click an empty area in the Thunar window to at least select between icon, compact list, or details list if not access the rest of the View menu. In reference to documentation at https://docs.xfce.org/xfce/thunar/custom-actions what custom action can I program to change the Thunar view of the current folder? I'm working in Linux Mint, XFCE4 desktop environment using Thunar 1.6.15.
1
There are 1 best solutions below
Related Questions in XFCE
- Not Seeing Cursor Movement in Dockerized FastAPI with noVNC and pyautogui
- XFCE keyboard shortcut with ~ or $HOME equivalent
- PyAutoGui on non-gnome OS (Lubuntu)
- Can't import a builtin module python3.12
- Issue with some accented letters in Ubuntu 22.04 and Sublime Text 4
- UnicodeDecodeError in python input function runned by XFCE Terminal
- Is defining repetitive Orage events by date possible?
- Creating a Thunar Custom Action to compare the md5sum of file against an md5 in the clipboard
- How I can disable xfce mouseover popups?
- xfce 2nd panel underneath 1st panel that will lock to the border
- Script to open xfce4-terminal drop-down and then run a command in that dropped window
- Can I use same software after switching Window Manager or Desktop Environment in Linux
- Path name no longer gets updated in tabs of xfce4-terminal once you update $prompt
- Error when running print dialog from GTK 3.0
- How to Pygtk WindowTypeHint to DOCK on XFCE and have it visible on the desktop
Related Questions in THUNAR
- Creating a Thunar Custom Action to compare the md5sum of file against an md5 in the clipboard
- How do you kill the thunar process?
- Escaping characters in bash
- Using wildcards in thunar search, search by pattern / bulk renamer
- How to tell google chrome to respect system default file browser (Thunar) on Xfce?
- Accidentally created a MATLAB file
- Thunar: Failed to open "smb://<address>": The specified location is not supported
- add View menu to thunar context menu
- D-Bus - 'ServiceUnknown' exception encountered while calling a remote procedure
- Using SFTP with Thunar file manager and a PEM key on Ubuntu
- source compiled to 'shared library'
- Where does Tumbler (of Thunar) store/cache its thumbnails?
- Python lxml: Ignore XML declaration (errors)
- How do Thunar and MC decide how to open a file?
- Script to append timestamp prefix to variable
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
One way to do this is by using xdotool to emit the keyboard shortcut for the different views and tying it to a Thunar custom action. To do so, you will need to create 3 custom actions:
For each of these, make sure you select the "Directories" box on the custom action's Appearance Conditions tab. On the Basic tab, enter the name, description and select an icon for each action and use the following as the command for each action:
This will create 3 new custom actions - one for each view. The drawback is that you will have 3 menu entries.
You can get away with 1 custom action (and 1 menu entry) if you are okay with cycling through the 3 options. To do so, create an executable file with the following content:
Create one new Custom Action with the title of "Cycle View" (and a description and icon of your choice) and set the command to point to this script. Also ensure that on the Appearance Conditions tab, that Directories are checked.
This script will cycle between Icon, Detailed and Compact view every time the custom action is selected.
There is no easy way to display the View menu from the right click. You could use the same procedure as above to send the keyboard shortcut for the view menu, but it will only open directly below the view menu on the menubar - in which case you might as well just click on View and save yourself one click.
Hope this helps.