New filters on the Home Feed, take a look!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

26
Active Window shows up before I unlock my Laptop
Post Flair (click to view more posts with a particular flair)
Post Body

My setup is the following: I use i3wm on Plasma desktop with SDDM on Arch Linux. I have noticed, since the very beginning, that when my laptop wakes up from hibernate the KDE lockscreen comes up with the password prompt. The lockscreen takes a few seconds to load and meanwhile the window, on which I was working before my laptop hibernated, shows up. This happens before the lockscreen loads and thus before I put in my password. This is not secure and is a serious issue as my active window is clearly shown even though for a couple of seconds.

I also noticed another issue. Since I use the Plasma background apps and services, the location of the KDE notifications sometimes shows up in the centre of the screen randomly. This only happens when I login into my user and the location stays the same. For example, if I find that the notification showed up in the centre of the screen, it stays the same for the rest of the session. I tried to use the i3wm config for the location and also use a script to redirect the window to the specific location. The script is shown below(I took the following script from another Reddit post. I am sorry for not citing the source). The problem still persists.

My log file is: https://logs.i3wm.org/logs/5693411524870144.bz2

I have used the following script to change the location of the notifications generated by plasma

#!/usr/bin/env bash

################# GET INFO of current screen
OFFSET_RE="\ ([-0-9] )\ ([-0-9] )"

# Get the active window position
unset x y w h
eval $(xwininfo -id $(xdotool getactivewindow) |
  sed -n -e "s/^ \ Absolute upper-left X: \ \([0-9]\ \).*/x=\1/p" \
         -e "s/^ \ Absolute upper-left Y: \ \([0-9]\ \).*/y=\1/p" \
         -e "s/^ \ Width: \ \([0-9]\ \).*/w=\1/p" \
         -e "s/^ \ Height: \ \([0-9]\ \).*/h=\1/p" )

# Loop through each screen and compare the offset with the window position (top left) to find the active monitor
monitor_index=0
while read name width height xoff yoff
do
    if [ "${x}" -ge "$xoff" \
      -a "${y}" -ge "$yoff" \
      -a "${x}" -lt "$(($xoff $width))" \
      -a "${y}" -lt "$(($yoff $height))" ]
    then
        monitor=$name
        break
    fi
    ((monitor_index  ))
done < &2
    exit 1
fi 

My i3 config is: https://pastebin.com/aFhZPj9T
I will provide you with any other info as needed.

This is my i3 - version

Binary i3 version:  4.16.1 (2019-01-27) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.16.1 (2019-01-27) (pid 723) abort…)
Loaded i3 config: /home/saipavanc/.config/i3/config (Last modified: Mon 05 Aug 2019 05:00:24 PM IST, 501675 seconds ago)
The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: /usr/bin/i3

The following is the excerpt from my journal after my hibernation: https://pastebin.com/6Yc9egRk

Any help will be highly appreciated.

Author
Account Strength
90%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
305
Link Karma
82
Comment Karma
223
Profile updated: 6 days ago
Posts updated: 4 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago