There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

linux

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

I_like_cats , in Wayland Protocols 1.32 Brings Three New Staging Protocols

Good to see that wayland protocols are still being worked on. If only they would merge ext-layer-shell

jks , in Your best terminal aliases

Not exactly an alias but a short script. First, get git-revise which is a replacement for git rebase, and fzf if for some reason you don’t have it yet. Then make a script in your ~/.local/bin called git-f or whatever you’d like:

<pre style="background-color:#ffffff;">
<span style="font-style:italic;color:#969896;">#!/bin/bash
</span><span style="color:#323232;">REF</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">${</span><span style="color:#323232;">1</span><span style="font-weight:bold;color:#a71d5d;">:-</span><span style="color:#183691;">origin/main}  </span><span style="font-style:italic;color:#969896;"># adjust to your favorite trunk branch name
</span><span style="color:#323232;">COMMIT</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">$(</span><span style="color:#323232;">git</span><span style="color:#183691;"> log</span><span style="color:#323232;"> --pretty</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">oneline ${</span><span style="color:#323232;">REF</span><span style="color:#183691;">}.. 
</span><span style="color:#183691;">         </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">fzf --preview </span><span style="color:#183691;">"git show -p --stat {+1}" </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">cut -d</span><span style="color:#183691;">' '</span><span style="color:#323232;"> -f1</span><span style="color:#183691;">)
</span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#62a35c;">[ </span><span style="color:#323232;">-n </span><span style="color:#183691;">"$</span><span style="color:#323232;">COMMIT</span><span style="color:#183691;">" </span><span style="color:#62a35c;">]</span><span style="font-weight:bold;color:#a71d5d;">; then
</span><span style="color:#323232;">    </span><span style="color:#62a35c;">exec</span><span style="color:#323232;"> git revise </span><span style="color:#183691;">"$</span><span style="color:#323232;">COMMIT</span><span style="color:#183691;">"
</span><span style="font-weight:bold;color:#a71d5d;">else
</span><span style="color:#323232;">    </span><span style="color:#62a35c;">exit</span><span style="color:#323232;"> 1
</span><span style="font-weight:bold;color:#a71d5d;">fi
</span>

Now hack away in a branch, make some commits, and at some point you will realize you want to modify an earlier commit. Use git add -p to add the relevant lines, but then instead of making a fixup commit just type git f and pick the target commit from the list.

knobbysideup , in Your best terminal aliases
<pre style="background-color:#ffffff;">
<span style="color:#323232;">become="sudo su -"
</span><span style="color:#323232;">pb="ansible-playbook"
</span>
minorsecond , in Your best terminal aliases
<pre style="background-color:#ffffff;">
<span style="color:#323232;">alias ein='f() { sudo emerge -av $1 };f'
</span><span style="color:#323232;">alias eup='sudo emerge -avuDN @world'
</span>
poeplva , (edited )

The first alias actually gave me some ideas, thanks for that. But I don’t understand how is what you did is really different from alias ein=‘sudo emerge -av’. I think the only thing that is different is the way you do it ein abc def will be the same as ein abc, but why would you want this?

minorsecond ,

The second one updates world, so you get a system update.

minorsecond ,

I just realized what you were asking lol. I’ve had a couple beers, sorry.

Your idea may work, I’ll have to try it.

markkdark , in Anyone still using Sailfish OS ?

I was first on Nokia n500 than Sony phone (I don’t remember witch model) and Sony 10. It’s was really good OS but its lack of app and official app is still the same. And I must use a android apps… I miss a concept and idea, but for normal life / business I need up date apps , and communication with others… Graphene os without Google is good, no perfect but it’s better solution for my work. Maybe in future will be perfect Linux phone…but it’s still not. Sailfish OS…they was a really top chances but it’s didn’t developed apps… it’s was good idea, but it’s not enough, Jolla team was missed chances, I think so it’s so late now.

InverseParallax , in What is the current state of Nvidia's open source drivers?

Nouveau works with older cards, performance is still about half last I checked, and most of the advanced features are missing.

Terraria should be fine though, it’s a functional driver, just not much more.

