picom transparency scripts
This commit is contained in:
parent
0be41fd01a
commit
c904ddbbef
|
@ -81,6 +81,9 @@ in
|
|||
"mod4+k" = "exec timew cancel";
|
||||
"mod4+g" = "exec timew continue";
|
||||
|
||||
# picom
|
||||
"mod4+o" = "exec ${scripts}/picom_opacity_toggle.sh"; # toggle opacity (some games have it by default due to incorrect configuration i cannot find )
|
||||
|
||||
|
||||
# screenshot
|
||||
# shit needs work
|
||||
|
|
6
scripts/picom_opacity_toggle.sh
Executable file
6
scripts/picom_opacity_toggle.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
|
||||
#!/bin/sh
|
||||
window=$(i3-msg -t get_tree | jq -r ".. | select(.focused? == true) | .window")
|
||||
#window_name=$(xdotool getwindowclassname "$window" || xdotool getwindowname "$window" || echo "?")
|
||||
|
||||
picom-trans -w $window -t
|
Loading…
Reference in a new issue