HOTSHOTS .- How can I configure it?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
pp4mnklinux
Posts: 880
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 548 times
Been thanked: 237 times
Contact:

HOTSHOTS .- How can I configure it?

Post by pp4mnklinux »

Hello everybody:

I'm using hotshots as my screenshot program, but I want to put it always on top.

I can do it each time with the appropriate option (config, always on top) but I wanna make this as the default option, so each time I run hotshots this option is active by default.

Can you, pls, explain me how to achieve this ??

Thanks a lot.

HAVE A NICE DAY

:arrow:

Starting with Easy OS => https://easyos.org/

F96CE_XFCE_FUSILLI ==> https://puppyxfcefusilli.wordpress.com/

YouTube_ _ _Channel ==> https://bit.ly/f96ce_xfce_fusilli_HOWTO

User avatar
Trapster
Posts: 154
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 41 times

Re: HOTSHOTS .- How can I configure it?

Post by Trapster »

Try:

Code: Select all

wmctrl -r "window name" -b add,above

You can find "window name" with:

Code: Select all

wmctrl -l
User avatar
pp4mnklinux
Posts: 880
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 548 times
Been thanked: 237 times
Contact:

Re: HOTSHOTS .- How can I configure it?

Post by pp4mnklinux »

Thanks @Trapster , I must do something incorrect, because it didn't work.

Thanks a lot for your help

CHEERS

:arrow:

Starting with Easy OS => https://easyos.org/

F96CE_XFCE_FUSILLI ==> https://puppyxfcefusilli.wordpress.com/

YouTube_ _ _Channel ==> https://bit.ly/f96ce_xfce_fusilli_HOWTO

User avatar
Trapster
Posts: 154
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 41 times

Re: HOTSHOTS .- How can I configure it?

Post by Trapster »

Try it with <window id> instead of <window name>

Code: Select all

wmctrl -i -r <window id> -b add,above

The window id will be the 0x0###### number from

Code: Select all

wmctrl -l

example:

Code: Select all

wmctrl -l
0x01400001 -1 puppypc28119 conky (puppypc28119)
0x01c00004  1 puppypc28119 LXTerminal
0x02000004  1 puppypc28119 sh
0x0220002b  0 puppypc28119 (1) Puppy Linux Discussion Forum - Post a reply — Mozilla Firefox
0x01c03e66  1 puppypc28119 LXTerminal
0x01e00023  1 linux_server ~ (Thumbs) 
0x01c03ebb  2 puppypc28119 LXTerminal
User avatar
Trapster
Posts: 154
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 41 times

Re: HOTSHOTS .- How can I configure it?

Post by Trapster »

The window id works better than window name.
It seems I don't have the correct libraries for hotshots so I can't test correctly.

But I used this for lxtask in Vanillapup.
Note: The window name was "Task Manager" and that what I had to use to "grep" the window id.

I do not know the "window name" of hotshots but when you find it, plug it into the script.
Below should start and place hotshots on top.

Code: Select all

#!/bin/sh

hotshots &
sleep 5  #give hotshots time to start

WINDOWNAME="actual window name here"  ## change this to the actual window name

WINDOWID=`wmctrl -l | grep "$WINDOWNAME" | awk '{print $1}'`  # get window id

echo "$WINDOWID"    #optional, to prove accurate WINDOWID when run from cli

wmctrl -i -r $WINDOWID -b add,above  # Command to put window on top

exit 0
User avatar
MochiMoppel
Posts: 1152
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 19 times
Been thanked: 381 times

Re: HOTSHOTS .- How can I configure it?

Post by MochiMoppel »

hotshots & sleep 1; wmctrl -r :ACTIVE: -b add,above

Post Reply

Return to “Users”