From d7272142a6428df8e8cc230cec42aa4e3c7c5c76 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 26 Jul 2023 01:23:48 +0200 Subject: [PATCH] fix(picom): xclip taking blurry screenshot --- config/i3/config | 8 ++-- config/picom/picom.conf | 85 ++++++++++++++++++++--------------------- 2 files changed, 46 insertions(+), 47 deletions(-) diff --git a/config/i3/config b/config/i3/config index c2b31bb..28511bf 100644 --- a/config/i3/config +++ b/config/i3/config @@ -29,8 +29,8 @@ new_window pixel 1 # hide_edge_borders both # Set inner/outer gaps -gaps inner 20 -gaps outer -12 +gaps inner 30 +gaps outer 0 # show window title bars (not officially supported with i3gaps) #default_border normal @@ -565,9 +565,9 @@ exec flatpak run com.discordapp.Discord # Screenshot bindsym Print exec --no-startup-id maim "/home/$USER/Images/$(date).png" bindsym $mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) "/home/$USER/Images/$(date).png" -bindsym Shift+Print exec --no-startup-id maim --select "/home/$USER/Images/$(date).png" +bindsym Shift+Print exec --no-startup-id maim -s -u "/home/$USER/Images/$(date).png" ## Clipboard Screenshots bindsym Ctrl+Print exec --no-startup-id maim | xclip -selection clipboard -t image/png bindsym Ctrl+$mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png -bindsym Ctrl+Shift+Print exec --no-startup-id maim --select | xclip -selection clipboard -t image/png +bindsym Ctrl+Shift+Print exec --no-startup-id maim -s -u | xclip -selection clipboard -t image/png -i diff --git a/config/picom/picom.conf b/config/picom/picom.conf index e77b363..6226322 100644 --- a/config/picom/picom.conf +++ b/config/picom/picom.conf @@ -1,54 +1,53 @@ -# Opacity -inactive-opacity = 0.4; +## Shadow +shadow = true; +no-dnd-shadow = true; +no-dock-shadow = false; +clear-shadow = true; +shadow-radius = 12; +shadow-offset-x = -17; +shadow-offset-y = -7; +shadow-opacity = 0.5; + +## fading +fading = true; +fade-delta = 0.25; +fade-in-step = 0.02; +fade-out-step = 0.02; +fade-exclude = [ +]; + +## opacity active-opacity = 0.8; +inactive-opacity = 0.4; +frame-opacity = 0.7; +opacity-rule = [ + "100:name *= 'Minecraft'" +]; -opacity-rule = [ - "100:name*='Minecraft'", - "100:class_g='maim'" -] - -# Border -corner-radius = 6 -round-borders = 6 - -# Blur -blur: -{ - method = "dual_kawase"; - strength = 12; - background-exclude = [ - "name*='rect-overlay'" - "name*='xclip'" - ]; -} - -wintypes: -{ - normal = { blur-background = true; }; - splash = { blur-background = false; }; -} - -# Fading -fading = false; -fade-in-step = 0.07; -fade-out-step = 0.07; -fade-exclude = [ ]; - -# Other +## other +backend = "glx"; mark-wmwin-focused = true; mark-ovredir-focused = true; detect-rounded-corners = true; detect-client-opacity = true; -vsync = true; +vsync = false; dbe = false; -unredir-if-possible = true; +paint-on-overlay = true; detect-transient = true; detect-client-leader = true; - -# GLX Backend -backend = "glx"; -glx-no-stencil = true +invert-color-include = [ ]; glx-copy-from-front = false; -use-damage = true; -glx-no-rebind-pixmap = true; +wintypes: +{ + tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; }; +}; +corner-radius = 10.0; +## blur +blur-background = true; +blur-background-frame = false; +blur-background-fixed = false; +blur-kern = "3x3box"; +blur-method = "dual_kawase"; +blur-strength = 10; +blur-background-exclude = [ "class_g = 'slop'", "class_g = 'Peek'", "class_g = 'kdeconnect.daemon'", "window_type = 'desktop'" ];