Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Issue with i3 key bindings

Help for Current Versions of MX
Post Reply
Message
Author
User avatar
pakt
Forum Novice
Forum  Novice
Posts: 4
Joined: Mon Oct 08, 2018 11:19 pm

Issue with i3 key bindings

#1 Post by pakt » Mon Oct 08, 2018 11:32 pm

Hi All,

New MX Linux disciple here. I've been very impressed to date, however there is one issue that is preventing me from moving to MX Linux permanently.

I use i3 window manager and _something_ is interfering with i3's key configuration. Any combinations that involve ALT+SHIFT do not work (example, moving window to the left = ALT+SHIFT+J).

I was previously running i3 on Devuan (another systemD-free debian distro) using my current keyboard without issue (also with xfce installed). This makes me think it is an issue specific to MX Linux.

Has anyone else had success getting i3 working properly under MX Linux?

Apologies if this has been posted previously, but the forum's search settings make it impossible to search for 'i3' as the search term is stripped for being too short.

Thanks for any guidance,

pakt.

User avatar
KernSpy
Forum Regular
Forum Regular
Posts: 605
Joined: Wed Nov 05, 2014 10:09 pm

Re: Issue with i3 key bindings

#2 Post by KernSpy » Tue Oct 09, 2018 12:09 am

MX-17.1_x64 | System76 Galago UltraPro / Clevo W740SU | Intel Core i7-4770HQ | Intel Iris Pro Graphics 5200 | 16 GB DDR3 | Intel 530 series mSATA SSD - 240-GB | WD7500BPKX - 750-GB | Intel HD Audio. Note: [System76] and the Galago's neutered UEFI

User avatar
pakt
Forum Novice
Forum  Novice
Posts: 4
Joined: Mon Oct 08, 2018 11:19 pm

Re: Issue with i3 key bindings

#3 Post by pakt » Tue Oct 09, 2018 1:11 am

Thank you for that, it looks very promising. Sure enough I copied my config across and didn't regenerate it. Will try again tonight and keep you posted.

Cheers.

User avatar
KoO
Forum Regular
Forum Regular
Posts: 278
Joined: Fri Feb 10, 2017 1:21 am

Re: Issue with i3 key bindings

#4 Post by KoO » Tue Oct 09, 2018 1:51 am

pakt wrote:
Mon Oct 08, 2018 11:32 pm
Hi All,

New MX Linux disciple here. I've been very impressed to date, however there is one issue that is preventing me from moving to MX Linux permanently.

I use i3 window manager and _something_ is interfering with i3's key configuration. Any combinations that involve ALT+SHIFT do not work (example, moving window to the left = ALT+SHIFT+J).

I was previously running i3 on Devuan (another systemD-free debian distro) using my current keyboard without issue (also with xfce installed). This makes me think it is an issue specific to MX Linux.

Has anyone else had success getting i3 working properly under MX Linux?

Apologies if this has been posted previously, but the forum's search settings make it impossible to search for 'i3' as the search term is stripped for being too short.

Thanks for any guidance,

pakt.
I use i3 all the time but only with Antix on both my computers. Which i installed from Debian buster server (not sid).
And I use mod4 not mod1 makes that useless windows key do something useful.
My bindsym $mod+Shift+j k l ; and the arrow keys work as they should.
Does mod+shift+r give you any errors (duplicate keys errors) ?
Even mod+shift+e not working. As stated above no mod+shift keys?
I just don't use MX any more sorry. I'm over GUI. And its all Luke's fault. :happy:

Have you checked your .config

Here is my desktop config.

Code: Select all

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:NotoSans-Regluar 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.

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# My Binds
bindsym $mod+r exec rxvt -e ranger
bindsym F12 exec guake --show
## bindsym $mod+u exec tdrop -p urxvt -o floating=on" urxvt

# start a terminal
bindsym $mod+Return exec urxvt

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
bindsym $mod+d exec rofi -opacity "85" window -show combi
# 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

# Show the first scratchpad window
## bindsym $mod+minus scratchpad show

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+h split h

# split in vertical orientation
bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
#bindsym $mod+d focus child

# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 " 1: "
set $ws2 " 2: "
set $ws3 " 3: "
set $ws4 " 4: "
set $ws5 " 5: "
set $ws6 " 6: "
set $ws7 " 7: "
set $ws8 " 8: "
set $ws9 " 9: "
set $ws10 " 10: "

# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10

# My Open Apps
assign [class="Waterfox"] $ws1


# My  Custom Workspaces
## for_window [workspace=$ws1] layout toggle split
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
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

        # Pressing left will shrink the window’s width.
        # 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

        # same bindings, but for the arrow keys
        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

        # back to normal: Enter or Escape or $mod+r
        bindsym Return mode "default"
        bindsym Escape mode "default"
        bindsym $mod+r mode "default"
}

# bindsym $mod+r mode "resize"

## Lockscreen
bindsym $mod+x exec --no-startup-id /usr/bin/i3lock-fancy

# Start i3bar to display a workspace bar (plus the system information i3status finds out, if available)
 
bar {
        status_command ~/.conky-i3bar
        position top
        tray_output primary
        strip_workspace_numbers yes
}


# My AutoStarts
exec --no-startup-id nitrogen --restore
exec --no-startup-id guake
exec --no-startup-id compton --config ~/.config/i3/compton.conf -b
exec --no-startup-id pactl
exec_always --no-startup-id numlockx on
 
#for_window [class="^.*"] border pixel 2
new_window pixel 1
new_float pixel 3

---------------------------------- End----------------------------
Da Main Box .Antix 17.2 (4.18.7) i3 ,Windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO 860 500 GB , Samsung EVO 860 500 GB , GTX 970
Lappy .Lenovo T430 AntiX17.2 (4.18.7) i3 ,Windows8.1 , i5 +4000 , 8gb , Samsung EVO 860 500 GB , 1TB HGST

User avatar
pakt
Forum Novice
Forum  Novice
Posts: 4
Joined: Mon Oct 08, 2018 11:19 pm

Re: Issue with i3 key bindings

#5 Post by pakt » Mon Oct 15, 2018 6:54 am

KoO wrote:
Tue Oct 09, 2018 1:51 am

I use i3 all the time but only with Antix on both my computers. Which i installed from Debian buster server (not sid).
And I use mod4 not mod1 makes that useless windows key do something useful.
My bindsym $mod+Shift+j k l ; and the arrow keys work as they should.
Does mod+shift+r give you any errors (duplicate keys errors) ?
Even mod+shift+e not working. As stated above no mod+shift keys?
I just don't use MX any more sorry. I'm over GUI. And its all Luke's fault. :happy:

Have you checked your .config
Thanks for the helpful suggestions. So, since posting, I've tried letting i3 create brand new configs using ALT modifier and Win modifier with no luck. Most interestingly, your suggestion to try mod+shift+r and mod+shift_e both work. However, typing $mod+shift+j or $mod+shift+; result in "J" and ':" being printed in the terminal respectively.

For now, I'm totally stumped. I have also run out of time to throw at it. It would however be reassuring to know I'm not the only i3 user with this issue.

Thanks again for your help.

pakt.

User avatar
KoO
Forum Regular
Forum Regular
Posts: 278
Joined: Fri Feb 10, 2017 1:21 am

Re: Issue with i3 key bindings

#6 Post by KoO » Wed Oct 17, 2018 3:16 am

The i3 config file is installed to etc/i3/config Folder.
Then copy the i3 config file to ~/.config/i3/ Folder you need to make the i3 folder in your home/.config /i3/ this is the file you edit not the one in your /etc/i3/config

The first time I tried i3 I give up after about an hour or so. Then I went back a few days later after watching videos.I had much more fun this time it is a lot easier then it looks just get used to the key combinations theirs really not that many. Now I would use nothing else.You have complete control of everything..
Just learn the basic first. Then have fun.

Have a look at this post viewtopic.php?f=104&p=463779#p463779
Da Main Box .Antix 17.2 (4.18.7) i3 ,Windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO 860 500 GB , Samsung EVO 860 500 GB , GTX 970
Lappy .Lenovo T430 AntiX17.2 (4.18.7) i3 ,Windows8.1 , i5 +4000 , 8gb , Samsung EVO 860 500 GB , 1TB HGST

Post Reply

Return to “MX Help”