From 3a99d25b0b0eed8f34440a6f43e1cee55d97fc28 Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Fri, 28 Jun 2024 17:23:50 +1000 Subject: [PATCH] turned vsync off and added toggle keybind for picom --- .config/i3/config | 11 ++++++++++- .config/picom/picom.conf | 6 +++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 3265e8f..a703560 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -6,8 +6,10 @@ font pango:JetBrainsMonoNerdFont 14 exec --no-startup-id picom --no-fading-openclose exec --no-startup-id feh --bg-fill ~/.wallpapers/1 --bg-fill ~/.wallpapers/2 --bg-fill ~/.wallpapers/3 exec --no-startup-id xrdb -merge ~/.Xresources -exec_always --no-startup-id setxkbmap -option caps:escape,shift:both_capslock +exec --no-startup-id setxkbmap -option caps:escape,shift:both_capslock exec --no-startup-id xset s off -dpms +exec --no-startup-id export GTK_THEME="catppuccin-mocha-green-standard+default" + exec_always killall polybar exec_always --no-startup-id ~/.config/polybar/launch_polybar.sh @@ -32,6 +34,13 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +# Media player controls +bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause +bindsym XF86AudioPause exec playerctl play-pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + +bindsym F4 exec "$HOME/.config/picom/toggle.sh" # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf index 485c578..c42128d 100644 --- a/.config/picom/picom.conf +++ b/.config/picom/picom.conf @@ -222,8 +222,8 @@ backend = "xrender"; dithered-present = false; # Enable/disable VSync. -# vsync = false -vsync = true; +vsync = false +#vsync = true; # Try to detect WM windows (a non-override-redirect window with no # child that has 'WM_STATE') and mark them as active. @@ -257,7 +257,7 @@ detect-client-opacity = true; # to maximize performance for full-screen windows. Known to cause flickering # when redirecting/unredirecting windows. # -unredir-if-possible = true +# unredir-if-possible = true # Delay before unredirecting the window, in milliseconds. Defaults to 0. # unredir-if-possible-delay = 0