I3 workspace problem

Hi all!
I am trying to set up i3-gaps on my old Dell-laptop and noticed a problem.
After logging in I start editor on ws 1 ($Mod1) and then start webbrowser on ws 2 ($Mod+2). If I go back to ws 1 I get to an empty ws (also called ws 1) and can not get back to original ws 1!
It looks like this:
2021-07-26_18-35

I don´t know where to send my config-file. It could be too big to embed here!
Maybe someone knows how this can happen anyway?

womp

You can use pastebin.com

What do you have defined as $Mod and $Mod1?

Proof read your config and check for double entries and syntax errors. Like this:

by default, $mod+2 switches to workspace 2, if you’re also using $mod+2 to start a browser, that will cause problems.

1 Like

Smell something :grinning:

Thanks for answer.
I’m sorry! I was unclear. I have another keysym for starting browser. $Mod+2 gets me to ws 2 (nothing else).
$Mod is “Linkey” (Mod4) and $Alt is Mod1.

Here is my i3-gaps config:

womp

1 Like

Just the bagel in the toaster I forgot about. :crazy_face:

1 Like

Your config is full of syntax errors.

You have $mod and $alt in a lot of bindings, but do not define what keys $mod and $alt are tied to.

You have:

set $Mod Mod4
set $Alt Mod1

which is fine, but then use bindings like:

bindsym $alt+f exec thunar;workspace 3;focus
bindsym $mod+Mod1+Left workspace prev 

which aren’t going to work and mess up the window manager.

You will need to use the i3 documentation to go through your config and clean up the syntax.

Also, you’re launching sxhkd (to launch applications?). Make sure there are no keybindings in the base.conf file that conflict with the i3 key bindings. Better still, dump sxhkd and define everything in the i3 config file.

And what is this conky -

exec --no-startup-id conky -c ~/.config/i3/.i3wm-2rc

You trying to run a conky on the i3 desktop? That can be done, but if the conky syntax is off, it can mess up the window manager. Comment out that line when you clean up the i3 syntax. Once i3 is working, try running the conky.

1 Like

Thank you so very much for taking the time!!

I will follow your advice!!

One questiion: Is $Mod = $mod ok? (And I see that “bindsym $mod+Mod1+Left” is totally bonkers!)

The conky is not my own. (itś “borrowed” and the idea of using conky in a tiling wm actually strange!)

Thanks again!!

womp

I get so many errors that I think I will start over with a default config

womp

2 Likes
1 Like

I don’t think so; maybe if $MOD=Mod4 (or some other key) is defined elsewhere it may work … but why do that?

Probably your best way forward.

I’ve never used i3-gaps other than to check it out for about an hour. So I don’t much know about i3-gaps specific configuration.

I know it will work, but I would also drop sxhkd and just go all i3-gaps with your configuration. I’m a bit of a purist in that regard.

Yes. I will have to rethink my whole config!

womp

:With a default AL-i3-gaps-config I get this: (sxhkd is off)

2021-07-27_04-01

when I switch ws! Can´t get back to it either! Apps opened gets isolated.
What the hell is going on?

womp

If you wish to use sxhkd I would ask @manyroads.
You have the font installed you wish to use. ?
If I were you just change one thing at a time you will keep on top of the errors.

This is my i3 config.

#  +-+-+-+ +-+-+-+-+
#  |K|o|O| |R|i|c|e|
#  +-+-+-+ +-+-+-+-+
#      ArchLabs

set $mod Mod4

gaps inner 4
gaps outer 2

for_window [class="^.*"] border pixel 1

#window colors
##  class                 border   backgr.  text  indicator  child_border
#client.focused          #999999  #999999  #ffffff  #00FF00   #999999
#client.focused_inactive #81c2d6  #5f676a  #ffffff  #484e50   #0b6e48
#client.unfocused        #c9cabb  #222222  #888888  #292d2e   #222222
#client.urgent           #2f343a  #900000  #ffffff  #199475   #900000
#client.placeholder      #a2b4ba  #0c0c0c  #ffffff  #1793d0   #0c0c0c

 # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.

font pango:Ubuntu Regular 11
##font pango:monospace 10

# 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 10


floating_modifier $mod

focus_on_window_activation smart     # smart|urgent|focus|none
popup_during_fullscreen smart        # smart|ignore|leave_fullscreen
show_marks yes #yes|no

bindsym $mod+Shift+space floating toggle

for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [instance="yad"] floating enable
for_window [class="Yad" title="yad-calendar"] floating enable
for_window [instance="gtkdialog"] floating enable
for_window [class="Galculator"] floating enable

for_window [instance="ncmpcpp-ueberzug"] floating enable move position 492px 38px resize set 1500px 600px
for_window [instance="cava"] floating enable move position 492px 640px resize set 1500px 300px
for_window [instance="scratchpad"] floating enable move position 800px 28px resize set 1000px 600px
for_window [instance="lxappearance"] floating enable
for_window [instance="tixati"] focus

exec_always --no-startup-id exec i3-workspace-names-daemon &
exec_always --no-startup-id autotiling -w --workspaces 4 &
exec --no-startup-id picom --config ~/.config/picom/picom.conf &
#exec --no-startup-id dunst &  <<<<<<< Start using .xprofile >>>>>>>>>
#exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
#exec --no-startup-id nitrogen --restore &
#exec --no-startup-id xfce4-power-manager &
#exec --no-startup-id compton --config ~/.config/i3/compton.conf &
#exec --no-startup-id volumeicon  <<<<<<< End .profile >>>>>>>>

bindsym $mod+Return exec --no-startup-id kitty
bindsym $mod+Shift+Return exec --no-startup-id alacritty
bindsym $mod+c exec --no-startup-id kitty --class calcurse -e calcurse
bindsym $mod+i exec --no-startup-id firefox
bindsym $mod+s exec --no-startup-id spacefm
bindsym $mod+Shift+s exec --no-startup-id pcmanfm
bindsym $mod+g exec --no-startup-id geany
bindsym $mod+a exec --no-startup-id atom
bindsym $mod+b exec --no-startup-id brave
bindsym $mod+shift+t exec --no-startup-id tixati


bindsym $mod+Shift+d exec --no-startup-id kitty --class scratchpad
bindsym $mod+m exec --no-startup-id kitty --class ncmpcpp-ueberzug -e ncmpcpp-ueberzug
bindsym $mod+o exec --no-startup-id kitty --class cava -e cava
bindsym $mod+n exec --no-startup-id tauonmb
bindsym $mod+Shift+c kill
bindsym $mod+d exec --no-startup-id rofi -show drun
bindsym $mod+shift+l exec --no-startup-id ~/.config/rofi/scripts/rofi-locate
bindsym $mod+x exec --no-startup-id blurlock2
bindsym $mod+v exec --no-startup-id mpv
#bindsym $mod+x exec --no-startup-id i3lock-fancy

# Assign Workspaces:
assign [class="Brave-browser"] workspace number $ws1
assign [class="waterfox-classic"] workspace number $ws1
assign [class="ncmpcpp-ueberzug"] workspace number $ws2
assign [class="cava"] workspace number $ws2
assign [class="pulsemixer"] workspace number $ws2
assign [class="bpytop"] workspace number $ws4
assign [class="calcurse"] workspace number $ws4
assign [class="Tauon Music Box"] workspace number $ws4
assign [class="Atom"] workspace number $ws3
assign [instance="thunar"] workspace number $ws3
assign [class="Spacefm"] workspace number $ws3
assign [class="mpv"] workspace number $ws8
assign [instance="vlc"] workspace number $ws8
assign [title="mpsyt"] workspace number $ws8
assign [instance="tixati"] workspace number $ws10

# Autostart programs & workspaces

assign [class="Brave-browser"] workspace number $ws1
for_window [class="Brave-browser"] focus
assign [class="ncmpcpp-ueberzug"] workspace number $ws2
for_window [class="ncmpcpp-ueberzug"] focus
assign [class="cava"] workspace number $ws2
for_window [class="cava"] focus
assign [class="Atom"] workspace number $ws3
for_window [class=Atom] focus
assign [class="Spacefm"] workspace number $ws3
for_window [class=Spacefm] focus
assign [class="bpytop"] workspace number $ws4
for_window [class=bpytop] focus
assign [class="mpv"] workspace number $ws4
for_window [class=mpv] focus
assign [class="calcurse"] workspace number $ws4
for_window [class=calcurse] focus

exec --no-startup-id sleep 1 && brave
exec --no-startup-id sleep 2 && atom
exec --no-startup-id sleep 3 && spacefm
exec --no-startup-id sleep 4 && kitty --class ncmpcpp-ueberzug -e ncmpcpp-ueberzug
exec --no-startup-id sleep 5 && kitty --class cava -e cava

bindsym $mod+Ctrl+Right resize shrink width 5 px or 5 ppt
bindsym $mod+Ctrl+Up resize grow height 5 px or 5 ppt
bindsym $mod+Ctrl+Down resize shrink height 5 px or 5 ppt
bindsym $mod+Ctrl+Left resize grow width 5 px or 5 ppt

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+Shift+h split h exec --no-startup-id notify-send 'tile horizontally'
bindsym $mod+Shift+v split v exec --no-startup-id notify-send 'tile vertically'

bindsym $mod+f fullscreen toggle


bindsym $mod+space focus mode_toggle


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 "


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


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

# i3 keys Reloaded Shutdown etc
bindsym $mod+Shift+p reload exec --no-startup-id notify-send 'i3 config reloaded'
bindsym $mod+Shift+r restart exec --no-startup-id notify-send 'i3 config restarted'
bindsym $mod+Shift+e exec "i3-nagbar -f 'pango:monospace 11' -t warning -m ' Exit request detected  Do you really want to exit i3  This will end your X session.' -B 'Yes,  i3' 'i3-msg exit'"
bindsym $Mod+shift+x exec --no-startup-id rofi_run -l
#bindsym $mod+shift+x exec --no-startup-id ~/.config/i3/logout.sh

# Set shut down, restart and locking features
#bindsym $mod+shift+x mode "$mode_system"
#set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
#mode "$mode_system" {
#   bindsym l exec --no-startup-id i3exit lock, mode "default"
#   bindsym s exec --no-startup-id i3exit suspend, mode "default"
#   bindsym u exec --no-startup-id i3exit switch_user, mode "default"
#   bindsym e exec --no-startup-id i3exit logout, mode "default"
#   bindsym h exec --no-startup-id i3exit hibernate, mode "default"
#   bindsym r exec --no-startup-id i3exit reboot, mode "default"
#   bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
#
#   # exit system mode: "Enter" or "Escape"
#   bindsym Return mode "default"
#   bindsym Escape mode "default"
#}

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"
}

#Bars

#exec_always --no-startup-id $HOME/.config/polybar/launch.sh

#Conkybar

bar {
status_command ~/.config/i3/conkybar.sh
#status_command py3status -c ~/.config/py3status/py3status.conf
# status_command exec ~/.config/i3status/mybar.sh
# status_command    i3status+
 i3bar_command i3bar  --transparency
 height 30
 workspace_buttons yes
 tray_output primary
# font pango:JetBrainsMono-Medium 10
 position top
 binding_mode_indicator yes
 strip_workspace_numbers no

#Polybar

#bar {
#   status_command ~/.config/polybar/launch.sh
#   height 28
#   workspace_buttons yes
#   tray_output primary
#   font pango:JetBrainsMono-Regular 10
#   position top

#bumblebee-status

#bar {
#	status_command /usr/share/bumblebee-status/bumblebee-status -m mpd amixer cpu sensors memory disk network_traffic arch-update datetime \
#	    -t onedark-powerline
#		i3bar_command i3bar  --transparency
#		height 28
#		workspace_buttons yes
#       tray_output primary
#       font pango:JetBrainsMono-Regular 10
#       position top

#i3blocks

#bar {
#status_command i3blocks -c ~/.config/i3/i3blocks.conf
#i3bar_command i3bar  --transparency
#height 28
#workspace_buttons yes
#tray_output primary
#font pango:JetBrainsMono-Regular 10
#position top

colors {
  statusline    #000000
  background    #00000000
  separator     #FF0000
#                      BORDER    BACKGROUND    TEXT
  focused_workspace   #00000000   #00000000   #009900
  inactive_workspace  #00000000   #00000000   #CCCCCC
  active_workspace    #00000000   #00000000   #CCCCCC
  urgent_workspace    #b71c1c     #b71c1c     #000000
  binding_mode        #b71c1c     #b71c1c     #000000
 }
}

# Audio Controls
bindsym XF86AudioPlay        exec --no-startup-id playerctl play-pause
bindsym XF86AudioNext        exec --no-startup-id playerctl next
bindsym XF86AudioPrev        exec --no-startup-id playerctl previous
bindsym XF86AudioStop        exec --no-startup-id playerctl stop
bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -q sset Master,0 1+ unmute"
bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -q sset Master,0 1- unmute"
bindsym XF86AudioMute exec --no-startup-id "amixer -q sset Master,0 toggle" exec --no-startup-id notify-send 'muted'

## antiX
#bindsym XF86AudioMute exec amixer sset 'Master' toggle
#bindsym XF86AudioLowerVolume exec amixer sset 'Master' 5%-
#bindsym XF86AudioRaiseVolume exec amixer sset 'Master' 5%+

## Arch
#bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -q sset Master,0 1+ unmute"
#bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -q sset Master,0 1- unmute"
#bindsym XF86AudioMute exec --no-startup-id "amixer -q sset Master,0 toggle"
2 Likes

font pango:SF-Pro-Display-Medium 10 <is this font installed ?
font pango:Hack 8 <is this font installed ?

exec --no-startup-id sxhkd -c ~/.config/sxhkd/base.conf < is their a base.conf file in this directory. If your not using sxhkd just comment out this line…

Hi!
Thansk for answering!

I have used @manyroads guide for using sxhkd and itś been working very well actually. “base.conf” is in the right place.
The fonts are installed.

The tiny problem (I thought) I had in the beginning of the thread has now grown to a huge one (or many).

womp

Hi again!
I thank you all for great support! I am now on the right track. Managed to find the ws problem. (it was in the config.)
I3-gaps is still working fine…

Matter is solved.

womp

Glad that you got it fixed, props to the members also for the help !

Yeah. Thanks man.
I have many flaws but I usually don´t give up easily!

womp

1 Like

lol, The way to go, keep it on @womp !

1 Like

Thanks! You too!

womp

1 Like