diff --git a/regolith3/Xresources b/regolith3/Xresources new file mode 100644 index 0000000..618ec70 --- /dev/null +++ b/regolith3/Xresources @@ -0,0 +1,48 @@ +regolith.wallpaper.file: /home/sublet/Pictures/Papiers peints/ed.jpg +regolith.wallpaper.options: zoom +regolith.lockscreen.wallpaper.file: /home/sublet/Pictures/Papiers peints/ed.jpg +regolith.lockscreen.wallpaper.options: zoom + +gtk.theme_name: Materia-dark-compact +gtk.icon_theme_name: Paper +gtk.font_name: Roboto Regular 10 +gtk.document_font_name: Roboto Light 10 +gtk.monospace_font_name: FiraCode Nerd Font Mono Regular 10 + +gnome.terminal.font: FiraCode Nerd Font Mono Regular + +wm.font: Roboto Regular +wm.gaps.inner.size: 7 +wm.window.border.size: 0 +wm.bar.mode: hide +wm.program.notification_ui: $HOME/.config/rofi.custom/notifications/notification.sh +wm.program.launcher.app: $HOME/.config/rofi/scripts/launcher_t1 +wm.program.file_search: gpick --class=floating_window +wm.program.shutdown: $HOME/.config/rofi/scripts/powermenu_t2 + +wm.workspace.01.name: 1 +wm.workspace.02.name: 2 +wm.workspace.03.name: 3 +wm.workspace.04.name: 4 +wm.workspace.05.name: 5 +wm.workspace.06.name: 6 +wm.workspace.07.name: 7 +wm.workspace.08.name: 8 +wm.workspace.09.name: 9 +wm.workspace.10.name: 10 +wm.workspace.11.name: 11 +wm.workspace.12.name: 12 +wm.workspace.13.name: 13 +wm.workspace.14.name: 14 +wm.workspace.15.name: 15 +wm.workspace.16.name: 16 +wm.workspace.17.name: 17 +wm.workspace.18.name: 18 +wm.workspace.19.name: 19 + +wm.bindsym.1: Shift+semicolon +wm.bindsym.program.1: $HOME/.config/rofi.custom/emojis/emoji.sh +wm.bindsym.2: Shift+v +wm.bindsym.program.2: $HOME/.config/rofi.custom/clipboard/clipboard.sh + +i3xrocks.value.font: FiraCode Nerd Font Mono Retina diff --git a/regolith3/i3/config.d/99_startup-config b/regolith3/i3/config.d/99_startup-config new file mode 100644 index 0000000..11a60c7 --- /dev/null +++ b/regolith3/i3/config.d/99_startup-config @@ -0,0 +1,31 @@ +# Start utils +# polybar +exec_always --no-startup-id $HOME/.config/polybar/launch.sh & +# greenclip +exec --no-startup-id greenclip daemon & +# dunst +exec_always --no-startup-id $HOME/.config/dunst/start.sh & + +# Workspace config +workspace "$ws1" output eDP1 DP1-1 +workspace "$ws2" output DP2-2 DP1-2 +workspace "$ws3" output DP2-1 DP1-3 + +# Floating rules +for_window [class="Enpass"] floating enable +for_window [class="Gnome-calculator"] floating enable +for_window [class="Evolution-alarm-notify"] floating enable +for_window [class="copyq"] floating enable + +# Fig +no_focus [class="Fig" instance="fig" window_role="autocomplete"] +for_window [class="Fig" instance="fig" window_role="autocomplete"] border pixel 0 + +# Custom keybinds +set_from_resource $wm.bindsym.1 wm.bindsym.1 : +set_from_resource $wm.bindsym.program.1 wm.bindsym.program.1 : +bindsym $mod+$wm.bindsym.1 exec --no-startup-id "$wm.bindsym.program.1" + +set_from_resource $wm.bindsym.2 wm.bindsym.2 : +set_from_resource $wm.bindsym.program.2 wm.bindsym.program.2 : +bindsym $mod+$wm.bindsym.2 exec --no-startup-id "$wm.bindsym.program.2" diff --git a/regolith3/picom/config b/regolith3/picom/config new file mode 100644 index 0000000..621beb2 --- /dev/null +++ b/regolith3/picom/config @@ -0,0 +1,256 @@ +################################# +# +# Adapted for Regolith from https://gist.github.com/vemacs/458d101ad0bfb79ab70792ecb977c40c +# Modified per https://github.com/regolith-linux/regolith-desktop/issues/578 +# +################################# + +################################# +# +# 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. +# Useful with --glx-swap-method, as well. +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; + +use-damage = true; + +# Additionally use X Sync fence to sync clients' draw calls. +# Needed on nvidia-drivers with GLX backend for some users. +xrender-sync-fence = true; + +################################# +# +# Shadows +# +################################# + +# Enabled client-side shadows on windows. +shadow = true; +# The blur radius for shadows. (default 12) +shadow-radius = 7; +# 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.8; + +# 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 = 'rofi - dmenu'", + "name *= 'compton'", + "name *= 'picom'", + "name *= 'cpt_frame_window'", + "name *= 'cpt_frame_xcb_window'", + "name *= 'wrapper-2.0'", + "class_g = 'Conky'", + "class_g = 'Kupfer'", + "class_g = 'Synapse'", + "class_g = 'Polybar'", + "class_g ?= 'Notify-osd'", + "class_g ?= 'Cairo-dock'", + "class_g = 'Fig' && class_i = 'fig' && role = 'autocomplete'", + "_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.03; +# 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 = [ + "name = 'rofi - dmenu'", + "window_type = 'dock'", + "window_type = 'desktop'", + "class_g = 'Peek'", + "class_g = 'Fig' && class_i = 'fig_desktop' && role = 'autocomplete'" +]; + +################################# +# +# Fading +# +################################# + +# Fade windows during opacity changes. +fading = true; +# The time between steps in a fade in milliseconds. (default 10). +fade-delta = 3; +# 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 = [ + "name *= 'ilia'", + "name *= 'rofi'" +]; + +################################# +# +# 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; + +# Set VSync. +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 = false; + +# 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. +# paint-on-overlay may make the flickering less obvious. +unredir-if-possible = true; + +# Specify a list of conditions of windows that should always be considered focused. +focus-exclude = [ + "class_g = 'Fig' && class_i = 'fig' && role = 'autocomplete'" +]; + +# 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; + +# Prevent shadows from drawing across displays. +xinerama-shadow-crop = 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; + }; + dock = { shadow = true; } + dnd = { shadow = false; } + popup_menu = { + opacity = 1.0; + shadow = false; + fade = false; + } + dropdown_menu = { + opacity = 1.0; + fade = false; + } +}; + +################################# +# Corners # +################################# + +# Sets the radius of rounded window corners. When > 0, the compositor will +# round the corners of windows. Does not interact well with +# `transparent-clipping`. +corner-radius = 5 + +# Exclude conditions for rounded corners. +rounded-corners-exclude = [ +# "window_type = 'dock'", + "window_type = 'desktop'", + "class_g = 'Vmware-view'", + "class_g = 'Polybar'" +];