eliep / i3-layouts

Dynamic layouts for i3wm
MIT License
204 stars 14 forks source link

i3wm config not processing $i3l commands(?) #22

Closed carakesa closed 2 years ago

carakesa commented 2 years ago

I can't seem to get the keybinds to work for manipulating the layouts. ' i3-layouts ' starts with the i3 config, and commands can be issued via the terminal successfully, I just can't seem to use keybinds calling ' i3l ' functions.

If I manually issue the " i3l [layout] " in the terminal, it does work as expected, same with moving by using " i3l move (left,right) "

I largely copied my config based on the README and simply changed some keys, so I have the following lines:

Define initial workspace layouts: 0.x = ratio

50 │ 51 │ set $i3l spiral to workspace workspace $ws1 52 │ set $i3l hstack 0.6 up to workspace workspace $ws2 53 │ set $i3l spiral 0.6 to workspace workspace $ws3

[snipped for readability]

59 │ # Binds to Change Layouts 60 │ 61 │ bindsym $mod+v exec "i3l vstack 0.5 && notify-send \"Layout VStack\"" 62 │ bindsym $mod+h exec i3l hstack 0.5 && notify-send "Layout HStack" 63 │ bindsym $mod+s exec i3l spiral && notify-send "Spiral Layout" 64 │ bindsym $mod+q exec i3l 2columns && notify-send "2 Column Layout" 65 │ bindsym $mod+w exec i3l 3columns && notify-send "3 Column Layout" 66 │ bindsym $mod+c exec i3l companion && notify-send "Companion Layout" 67 │ bindsym $mod+a exec i3l autosplit && nofity-send "Automatic Layout" 68 │ bindsym $mod+n exec i3l none && notify-send "i3 Layouts Disabled"

Originally I had the i3-layouts startup set as: 476 | exec_always --no-startup-id sleep 2 && /$HOME/.local/bin/i3-layouts

I did try moving it up in the list as the following: 3 | exec ~/.local/bin/i3-layouts

carakesa commented 2 years ago

Update: Something in my setup was causing a conflict, but I'm not sure what.

I'm going to blame it on other background services that wouldn't occur for most users.

After reinstalling Endeavour, the keybinds and commands appear to be working as intended.

fnzr commented 1 year ago

just a heads up, I had this exact problem and in my case it happened because i3l wasn't in i3 path.

I installed i3-layouts with pipx so the default installation is $HOME/.local/bin, which i3 doesn't read.

Solved by symlinking i3l and i3-layouts to /usr/local/bin.