commit 5f37dee4cfbde57c49637e05c826f40e98a6b3bf
parent a744b3cd7bec144651bed0deeb66013fead613c8
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Tue, 16 Jul 2019 16:59:19 +1000
Compton blur
Diffstat:
4 files changed, 74 insertions(+), 125 deletions(-)
diff --git a/.config/.aliasrc b/.config/.aliasrc
@@ -27,4 +27,6 @@ alias STARWARS='telnet towel.blinkenlights.nl'
alias ytdl="youtube-dl --write-thumbnail --add-metadata"
+alias mountin='sudo mount /dev/sda1 /media/sea; sudo mount /dev/sdb2 /media/SSD'
+
# test Alias
diff --git a/.config/.compton.conf b/.config/.compton.conf
@@ -1,83 +1,59 @@
-backend = "glx";
-vsync = "opengl-swc";
-
+## Shadow
shadow = true;
-no-dock-shadow = true;
no-dnd-shadow = true;
+no-dock-shadow = false;
clear-shadow = true;
-
-shadow-radius = 10;
-shadow-offset-x = -5;
-shadow-offset-y = 0;
-shadow-opacity = 0.8;
-shadow-red = 0.11;
-shadow-green = 0.12;
-shadow-blue = 0.13;
-shadow-exclude = [
- "name = 'Notification'",
- "_GTK_FRAME_EXTENTS@:c",
- "class_g = 'i3-frame'",
- "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
- "_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'",
- "!I3_FLOATING_WINDOW@:c"
-];
-shadow-ignore-shaped = true;
-
-alpha-step = 0.06;
-blur-background = false;
-blur-background-fixed = true;
-blur-kern = "7x7box";
-blur-background-exclude = [
- "class_g = 'i3-frame'",
- "window_type = 'dock'",
- "window_type = 'desktop'",
- "_GTK_FRAME_EXTENTS@:c"
-];
-
-# Duplicating the _NET_WM_STATE entries because compton cannot deal with atom arrays :-/
-opacity-rule = [
- "97:class_g = 'Termite' && !_NET_WM_STATE@:32a",
-
- "0:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN'",
- "0:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_HIDDEN'",
- "0:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_HIDDEN'",
- "0:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_HIDDEN'",
- "0:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_HIDDEN'",
-
- "90:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_STICKY'",
- "90:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_STICKY'",
- "90:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_STICKY'",
- "90:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_STICKY'",
- "90:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_STICKY'"
+shadow-radius = 12;
+shadow-offset-x = -17;
+shadow-offset-y = -7;
+shadow-opacity = 0.5;
+shadow-exclude = [ "class_g = 'Polybar'"];
+
+
+## fading
+fading = true;
+fade-delta = 0.25;
+fade-in-step = 0.02;
+fade-out-step = 0.02;
+fade-exclude = [
];
-fading = false;
-fade-delta = 7;
-fade-in-step = 0.05;
-fade-out-step = 0.05;
-fade-exclude = [];
+## opacity
+active-opacity = 1.0;
+frame-opacity = 0.7;
+opacity-rule = [ "80:class_g = 'code-oss'" ];
+## other
+backend = "glx";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
-use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
+vsync = "none";
dbe = false;
paint-on-overlay = true;
-glx-no-stencil = true;
-glx-copy-from-front = false;
-glx-swap-method = "undefined";
-sw-opti = true;
-unredir-if-possible = false;
-focus-exclude = [];
+focus-exclude = [ "class_g = 'Cairo-clock'" ,
+ "class_g = 'CoverGloobus'",
+ "class_g = 'Tilda'",
+ "class_g = 'Firefox'",
+ "class_g = 'Firefox-esr'"
+];
detect-transient = true;
detect-client-leader = true;
-invert-color-include = [];
-
-wintypes: {
- tooltip = { fade = true; shadow = false; opacity = 1.00; focus = true; };
+invert-color-include = [ ];
+glx-copy-from-front = false;
+glx-swap-method = "undefined";
+wintypes:
+{
+ tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; };
};
-
-opacity-rule = ["40:class_g = 'Gnome-terminal'"];
+## blur
+blur-background = true;
+blur-background-frame = false;
+blur-background-fixed = false;
+blur-kern = "3x3box";
+blur-method = "kawase";
+blur-strength = 10;
+blur-background-exclude = [ "window_type = 'desktop'" ];
diff --git a/.config/i3/config b/.config/i3/config
@@ -1,7 +1,4 @@
# I3 CONFIG
-
-# i3 config file (v4)
-#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# WINDOWS KEY MODIFIER
@@ -12,81 +9,62 @@ set $mod Mod4
# is used in the bar {} block below.
font pango:monospace 8
-# 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:DejaVu Sans Mono 8
-
-# Before i3 v4.8, we used to recommend this one as the default:
-# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
-# The font above is very space-efficient, that is, it looks good, sharp and
-# clear in small sizes. However, its unicode glyph coverage is limited, the old
-# X core fonts rendering does not support right-to-left and this being a bitmap
-# font, it doesn’t scale on retina/hidpi displays.
-
-# GENERAL
+# Monitors
workspace 1 output HDMI-0
workspace 2 output DVI-I-0
# SOURCE BASH_PROFILE
exec --no-startup-id source $HOME/.bash_profile
+# Choose random background
exec --no-startup-id feh --randomize --bg-fill ~/Pictures/Wallpapers/*
+
+# Force monitor positions
exec --no-startup-id xrandr --output DVI-I-0 --right-of HDMI-0
-exec --no-startup-id setxkbmap -layout us
-#exec --no-startup-id
-exec_always --no-startup-id compton
+# Force US keyboard layout
+exec --no-startup-id setxkbmap -layout us
+# Compositor
+exec_always --no-startup-id compton --backend glx --blur-method kawase --blur-strength 4 --config ~/.config/.compton.conf
+#exec_always --no-startup-id compton #--active-opacity 0.9 --blur-background #compton
# I3 GAPS
-# You can also use any non-zero value if you'd like to have a border
+# # Not sure if this actually does anything
for_window [class=".*"] gaps inner pixel 10
for_window [class=".*"] border pixel 0
-
+# Status bar
bar {
# Height in pixels
position top
height 10
- #i3bar_command i3bar -t
+
#status_command i3status
+ # Custom i3status bar
status_command ~/.config/i3/statusbar.sh
-}
+}
-# APPLICATIONS BROKEN
+# Application Shortcuts
bindsym $mod+F1 exec google-chrome
bindsym $mod+F2 exec nautilus
bindsym $mod+F3 exec firefox
-bindsym $mod+F4 exec google-chrome
-bindsym $mod+F5 exec google-chrome
+bindsym $mod+F4 exec wine '/media/sea/Games/wow/World of Warcraft/WoW.exe'
+bindsym $mod+F5 exec s-tui
+bindsym $mod+F6 exec google-chrome
+# printscreen takes screenshot with flameshot
bindsym Print exec flameshot gui
-
-
-
#bindsym $mod2+r exec --no-startup-id ranger
#bindsym $mod2+c exec --no-startup-id google-chrome
-
-
-#colors {
-# background #222222
-# statusline #eeeeee
-# separator #666666
-# # border backgr. text
-# focused_workspace #4c7899 #285577 #ffffff
-# active_workspace #333333 #5f676a #ffffff
-# inactive_workspace #333333 #222222 #888888
-# urgent_workspace #2f343a #900000 #ffffff
-#}
-
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
-bindsym $mod+\ exec xterm
+#bindsym $mod+\ exec xterm
# kill focused window
bindsym $mod+Shift+q kill
@@ -94,24 +72,22 @@ bindsym $mod+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
-# There also is the (new) i3-dmenu-desktop which only displays applications
-# shipping a .desktop file. It is a wrapper around dmenu, so you need that
-# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
-
# BORROWED FROM LUKE SMITH
-# BROKEN?
bindsym $mod+Shift+y exec --no-startup-id i3resize left
bindsym $mod+Shift+u exec --no-startup-id i3resize down
bindsym $mod+Shift+i exec --no-startup-id i3resize up
bindsym $mod+Shift+o exec --no-startup-id i3resize right
+# Control inner gap size
bindsym $mod+s gaps inner current plus 5
bindsym $mod+Shift+s gaps inner current minus 5
+# Reset gaps
bindsym $mod+Shift+d gaps inner current set 10; gaps outer current set 20
+# Control outer gaps
bindsym $mod+z gaps outer current plus 5
bindsym $mod+Shift+z gaps outer current minus 5
@@ -123,7 +99,7 @@ bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
-# alternatively, you can use the cursor keys:
+# Or using arrow keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
@@ -135,7 +111,7 @@ bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
-# alternatively, you can use the cursor keys:
+# or using arrow keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
@@ -219,10 +195,10 @@ 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 j resize shrink width 10 px or 10 ppt
- bindsym k resize grow height 10 px or 10 ppt
- bindsym l resize shrink height 10 px or 10 ppt
- bindsym semicolon resize grow width 10 px or 10 ppt
+ bindsym h resize shrink width 10 px or 10 ppt
+ bindsym j resize grow height 10 px or 10 ppt
+ bindsym k resize shrink height 10 px or 10 ppt
+ bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
@@ -238,8 +214,3 @@ mode "resize" {
bindsym $mod+r mode "resize"
-# Start i3bar to display a workspace bar (plus the system information i3status
-# finds out, if available)
-#bar {
-# status_command i3status
-#}
diff --git a/.config/i3status/config b/.config/i3status/config
@@ -24,7 +24,7 @@ ethernet enp3s0 {
tztime local {
#format = "%Y-%m-%d %H:%M:%S"
- format = "%H:%M:S // %Y-%m-%d"
+ format = "%H:%M:%S // %Y-%m-%d"
}