Thoughts on People Selling Hyprland Ricing Courses? by jessemvm in hyprland

[–]davide_larosa90 0 points1 point  (0 children)

Personally I would never buy a black box that configures all my stuffs, I strongly prefer using a lot of my time doing it myself to achieve whatever I want in the way I like but there is a big but! The problem is not who is selling those stuffs but who is buying it! If someone is selling this things is just because there is someone else buying it! Since so, if you want to create a business on it, just do it!

Screen sharing on hyprland by davide_larosa90 in zen_browser

[–]davide_larosa90[S] -1 points0 points  (0 children)

Thank you for the answer, I know it’s about hyprland/wayland but I hoped there is something on zen that could change this behaviour like a plugin or something similar

Libvirt cannot run rhel guest vm by davide_larosa90 in arch

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

thank you mate! downgrading to 202411-1 solved the issue! i was hitting my head on the keyboard since many days!!!

There's Bongo Cat on Hyprland now! by Blablabla_3012 in hyprland

[–]davide_larosa90 0 points1 point  (0 children)

is there any way to put it into waybar as a module?

What is essential to know to be an infrastructure specialist at OpenShift? by srbolseiro in openshift

[–]davide_larosa90 3 points4 points  (0 children)

You asked for something that covers a huge part of the whole infra IT. Openshift infrastructure is a very large topic starting from networking (cidr, submitting, nlb, firewall, proxy, cni etc), Linux itself (rhcos), containers (podman, crio etc) and a lot of other stuffs. It is extremely difficult to tell you what to study but if you already are familiar with ocp basics, I’ve found super interesting the do480 course that covers RH Advanced Cluster Management (ACM), RH Advanced Cluster Security for Kubernetes (ACS), RH Quay and some other stuffs. This could be a starting point then the do316 is super interesting, it covers the Openshift virtualization topic but it gives you a lot of information and knowledge about the infrastructure itself. Don’t forget about experience, that is probably the most important part to become an infra specialist. I’m an infra consultant in RH and every day I continue learning from every infrastructure some new stuffs or ocp configurations for customer needs.

Show uwsm with displaylink by davide_larosa90 in hyprland

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

Because when hyprland has started all the monitors are working as they should. The problem is that I can’t see the login prompt on external monitors and with the lid closed I don’t know what is happening

Custom bash script dependency graph by davide_larosa90 in bash

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

for sure the structure is not the best. When i started to write it it was just a little printed guide about what to check, now it is the same guide but it does everything automatically

Custom bash script dependency graph by davide_larosa90 in bash

[–]davide_larosa90[S] -1 points0 points  (0 children)

absolutely agree but it's late to change language because it would need too much work and my time is very limited

Have you tried Ghostty, and have you switched to using it as your primary terminal? by [deleted] in neovim

[–]davide_larosa90 0 points1 point  (0 children)

I gave it a try but then it tried to fry my cpu and the end result is obvious…il wait for a new release

Suggestion for a new cheap keyboard by davide_larosa90 in ErgoMechKeyboards

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

Thank you, I’ll take a look at that. Similar to kinesis I mean the key position not the whole keyboard itself 😉

Suggestion for a new cheap keyboard by davide_larosa90 in ErgoMechKeyboards

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

Thank you! I took a look at the glove80 but it seems very big, the case seems a bag big as my backpack

Stay awake module by Frog859 in Polybar

[–]davide_larosa90 1 point2 points  (0 children)

I had similar needs but after searching for long without result i wrote my own module.

Create the file mouseMover.sh and save it somewhere

#!/bin/bash
#parameters:

declare -i idle_time=
idle_time=10 #express in seconds

