You are not logged in.

#1 2017-02-25 15:09:17

sevaho
Member
Registered: 2016-12-01
Posts: 24

How to configure Plank properly on I3wm/Compton

Hello

I'm fairly new to i3 and Compton, I am having fun with them but I'm kinda stuck with figuring out how to set up Plank properly. When I run Plank I3 positions it at the bottom with a height, When running it with compton, compton gives it an extra height but positions it in the middle.
What I want is that Plank hides and when I hover with my mouse over the bottom of the screen Plank appears (with compton active).


image.png


I3 config:

exec sh ~/.fehbg
exec nm-applet
exec compton --config ~/.config/compton.conf -b
exec conky -c ~/.conkyrc -d

set $mod Mod1
bindsym Mod1+Tab workspace next
bindsym Mod1+Shift+Tab workspace prev

font pango:Terminus 8

bindsym --release Mod4+s exec --no-startup-id scrot /home/$USER/Pictures/$(date '+%Y%m%d-%H%M%S').png

bindsym --release Mod4+F11 exec amixer -q sset Master 5%-
bindsym --release Mod4+F12 exec amixer -q sset Master 5%+

floating_modifier Mod4
focus_follows_mouse no
mouse_warping none
bindsym button1 nop

new_window pixel 
workspace_layout default
hide_edge_borders smart
popup_during_fullscreen smart

bindsym $mod+Return exec termite -e 'tmux'

bindsym $mod+F4 kill
bindsym $mod+F5 exec /home/sevaho/scripts/brightness.sh dec
bindsym $mod+F6 exec /home/sevaho/scripts/brightness.sh inc

bindsym $mod+d exec dmenu_run

bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right

bindsym $mod+n split h

bindsym $mod+v split v

bindsym $mod+f fullscreen toggle

bindsym $mod+s layout stacking
bindsym $mod+z layout tabbed
bindsym $mod+e layout toggle split

bindsym $mod+Shift+space floating toggle

bindsym $mod+space focus mode_toggle

bindsym $mod+q focus parent

bindsym $mod+ampersand workspace 1
bindsym $mod+eacute workspace 2
bindsym $mod+quotedbl workspace 3
bindsym $mod+apostrophe workspace 4
bindsym $mod+parenleft workspace 5
bindsym $mod+section workspace 6
bindsym $mod+egrave workspace 7
bindsym $mod+exclam workspace 8
bindsym $mod+ccedilla workspace 9
bindsym $mod+agrave workspace 10

bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+eacute move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+section move container to workspace 6
bindsym $mod+Shift+egrave move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+ccedilla move container to workspace 9
bindsym $mod+Shift+agrave move container to workspace 10

bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        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 m resize grow width 10 px or 10 ppt

        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 Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"


bar {
  status_command i3blocks -c ~/.config/i3/.i3blocks.conf
  font pango:Source Sans Pro-10 9

  position top 
  workspace_buttons yes 
 	colors {
    separator #268bd2
    background #203030
    statusline #839496
    focused_workspace #586e75 #586e75  #FFFFFF
    active_workspace #fdf6e3 #6c71c4 #fdf6e3
    inactive_workspace #002b36 #586e75 #002b36
    urgent_workspace #d33682 #d33682 #fdf6e3
  }
}
  client.focused #999999 #999999 #999999 #999999
  client.focused_inactive #073642 #073642 #eee8d5 #6c71c4
  client.unfocused #073642 #073642 #93a1a1 #586e75

Compton.conf:

backend = "glx";


glx-no-stencil = true;

glx-copy-from-front = false;

glx-swap-method = "undefined";

shadow = false;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5;
shadow-offset-x = -5;
shadow-offset-y = -5;
shadow-opacity = 0.5;

shadow-exclude = [
    "! name~=''",
    "name = 'Notification'",
    "name = 'Plank'",
    "name = 'Docky'",
    "name = 'Kupfer'",
    "name = 'xfce4-notifyd'",
    "name *= 'VLC'",
    "name *= 'compton'",
    "name *= 'Chromium'",
    "name *= 'Chrome'",
    "class_g = 'Conky'",
    "class_g = 'Kupfer'",
    "class_g = 'Synapse'",
    "class_g ?= 'Notify-osd'",
    "class_g ?= 'Cairo-dock'",
    "class_g ?= 'Xfce4-notifyd'",
    "class_g ?= 'Xfce4-power-manager'",
    "_GTK_FRAME_EXTENTS@:c"
];
shadow-ignore-shaped = false;

menu-opacity = 1;
inactive-opacity = 0.98;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
alpha-step = 0.06;

blur-background-fixed = false;
blur-background-exclude = [
    "window_type = 'dock'",
    "window_type = 'desktop'"
];

fading = false;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;

fade-exclude = [ ];


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 = "opengl-swc";

dbe = false;
paint-on-overlay = true;

sw-opti = true;

unredir-if-possible = true;

focus-exclude = [ ];

detect-client-leader = true;

wintypes:
{
    tooltip =
    {
        fade = true;
        shadow = false;
        opacity = 0.85;
        focus = true;
    };
};

Anyone know how I can solve this or point me into a solid direction in solving this?

Offline

Board footer

Powered by FluxBB