Image 1 — LabWC and Noctalia for a comfy, minimal setup ☺️
Image 2 — LabWC and Noctalia for a comfy, minimal setup ☺️
Image 3 — LabWC and Noctalia for a comfy, minimal setup ☺️
Image 4 — LabWC and Noctalia for a comfy, minimal setup ☺️

LabWC and Noctalia for a comfy, minimal setup ☺️

Wallpaper : Edit of the album cover of 'Keyboard Fantasies', by Beverly Glenn-Copeland

Window theme : Modified Noctalia auto-template for Labwc

Font : Adwaita Sans

Icon : Default icons

Cursor : Capitaine, size 36

i was thinking of formalizing this setup into actually usable and readable dotfiles, let me know if you're interested :>

u/arni_ca — 7 days ago

[labwc] + Noctalia shell for a unified and visually minimal desktop :>

u/arni_ca — 7 days ago
▲ 6 r/kde

Window List widget does not switch to windows in other workspaces

EDIT : i forgot about a setting in Window Behavior that modifies focus policy if activating a window from another virtual desktop... choosing the "Switch to that Virtual Desktop" option on (Window Behavior) -> (Advanced) -> (Virtual Desktop behavior) fixed this 😭

===========

hello !

i wanted to use the window list plugin, but it turns out it does not make me switch to the window that the focus is onto.

i do notice that focus is shifted, seeing as the dot on the window border's cross is white and not red. it would be red if it was focused.

is there any reason for this happening? i made sure to have Focus Stealing Prevention set to None and to remove any active window rules, but this does not change anything. i also made sure that switching to another workspace was intended behavior, and this is indeed working on my Debian Trixie machine.

however, this setup is on CachyOS and ive noticed while looking up bugs on this widget that it recently received an update on 6.7 for sorting windows, which CachyOS is on and Trixie is not. is the workspace-switching feature missing, somehow?

is there a way i could troubleshoot this in more detail ?

if needed, my setup's specs and software versions :

arni@arni-soapbox
-----------------
OS: CachyOS x86_64
Host: GE62 7RE (REV:1.0)
Kernel: Linux 7.1.6-1-cachyos
Uptime: 14 mins
Packages: 1784 (pacman)
Shell: fish 4.8.1
Display (LGD046F): 1920x1080 in 16", 60 Hz [Built-in]
DE: KDE Plasma 6.7.4
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]
Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
Cursor: breeze (24px)
Terminal: konsole 26.4.3
Terminal Font: Hack (12pt)
CPU: Intel(R) Core(TM) i7-7700HQ (8) @ 3.80 GHz
GPU 1: NVIDIA GeForce GTX 1050 Ti Mobile [Discrete]
GPU 2: Intel HD Graphics 630 @ 1.10 GHz [Integrated]
Memory: 4.56 GiB / 7.66 GiB (60%)
Swap: 159.89 MiB / 7.66 GiB (2%)
Disk (/): 49.07 GiB / 115.24 GiB (43%) - btrfs
Disk (/mnt/externalDrive): 353.92 GiB / 915.82 GiB (39%) - ext4
Local IP (wg0-mullvad): 10.147.56.166/32
Battery (BIF0_9): 96% [AC Connected]
Locale: en_US.UTF-8
u/arni_ca — 10 days ago
▲ 3 r/pygame

Need help with enemy kill logic and collisions counting twice instead of once

hi !

i'm working on a small project right now, i'm making a Space Invaders-like game, with meteorites coming all sides but the bottom one and they'd spawn infinitely. sadly, i've run into two problems :(

likely they are easy fixes, but i am not used to the pygame library so there are chances that i just didnt do things the "right" way! this might especially be the case with spritegroups that i've seen, but am not sure of how to use

my first problem is that im not sure of how to kill a sprite, as the kill() method removes the sprite from all groups its a part of. what i did was make a list that would store the enemies, and then remove enemies as they would get hit by an attack (which requires an iteration over the list, so might not be very optimized?). but, i struggle to implement groups as im not sure of how to use them... this is likely due to a somewhat poorly organized main loop, and the way i implemented killing enemies means that an individual enemy cannot kill itself as it doesnt have access to the list its a part of, thus cant remove itself from it. groups seem to be able to solve this, but i often see update() methods used for those instead of draw() methods so i end up a bit confused, as ive only worked with draw() methods.

the second problem is that whenever my player attack collides with an enemy, or whenever my player picks up a powerup, the resulting effect is counted TWICE instead of one (so for example, 2 points for one enemy kill and two powerup effects for one powerup). i dont really know what causes it, and while i could implement some sort of immunity timer as i did to apply damage immunity after being hit, it feels like i'm circumventing the problem instead of fixing it... have i done something wrong on that end ?

i will leave the two pastebin codes here, as well as the repository where the code and external data (images, font) are stored so you can try it out if you so need

thank you lots for reading my post, and i wish you all a good day :)

main.py

characters.py

Codeberg repository hosting my code and data

reddit.com
u/arni_ca — 3 months ago