Lemmchen , (edited ) in OpenRGB: Open source, cross-platform RGB lighting control that doesn't depend on manufacturer software

I'm using ckb-next for my Corsair peripherals. Every other component in my Linux system either doesn't have RGB or has RGB intentionally disabled in the UEFI.

Choctaw , in what is the best privacy distro?
@Choctaw@lemmy.radio avatar

Depends on your use case, but there is Tails OS if you’re a whistleblower or reporter and afraid of state actors, and Parrot Security OS has a lot of security, privacy features as well being a pentest distro. I ran Parrot OS for a while and it was pretty good. Good things for privacy, use a VPN to mask your IP as well as using privacy proxy search engines. I tend to not trust many of the VPN companies that were being gobbled up with one linked to Israeli intelligence, so I run my own Wireguard server, Pi-Hole/Unbound DNS servers on everything with lots of block lists, and my own Searxng and Whoogle search proxies. And some things I do behind Tor. A state actor can pin me down with my own VPN server which lacks a lot of users, but that’s not my worry and I use it to just mask my home IP and protect me from ISP snooping for normal internet use.

rah , in Anyone still using Sailfish OS ?

Never did use it.

wgs OP ,
@wgs@lemmy.sdf.org avatar

Thanks for sharing your experience ;)

sgharms , in Suse Liberty Linux

Just to confirm, SuSE has no ties to SCO and that weird crusade Darl McBride was on, right?

nan ,
@nan@lemmy.blahaj.zone avatar

No. The controversy over SUSE was over Novell making an agreement with Microsoft over patents.

Novell and SCO had their own dueling lawsuits against each other.

sgharms ,

Thanks, the details of the early decade of the year of Desktop Linux are growing murky.

PureTryOut , in Anyone still using Sailfish OS ?
@PureTryOut@lemmy.kde.social avatar

I daily drived the original Jolla Phone. However since I realized that it was even more proprietary (the core apps + UI toolkit Silica is proprietary) than a simple AOSP Android ROM, I decided that my next phone would be a regular Android phone again.

Now I’m dual-booting both postmarketOS and CalyxOS (which is an Android ROM) oh my SHIFT6mq and I have no reason to ever go back to SailfishOS, even though I liked the experience at the time.

wgs OP ,
@wgs@lemmy.sdf.org avatar

I suppose you dual boot them because postmarketOS isn’t usable as a daily driver right ?

I liked Sailfish UI a lot, and the fact it was a “standard” Linux with coreutils, git, rsync, etc… by default was the main reason I switched to it. But yeah, I’ve been quite deceived by their recent “updates”. I now have an Xperia 10 III, but there doesn’t seem to be much custom ROMs that support it unfortunately (which is also why sailfish support isn’t great anyway).

PureTryOut ,
@PureTryOut@lemmy.kde.social avatar

For some people it’s definitely usable as a daily driver but not for me yet. I for one require some Android apps and Waydroid isn’t far enough yet, but I also need good suspend/battery saving which isn’t there yet on this particular device.

ReverseModule , in Suse Liberty Linux
@ReverseModule@discuss.tchncs.de avatar

I installed Tumbleweed immediately after seeing this. What a great company! :)

GustavoM , (edited ) in Your best terminal aliases
@GustavoM@lemmy.world avatar

*ahem

alias brb=‘paru -Syu --noconfirm && paru -Sc --noconfirm’

gbin ,

You should name it alias btw=… to fully embrace our stereotype ;).

SinJab0n , in Firefox 115 Now Available With Intel GPU Video Decoding On Linux

Yes

CsXGF8uzUAOh6fqV , in Your best terminal aliases
@CsXGF8uzUAOh6fqV@lemmy.world avatar

Selection of my fish abbreviations for comfy terminal creatures:

