From 5011ed6adc06ba6e3a55953e25a36c9105bed171 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Tue, 2 May 2017 08:10:10 +0200 Subject: White version with several usability improvements --- compton.conf | 129 +++++++++++++++++++++++----------------------------------- config | 104 ++++++++++++++++++++++++++++++++-------------- i3status.conf | 10 +++-- 3 files changed, 130 insertions(+), 113 deletions(-) diff --git a/compton.conf b/compton.conf index 242f000..756ccbd 100644 --- a/compton.conf +++ b/compton.conf @@ -1,91 +1,64 @@ +backend = "xrender"; +#backend = "glx"; +paint-on-overlay = true; +glx-no-stencil = true; +# glx-no-rebind-pixmap = true; # does not work! definitelly! +# vsync = "opengl-swc"; +vsync = "drm"; +# vsync-use-glfinish = true + +# These are important. The first one enables the opengl backend. The last one is the vsync method. Depending on the driver you might need to use a different method. +# The other options are smaller performance tweaks that work well in most cases. +# You can find the rest of the options here: https://github.com/chjj/compton/wiki/perf-guide, and here: https://github.com/chjj/compton/wiki/vsync-guide + + # Shadow -shadow = true; # Enabled client-side shadows on windows. -no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows. -no-dnd-shadow = true; # Don't draw shadows on DND windows. -clear-shadow = true; # Zero the part of the shadow's mask behind the - # window. Fix some weirdness with ARGB windows. +#shadow = true; # Enabled client-side shadows on windows. +shadow = false; # Enabled client-side shadows on windows. +#no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows. +#no-dnd-shadow = true; # Don't draw shadows on DND windows. +# clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental). shadow-radius = 7; # The blur radius for shadows. (default 12) shadow-offset-x = -7; # The left offset for shadows. (default -15) shadow-offset-y = -7; # The top offset for shadows. (default -15) -shadow-opacity = 0.7; # The translucency for shadows. (default .75) -# shadow-red = 0.0; # Red color value of shadow. (0.0 - 1.0, defaults to 0) -# shadow-green = 0.0; # Green color value of shadow. (0.0 - 1.0, defaults to 0) -# shadow-blue = 0.0; # Blue color value of shadow. (0.0 - 1.0, defaults to 0) -shadow-exclude = [ "n:e:Notification" ]; # Exclude conditions for shadows. -# shadow-exclude = "n:e:Notification"; -shadow-ignore-shaped = true; # Avoid drawing shadow on all shaped windows - # (see also: --detect-rounded-corners) +shadow-exclude = [ + "! name~=''", + "n:e:Notification", + "n:e:Plank", + "n:e:Docky", + "g:e:Synapse", + "g:e:Kupfer", + "g:e:Conky", + "n:w:*Firefox*", + "n:w:*Chrome*", + "n:w:*Chromium*", + "class_g ?= 'Notify-osd'", + "class_g ?= 'Cairo-dock'", + "class_g ?= 'Xfce4-notifyd'", + "class_g ?= 'Xfce4-power-manager'", + "x = 0 && y = 0 && override_redirect = true" +]; -# Opacity -menu-opacity = 0.9; # The opacity for menus. (default 1.0) -inactive-opacity = 0.9; # Default opacity of inactive windows. (0.0 - 1.0) -# active-opacity = 0.8; # Default opacity for active windows. (0.0 - 1.0) -# frame-opacity = 0.8; # Opacity of window titlebars and borders. (0.1 - 1.0) -# inactive-opacity-override = true; # Let inactive opacity set by 'inactive-opacity' overrides - # value of _NET_WM_OPACITY. Bad choice. -alpha-step = 0.06; # XRender backend: Step size for alpha pictures. Increasing - # it may result in less X resource usage, - # Yet fading may look bad. -# inactive-dim = 0.2; # Dim inactive windows. (0.0 - 1.0) -# inactive-dim-fixed = true; # Do not let dimness adjust based on window opacity. -# blur-background = true; # Blur background of transparent windows. - # Bad performance with X Render backend. - # GLX backend is preferred. -# blur-background-frame = true; # Blur background of opaque windows with transparent - # frames as well. -blur-background-fixed = false; # Do not let blur radius adjust based on window opacity. -blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ]; - # Exclude conditions for background blur. +# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton 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. # Fading -fading = true; # Fade windows during opacity changes. -# fade-delta = 30; # The time between steps in a fade in milliseconds. (default 10). -fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028). -fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03). -# no-fading-openclose = true; # Avoid fade windows in/out when opening/closing. -fade-exclude = [ ]; # Exclude conditions for fading. - -# Other -backend = "xrender" # Backend to use: "xrender" or "glx". GLX backend is typically - # much faster but depends on a sane driver. -mark-wmwin-focused = true; # Try to detect WM windows and mark them as active. -mark-ovredir-focused = true; # Mark all non-WM but override-redirect windows active (e.g. menus). -use-ewmh-active-win = false; # 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. -detect-rounded-corners = true; # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. -detect-client-opacity = true; # Detect _NET_WM_OPACITY on client windows, useful for window - # managers not passing _NET_WM_OPACITY of client windows to frame - # windows. -refresh-rate = 0; # For --sw-opti: Specify refresh rate of the screen. 0 for auto. -vsync = "none"; # "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc" - # See man page for more details. -dbe = false; # Enable DBE painting mode. Rarely needed. -paint-on-overlay = true; # Painting on X Composite overlay window. Recommended. -sw-opti = false; # Limit compton to repaint at most once every 1 / refresh_rate. - # Incompatible with certain VSync methods. -unredir-if-possible = false; # Unredirect all windows if a full-screen opaque window is - # detected, to maximize performance for full-screen windows. -focus-exclude = [ ]; # A list of conditions of windows that should always be considered - # focused. -detect-transient = true; # Use WM_TRANSIENT_FOR to group windows, and consider windows in - # the same group focused at the same time. -detect-client-leader = true; # Use WM_CLIENT_LEADER to group windows. -invert-color-include = [ ]; # Conditions for windows to be painted with inverted color. +# fading = true; # Fade windows during opacity changes. +fade-delta = 8; # The time between steps in a fade in milliseconds. (default 10). +fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028). +fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03). +#no-fading-openclose = true; # Fade windows in/out when opening/closing -# GLX backend # GLX backend fine-tune options. See man page for more info. -# glx-no-stencil = true; # Recommended. -glx-copy-from-front = false; # Useful with --glx-swap-method, -# glx-use-copysubbuffermesa = true; # Recommended if it works. Breaks VSync. -# glx-no-rebind-pixmap = true; # Recommended if it works. -glx-swap-method = "undefined"; # See man page. +detect-client-opacity = true; # This prevents opacity being ignored for some apps. For example without this enabled my xfce4-notifyd is 100% opacity no matter what. # Window type settings wintypes: { - tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; }; - # fade: Fade the particular type of windows. - # shadow: Give those windows shadow - # opacity: Default opacity for the type of windows. - # focus: Whether to always consider windows of this type focused. + tooltip = { fade = true; shadow = true; }; }; + +#opacity-rule = ["90:class_g = 'URxvt'", "90:class_g = ''" ]; + + +# opacity-rule = ["90:class_g = 'xfce4-terminal'", "90:class_g = 'Xfce4-terminal'", "90:class_g = 'termite'", "90:class_g = 'i3bar'", "90:class_g = 'i3-frame'" ]; diff --git a/config b/config index 0a3cbde..67b177b 100644 --- a/config +++ b/config @@ -18,7 +18,8 @@ set $mod Mod4 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). # font pango:Neris SemiBold 10 -font pango:Source Code Pro Bold 11 +font pango:Source Code Pro SemiBold 11 +# font pango:Liberation Sans Mono Bold 11 # font pango:DejaVu Sans Mono 12 # Before i3 v4.8, we used to recommend this one as the default: @@ -36,6 +37,8 @@ floating_modifier $mod bindsym $mod+Return exec xfce4-appfinder bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff bindsym $mod+t exec xfce4-terminal +# bindsym $mod+t exec termite +# bindsym $mod+t exec urxvt bindsym $mod+e exec thunar # kill focused window @@ -58,6 +61,8 @@ bindsym $mod+Down focus down ; exec pkill -SIGRTMIN+11 i3blocks bindsym $mod+Up focus up ; exec pkill -SIGRTMIN+11 i3blocks bindsym $mod+Right focus right ; exec pkill -SIGRTMIN+11 i3blocks +bindsym Mod1+Tab focus right +bindsym Mod1+Shift+Tab focus left # alternatively, you can use the cursor keys: @@ -104,8 +109,8 @@ bindsym $mod+5 workspace 5 bindsym $mod+6 workspace 6 bindsym $mod+7 workspace 7 bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 +bindsym $mod+9 workspace music +bindsym $mod+0 workspace background # move focused container to workspace bindsym $mod+Shift+1 move container to workspace 1 @@ -116,8 +121,20 @@ bindsym $mod+Shift+5 move container to workspace 5 bindsym $mod+Shift+6 move container to workspace 6 bindsym $mod+Shift+7 move container to workspace 7 bindsym $mod+Shift+8 move container to workspace 8 -bindsym $mod+Shift+9 move container to workspace 9 -bindsym $mod+Shift+0 move container to workspace 10 +bindsym $mod+Shift+9 move container to workspace music +bindsym $mod+Shift+0 move container to workspace background + +workspace 1 output VGA1 +workspace 2 output VGA1 +workspace 3 output VGA1 +workspace 4 output VGA1 +workspace 5 output VGA1 +workspace 6 output HDMI1 +workspace 7 output HDMI1 +workspace 8 output HDMI1 +workspace "music" output HDMI1 +workspace "background" output HDMI1 + # reload the configuration file bindsym $mod+Shift+c reload @@ -130,17 +147,20 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu bindsym $mod+m move scratchpad bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center -for_window [class="^.*"] border normal 4 +for_window [class="^.*"] border normal 2 for_window [title="^.*Thunderbird"] border pixel 0 +for_window [title="^.*Chromium"] border pixel 0 +# for_window [title="^.*\|"] border pixel 4 for_window [title="^HexChat.*"] border pixel 0 for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks for_window [title="cairo-dock"] floating enable ; border none for_window[class="Plank"] floating enable,move absolute center - - -smart_borders on +for_window [class=".*"] title_format "┋ %title" +# for_window [con_id="__focused__"] title_format "%title" +# hide_edge_borders both +# smart_borders on # gaps inner 5 # gaps outer 5 @@ -152,16 +172,30 @@ bar { status_command i3status --config ~/.config/i3/i3status.conf # status_command i3blocks colors { - background #2a3448 - statusline #ffffff + # background #2a3448 + # statusline #ffffff + background #ffffff + statusline #000000 + focused_workspace #ffffff #ffffff #000000 + active_workspace #ffffff #ffffff #888888 + inactive_workspace #ffffff #ffffff #888888 + urgent_workspace #2f343a #900000 #ffffff + binding_mode #2f343a #900000 #ffffff } # tray_output VGA1 - # tray_padding 4 - # font pango:DejaVu Sans Mono 12 - # separator_symbol "┋" + # output HDMI1 + # tray_output HDMI1 + tray_padding 2 + #font pango:DejaVu Sans Mono 11 + #font pango:DejaVu Sans Mono 11 + #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 + # font pango:DejaVu Sans Mono, Icons 8 + # font pango:DejaVu Sans Mono, Awesome 8 + separator_symbol "┋" position bottom # output VGA1 binding_mode_indicator yes + # strip_workspace_numbers yes } @@ -169,13 +203,12 @@ bar { # client.unfocused #000000 #061229 #ffffff #ff0000 #000000 #colors: border backgr. text indicator -client.focused #2a3448 #5299bf #2a3448 #f0a000 -client.focused_inactive #061229 #061229 #ffffff #ffffff -client.unfocused #061229 #061229 #5299bf #ffffff +client.focused #ffffff #ffffff #000000 #000000 +client.focused_inactive #ffffff #ffffff #888888 #ffffff +client.unfocused #ffffff #ffffff #888888 #ffffff client.urgent #2a3448 #900000 #5299bf #ffffff client.background #000000 #000000 #000000 #ffffff -# hide_edge_borders both bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' bindsym Control+Mod1+Left workspace prev_on_output @@ -222,16 +255,16 @@ mode "resize" { # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. - bindsym $mod+h resize shrink width 10 px or 10 ppt - bindsym $mod+j resize grow height 10 px or 10 ppt - bindsym $mod+k resize shrink height 10 px or 10 ppt - bindsym $mod+l resize grow width 10 px or 10 ppt + bindsym $mod+h resize shrink width 1 px or 1 ppt + bindsym $mod+j resize grow height 4 px or 4 ppt + bindsym $mod+k resize shrink height 4 px or 4 ppt + bindsym $mod+l resize grow width 1 px or 1 ppt # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt + bindsym Left resize shrink width 1 px or 1 ppt + bindsym Up resize grow height 4 px or 4 ppt + bindsym Down resize shrink height 4 px or 4 ppt + bindsym Right resize grow width 1 px or 1 ppt # back to normal: Enter or Escape bindsym Return mode "default" @@ -242,13 +275,22 @@ mode "resize" { -exec --no-startup-id dbus-launch gnome-settings-daemon -exec --no-startup-id dbus-launch nm-applet -exec --no-startup-id dbus-launch nextcloud +assign [class="^Thunderbird$"] → background exec --no-startup-id setxkbmap -option caps:escape exec --no-startup-id xset r rate 330 40 +exec --no-startup-id dbus-launch gnome-settings-daemon +exec --no-startup-id dbus-launch nm-applet + +# exec xrandr --output HDMI1 --fb 3270x1080 --scale 1.05468x1.05468 +# exec xrandr --output HDMI1 --fb 3270x1080 --right-of VGA1 --panning 1350x1080+1920+0 --scale 1.05468x1.05468 +exec /usr/bin/xrandr-reset.sh + # start compositor... -exec --no-startup-id compton -bc -exec --no-startup-id nitrogen --restore +exec --no-startup-id dbus-launch nitrogen --restore +exec --no-startup-id dbus-launch compton -b --config /home/max/.config/i3/compton.conf +exec --no-startup-id dbus-launch setsid udiskie -2 -s +exec --no-startup-id dbus-launch nextcloud + + diff --git a/i3status.conf b/i3status.conf index fd093ed..0f8fd6f 100644 --- a/i3status.conf +++ b/i3status.conf @@ -8,9 +8,11 @@ general { colors = true - color_good = "#88ff88" - color_bad = "#880000" - interval = 5 + #color_good = "#88ff88" + #color_bad = "#880000" + color_good = "#00aa00" + color_bad = "#aa0000" + interval = 1 output_format = i3bar } @@ -80,7 +82,7 @@ run_watch VPN { } tztime local { - format = "%Y-%m-%d %H:%M:%S" + format = "%Y-%m-%d %H:%M" } load { -- cgit v1.2.3