Dotfiles/rice-bowl/scripts/generators/generate_picom_config.sh

28 lines
810 B
Bash
Raw Normal View History

2023-02-03 18:12:16 +00:00
#!/bin/bash
RICE_PICOM_PATH=$RICE_DIR_CONFIG/picom
mkdir -p $RICE_PICOM_PATH
# Generate picom.conf
echo "# $RICE_GENERATED_HEADER" > $RICE_PICOM_PATH/picom.nogit.conf
cat $RICE_PICOM_PATH/picom.conf >> $RICE_PICOM_PATH/picom.nogit.conf
echo "
#################################
# Generated Part #
#################################
round-borders-rule = [
\"$RICE_BORDER_THICKNESS:window_type = 'unknown'\",
\"$RICE_BORDER_THICKNESS:window_type = 'toolbar'\",
\"$RICE_BORDER_THICKNESS:window_type = 'utility'\",
\"$RICE_BORDER_THICKNESS:window_type = 'splash'\",
\"$RICE_BORDER_THICKNESS:window_type = 'dialog'\",
\"$RICE_BORDER_THICKNESS:window_type = 'normal'\"
];
corner-radius = $RICE_BORDER_RADIUS;
round-borders = $RICE_BORDER_RADIUS;
" >> $RICE_PICOM_PATH/picom.nogit.conf