KDE Krauts

302 readers
1 users here now

🇩🇪 Ein bilingualer KDE Lemmy. Powered by s3nnet.de

🇬🇧 A bilingual KDE Lemmy. Powered by s3nnet.de

Regeln:

Rules :

founded 2 years ago
MODERATORS
1
2
 
 

I looked at KWin::Window on the Kwin scripting API page but didn’t find any ways to make a given window become maximized.

3
 
 

I did some looking and there doesn't seem to be one, unless you know of any. Ideally I want a modal file manager like Yazi: it's keys are highly inspired by vim with H J K L navigation (H & L for traversing directories), a visual mode for selecting files, and lots of commands and customization. The one thing its missing is a grid view to preview image files. None of the orthodox file manager seem to have one, including Krusader which I just looked at. I'd love to finally stop using the mouse for file management and could go with either a TUI or GUI manager.

4
1
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

Edit: I edited the script to take a screenshot asynchronously, get the region with slurp, and use magickto crop it. I also multiply the values from slurp 2x to account for the 200% display scaling I have.

  #!/bin/bash 

	die(){
    notify-send "$1"
    exit 1
  }
  cleanup(){
    [[ -n $1 ]] && rm -r "$1"
  }
  SCR_IMG=$(mktemp -d) || die "failed to take screenshot"
  trap "cleanup '$SCR_IMG'" EXIT

	spectacle -nbo "$SCR_IMG/scr.tiff" &
	region=($(slurp -b "#00000000" -c "#80808080" -w 2 -f "%w %h %x %y"))
	for i in "${!region[@]}" 
	do
		region[i]=$(expr ${region[i]} "*" "2")
	done
	magick "$SCR_IMG/scr.tiff" -crop "${region[0]}x${region[1]}+${region[2]}+${region[3]}" "$SCR_IMG/scr.tiff" 

	tesseract "$SCR_IMG/scr.tiff" "$SCR_IMG/scr" &> /dev/null || die "failed to extract text"
  wl-copy < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
  notify-send "Text extracted from image" "$(head -c 100 "$SCR_IMG/scr.txt")" || die "failed to send notification"
  exit

I'm using this script from HN* to select regions on the screen and copy their text, I took out the line with mogrify. It uses spectacle but it takes a moment before opening the UI, is it possible and would it be faster if Spectacle stayed open in the background? The slurp CLI starts instantly for me for selecting regions, I looked for command line screenshot tools to maybe use with it or has its own region support but didn't find any. Neither maim scrot and grim don't work on Plasma Wayland. I installed the ksnip flatpak but the option for rectangular regions doesn't show for me.

* The script:

  #!/bin/bash 
  # Dependencies: tesseract-ocr imagemagick 
  # on gnome: gnome-screenshot 
  # on kde: spectacle
  # on x11: xsel
  # on wayland: wl-clipboard

  die(){
    notify-send "$1"
    exit 1
  }
  cleanup(){
    [[ -n $1 ]] && rm -r "$1"
  }

  SCR_IMG=$(mktemp -d) || die "failed to take screenshot"

  # shellcheck disable=SC2064
  trap "cleanup '$SCR_IMG'" EXIT

  #notify-send "Select the area of the text" 
  if  which "spectacle" &> /dev/null
  then
    spectacle -n -b -r -o "$SCR_IMG/scr.png" || die "failed to take screenshot"
  else
    gnome-screenshot -a -f "$SCR_IMG/scr.png" || die "failed to take screenshot"
  fi

  # increase image quality with option -q from default 75 to 100
  mogrify -modulate 100,0 -resize 400% "$SCR_IMG/scr.png"  || die "failed to convert image"
  #should increase detection rate

  tesseract "$SCR_IMG/scr.png" "$SCR_IMG/scr" &> /dev/null || die "failed to extract text"
  if [ "$XDG_SESSION_TYPE" == "wayland" ]
  then 
    wl-copy < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
  else
    # xsel -b -i  < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
    xclip -selection clipboard -i < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"  
  fi
  # Notify the user what was copied but truncate the text to 100 characters
  notify-send "Text extracted from image" "$(head -c 100 "$SCR_IMG/scr.txt")" || die "failed to send notification"
  exit  #!/bin/bash 
  # Dependencies: tesseract-ocr imagemagick 
  # on gnome: gnome-screenshot 
  # on kde: spectacle
  # on x11: xsel
  # on wayland: wl-clipboard

  die(){
    notify-send "$1"
    exit 1
  }
  cleanup(){
    [[ -n $1 ]] && rm -r "$1"
  }

  SCR_IMG=$(mktemp -d) || die "failed to take screenshot"

  # shellcheck disable=SC2064
  trap "cleanup '$SCR_IMG'" EXIT

  #notify-send "Select the area of the text" 
  if  which "spectacle" &> /dev/null
  then
    spectacle -n -b -r -o "$SCR_IMG/scr.png" || die "failed to take screenshot"
  else
    gnome-screenshot -a -f "$SCR_IMG/scr.png" || die "failed to take screenshot"
  fi

  # increase image quality with option -q from default 75 to 100
  mogrify -modulate 100,0 -resize 400% "$SCR_IMG/scr.png"  || die "failed to convert image"
  #should increase detection rate

  tesseract "$SCR_IMG/scr.png" "$SCR_IMG/scr" &> /dev/null || die "failed to extract text"
  if [ "$XDG_SESSION_TYPE" == "wayland" ]
  then 
    wl-copy < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
  else
    # xsel -b -i  < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
    xclip -selection clipboard -i < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"  
  fi
  # Notify the user what was copied but truncate the text to 100 characters
  notify-send "Text extracted from image" "$(head -c 100 "$SCR_IMG/scr.txt")" || die "failed to send notification"
  exit
