Skip to content

Clicking active workspace button in i3bar no longer switches to previous workspace #5744

@quicks1lver42

Description

@quicks1lver42

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

Clicking on the button for the currently active workspace does nothing.

Expected Behavior

Previously, it would switch to the previous workspace the same as using the keybinds.
Downgrading to 4.22 removes the issue, so I presume this is something new to 4.23

Reproduction Instructions

  • Open windows on 2 workspaces.
  • Switch to the 2nd workspace
  • Click the 2nd workspace's button in i3bar
  • Nothing happens

Environment

Output of i3 --moreversion 2>&-:

Binary i3 version:  4.23 (2023-10-29) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.23 (2023-10-29) (pid 1564)
Loaded i3 config:
  /home/username/.config/i3/config (main) (last modified: Tue 31 Oct 2023 09:45:50 GMT, 1506 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3
Config file
# 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 http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4
set $alt Mod1

Font for window titles. Will also be used by the bar unless a different font

is used in the bar {} block below.

font pango: monospace 8

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

floating_modifier $mod

start a terminal

bindsym $mod+t exec terminator

kill focused window

bindsym $mod+Shift+q kill

start dmenu (a program launcher)

bindsym $mod+d exec dmenu_run -fn 'Deja Vu Sans:pixelsize=13'

change focus with 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 with 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

switch to workspace

bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10

move focused container to workspace

bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
#bindsym $mod+Shift+0 move container to workspace number 10

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

}

bindsym $mod+r mode "resize"

Start i3bar to display a workspace bar (plus the system information i3status

finds out, if available)

bar {
tray_output primary
position top
status_command /bin/bumblebee-status -m disk:root nic cpu memory battery spacer datetime pasink pasource -p interval=3 disk.left-click="dolphin" nic.exclude="br,veth,docker,tun,lo,virbr,vboxnet" datetime.left-click="gsimplecal" datetime.format="%Y-%m-%d %H:%M:%S" engine.workspacewheel=false -t solarized-powerline
wheel_up_cmd nop
wheel_down_cmd nop
font pango:DejaVu Sans Mono, FontAwesome 8
}

Autoname workspaces

github.com/justbuchanan/i3scripts

exec_always ~/.config/i3/i3scripts/autoname_workspaces.py &

Gaps config

gaps inner 10
gaps outer 0
#smart_gaps on
smart_borders on
for_window [class="^.*"] border pixel 1

Toggle gaps keybinds

bindsym $mod+Shift+g gaps inner current set 0
bindsym $mod+g gaps inner current set 10

Keyboard+mouse setup (now handled by /etc/X11/xorg.conf/*.conf)

exec --no-startup-id setxkbmap us -variant intl
exec --no-startup-id setxkbmap -option compose:rctrl

Startup programs

exec --no-startup-id dunst
exec --no-startup-id light-locker
exec --no-startup-id nm-applet
exec --no-startup-id xfce4-clipman
exec --no-startup-id udiskie
exec --no-startup-id ~/.fehbg
exec --no-startup-id picom --config ~/.config/picom/picom.conf

Toggle hide workspace contents

mode "hide" {
bindsym $mod+i bar mode dock; workspace 1; mode default
}
bindsym $mod+i bar mode invisible; workspace 0; mode "hide"

workspace_auto_back_and_forth yes
new_window pixel 0

Custom tools

bindsym Print exec deepin-screenshot
bindsym Control+Mod1+a exec deepin-screenshot
bindsym $mod+l exec dm-tool lock
bindsym $mod+x exec splatmoji type /usr/share/splatmoji/data/emoji.tsv /usr/share/splatmoji/data/custom.tsv

Screen brightness controls

bindsym XF86MonBrightnessUp exec xbacklight -inc 20
bindsym XF86MonBrightnessDown exec xbacklight -dec 20

Pulse Audio controls

bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle # mute sound

Media player controls

bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous

- Linux Distribution & Version: ArchLinux 6.5.9-arch2-1
- Are you using a compositor (e.g., xcompmgr or compton): picom

Metadata

Metadata

Assignees

Labels

4.23bugreproducibleA bug that has been reviewed and confirmed by a project contributorto be included in next bugfixUsed to track bugfix releases. After a release that covers tagged issues/PRs the label is removed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions