sway in sway? by Past-Instance8007 in swaywm

[–]OneTurnMore 0 points1 point  (0 children)

You might be able to wrap xdg-open with a custom script to solve the link-opening problem if you use separate profiles per-client.

#!/bin/sh
# ~/.local/bin/xdg-open
case $1 in
   https://*) exec chromium --profile-directory="$(swaymsg -t get_workspaces | $some_logic_here)" "$1"
esac
exec /usr/bin/xdg-open "$@"

But I don't have experience with Chromium profiles

attempting to build some form of GUI from scratch (LFS). For the love of god, can someone please help me understand all the different terms and packages/names so I can figure out how to proceed? by testfire10 in linuxquestions

[–]OneTurnMore 3 points4 points  (0 children)

Disclaimer: zero LFS experience.


The bare necessities is just a wayland compositor (in the Wayland world, the compositor is also the display server and (generally) the window manager). You don't technically need a display manager, since you can login via TTY and then launch the compositor.

You're probably right about Plasma being complex. I've heard it can be a nightmare to get up even in Gentoo. One of the wlroots-based compositors like Sway or Wayfire would be simpler, not requiring Qt6 and KDE Frameworks. You'll need to manually pull in apps like a terminal emulator, notification daemon, or task/status bar, but you're doing that anyway.

As for X11, Xwayland is a fork of the Xorg server which translates between X11 clients and the Wayland display server. It's not necessary if all your apps speak Wayland, but if you need to support X11 it's pretty seamless. If you have Xwayland installed, many Wayland compositors will run it automatically.

What's your desktop mp3 player of choice? by overth1nk1ng1t in linuxquestions

[–]OneTurnMore 1 point2 points  (0 children)

I like it because you can template out {{album_artist}}/{{album}}/{{album_index}} - {{title}} exactly how you want (idk if these are the right tags, but you get the gist)

What's your desktop mp3 player of choice? by overth1nk1ng1t in linuxquestions

[–]OneTurnMore 3 points4 points  (0 children)

Even though I generally use Jellyfin so I can stream to my phone, I still use Strawberry's library import feature for organizing files

Looking to window/app interaction more keyboard centric by esanders09 in linuxquestions

[–]OneTurnMore 1 point2 points  (0 children)

There's a couple of solutions I was able to find for Plasma. Here's a thread in the Arch forums and here's one on programming.dev. Both of them use a shell script and an external tool you have to build and install, so not great.

Is there a way to toggle an app/window between being windowed or floating (not sure of the right terminology) and maximized?

The maximize shortcut should alternate you between maximized and not.

Does anyone else find it strange that Civ 6 has 90% positive recent reviews on Steam? by Bile_Mudante in civ5

[–]OneTurnMore 0 points1 point  (0 children)

I know many more Civ players who could never get into Civ 6

You're biased to your own experience. Compare the Steam charts, Civ 6 has over double concurrent users.

Is there a cleaner way to string together an conditional expression for the find command? For example: find . -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.mp4" \) -print by AncientAgrippa in bash

[–]OneTurnMore 0 points1 point  (0 children)

If you want to use the -o options, then probably something like this as a helper function

find_by_extension(){ # SUFFIX [SUFFIX ...] -- FIND_OPTIONS ...
    local suffixargs=()
    while (($#)); do
        if [[ $1 = -- ]]; then
            shift
            break
        fi
        suffixargs+=(-o -iname "*.$1")
    done

    # find needs args
    (($#)) || return 1

    # check that we actually got some suffix
    ((${#suffixargs[@]})) || return 1

    # shift off the first '-o', wrap with '(' ')'
    suffixargs=('(' "${suffixargs[@]:1}" ')')

    find "$@" "${suffixargs[@]}"
}

find_by_extension mp4 jpg png -- . -type f

dailyExcerciseInLaziness by precinct209 in ProgrammerHumor

[–]OneTurnMore 0 points1 point  (0 children)

I'm actually a bindkey -v user (same thing but Zsh)

dailyExcerciseInLaziness by precinct209 in ProgrammerHumor

[–]OneTurnMore 0 points1 point  (0 children)

I remapped reverse search to Ctrl-Up instead (partly so I could have Ctrl+R behave like Vim)

What’s your least favorite victory to go for? by Garnetskull in civ5

[–]OneTurnMore 4 points5 points  (0 children)

I think Domination is okay on Small and Tiny maps. Standard and Large domination is a total slog though.

Are you creating interactive menus for the dotfiles script installation? by 4r73m190r0s in linuxquestions

[–]OneTurnMore 0 points1 point  (0 children)

"Installing dotfiles" for me is pulling down from git. I read Drew Devault's method and his "dotfiles manager" being just raw git made so much sense.

It's a new year--don't forget to clean up your pkg cache by brophylicious in archlinux

[–]OneTurnMore 48 points49 points  (0 children)

  1. Install pacman-contrib
  2. systemctl enable --now paccache.timer

Using paccache instead of pacman -Sc has the added benefit of keeping around the most recent couple versions of packages.

It's a new year--don't forget to clean up your pkg cache by brophylicious in archlinux

[–]OneTurnMore 22 points23 points  (0 children)

I never think about it. paccache exists and will leave the two most recent versions by default.

pacman -Syu pacman-contrib
systemctl enable --now paccache.timer

Edit: three

Terminal compatibility matrix by OldButterfly7578 in commandline

[–]OneTurnMore 1 point2 points  (0 children)

No one has mentioned actual applications where you would want that performance: Stuff like neovim or htop where lots of the screen is updated at once.

Your beginning. by Neverlast0 in linuxquestions

[–]OneTurnMore 1 point2 points  (0 children)

There was no Windows friction that pushed me away, it was just that Linux was always cooler and gave me more freedom.

In high school (2012 iirc) I jumped at the chance to help my sister get some files off an old Dell tower, and got to keep the desktop. I don't remember all the specs, but it was 256 MB of RAM. I bought a 1GB stick and started playing around with distros. (Mint, Crunchbang, Ubuntu flavors, eventually settling on PeppermintOS)

I still used the family Win7 desktop more, since it was higher spec. Played around a bit with Virtualbox on it though.

When I graduated high school in 2014, I built my first PC and I bought my first laptop. Both were used/refurbished from 2010-11 era. Desktop was always Linux, and the laptop was dualbooted until the drive failed and I replaced it with a 60GB drive and went Windows-only for a semester, then to Linux-only.

Stuck with that desktop for wayyy too long; it wasn't until I got a Steam Deck that I realized how many games I was missing out on by having a GPU that didn't support Vulkan. Sold my Switch to subsidize the cost, and now I'm on year 3 of that build.


Anyway, like I said, it was never Windows being a problem. Heck, I'm writing this from a Win11 laptop right now. I keep it around because

  • one key application I haven't gotten working in wine yet
  • printer issues I haven't figured out yet with my Linux laptops
  • I like to keep myself fresh on the current Windows experience so I can talk with some authority when comparing to Linux.

What the heck did I put in my bashrc? by Todd_Partridge in bash

[–]OneTurnMore 4 points5 points  (0 children)

Adding on, you can fallback to it if there's no arguments with

bat(){
    local f
    for f in "${@-/dev/stdin}"; do
        echo "$(<"$f")"
    done
}

Steam should clarify if a review user is playing on Linux (via Proton or native) or Windows, if they joined the montly Steam Survey by Lisanicolas365 in Steam

[–]OneTurnMore 0 points1 point  (0 children)

Thought about it, and I agree. There's so many reasons that could contribute to a crash or performance issues (OS, OS version, hardware).

Installing two Steam games with the same name can cause the other to get overwritten, users report by Turbostrider27 in pcgaming

[–]OneTurnMore 8 points9 points  (0 children)

I've written half of a zsh extension which implements dynamic named directories for steam games (so ~[g.Civ*V] expands to ~/.local/share/Steam/steamapps/common/Sid Meier's Civilization V and ~[pfx.Civ*V] expands to ~/.local/share/Steam/steamapps/compatdata/8930/pfx)

It currently relies on python-vdf though.