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

i3-lock notification bug #363

Closed
2 tasks done
Mikicrepstudios opened this issue Oct 22, 2024 · 3 comments
Closed
2 tasks done

i3-lock notification bug #363

Mikicrepstudios opened this issue Oct 22, 2024 · 3 comments
Labels

Comments

@Mikicrepstudios
Copy link

Welcome

  • Yes, I'm using the latest major release or the current development version. These are the only supported versions.
  • Yes, I've searched similar issues and discussions on GitHub and didn't find any.

Current Behavior

When i3 gets notification (while i3-lock's white screen is active) notification shows up and shows taskbar too

Expected Behavior

taskbar and notification should reamain hidden

Reproduction Instructions

i3-lock && suspend pc
wake it up
get some notification (for example networkmanager saying that Network has been disconnected)

i3 version

Binary i3 version:  4.23 © 2009 Michael Stapelberg and contributors
Running i3 version: 4.23 (pid 1056)
Loaded i3 config:
  /home/mikicrep/.config/i3/config (main) (last modified: Fri 30 Aug 2024 06:47:24 PM CEST, 4591345 seconds ago)

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

Config file

# Please see https://i3wm.org/docs/userguide.html for a complete reference!

# Main stuff
set $mod Mod4
font pango:arial 8
exec --no-startup-id "setxkbmap -model pc104 -layout rs -variant latin"
exec --no-startup-id nm-applet
exec fetchcord
exec picom
exec xinput set-prop bcm5974 "libinput Tapping Enabled" 1
bindsym $mod+Return exec xfce4-terminal
bindsym $mod+d exec --no-startup-id rofi -show drun -theme gruvbox-dark
bindsym $mod+c exec --no-startup-id rofi -show run -theme gruvbox-dark
## Laptop and PC screenshotting
bindsym $mod+Shift+less exec flameshot gui
bindsym Print exec flameshot gui
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
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'"
bindsym $mod+l exec i3lock
bindsym $mod+Shift+l exec bash /home/mikicrep/suspend

# Customization
exec feh --bg-scale --zoom fill /i3/wallpapers/$(/i3/random /i3/wallpapers)
## Next 2 lines remove window borders
default_border pixel 0
default_floating_border pixel 0

# Keyboard buttons
## Volume
### Laptop
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
### PC
bindsym $mod+F4 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym $mod+F3 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym $mod+F2 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
## Screen brightness
bindsym XF86MonBrightnessUp exec brightnessctl --device='gmux_backlight' set +750
bindsym XF86MonBrightnessDown exec brightnessctl --device='gmux_backlight' set 750-
## Keyboard backlight
bindsym XF86KbdBrightnessUp exec kbdlight up 5
bindsym XF86KbdBrightnessDown exec kbdlight down 5
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# move tiling windows via drag & drop by left-clicking into the title bar,
# or left-clicking anywhere into the window while holding the floating modifier.
tiling_drag modifier titlebar

# Default WM shortcuts
bindsym $mod+Shift+q kill
## Change focused window using arrows
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
## Move current focused window with arrows
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
## New windows appear h-right v-down
bindsym $mod+h split h
bindsym $mod+v split v
## Fullscreen window
bindsym $mod+f fullscreen toggle
## Change view mode (toggle split is default)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
## Make normal windows
bindsym $mod+Shift+space floating toggle
## Change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# Define workspaces and setup keybinds
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"
## Switching
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
## Move current focused app in other workspace
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

mode "resize" {
        bindsym Left resize shrink width 10 px or 1 ppt
        bindsym Down resize grow height 10 px or 1 ppt
        bindsym Up resize shrink height 10 px or 1 ppt
        bindsym Right resize grow width 10 px or 1 ppt

        # Quit resiye mode
		bindsym Return mode "default"
        bindsym Escape mode "default"
        bindsym $mod+r mode "default"
}

# Enable resize mode
bindsym $mod+r mode "resize"

# Start i3bar
bar {
        status_command i3blocks
}

#----------Custom----------#
## Keybinds
bindsym $mod+a exec pavucontrol
bindsym $mod+b exec blueman-manager
bindsym $mod+p exec emoji-picker

Linux distribution & Version

I use arch btw - 6.11.4-zen2-1-zen kernel

Are you using a compositor?

picom

Logfile

No response

@i3bot
Copy link

i3bot commented Oct 22, 2024

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.)

@Mikicrepstudios
Copy link
Author

If you're using Dunst, you can pause notifications before locking and unpause them afterward (see the dunst man page).

This is the binding you're looking for:


bindsym $mod+l exec "killall -USR1 dunst; i3lock --nofork; killall -USR2 dunst"

nope, i dont use dunst

@orestisfl
Copy link
Member

See #333

@orestisfl orestisfl closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2024
@orestisfl orestisfl transferred this issue from i3/i3 Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants