Skip to content

Commit

Permalink
upgrade hovering and add transparency rules for unfocused hovering wi…
Browse files Browse the repository at this point in the history
…ndows
  • Loading branch information
kpa28-git committed Mar 6, 2020
1 parent d9455b3 commit 9067ad9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ bindsym $mod+Shift+r exec --no-startup-id winresize

# Floating/non-floating toggle (center, left, right)
bindsym $mod+Shift+space floating toggle
bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left
bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right
bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left bottom
bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right bottom

# Send window to workspace {0-9}
bindsym $mod+Shift+1 move container to workspace $ws1
Expand Down
10 changes: 10 additions & 0 deletions .config/lf/lfrc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ cmd mkfile ${{
$EDITOR $ans
}}

cmd symlink ${{
printf "Symlink Name: "
read ans

for file in "$fx"
do
ln -s $file $ans
done
}}

# Change Permissions
cmd chmod ${{
printf "Mode Bits: "
Expand Down
8 changes: 8 additions & 0 deletions .config/picom/picom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ fading = true;
fade-in-step = 0.1;
fade-out-step = 0.1;

# Transparency
opacity-rule = [
"100:focused && I3_FLOATING_WINDOW@:32c = 1 && _NET_WM_STATE@:a = '_NET_WM_STATE_STICKY'", # focused hovering window
"50:!focused && I3_FLOATING_WINDOW@:32c = 1 && _NET_WM_STATE@:a = '_NET_WM_STATE_STICKY'" # unfocused hovering window
#"80:name = 'st'"
#"80:name = 'st-256color'"
];

# GLX Backend
backend = "glx";
vsync = true; # Reduces single monitor tearing
Expand Down
2 changes: 1 addition & 1 deletion .local/bin
Submodule bin updated from 3beae4 to 05de9e

0 comments on commit 9067ad9

Please sign in to comment.