Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-05-08 20:09:49

u9009
Member
Registered: 2015-12-11
Posts: 18

[SOLVED] How to change window opacity by mouse wheel or shortcut ?

I tried some advice here (https://ubuntuforums.org/showthread.php?t=2228495),
but it doesn't work. I want window opacity be changed on mouse wheel or on shortcut pressed (like in KDE).

Last edited by u9009 (2018-05-08 22:42:42)

Offline

#2 2018-05-08 20:37:14

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: [SOLVED] How to change window opacity by mouse wheel or shortcut ?

Offline

#3 2018-05-08 20:47:58

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] How to change window opacity by mouse wheel or shortcut ?

And if you're looking for a keyboard shortcut to toggle the transparency off and on, create a keyboard shortcut for the following command:

bash -c "[[ $(xfconf-query -c xfwm4 -p /general/frame_opacity) -gt 0 ]] && xfconf-query -c xfwm4 -p /general/frame_opacity -s 0 || xfconf-query -c xfwm4 -p /general/frame_opacity -s 100"

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#4 2018-05-08 21:00:21

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: [SOLVED] How to change window opacity by mouse wheel or shortcut ?

Though I think it'd be cooler if we could make it with just one command/shortcut, making it a toggle... Try:

xfconf-query -c xfwm4 -p /general/zoom_desktop -T

Offline

#5 2018-05-08 21:01:22

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: [SOLVED] How to change window opacity by mouse wheel or shortcut ?

Oops, hi ToZ! Should've previewed wink

Offline

#6 2018-05-08 21:45:28

u9009
Member
Registered: 2015-12-11
Posts: 18

Re: [SOLVED] How to change window opacity by mouse wheel or shortcut ?

Thanks Member, works great !
alcornoqui thanks, that works also.
Moderator - not what I meat, I wanted the whole window to be transparent, not just titlebar, anyway thanks for attention.

Last edited by u9009 (2018-05-08 21:45:55)

Offline

#7 2018-05-08 22:03:30

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: [SOLVED] How to change window opacity by mouse wheel or shortcut ?

LOL
smile
great!

Offline

#8 2018-05-08 22:37:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] How to change window opacity by mouse wheel or shortcut ?

u9009 wrote:

Moderator - not what I meat, I wanted the whole window to be transparent, not just titlebar, anyway thanks for attention.

In that case, if you have access to transset-df (look in your distro's repositories) you can use this shortcut command:

transset-df -at 0.15

...the last number is a float to indicate the transparency level from 0.0 (transparent) to 1.0 (opaque) of the currently active window.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2022-07-09 08:38:59

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [SOLVED] How to change window opacity by mouse wheel or shortcut ?

For anyone interested, Xfwm4 has a built-in property, which allows you to change window opacity on demand by scrolling a title bar horizontally.

It can be enabled via editing the themerc file of your current Xfwm4 theme, or by setting it in the Settings Editor. The property is horiz_scroll_opacity. Set it to true to enable it.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 546.92 KiB (Peak: 547.77 KiB) ]