mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-16 11:51:13 +01:00
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:
parent
2cc55ac815
commit
938573e03b
@ -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')
|
||||||
|
30
compton/.config/compton.conf
Normal file
30
compton/.config/compton.conf
Normal 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
18
compton/README.md
Normal 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
|
Loading…
Reference in New Issue
Block a user