mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-31 06:59:28 +02:00
picom: just set a small corner-radius
This commit is contained in:
parent
ad25a8d915
commit
48abe47cfb
3 changed files with 3 additions and 44 deletions
|
@ -5,6 +5,7 @@ dpi=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
|
|||
POLYBAR_HEIGHT=$((20 * dpi / 96))
|
||||
SHADOW_RADIUS=$((12 * dpi / 96))
|
||||
SHADOW_OFFSET=$((SHADOW_RADIUS*2/3))
|
||||
CORNER_RADIUS=$((4 * dpi / 96))
|
||||
|
||||
# Configure picom
|
||||
mkdir -p $XDG_RUNTIME_DIR/i3
|
||||
|
@ -12,6 +13,7 @@ cat ~/.config/i3/dotfiles/picom.conf \
|
|||
| sed -e "s/@POLYBAR_HEIGHT@/$POLYBAR_HEIGHT/" \
|
||||
| sed -e "s/@SHADOW_RADIUS@/$SHADOW_RADIUS/" \
|
||||
| sed -e "s/@SHADOW_OFFSET@/$SHADOW_OFFSET/" \
|
||||
| sed -e "s/@CORNER_RADIUS@/$CORNER_RADIUS/" \
|
||||
> $XDG_RUNTIME_DIR/i3/picom.conf.new
|
||||
|
||||
# Put new configuration file in place
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue