So every time I log into a sway session I get this error message. I just hit the X and go about my day. It doesn’t cause any issues in my workstation usability.
I added these lines to my sway local override config that lives in my home folder: #screenshots
bindsym Print exec grim ~/Pictures/$(date +%Y-%m-%d_%H-%m-%s).png
For anyone who doesn’t know in the read only portion of my atomic system there is a sway config file. I have a local override in my home folder at ~/.config/sway/config the system will use the local user override file and probably default back to the system config file if that doesn’t work or doesn’t exist.
I added this line so that when I press the prtsc (print screen) button on my keyboard, a screenshot is saved as a .png and labeled with the date/time etc. and saved to my Pictures directory.
I came up with this solution using Gemini (a now deceased version) by giving it explicit instructions something along the lines of: Host OS Fedora Sway Atomic, I want this button to take a screen shot, label it such and such way as a .png and put it in this directory. (Though much wordier than that)
This solution works. But I get this quirky little error message when I log in and am just wondering if anyone can shed some light on that.
What has most likely happened is that you have included the /usr files in your custom file in your home directory.
What many of us do, is copy the file from the usr directory and then modify it. Look at the bottom of your config file and see if the /usr files are included.
I do agree though, that there should be some way to force it not to recognize a duplicate entry or as @ugnvs suggested, to disable the warning.
I haven’t been able to find an original keybinding in the file so it may be as you said, just a warning that it has been altered from the default. This did however prompt me to review the config file again and learn some useful keybindings that I haven’t learned yet, so thanks for that!
include '$(/usr/libexec/sway/layered-include "/usr/share/sway/config.d/*.conf" "/etc/sway/config.d/*.conf" "${XDG_CONFIG_HOME:-$HOME/.config}/sway/config.d/*.conf")'
That is exactly what I did and it appears the /usr files are included. Now that I know more about this message, I’m not sure I want to alter anyhing. I certainly don’t need to and the local override is serving it’s purpose. Thank you for your help! I am a little more familiar with my system now and that satisfies me.