Revert "Remove compton"

We actually still need compton (now picom) for screen tearing in bspwm,
so we'll add it back now. In the future it may be useful to keep
dotfiles in the repository even when I no longer use them, since the
configuration itself may still be useful.
This commit is contained in:
Donovan Glover 2021-11-15 12:36:08 -05:00
parent 2cc55ac815
commit 938573e03b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 51 additions and 0 deletions

View File

@ -45,6 +45,9 @@ wal -o ~/.config/wal/done.sh --theme base16-tomorrow-night
# Never blank the screen (disable power saving) # Never blank the screen (disable power saving)
xset s off -dpms xset s off -dpms
# Start compton
compton -b
# Start polybar and other things based on DPI # Start polybar and other things based on DPI
# Get the host width # Get the host width
HOST_WIDTH=$(bspc query -T -m | jq '.rectangle.width') HOST_WIDTH=$(bspc query -T -m | jq '.rectangle.width')

View File

@ -0,0 +1,30 @@
# New Start: A modern Arch workflow built with an emphasis on functionality.
# Copyright (C) 2017-2018 Donovan Glover
# Enable shadows (very important, as this makes everything look really nice)
shadow = true
# Disable shadow on docks like polybar
#no-dock-shadow = true
# Disable shadow for drag-and-drop functionality
no-dnd-shadow = true
# Fade windows when you open and close them, as well as change workspaces
fading = true
# Shadow settings
shadow-radius = 8
shadow-opacity = 0.5
shadow-offset-x = -10
shadow-offset-y = -10
# Fade settings
fade-in-step = 0.04
fade-out-step = 0.04
fade-delta = 10
# Add transparency to bspwm borders
#frame-opacity = 0.5
# vim:ft=dosini

18
compton/README.md Normal file
View File

@ -0,0 +1,18 @@
# compton
[compton][compton] is a desktop compositor for X11.
## Use Cases
compton can be used to:
- Reduce screen tear in certain environments
- Add elementary animations such as fading to your desktop
- Add shadows to your desktop
You should not use compton if:
- Your window manager or desktop environment already has a compositor
- You are not using X11
[compton]: https://github.com/yshui/compton