Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-05-20 12:48:08

siblek
Member
Registered: 2025-01-21
Posts: 2
LinuxChrome 135.0

share script for switching standalone and embedded image preview

Shotcut keyboard for switching between standalone and embedded image preview mode in Thunar (XFCE)

ezgif-23908e7da4f21d.gif

see in action https://www.youtube.com/watch?v=eAqL4tT … e=youtu.be

create sh file and then call from keyboard aplication shotcut

#!/bin/bash

MODE_KEY="/misc-image-preview-mode"
current=$(xfconf-query -c thunar -p $MODE_KEY)

if [[ "$current" == "THUNAR_IMAGE_PREVIEW_MODE_EMBEDDED" ]]; then
  xfconf-query -c thunar -p $MODE_KEY -s "THUNAR_IMAGE_PREVIEW_MODE_STANDALONE"
else
  xfconf-query -c thunar -p $MODE_KEY -s "THUNAR_IMAGE_PREVIEW_MODE_EMBEDDED"
fi

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 517.45 KiB (Peak: 531.74 KiB) ]