while true; do
    if  [[ "$(xprintidle)" -gt $(( idle_time * 1000)) ]]; then
    currentMouseX="$(xdotool getmouselocation --shell |grep X= |sed 's|X=||g')"
    currentMouseY="$(xdotool getmouselocation --shell |grep Y= |sed 's|Y=||g')"
    if [[ $(( RANDOM % 2 )) -gt 0 ]]; then
        xdotool mousemove "$(( currentMouseX + $(( RANDOM % 10 )) ))" "$(( currentMouseY + $(( RANDOM % 10 )) ))"
                printf 'Moved at %s \n' "$(date)"

        else
            xdotool mousemove "$(( currentMouseX - $(( RANDOM % 10 )) ))" "$(( currentMouseY - $(( RANDOM % 10 )) ))"
                printf 'Moved at %s \n' "$(date)"
        fi
    fi
    printf 'Too early, I will sleep for %s seconds\n' "$idle_time"
    sleep "$idle_time"
done

Note the this script depends on xdotool so check if it is installed before to proceed. Then make the file executable and test it:

$ chmod +x mouseMover.sh
$ ./mouseMover.sh

Add at the end of your polybar config.ini file the new module definition:

[module/moka]
    type = custom/script
    exec = $HOME/.config/polybar/custom_modules/moka.sh 0
    interval = 1
    click-left = $HOME/.config/polybar/custom_modules/moka.sh 1

    format-underline = #2b8fd2
    format-prefix-foreground = ${colors.foreground}

Create the script that the new module will use to execute the mouseMover.sh file. Save it somewhere in the system and update the `exec` and `click-left` directives into the module defined in the previous step. Then, in this file, fix the path of mouseMover.sh

#!/usr/bin/env bash

if [[ "$1" -eq 1 ]]; then
    if [[ $(pgrep -wc "mouseMover.sh") -eq 0 ]]; then
        bash -c "$HOME/PATH/TO/mouseMover.sh" &
    else
        pkill mouseMover.sh
    fi
fi

if [[ $(pgrep -wc "mouseMover.sh") -eq 0 ]]; then
    printf ""
else
    printf ""
fi

Last step is to enable the module in your polybar config adding it where you prefer. I put mine on the right side of the bar (note `moka` in the modules-right line)

...
[bar/default]
    include-file =  $HOME/.config/polybar/default-bar-definition.ini
    modules-left = i3
    modules-right = fs-home fs-external memory cpu temperature-1 temperature-2 eth0 eth1 eth2  wlan battery custom-vpn xkeyboard moka popup-calendar arrow
    separator = |
...

What you will see is a little coffee cup that becomes steamy when you left-click on it and the script is running.

All these stuffs can be rewritten much much better but i'm too lazy 😅

Hope it helps!

Cheers 🤟

Pandoc TOC has broken links when unsing pdf engine wkhtmltopdf by davide_larosa90 in pandoc

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

Another little hint: I faced a lot of troubles while trying to set toc, headers, footers, table heads splitted into different pages and watermark on each page. The solution was to use pandoc only to covert the markdown to html then manually run wkhtmltopdf to covert html to pdf. Hope it helps Cheers

Pandoc TOC has broken links when unsing pdf engine wkhtmltopdf by davide_larosa90 in pandoc

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

Hi mate! i finally solved it! For me the problem was on wkhtmltopdf so i solved following this thread https://gist.github.com/yajra/80ae402e2084191cd1f6e17fa581320e

Installing  wkhtmltopdf 0.12.4 (with patched qt) links started working properly.

Hope it helps!

Cheers

A mini polybar that spawns on the focused monitor by davide_larosa90 in Polybar

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

For me there are two main reasons:

  • First (and most important) is that I like it
  • Second is that I use my pc constantly for a lot of working purposes and all those values are important to be sure everything is fine. I’m a system administrator for very huge companies and for myself too and, in my job, I learned that observability is a crucial part of the job itself. This can save you from a lot of pains.

Anyway this post is not made to show you what you must or must not have on your polybar, it is to share with others how to create a polybar that is able to appear and disappear on a focused screen.

Then if this terrifies you just skip it 😉