[–] 1 point 2 months ago* (last edited 2 months ago)

There's way too much info here to parse.

Can we get the output of:
lspci | grep Network && lsusb | grep Bluetooth && rfkill
This is the first step to diagnosing issues with your wireless radios such as wifi and bluetooth. This command (you can copy and paste it into a terminal, this command is totally safe, but normally you shouldn't copy commands you don't understand) will probe your PCI devices and USB devices to find anything matching the words "Network", "Wireless", or "Bluetooth", then it will run the "rfkill" command, which will tell us if these devices are "blocked" or "unblocked". If they are "blocked", you will need to "unblock" them.

To "unblock" your devices, using the number under "ID" as reported by the rfkill command instead of %ID%, run the following (this one cannot be copy-pasted, you must type it manually to ensure the correct command is entered):
sudo rfkill unblock %ID%

If this doesn't help:
You may have updated everything except your 'linux-headers'. Headers are special files that teach the kernel how to talk to userspace programs. Sometimes they're important for your drivers to work correctly. It would be worth running dpkg --list | grep linux-headers and seeing that you have an option that matches with the version supplied by uname -r. If you lack a matching header, manually install it via the apt package manager from the command line. It is as simple as sudo apt install linux-headers

Also, forgive my intrusion on your personal choices, but I would strongly recommend using Chromium or Ungoogled-Chromium unless you have a use-case for real full-fat Google Chrome. Google Chrome is an egregious piece of malware under the definition supplied by the Free Software Foundation.

Edit: Corrected first command, was too verbose and caused issues on my system, I was trying to solve every edge case at once and that was silly.

  • source
  • [–] 3 points 2 months ago

    I have something in the back of my head that this is a bad idea to try to do, because the whole ecosystem was built around the assumption that there is a finite number of columns.
    At the very least, there are various CLI tools that will show progress bars across the entire horizontal width, or they might also show some infos right-aligned.

    From a quick search, I'm also only really finding methods like these, which just chop off the line, with no way to then scroll horizontally...

  • source
  • [–] 3 points 3 months ago*

    Just use cmake with cloning 3 version from git and compile as part of ur project it pretty easy actually

    cmake_minimum_required(VERSION 3.28)
    project(MyGame LANGUAGES CXX)
    
    set(CMAKE_CXX_STANDARD 17)
    set(CMAKE_CXX_STANDARD_REQUIRED ON)
    
    include(FetchContent)
    
    FetchContent_Declare(
        SFML
        GIT_REPOSITORY https://github.com/SFML/SFML.git
        GIT_TAG        3.0.0
        GIT_SHALLOW    ON
    )
    
    set(SFML_BUILD_EXAMPLES OFF)
    set(SFML_BUILD_DOC OFF)
    set(BUILD_SHARED_LIBS ON)  
    
    FetchContent_MakeAvailable(SFML)
    
    add_executable(MyGame src/main.cpp)
    
    #example libs which u need 
    target_link_libraries(MyGame PRIVATE
        SFML::Graphics
        SFML::Window
        SFML::System
        SFML::Audio      
    )
    
  • source
  • [–] [S] 2 points 3 months ago (2 children)

    Hmm, I have indeed been successfully using TLP to limit battery charging to 80% but I haven't looked into what else it can do. Thanks for the reminder that it does more than just do that, haha. I guess I'll poke around to see if it can help reduce the depletion rate.

  • source
  • parent
  • context
  • [–] 6 points 3 months ago* (1 child)

    Use autocpu-freq.

    • on power: powerful
    • on battery: battery saver

    My laptop battery life became much longer with no heavy performance effects.

    And Check this out for how to limit battery changing to 80%: https://maniacx.github.io/Battery-Health-Charging/device-compatibility

    finally, install powertop and switch to tunables tab and tweak appropiately. Becareful, you might make youre laptop unstable&laggy with powertop!!!

  • source
  • [–] 5 points 3 months ago (3 children)

    TLP used to be the gold standard for laptop battery management when I last looked. Not sure if there's a new kid on the block these days or whether Mint already has TLP installed or not, but that's where I'd start looking.

    This might also contain some good info for laptop performance and battery life.

  • source
  • [–] 2 points 3 months ago* (last edited 3 months ago)

    As we know, it depends on the actual environment, where simpler or more complex options are available out-of-the-box.
    Meanwhile, have you tried?:
    - https://github.com/hluk/copyq
    - https://copyq.readthedocs.io/en/latest/scripting.html

    In CopyQ, since its compiled with the clipboard event handling, it's sure possible to handle these events, including changing the content or launching custom scripts, and though I don't like Python, I do like JavaScript, and CopyQ has built-in support for quite limited but JavaScript with its own API function built-in to handle it, mentioned in the documentation above.

    Preview of the settings I've just checked out in a Kubuntu machine I had on hands:

    | | | |


    |


    | | | |

    And it worked! The quick scripts I tried are the following:

    The one for CopyQ (I had v6.0.1)Apparently, it does not support

    copyq:
    try {
        var original = str(clipboard());
    } catch(e) {
        abort();
    }
    
    // If empty or too long
    if (!original || original.length > 10000) {
         abort();
    }
    
    try {
        var executed = execute('/home/user/scripts/clean-url.sh', original);
    } catch(e) {
        abort();
    }
    
    // If failed to execute
    if (!executed) {
        abort();
    }
    
    var cleaned = str(executed.stdout).trim();
    
    // If empty or matches the original (CopyQ may get into a loop otherwise)
    if (!cleaned || !cleaned.length || cleaned === original) {
        abort();
    }
    
    // Change the clipboard buffer
    copy(cleaned);
    
    

    That program or script, to clean it, may be anything you prefer of course, including Bash, Perl, PHP, JavaScript, or what AutoHotKey does/executes in your case possibly.


    There's the following to automate the read/write I know but haven't used, too:
    - https://github.com/Slackadays/Clipboard

    In Wayland, you may use wl-paste to read, and wl-copy to write into the clipboard.
    In X11, xclip to both read and write.

    The thing is that there should be some kind of event to handle on the clipboard change, and there options as DBus or Qt, yet I am not currently aware of a verified option to do so without an actually compiler program to subscribe to such an event.

    For instance, Klipper, the Qt program, uses the even handling over DBus exposed via its libraries for convenience.

  • source
  • parent
  • context
  • [–] [S] 1 point 3 months ago (1 child)

    I ported over as much as I could to Espanso, yeah. I appreciate your concern and would ideally ditch this software too but the problem is that I haven't found a really competent equivalent; Python is just way too tricky to figure out and libraries like pywinauto or whatever it's called are really limited in terms of what they're capable of doing (not enough!), or AutoKey is just insanely complex with so many files being needed versus just one master file that one can use with AutoHotkey (which I also use at my Windows-mandated workplace).

    For example, one frequently used script of mine in AutoHotkey/Keysharp purges the clipboard's URL of all known trackers before pasting, even doing HTML-decoding as needed if encoding is detected. I haven't been able to find anything that can as easily do this on Linux, though I suppose I could poke around more, or if worse comes to worst, try to have an AI build a cross-platform one, haha.

  • source
  • parent
  • context
  • [–] 2 points 3 months ago (2 children)

    Thank you very much for sharing!

    AutoHotKey (AHK) are quite great for Windows, yet I am not sure about Linux, where you may have even more featureful and optimal solutions based on Xorg/Wayland, and/or your desktop environment (e.g., KDE Plasma).
    Unless you don't want/have time to migrate these Windows-oriented scripts, are you sure you want to depend on them?

  • source
  • parent
  • context
  • view more: next ›