<pre style="background-color:#ffffff;">
<span style="color:#323232;"># MISC -----------------
</span><span style="color:#323232;">abbr -a la 'exa -la'
</span><span style="color:#323232;">abbr -a p 'python'
</span><span style="color:#323232;">abbr -a v 'nvim'
</span><span style="color:#323232;">abbr -a rmd 'rm -rf'
</span><span style="color:#323232;">abbr -a feh 'feh --scale-down -d'
</span><span style="color:#323232;">abbr -a ka 'doas killall'
</span><span style="color:#323232;">abbr -a fp 'ffplay'
</span><span style="color:#323232;">abbr -a ff 'firefox'
</span><span style="color:#323232;">abbr -a tree 'exa -T'
</span><span style="color:#323232;">abbr -a libver 'dpkg -l | grep'
</span><span style="color:#323232;">abbr -a ex 'chmod +x'
</span><span style="color:#323232;"># specific file and directory based
</span><span style="color:#323232;">abbr -a notes 'nvim ~/.vimwiki/index.md'
</span><span style="color:#323232;">abbr -a idir 'cd ~/some/important/dir'
</span><span style="color:#323232;">abbr -a fishconf 'nvim ~/.config/fish/config.fish'
</span><span style="color:#323232;">abbr -a vimconf 'nvim ~/.config/nvim/init.vim'
</span><span style="color:#323232;">abbr -a i3conf 'nvim ~/.config/i3/config'
</span><span style="color:#323232;"># PACMAN ---------------
</span><span style="color:#323232;">abbr -a pin 'doas pacman -S'
</span><span style="color:#323232;">abbr -a pun 'doas pacman -Rns'
</span><span style="color:#323232;">abbr -a pss 'pacman -Ss'
</span><span style="color:#323232;">abbr -a pls 'pacman -Qd'
</span><span style="color:#323232;">abbr -a aurls 'paru -Qm'
</span><span style="color:#323232;">abbr -a pct 'pacman -Q | wc -l'
</span><span style="color:#323232;">abbr -a syu 'paru -Syu'
</span><span style="color:#323232;">abbr -a pcl 'paccache -r -k 1; paru --cc;'
</span><span style="color:#323232;">abbr -a pfd 'pacman -Qs'
</span><span style="color:#323232;"># GIT ------------------
</span><span style="color:#323232;">abbr -a ga 'git add -A; git status'
</span><span style="color:#323232;">abbr -a gr 'git reset'
</span><span style="color:#323232;">abbr -a gd 'git diff'
</span><span style="color:#323232;">abbr -a gc 'git commit -m'
</span><span style="color:#323232;">abbr -a gdc 'git diff HEAD~0 --stat'
</span><span style="color:#323232;">abbr -a gl 'git log'
</span><span style="color:#323232;">abbr -a gb 'git branch'
</span><span style="color:#323232;">abbr -a gp 'git push origin'
</span><span style="color:#323232;">abbr -a gch 'git checkout'
</span><span style="color:#323232;">abbr -a gam 'git commit --amend - m'
</span><span style="color:#323232;">abbr -a gcl 'git clone'
</span><span style="color:#323232;"># RUST -----------------
</span><span style="color:#323232;">abbr -a cc 'cargo clippy --all-features'
</span><span style="color:#323232;">abbr -a ccc 'cargo check'
</span><span style="color:#323232;">abbr -a cb 'cargo build'
</span><span style="color:#323232;">abbr -a cr 'cargo run'
</span><span style="color:#323232;">abbr -a cbr 'cargo build --release'
</span><span style="color:#323232;">abbr -a crr 'cargo run --release'
</span><span style="color:#323232;">abbr -a ct 'cargo test'
</span><span style="color:#323232;">abbr -a ctt 'cargo tarpaulin --ignore-tests --skip-clean'
</span><span style="color:#323232;">abbr -a bacon 'bacon clippy-all -w'
</span><span style="color:#323232;">abbr -a cil 'cargo install --path ./'
</span><span style="color:#323232;">abbr -a cia 'cargo install-update -a'
</span><span style="color:#323232;">abbr -a ca 'cargo add'
</span>
MoriGM OP ,
@MoriGM@feddit.de avatar

I maybe steal your rust aliases What is bacon by the way?

CsXGF8uzUAOh6fqV ,
@CsXGF8uzUAOh6fqV@lemmy.world avatar

Bacon is just compiler output but it “stays open” in your terminal and refreshes after you save your file; It is nice if you use something a bit minimal like vim without language server but you don’t want to compile manually every time.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines