Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
quicks1lver42 opened this issue Oct 31, 2023 · 5 comments · Fixed by #5754
Closed
Assignees
Labels
4.23 bug reproducible A bug that has been reviewed and confirmed by a project contributor to be included in next bugfix Used to track bugfix releases. After a release that covers tagged issues/PRs the label is removed.

Comments

@quicks1lver42
Copy link

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
@i3bot i3bot added bug missing-log Read the CONTRIBUTING.md file for instructions labels Oct 31, 2023
@i3bot
Copy link

i3bot commented Oct 31, 2023

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@i3bot i3bot added the 4.23 label Oct 31, 2023
@orestisfl orestisfl self-assigned this Nov 2, 2023
@orestisfl orestisfl pinned this issue Nov 3, 2023
@orestisfl orestisfl added reproducible A bug that has been reviewed and confirmed by a project contributor and removed missing-log Read the CONTRIBUTING.md file for instructions labels Nov 4, 2023
orestisfl added a commit that referenced this issue Nov 4, 2023
Additionally, adds some tests for the command.

Fixes #5744
@orestisfl orestisfl added the to be included in next bugfix Used to track bugfix releases. After a release that covers tagged issues/PRs the label is removed. label Nov 4, 2023
stapelberg pushed a commit that referenced this issue Nov 5, 2023
Additionally, adds some tests for the command.

Fixes #5744
@dikiaap
Copy link
Contributor

dikiaap commented Nov 30, 2023

Hi all, I still can't clicking any workspace button altough I use the next branch (69f68dc).

Output of i3 --moreversion 2>&-:

Binary i3 version:  4.23-non-git © 2009 Michael Stapelberg and contributors
Running i3 version: 4.23-non-git (pid 846)
Loaded i3 config:
  /home/dikiaap/.config/i3/config (main) (last modified: Thu 30 Nov 2023 09:07:07 GMT, 123 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

@orestisfl
Copy link
Member

4.23-non-git

You are using the released version, not the git one

@dikiaap
Copy link
Contributor

dikiaap commented Dec 1, 2023

@orestisfl How to changed it to the git one?
Here's my build command:

mkdir build
meson . build
ninja -C build

@orestisfl
Copy link
Member

Easiest way is to make sure your $PATH includes first the path to the i3 build directory. For example, append

export PATH="$HOME/i3/build:$PATH"

in your zshrc/bashrc file.

Then, log out and login again. You should see:

$ i3 --version
i3 version 4.23-7-g69f68dcd © 2009 Michael Stapelberg and contributors

desmana pushed a commit to desmana/i3 that referenced this issue Apr 3, 2024
Additionally, adds some tests for the command.

Fixes i3#5744
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.23 bug reproducible A bug that has been reviewed and confirmed by a project contributor to be included in next bugfix Used to track bugfix releases. After a release that covers tagged issues/PRs the label is removed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants