From 351c1c959f05f38ba07d875a07552068990f1c91 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sun, 26 Mar 2023 10:42:36 +0500 Subject: [PATCH] added picom config --- config/i3/config | 3 +++ config/picom/picom.conf | 23 +++++++++++++++++++++++ restorefiles.sh | 6 ++++++ scripts/office2kdisplay.sh | 2 +- 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 config/picom/picom.conf diff --git a/config/i3/config b/config/i3/config index 3f32d08..38bd7d6 100644 --- a/config/i3/config +++ b/config/i3/config @@ -191,6 +191,9 @@ bar { } +# remove blue border on windows +for_window [class="^.*"] border pixel 0 + #restore displays exec --no-startup-id /home/shihaam/.scripts/office2kdisplay.sh diff --git a/config/picom/picom.conf b/config/picom/picom.conf new file mode 100644 index 0000000..c71fc88 --- /dev/null +++ b/config/picom/picom.conf @@ -0,0 +1,23 @@ +backend = "glx"; +no-dock-shadow = true; +active-opacity = 10; +frame-opacity = 10; +inactive-opacity-override = false; +blur-background = false; +corner-radius = 5; +shadow = false; +shadow-ignore-shaped = false; +no-fading-destroyed-argb = true; +no-fading-openclose = true; +no-fading-destroy = true; +fade-in-step = 1; +fade-out-step = 1; +fade-delta = 0; +daemon = true; +fading = false; +glx-no-stencil = true; +glx-no-rebind-pixmap = true; +use-damage = true; +xrender-sync-fence = true; +vsync = false; +unredir-if-possible = false; diff --git a/restorefiles.sh b/restorefiles.sh index f7fa588..d330532 100755 --- a/restorefiles.sh +++ b/restorefiles.sh @@ -68,3 +68,9 @@ then ln -s $PWD/local/share/fonts/* $HOME/.local/share/fonts/ fi ################################################################### +read -p "Would you like to restore picom config [Y/n]: " FONTS +if [ "$PICOM" = "Y" ] || [ "$PICOM" = "y" ] || [ "$PICOM" = "" ] +then + mkdir /home/shihaam/.config/picom/ + ln -s $PWD/config/picom/picom.conf $HOME/.config/picom/picom.conf +fi diff --git a/scripts/office2kdisplay.sh b/scripts/office2kdisplay.sh index fd8a850..206cc6f 100755 --- a/scripts/office2kdisplay.sh +++ b/scripts/office2kdisplay.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x360 --rotate normal --output HDMI-1 --off --output DP-1 --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-2 --off +xrandr --output eDP-1 --mode 1920x1080 --pos 0x360 --rotate normal --output HDMI-1 --off --output DP-1 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-2 --off