5
6
 
 

Edit: I got answers on the Fedora forum and used this command in my parallels VM and restarted: sudo grubby --update-kernel=ALL --args=video=Virtual-1:3456x2234@120.

I'm trying to get a custom resolution & refresh rate in KDE Wayland. I can get 120hz working on X11 by getting a modeline with cvt 4112 2572 120 and using xrandr commands, but how about Wayland? Perhaps be done with kscreen-doctor?

7
8
9
10
11
12
 
 
13
2
Baloo with high CPU usage? (hubzilla.markusgarlichs.de)
submitted 10 months ago by [email protected] to c/[email protected]
 
 

Something is wrong with Baloo 6.5.0 under KDE Plasma (Arch). I observe an extremely high CPU utilization of the baloo_file_extractors process. Can anyone confirm this or have other hints?

#KDE #KDE6 #KDEPlasma #kdeplasma6 #linux @KDE @KDE Krauts @KDE

14
15
 
 

Diese Woche in KDE für Ungeduldige. Die deutsche Fassung demnächst auf s3nnet.de

16
 
 

Hi all,

I'm running Linux Mint 21.3 with KDE Plasma 5.27. I wanted to try the new Plasma 6 and followed the instructions on distrobox's site using the fedora rawhide as well as KDE Neon user images. The Desktop runs fine in a Wayland compositor window on my 5.27 X11 session but if I create a . desktop file in /use/share/wayland-sessions as suggested in the blogpost, I am unable to have it launch. It shows me a black screen, then puts me back to lightdm.

I've tried also to include the dbus-run-session command in the.desktop file.

Can anyone help me?

17
 
 

Hello everyone, I am using digiKam and want to selecte image to delete via the dupicate search functionality. How do I select the duplicates I want to remove? the remove duplicate button on the left only deletes all of them. I’d like an option to delete specifik images only. selection one image and pressing delete seem to not move them to trash. right-click and slecting "move to trash" is rather tedious. I am sure there is a better way.

If the docs cointain the answer, I cant find it

18
19
 
 

cross-posted from: https://lemmy.ml/post/5590471

#Plasma6 is coming in February 2024. Support #KDE with an official membership and your name will be recorded in the release of our brand new desktop environment.

This where your donation will make a difference:

  • Sprints for Developers: You will help finance the in-person meetups that keep our developers energized and focused on making KDE even better.
  • Travel Costs to Events: You will support our team's presence at important gatherings and conferences, like FOSDEM, FOSSAsia and LinuxCons.
  • Akademy Event: You will ensure the success of KDE's yearly community event for all members, and foster collaboration and growth.
  • Running KDE: You will keep the lights on at KDE HQ and our digital home running smoothly.
  • Paying Support Staff: You will ensure KDE has on hand the experts we need to assist our contributors and users.
20
21
 
 

cross-posted from: https://lemmy.ml/post/3072599

"With this blog I would like to introduce KRdp, which is a new library implementing the required glue to create a server exposing a KDE Plasma Wayland session over the RDP protocol. It also contains a command-line based server which will allow remote clients to control the current Plasma Wayland session."

22
23
 
 

So, they finally built their own instance.

Go to [email protected] and subscribe!

Have fun!

24
25
view more: next ›