diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 040d525..949686b 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -347,7 +347,7 @@ colors: # # Window opacity as a floating point number from `0.0` to `1.0`. # The value `0.0` is completely transparent and `1.0` is opaque. -background_opacity: 0.85 +background_opacity: 0.75 #selection: #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" diff --git a/.config/deadd/deadd.conf b/.config/deadd/deadd.conf new file mode 100644 index 0000000..104a002 --- /dev/null +++ b/.config/deadd/deadd.conf @@ -0,0 +1,240 @@ +[notification-center] + +# Margin at the top of the notification center in pixels. This can be +# used to avoid overlap between the notification center and bars such +# as polybar or i3blocks. +marginTop = 0 + +# Margin at the bottom of the notification center in pixels. +marginBottom = 0 + +# Margin to the right of the notification center in pixels. +marginRight = 0 + + +# Width of the notification center in pixels. +width = 750 + +# Monitor on which the notification center will be printed. +monitor = 0 + +# If true, the notification center will open on the screen, on which the +# mouse is +followMouse = true + + +# (Optional) Command to run at startup. This can be used to setup +# button states. +# startupCommand = "deadd-notification-center-startup" + +# If newFirst is set to true, newest notifications appear on the top +# of the notification center. Else, notifications stack, from top to +# bottom. +newFirst = true + +# If true, the transient field in notifications will be ignored and +# the notification will be persisted in the notifiction center anyways +ignoreTransient = false + +# If true, markup (, , , , ) will be displayed properly +useMarkup = true + +# If set to true, the parameter noClosedMsg can be set on +# notifications. If noClosedMsg is set to true on a notification, +# DBUS NotificationClosed messages will not be send for this +# notification. +configSendNotiClosedDbusMessage = false + +# If set to true: If no icon is passed by the app_icon parameter +# and no application "desktop-entry"-hint is present, the notification +# center will try to guess the icon from the application name (if present). +# Default is true. +guessIconFromAppname = true + +# See section "Notification based scripting" for an explanation +#match = "title=Abc;body=abc":"app=notify-send" +#modify = "transient=false" +#run = "":"killall notify-send" + +[notification-center-notification-popup] + +# Default timeout used for notifications in milli-seconds. This can +# be overwritten with the "-t" option (or "--expire-time") of the +# notify-send command. +notiDefaultTimeout = 10000 + +# Margin above notifications (in pixels). This can be used to avoid +# overlap between notifications and a bar such as polybar or i3blocks. +distanceTop = 50 + +# Margin on the right of the notification (in pixels). +distanceRight = 50 + +# Vertical distance between 2 notifications (in pixels). +distanceBetween = 20 + +# Width of the notifications. +width = 400 + +# Monitor on which the notification will be printed. +monitor = 0 + +# If true, the notifications will open on the screen, on which the +# mouse is +followMouse = true + +# The display size of the application icons in the notification +# pop-ups and in the notification center +iconSize = 25 + +# The maximal display size of images that are part of notifications +# for notification pop-ups and in the notification center +maxImageSize = 100 + +[colors] +# Note about colors: Colors can be represented in (at least, I mean, +# who knows...) three different ways: +# 1. #RGB with "R", "G" and "B" hexadecimal numbers (0-9, A-F or +# a-f). +# 2. #RRGGBB with each occurence of "R", "G" and "B" are hexadecimal +# numbers (0-9, A-F or a-f). +# 3. rgba(R, G, B, A) where "R", "G" and "B" are between 0 and 255 +# and A is a floating point number between 0 and 1 representing +# the alpha channel (transparency). + + +# Background color for the notification center. +background = rgba(40, 42, 54, 0.75) + +# Background color for the notification popups. +notiBackground = rgba(40, 42, 54, 1.0) + +# Color for the text (summary, body and application name) in +# notification popups. +notiColor = rgba(248, 248, 242, 1.0) + +# Background color for "critical" notification popups. +critical = rgba(255, 85, 85, 1.0) + +# Color for the text (summary, body and application name) in +# "critical" notification popups. +criticalColor = rgba(248, 248, 242, 1.0) + +# Background color for "critical" notifications in notification +# center. +criticalInCenter = rgba(255, 85, 85, 1.0) + +# Color for the text (summary, body and application name) in +# "critical" notification in notification center. +criticalInCenterColor = rgba(248, 248, 242, 1.0) + + +# Global text color +labelColor = rgba(248, 248, 242, 1.0) + +### These button configurations are applied globaly (except they +### get overwritten in the [buttons] section. The buttons section +### only applies to the configurable buttons within the notification +### center, while these configs also apply to the buttons within +### notifications.) +# Color for the text in the buttons. +buttonColor = rgba(248, 248, 242, 1.0) + +# Background color of button +buttonBackground = rgba(98, 114, 164, 1.0) + +# Background color of button in hover state (mouse over) +buttonHover = rgba(189, 147, 249, 1.0) + +# Text color of button in hover state (mouse over) +buttonHoverColor = rgba(40, 42, 54, 1.0) + +[buttons] +### This section describes the configurable buttons within the +### notification center and NOT the buttons that appear in the +### notifications + +# Note: If you want your buttons in the notification center to be +# squares you should verify that the following equality holds: +# [notification-center]::width +# == [buttons]::buttonsPerRow * [buttons]::buttonHeight +# + ([buttons]::buttonsPerRow + 1) * [buttons]::buttonMargin + +# Numbers of buttons that can be drawn on a row of the notification +# center. +buttonsPerRow = 5 + +# Height of buttons in the notification center (in pixels). +buttonHeight = 60 + +# Horizontal and vertical margin between each button in the +# notification center (in pixels). +buttonMargin = 2 + +# Labels written on the buttons in the notification center. Labels +# should be written between quotes and separated by a colon. For +# example: +# labels = "VPN":"Bluetooth":"Wifi":"Screensaver" + +# Each label is represented as a clickable button in the notification +# center. The commands variable below define the commands that should +# be launched when the user clicks on the associated button. There +# should be the same number of entries in `commands` and in `labels` +# commands = "sudo vpnToggle":"bluetoothToggle":"wifiToggle":"screensaverToggle" + +# Color of the labels of the custom buttons in the notification +# center. +buttonColor = rgba(248, 248, 242, 1.0) + +# Color of the custom buttons' background in the notification center. +buttonBackground = rgba(98, 114, 164, 1.0) + +# Color of the custom buttons' background in the notification center +# when hovered. +buttonHover = rgba(68, 71, 90, 1.0) + +# Color of the labels of the custom buttons in the notification center +# when hovered. +buttonHoverColor = rgba(248, 248, 242, 1.0) + +# Text size of the custom buttons in the notification center. +buttonTextSize = 12px; + +# Color of the custom buttons' background in the notification center +# when its state is set to true as described in the Section Usage +buttonState1 = rgba(189, 147, 249, 1.0) + +# Color of the custom buttons' text in the notification center +# when its state is set to true as described in the Section Usage +buttonState1Color = rgba(40, 42, 54, 1.0) + +# Color of the custom buttons' background, hovering, in the +# notification center when its state is set to true as described in +# the Section Usage +buttonState1Hover = rgba(248, 248, 242, 1.0) + +# Color of the custom buttons' text, hovering, in the +# notification center when its state is set to true as described in +# the Section Usage +buttonState1HoverColor = rgba(40, 42, 54, 1.0) + +# Color of the custom buttons' background, in the notification center +# when the button is clicked and not yet set to a new value via the +# method as described in Section Usage +buttonState2 = rgba(68, 71, 90, 1.0) + +# Color of the custom buttons' text, in the notification center +# when the button is clicked and not yet set to a new value via the +# method as described in Section Usage +buttonState2Color = rgba(248, 248, 242, 1.0) + +# Color of the custom buttons' background, +# hovering, in the notification center when the button is clicked and +# not yet set to a new value via the method as described in Section +# Usage +buttonState2Hover = rgba(248, 248, 242, 1.0) + +# Color of the custom buttons' text, hovering, in the notification +# center when the button is clicked and not yet set to a new value via +# the method as described in Section Usage +buttonState2HoverColor = rgba(40, 42, 54, 1.0) \ No newline at end of file diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 8cca250..bd8c9a5 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -6,9 +6,6 @@ function fish_prompt powerline-shell --shell bare $status end -# Run neofetch when opening terminal (w/ empty line above) -# neofetch - # Color Scripts /bin/bash /opt/shell-color-scripts/colorscript.sh -r diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf new file mode 100644 index 0000000..8d31921 --- /dev/null +++ b/.config/picom/picom.conf @@ -0,0 +1,228 @@ +# Thank you code_nomad: http://9m.no/ꪯ鵞 +# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton + +################################# +# +# Backend +# +################################# + +# Backend to use: "xrender" or "glx". +# GLX backend is typically much faster but depends on a sane driver. +backend = "glx"; + +################################# +# +# GLX backend +# +################################# + +glx-no-stencil = true; + +# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. +# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, +# but a 20% increase when only 1/4 is. +# My tests on nouveau show terrible slowdown. +glx-copy-from-front = false; + +# GLX backend: Use MESA_copy_sub_buffer to do partial screen update. +# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. +# May break VSync and is not available on some drivers. +# Overrides --glx-copy-from-front. +# glx-use-copysubbuffermesa = true; + +# GLX backend: Avoid rebinding pixmap on window damage. +# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). +# Recommended if it works. +# glx-no-rebind-pixmap = true; + +# GLX backend: GLX buffer swap method we assume. +# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). +# undefined is the slowest and the safest, and the default value. +# copy is fastest, but may fail on some drivers, +# 2-6 are gradually slower but safer (6 is still faster than 0). +# Usually, double buffer means 2, triple buffer means 3. +# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers. +# Useless with --glx-use-copysubbuffermesa. +# Partially breaks --resize-damage. +# Defaults to undefined. +#glx-swap-method = "undefined"; + +################################# +# +# Shadows +# +################################# + +# Enabled client-side shadows on windows. +shadow = true; +# The blur radius for shadows. (default 12) +shadow-radius = 5; +# The left offset for shadows. (default -15) +shadow-offset-x = -5; +# The top offset for shadows. (default -15) +shadow-offset-y = -5; +# The translucency for shadows. (default .75) +shadow-opacity = 0.5; + +# Set if you want different colour shadows +# shadow-red = 0.0; +# shadow-green = 0.0; +# shadow-blue = 0.0; + +# The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches +# (most applications are fine, only apps that do weird things with xshapes or argb are affected). +# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher. +shadow-exclude = [ + "! name~=''", + "name = 'Notification'", + "name = 'Plank'", + "name = 'Docky'", + "name = 'Kupfer'", + "name = 'xfce4-notifyd'", + "name = 'cpt_frame_window'", + "name *= 'VLC'", + "name *= 'compton'", + "name *= 'picom'", + "name *= 'Chromium'", + "name *= 'Chrome'", + "class_g = 'Firefox' && argb", + "class_g = 'Conky'", + "class_g = 'Kupfer'", + "class_g = 'Synapse'", + "class_g ?= 'Notify-osd'", + "class_g ?= 'Cairo-dock'", + "class_g ?= 'Xfce4-notifyd'", + "class_g ?= 'Xfce4-power-manager'", + "_GTK_FRAME_EXTENTS@:c", + "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" +]; +# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) +shadow-ignore-shaped = false; + +################################# +# +# Opacity +# +################################# + +inactive-opacity = 1; +active-opacity = 1; +frame-opacity = 1; +inactive-opacity-override = false; + +# Dim inactive windows. (0.0 - 1.0) +# inactive-dim = 0.2; +# Do not let dimness adjust based on window opacity. +# inactive-dim-fixed = true; +# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. +# blur-background = true; +# Blur background of opaque windows with transparent frames as well. +# blur-background-frame = true; +# Do not let blur radius adjust based on window opacity. +blur-background-fixed = false; +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'" +]; + +################################# +# +# Fading +# +################################# + +# Fade windows during opacity changes. +fading = true; +# The time between steps in a fade in milliseconds. (default 10). +fade-delta = 4; +# Opacity change between steps while fading in. (default 0.028). +fade-in-step = 0.03; +# Opacity change between steps while fading out. (default 0.03). +fade-out-step = 0.03; +# Fade windows in/out when opening/closing +# no-fading-openclose = true; + +# Specify a list of conditions of windows that should not be faded. +fade-exclude = [ ]; + +################################# +# +# Other +# +################################# + +# Try to detect WM windows and mark them as active. +mark-wmwin-focused = true; +# Mark all non-WM but override-redirect windows active (e.g. menus). +mark-ovredir-focused = true; +# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events. +# Usually more reliable but depends on a EWMH-compliant WM. +use-ewmh-active-win = true; +# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. +detect-rounded-corners = true; + +# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows. +# This prevents opacity being ignored for some apps. +# For example without this enabled my xfce4-notifyd is 100% opacity no matter what. +detect-client-opacity = true; + +# Specify refresh rate of the screen. +# If not specified or 0, picom will try detecting this with X RandR extension. +refresh-rate = 0; + +# Vertical synchronization: match the refresh rate of the monitor +vsync = true; + +# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. +# Reported to have no effect, though. +dbe = false; + +# Limit picom to repaint at most once every 1 / refresh_rate second to boost performance. +# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, +# unless you wish to specify a lower refresh rate than the actual value. +#sw-opti = true; + +# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. +# Known to cause flickering when redirecting/unredirecting windows. +unredir-if-possible = false; + +# Specify a list of conditions of windows that should always be considered focused. +focus-exclude = [ ]; + +# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time. +detect-transient = true; +# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time. +# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too. +detect-client-leader = true; + +################################# +# +# Window type settings +# +################################# + +wintypes: +{ + tooltip = + { + # fade: Fade the particular type of windows. + fade = true; + # shadow: Give those windows shadow + shadow = false; + # opacity: Default opacity for the type of windows. + opacity = 0.85; + # focus: Whether to always consider windows of this type focused. + focus = true; + }; +}; + +###################### +# +# XSync +# See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d +# +###################### + +# Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users. +xrender-sync-fence = true;