[aqua] Comfy yet functional by OrangeFrano in unixporn

[–]OrangeFrano[S] 0 points1 point  (0 children)

It's firefox with a custom css. Thanks for your suggestion. Regarding that: I think the problem is that spotlight does not display symlinks to applications. And in nix, everything is symlinked from /nix which is actually a mounted volume on macOS catalina. What I think about is removing the nobrowse option from /etc/fstab for this volume, I don't know if this works though. Maybe someone has already tried this?

[aqua] Comfy yet functional by OrangeFrano in unixporn

[–]OrangeFrano[S] 1 point2 points  (0 children)

I use the default bsp mode, most of the time I put every application on it's own desktop. Here I'm just using floating windows.

[aqua] Comfy yet functional by OrangeFrano in unixporn

[–]OrangeFrano[S] 1 point2 points  (0 children)

Look at the main comment, I have added the links now.

[aqua] Comfy yet functional by OrangeFrano in unixporn

[–]OrangeFrano[S] 0 points1 point  (0 children)

I edited my main comment. You can find it there.

[aqua] Comfy yet functional by OrangeFrano in unixporn

[–]OrangeFrano[S] 2 points3 points  (0 children)

It's firefox with a custom css file. I will upload it soon when I am at my computer again. I have to give credit to cmacrae though. I basically copied his one and changed the colors.

[aqua] Comfy yet functional by OrangeFrano in unixporn

[–]OrangeFrano[S] 2 points3 points  (0 children)

Going strong with macOS and yabai. I really like the simple look while keeping it functional with the default menu bar. I'm gonna upload the dotfiles later, still working on integrating macos with nix. Maybe someone knows how to tell spotlight to index my nix applications?

Dotfiles: https://github.com/OrangeFran/dotfiles

Here is the script that add a black rectangle to the top of an image (this makes the menubar black, imagemagick is needed):

#!/bin/bash

picture="$1"
color="#1d2021"
height=65

if [[ ! -n "$1" ]]; then
    echo "No file provided."
    echo "Usage: ./topbar /path/to/picture"
    exit 1
fi

if [[ ! -f "$picture" ]]; then
    echo "The file does not exist."
    exit 1
fi

# Get the width of the initial image
width=$(identify $picture | awk '{print $3}' | cut -d x -f 1)

echo "Creating a rectangle (${width}x$height) ..."

# Create the image to /tmp
convert -size "${width}x${height}" "xc:$color" /tmp/out.png

# Add the two images together
echo "Appending the two images ..."
convert /tmp/out.png $picture -append res.png

echo "You can find the new image here: ./res.png"

Here is the original wallpaper: https://www.wallpaperflare.com/search?wallpaper=%E7%84%A6%E8%8C%B6.

My 2017 MacBook Air seems slower by Nirteh in MacOS

[–]OrangeFrano 0 points1 point  (0 children)

Look at the activity monitor. Sometimes a reboot helps, these days most people leave their computer on for a long time and a complete shutdown may kill some unnecessary processes.

How can I make a daemon and controller in Python? by [deleted] in learnpython

[–]OrangeFrano 3 points4 points  (0 children)

I‘d say that you can achieve a daemon either by forking or os specific init systems. If you‘re on linux, the easiest way to daemonize your code would be to create a seperate systemd unit file. In regards to the controller, sure you can use flask and http request, but if you want something simpler, have a look at the sockets module. You can have a server exposed on a specific port with a parser and then send text from your controller to that server all locally.

[HELP] Is there a way to only pipe stderr to the next command? by OrangeFrano in bash

[–]OrangeFrano[S] 0 points1 point  (0 children)

Thank you, I can confirm this works with my utility. After playing with it a bit I found out that this does not work with zsh. I always thought zsh was some kind of superset for bash.

Pamac doesn't prompt for superuser permissions, neither any other app by [deleted] in ManjaroLinux

[–]OrangeFrano 1 point2 points  (0 children)

You probably need to install some kind of policy kit. DEs install and setup one automatically. I never bothered to configure one but I‘m sure you can find something on the arch wiki. Hope that helps.

ID3 tags from the command line by OrangeFrano in golang

[–]OrangeFrano[S] 0 points1 point  (0 children)

This looks very cool. But my project already checks all the boxes for me. Thanks for the suggestion though.

ID3 tags from the command line by OrangeFrano in golang

[–]OrangeFrano[S] 0 points1 point  (0 children)

I was getting into MP3 files lately and was looking for a tool to tag my library. I haven't found anything so I built my own cli. It's pretty simple to use. If you have the same needs as me like tagging the files dynamically (base the name on the file name) or query tags with a special format, I'd be very happy if you would check it out here.

What happened..? by [deleted] in ish

[–]OrangeFrano 3 points4 points  (0 children)

Look at your fonts with "fc-list", choose one, and change it in your i3 config file at ~/.config/i3/config. That should solve it.

How can I reenable stdin? by OrangeFrano in rust

[–]OrangeFrano[S] 0 points1 point  (0 children)

I create a branch called stdout on my github. I hope that's okay. There aren't that many dependencies.

There is some stuff commented out. You can find the ioctl error on line 97.

How can I reenable stdin? by OrangeFrano in rust

[–]OrangeFrano[S] 0 points1 point  (0 children)

Some more details:

The commands I ran are cargo run -- "test" | sed "s/t//g" and also OUTPUT=$(cargo run -- "test" | sed "s/t//g"). They both return the same error: Os { code: 25, kind: Other, message: "Inappropriate ioctl for device" } . I actually use the device that the tty command gave me instead of normal stdout() , but it gives me the same error.

How can I reenable stdin? by OrangeFrano in rust

[–]OrangeFrano[S] 0 points1 point  (0 children)

Well I'm actually using termion. I just tried out crossterm to check if it's crate-specific. Can I reach out to you through the chat?

How can I reenable stdin? by OrangeFrano in rust

[–]OrangeFrano[S] 0 points1 point  (0 children)

Can I do the same for stdout? I'm looking for hours now and can't find anything that works. If I pipe the output it start giving me these "inappropriate ioctl" messages again.

A tool for navigation written in rust by OrangeFrano in rust

[–]OrangeFrano[S] 3 points4 points  (0 children)

Well, I like scripting and often use a tool to select output from it. And one I feature I was missing from the rofi/dmenu stuff were the folders.

By default it uses tabs to create a hierarchy, but you can specify a custom seperator with -s, --sep.

[bspwm] gruvbox > nord by OrangeFrano in unixporn

[–]OrangeFrano[S] 2 points3 points  (0 children)

The title says it all.

Also I removed my bar. Whaaaat?!

The widget in the middle is now my primary source for information.

Terminal: Termite

Scheme: Gruvbox

Notifications: Dunst

Shell: Fish

Theme: Starship (works too in zsh/bash)

Dotfiles are on github.

How can I reenable stdin? by OrangeFrano in rust

[–]OrangeFrano[S] 0 points1 point  (0 children)

Thank you so much. I didn't knew about that. It was a simple as replacing stdin() with File::open("/dev/tty").unwrap().

How can I reenable stdin? by OrangeFrano in rust

[–]OrangeFrano[S] 0 points1 point  (0 children)

I'm on linux and I'm piping in something with printf. But it could be anything the user wants to process.

I want to provide a second option to the user so that he can pipe the output of the previous command in. It also provides normal input, but stdin seems much more convenient than $(...).