diff --git a/.gitignore b/.gitignore index 60cfe2b..d6b2871 100755 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ !/fish/ !/neofetch/ !/omf/ -!/.compton.conf +!/compton.conf !/.Xmodmap !/.Xmodmap-cn !/.zshrc diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml index 8cd7a4c..9959dd4 100755 --- a/alacritty/alacritty.yml +++ b/alacritty/alacritty.yml @@ -289,7 +289,7 @@ visual_bell: # # 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.8 # Mouse bindings # @@ -314,7 +314,7 @@ mouse: # # The `double_click` and `triple_click` settings control the time # alacritty should wait for accepting multiple clicks as one double - # or triple click. + # or triple click5 double_click: { threshold: 300 } triple_click: { threshold: 300 } diff --git a/compton.conf b/compton.conf new file mode 100644 index 0000000..2c8eda6 --- /dev/null +++ b/compton.conf @@ -0,0 +1,115 @@ +# Shadow +shadow = true; +no-dnd-shadow = true; +no-dock-shadow = true; +clear-shadow = true; +detect-rounded-corners = true; +shadow-radius = 10; +shadow-offset-x = -15; +shadow-offset-y = -15; +shadow-opacity = 0.8; +shadow-ignore-shaped = false; +shadow-exclude = [ + "name = 'Notification'", +# workaround for conky until it provides window properties: + "override_redirect = 1 && !WM_CLASS@:s", + "class_g ?= 'Dmenu'", +# "class_g ?= 'Dunst'", +# disable shadows for hidden windows: + "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", + "_GTK_FRAME_EXTENTS@:c", +# disables shadows on sticky windows: +# "_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'", +# disables shadows on i3 frames + "class_g ?= 'i3-frame'" +]; + +# shadow-exclude-reg = "x10+0+0"; +# xinerama-shadow-crop = true; + +#menu-opacity = 0.95; +inactive-opacity = 0.88; +active-opacity = 1; +#alpha-step = 0.01; +#inactive-dim = 0.0; +blur-background = true; +#blur-kern = "3x3box"; +blur-method = "kawase"; +blur-strength = 8; + + +fading = true; +fade-delta = 2; +fade-in-step = 0.05; +fade-out-step = 0.05; +fade-exclude = [ ]; + +backend = "glx"; +glx-no-stencil = true; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +detect-client-opacity = true; +unredir-if-possible = true; +refresh-rate = 0; +vsync = "none"; +dbe = false; +paint-on-overlay = true; +focus-exclude = [ "class_g = 'Cairo-clock'" ]; +detect-transient = true; +detect-client-leader = true; +invert-color-include = [ ]; +glx-copy-from-front = false; +glx-swap-method = "undefined"; + +sw-opti = true; + +opacity-rule = [ +#"99:name *?= 'Call'", +#"99:class_g = 'Chromium'", +#"99:name *?= 'Conky'", +"85:name *?= 'Code'", +"60:name *?= 'Screenkey'", +#"99:class_g = 'Darktable'", +"50:class_g = 'Dmenu'", +#"99:name *?= 'Event'", +#"99:class_g = 'Firefox'", +#"99:class_g = 'GIMP'", +#"99:name *?= 'Image'", +#"99:class_g = 'Lazpaint'", +#"99:class_g = 'Midori'", +#"99:name *?= 'Minitube'", +#"99:class_g = 'Mousepad'", +#"99:name *?= 'MuseScore'", +#"90:name *?= 'Page Info'", +#"99:name *?= 'Pale Moon'", +#"90:name *?= 'Panel'", +#"99:class_g = 'Pinta'", +#"90:name *?= 'Restart'", +#"99:name *?= 'sudo'", +#"99:name *?= 'Screenshot'", +#"99:class_g = 'Viewnior'", +#"99:class_g = 'VirtualBox'", +#"99:name *?= 'VLC'", +#"99:name *?= 'Write'", +#"93:class_g = 'URxvt' && !_NET_WM_STATE@:32a", +#"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", +#"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'" +]; + +wintypes : +{ + tooltip : + { + fade = true; + shadow = false; + opacity = 0.85; + focus = true; + }; + fullscreen : + { + fade = true; + shadow = false; + opacity = 1; + focus = true; + }; +}; diff --git a/fish/functions/cs.fish b/fish/functions/cs.fish new file mode 100644 index 0000000..acaa42d --- /dev/null +++ b/fish/functions/cs.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function cs --description 'alias cs cowsay' + cowsay $argv; +end diff --git a/fish/functions/ipy.fish b/fish/functions/ipy.fish new file mode 100644 index 0000000..aa0a7a2 --- /dev/null +++ b/fish/functions/ipy.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function ipy --description 'alias ipy ipython' + ipython $argv; +end diff --git a/i3/config b/i3/config index 64ce034..767b85d 100644 --- a/i3/config +++ b/i3/config @@ -275,12 +275,9 @@ mode "resize" { bindsym Escape mode "default" } -# Lock screen -bindsym $mod+9 exec --no-startup-id blurlock - # Autostart applications exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 -exec --no-startup-id nitrogen --restore; sleep 1; compton -b +exec --no-startup-id compton -b #exec --no-startup-id manjaro-hello exec --no-startup-id nm-applet exec --no-startup-id xfce4-power-manager @@ -288,9 +285,8 @@ exec --no-startup-id pamac-tray exec --no-startup-id clipit # exec --no-startup-id blueman-applet # exec_always --no-startup-id sbxkb -exec --no-startup-id start_conky_maia +#exec --no-startup-id start_conky_maia # exec --no-startup-id start_conky_green -exec --no-startup-id xautolock -time 10 -locker blurlock exec_always --no-startup-id ff-theme-util exec_always --no-startup-id fix_xcursor exec_always variety diff --git a/ranger/rc.conf b/ranger/rc.conf index 0a21378..b73b875 100755 --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -325,7 +325,9 @@ map [ move_parent -1 map gh cd ~ map gi cd ~/Github map gd cd ~/Desktop -map gff cd ~/.config +map gF cd ~/.config +map gfa cd ~/.config/alacritty +map gff cd ~/.config/fish map gfi cd ~/.config/i3 map gfr cd ~/.config/ranger map gfn cd ~/.config/nvim