picom transparency scripts

This commit is contained in:
2005 2024-05-28 18:01:55 +02:00
parent 0be41fd01a
commit c904ddbbef
2 changed files with 9 additions and 0 deletions

View file

@ -81,6 +81,9 @@ in
"mod4+k" = "exec timew cancel"; "mod4+k" = "exec timew cancel";
"mod4+g" = "exec timew continue"; "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 # screenshot
# shit needs work # shit needs work

View 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