• 23 Posts
  • 609 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle










  • I like these self made scripts. Some ideas to improve this: a) instead ls, use find command if you want use its output as input in another program (will yield fullpath too), b) fzf has a preview functionality, which I like a lot to use when it comes to directories or script files. As for the run command, I’m not sure why you use xargs and what i3-msg is needed for. Here is an alternative way.

    (Edit: I always forget that beehaw will convert my ampersand to &. Have this in mind if you read the below code.)

    bash -c 'cd "${HOME}/.local/bin"; path="$(find . -maxdepth 1 -type f -executable -printf "%f\n" | fzf --preview "cat {}")" && "${path}"'
    

    below same command in a bit more readable standalone script:

    #!/usr/bin/env bash
    cd "${HOME}/.local/bin" || exit 1
    path="$( \
        find . -maxdepth 1 -type f -executable -printf "%f\n" | \
        fzf --preview "cat {}" \
    )" && "${path}"
    

    The biggest problem with fzf is, that scripts that need an argument are not covered here. One could either use the input string from fzf as arguments or like that, or an optional input after fzf selection.


  • I might be missing something here but I don’t know how other launchers could possibly make this a simpler process.

    Shortcuts to launch an app directly in example. So my keyboard becomes my launcher.

    I use bunch of different tools, including KRunner (on KDE) and previously Rofi. These type name and search tools for launching an app have the problem that you need to remember what name the tool was. For programs I use often this is not an issue, but not all applications have names good to remember and not all of them are used often. The associated description helps, but sometimes I don’t know what words to type.

    Therefore I “need” the app menu with categories and favorites, to navigate with the mouse through. And the most used applications are usually assigned to a shortcut and my panel on the top. In short I use mostly all of these techniques as an application launcher (in that order):

    1. favorites on panel and my keyboard shortcuts
    2. app menu with categories, navigating with mouse
    3. run tool to search for app name and description (also integrated into the app menu)
    4. additional helper scripts to search and launch programs in the terminal

    Edit: Forgot to mention that some of the launchers I use are custom made scripts for the terminal.








  • thingsiplay@beehaw.orgtoGaming@lemmy.ml*Permanently Deleted*
    link
    fedilink
    arrow-up
    20
    arrow-down
    1
    ·
    5 days ago

    Valve and Steam is actually the best thing happened to PC Gaming and Linux. No thanks, I want Valve and Steam succeed. I’ve seen the same claims over and over again and most of the time its wrong or disingenuous. I’m not saying Valve is a prophet, off course there are things I don’t like about.

    But saying Valve is ripping every PC gamer is a lie.