linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

MonkderZweite, in Is anyone using awk?

My only usecase was finding and cutting at the same time. Until i noticed that grep | cut -d… 5x faster is.

otl, in Is anyone using awk?
@otl@lemmy.sdf.org avatar

I use it for my very basic static site generator: www.olowe.co/2021/01/site-build.html

lvl, in need help fixing a hardware problem using linux

I have had an identical problem a few years back, with a Samsung 2 in 1 that worked perfectly on AC, but had exact issues on battery.

It was the “power saving” capability of the GPU that triggered it on battery. So simply disabling this is the integrated Intel GPU control panel (in Windows) fixed the problem. Laptop is still running now and works with my sister in law.

dingdongitsabear,

thanks for chiming in. yeah, some surface models are prone to have these issues as well, I remember trying that in windows but with no results. in linux, the i915 driver doesn’t have that option any more, or I suck at reading comprehension… anyhow, not sure that’s the same issue, as my device has these spells also when on AC power but with battery installed. the only times it’s functioning properly is when it’s on AC and with battery removed. but this looks like a promising lead to research further.

WeLoveCastingSpellz, in Linux Boomers

Your dissapointment about your own existence bleeds into the article, just shut the fuck up at this point :/

JaneTheMotherfucker,

Where does that come from? I’m awesome.

HaunchesTV, in Linux Boomers

This is satire, right?

rien333, in Linux Boomers

ITT: lots of angry boomers

WalrusByte, in Is anyone using awk?
@WalrusByte@lemmy.world avatar

Sometimes I copy and paste an awk command from online, but I can never remember how to write it myself

cybersandwich,

I’m convinced no one actually knows how to write awk. It’s all copy and pasted from the web.

caseyweederman,

I am very, very slowly chiseling it into my long-term memory. I feel like Rincwind.

Dirk, in Linux Boomers
@Dirk@lemmy.ml avatar

Old things bad, new things good. I write article that is satire about it.

I’m strong. I’m no boomer. Please love me.

cope cope cope

ComeHereOrIHookYou, in Does Wayland really break everything? (Nate Graham's OG post ref'd in the Phoronix article)
@ComeHereOrIHookYou@lemmy.world avatar

I wouldn’t say it breaks everything. Franky it fixes / handles better issues that are common usecases today that was not the case during the time X11 was still the norm / actively maintained such as:

  • Multiple monitor support with varied refresh rates
  • Hybrid GPU setup (including being able to use your motherboard’s hdmi socket and your dedicated gpu hdmi at the same time)
  • Display scaling
  • Better isolation of applications (to the deterrence of existing linux applications)

Of course granted its a new protocol, it doesn’t support all the usecases that X11 was designed for due to variety or reasons (including controversial decisions)

Mind you, Wayland isn’t perfect either. For example, I found out that despite Wayland having better Hybrid GPU setup support out of the box, there are applications that ended up having broken multi-gpu support (where the application in question can choose which gpu it would utilize for its processing) where it works fine X11.

With the state of the hardware we are having, it is understandable why distros have been focused on pushing Wayland as the default, although honestly, it would be wise for these distros to not completely phase out x11 because currently, Wayland isn’t perfect.

Ramin_HAL9001, (edited ) in Is anyone using awk?

I used to use the command line, Bash, Awk, Sed, Cut, Grep, and Find (often piped to one another) quite often. I can recall that the few times I used Awk was usually for collating lines from logs or CSV files.

But then I switched to using Emacs as my editor, and it gathers together the functionality of all of those tools into one, nice, neat little bundle of APIs that you can easily program in the Emacs Lisp programming language, either as code or by recording keystrokes as a “macro.”

Now I don’t use shell pipelines hardly at all anymore. Mostly I run a process, buffer its output, and edit it interactively. I first edit by hand, then record a macro once I know what I want to do, then apply the macro to every line of the buffer. After that, I might save the buffer to a file, or maybe stream it to another process, recapturing its output. This technique is much more interactive, with the ability to undo mistakes, and so it is easier to manipulate data than with Awk and shell pipelines.

netwren,

This is fascinating to me. Do you have any links or suggestions for this workflow to learn more?

Ramin_HAL9001, (edited )

This is fascinating to me. Do you have any links or suggestions for this workflow to learn more?

I am glad you asked, because I actually wrote a series of blog posts on the topic of how Emacs replaced my old Tmux+Bash CLI-based workflow. The link there is to the introductory article, in the “contents” section there are links to each of the 4 articles in the series. The “Shell Basics” (titled “Emacs as a Shell”) might be of particular interest to you.

If you have any specific questions, or if you have recommendations for something you think you would like to learn from one of my blog posts, please let me know. I would like to write a few more entries in this blog series.

TechieDamien, in Live (Animated) wallpapers programs for linux

I set mpv as the root window which worked well. I stopped using it a while back, but if you are interested, I could dig up the simple script for you (literally one or two lines iirc).

manito_manopla,
@manito_manopla@lemmy.ml avatar

Ok, give me the script, please

TechieDamien,

Sure. If you are using an nvidia optimus laptop, you should also add __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia at the start of the last line when running in hybrid mode to run mpv on the dgpu. You should have a file at ~/.wallpaperrc that contains wallpaper_playlist: /path/to/mpv/playlist. You may want to add this script to your startup sequence via your wm/de.


<span style="color:#323232;">#!/bin/sh
</span><span style="color:#323232;">
</span><span style="color:#323232;">WALLPAPER_PLAYLIST=$(cat ~/.wallpaperrc | grep -v '^w*#' | grep 'wallpaper_playlist' | sed "s/wallpaper_playlist: //")
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">xwinwrap -g 1920x1080 -ov -- mpv -wid WID --no-osc --no-audio --loop-playlist --shuffle --playlist=$WALLPAPER_PLAYLIST
</span>

Hope this helps!

throwawayish, in Linux Boomers

Username checks out

hackerwacker, in Linux Boomers

I’ve tried GNOME 45 extensively and I just don’t see how it’s better.

Even looking at the screenshots I don’t understand how GNOME 45 is better than GNOME 2. It doesn’t even LOOK better. You need extensions to get basic functionality like a window list and tray icons.

Then there’s the bad parts, like every window now has different decorations, doesn’t work with nvidia, etc.

There’s nothing wrong with angryposting, but it needs a kernel of truth which this is missing.

velox_vulnus, (edited ) in Linux Boomers

For someone who hates these “Linux boomers”, you’re using Wordpress, which uses the good old PHP.

Shouldn’t you be working on your own minimal Gopher website or something like Rust-SWC, with all that fancy hydration and hybrid SSR-SSG framework?

People can have opinions. You, on the other hand, need to mind your business.

And yes, I’ll take your advice and move over to Guix. Shepherd and Guille looks pretty fine to me.

Junkers_Klunker, in Linux Boomers

This is so incredibly cringe that its downright unreadable. Take your own advise, use whatever you want and shut the fuck up.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #