[-] Moshpirit@lemmy.world 25 points 1 month ago

Letting Lemmy choose Hannah Montana Linux for you.

26
83
1

Sometimes I like to use nvim for PKM stuff (sometimes in parallel with Logseq because I think that the vim plugin does what it can, but there's a lot of features that I just do quicker on nvim. So, I created this alias to open in the terminal the latest .md file in my PKM folder (both pages and journals) pkmu.

I also have another ones like pkm, that opens in nvim today's journal. and pkmj and pkmp open the directory for PKM journals and pages, if I want to do anything there (maybe a fzf, rename, bat, rm…).

alias pkm='nvim "$HOME/Documentos/PKM/logseq/journals/$(date +%Y_%m_%d).md"'
alias pkmj='cd $HOME/Documentos/PKM/logseq/journals/'
alias pkmp='cd $HOME/Documentos/PKM/logseq/pages/'
alias pkmu='nvim "$(find $HOME/Documentos/PKM/logseq/ -type f -name '\''*.md'\'' -printf '\''%T@ %p\n'\'' | sort -n | tail -1 | cut -d'\'' '\'' -f2-)"'

I just wanted to share this with you, just in case it helps, or gives you any cool idea.

17
submitted 5 months ago by Moshpirit@lemmy.world to c/unixporn@lemmy.ml

One of the reasons why I use i3 is because I can dedicate a workspace for specific programs and a specific layout. What other wm allow this kind of configuration?

[-] Moshpirit@lemmy.world 18 points 5 months ago

Why the damage?

[-] Moshpirit@lemmy.world 23 points 6 months ago

This one seriously lack of Hannah Montana Linux.

10
submitted 6 months ago by Moshpirit@lemmy.world to c/unixporn@lemmy.ml

Do you use or know of any cool module for polybar that allows to manage notifications, especially if they include a no-disturb mode or even let us see previous notifications too like some kind of rofi menu?

11

Context: I need to have installed a a program called Smowl, which is a closed-source app that records EVERYTHING to make sure you don't do weird stuff while doing an online exam. To avoid installing such monstrosity on my laptop, and since virtualbox is probably banned, I wanted to use a persistent bootable device to have the program installed and know that everything works well in a few days.

Tails and booting software: I tried with Tails, but the software doesn't work there because it's too private. I also tried using other tools other than ImageWriter or dd to make other distros persistent, but if I use Unetbootin the distro doesn't get recognized when booting the laptop, and I the other tool that I found to have similar powers is mkusb, but it's no longer maintained and it cannot be installed on Arch (there's a compiling issue).

MX Linux: I also tried MX Linux, but I don't know how to make it persistent in the first place because I followed all the steps but I don't get it to show me the last session to boot to or the "text menu" option of this guide. I tried this several times, with two pen drives (8GiB both), but I got no luck, even when using MX Linux live USB tool to make the other pen drive bootable. What am I missing?

7
submitted 8 months ago* (last edited 8 months ago) by Moshpirit@lemmy.world to c/techsupport@lemmy.world

I created this script at ~/.config/i3/scripts/qt6ct.sh to set QT_QPA_PLATFORMTHEME depending on whether I'm using Plasma or I3wm:

#!/bin/bash
CURRENT_DESKTOP=$(echo "$XDG_CURRENT_DESKTOP")

if [ "$CURRENT_DESKTOP" = "i3" ]; then
    export QT_QPA_PLATFORMTHEME="qt5ct"

elif [ "$CURRENT_DESKTOP" = "KDE" ]; then
    # Si estás usando Plasma (KDE), comentar la línea que exporta la variable
    unset QT_QPA_PLATFORMTHEME
else
    echo "Gestor de ventanas no es i3 ni kwin: $CURRENT_DESKTOP"
fi

echo $CURRENT_DESKTOP
echo $QT_QPA_PLATFORMTHEME

I created an autostart program and added this to my i3 config file

exec ~/.config/i3/scripts/qt6ct.sh
exec source ~/.config/i3/scripts/qt6ct.sh

I don't know what's wrong with it, but if I run it on a terminal, I get this (screenshot):

➤ ~/.config/i3/scripts/qt6ct.sh 
i3
qt5ct
➤ echo "$QT_QPA_PLATFORMTHEME"
                    
➤

So this script doesn't really export anything at all.

I have searched on every file that I thought could be exporting it as a null value (~/.bashrc, ~/.profile, ~/.bash_profile, ~/.xinitrc, ~/.Xresources, /etc/environment, /root/.profile, /root/.bashrc), but everything looks fine (no QT_QPA_PLATFORMTHEME anywhere, or is commented).


Solution

The only thing we'll need in.xprofile is sourcing the script:

#!/bin/bash
CURRENT_DESKTOP=$(echo "$XDG_CURRENT_DESKTOP")

if [[ "$CURRENT_DESKTOP" = "i3" ]]; then
    export QT_QPA_PLATFORMTHEME="qt5ct"
    export QT_SCREEN_SCALE_FACTORS=1.5 # 1.5
    export QT_AUTO_SCREEN_SCALE_FACTOR=0
elif [[ "$CURRENT_DESKTOP" = "KDE" ]]; then
    unset QT_QPA_PLATFORMTHEME
    export QT_AUTO_SCREEN_SCALE_FACTOR=1

else
    echo "Gestor de ventanas no es i3 ni kwin: $CURRENT_DESKTOP"
fi

echo $CURRENT_DESKTOP
echo $QT_QPA_PLATFORMTHEME
echo $QT_SCREEN_SCALE_FACTORS
echo $QT_AUTO_SCREEN_SCALE_FACTOR 
19
submitted 8 months ago by Moshpirit@lemmy.world to c/unixporn@lemmy.ml

I saw some screenshots from people using ROFI with something like tabs to change from the apps selector to the power menu, to the clipboard, to you name it menu. Here is an example. Would you share some more configurations like this one? I really like the idea of having all the menus at the same place with just one key binding. Also, I'd like to know how to configure ROFI better, and I think I can learn a lot from these kinds of configurations.

7

I am running in the same Linux distro two environments: Plasma (former KDE) and i3wm.

I use the same command on both environments: sudo systemctl start mysql.service && sudo mysql -u root -p -h localhost -P 3306, but while on KDE/Plasma I get no error, on i3wm I get a "the name is not activatable" error, and I don't know how to fix it (here's a screenshot).

Here's an extract from MySQL Workbench:

04:32:53 [ERR][SQL Editor Form]: SQL editor could not be connected: The name is not activatable
04:32:53 [ERR][SQL Editor Form]: Your connection attempt failed for user 'root' to the MySQL server at 127.0.0.1:3306:
  The name is not activatable

Also, I found out firefox doesn't connect to 127.0.0.1:3306 either on i3; on Plasma I get something like ("The connection has been restarted. The connection to the server was reset while the page was loading.").

I find is interesting too, because syncthing can connects through the localhost on i3wm, but mariadbd can't for some reason:

sudo lsof -n | grep TCP | grep LISTEN
[…]
syncthing   841 31843 syncthing          alberto  14u     IPv4              11863       0t0        TCP 127.0.0.1:8384 (LISTEN)
mariadbd   2537                            mysql  32u     IPv4              16382       0t0        TCP *:mysql (LISTEN)
32
submitted 9 months ago by Moshpirit@lemmy.world to c/kde@lemmy.kde.social
73
submitted 9 months ago* (last edited 9 months ago) by Moshpirit@lemmy.world to c/unixporn@lemmy.ml
204

I'm interested in hosting something like this, and I'd like to know experiences regarding this topic.

The main reason to host this for privacy reasons and also to integrate my own PKM data (markdown files, mainly).

Feel free to recommend me videos, articles, other Lemmy communities, etc.

[-] Moshpirit@lemmy.world 12 points 11 months ago

They are also brick allergic?!! That's nuts!!

[-] Moshpirit@lemmy.world 15 points 11 months ago

Your mom rules.

[-] Moshpirit@lemmy.world 30 points 11 months ago

GNL is difficult to pronounce or longer if you spell it.

[-] Moshpirit@lemmy.world 16 points 1 year ago

Please don't put more pressure on us, we're already telling people to do that.

[-] Moshpirit@lemmy.world 13 points 1 year ago

Some people don't like that Plasma is usually (depending on the distro) offered with an aesthetic that reminds to windows, so it's easier for newbies.

[-] Moshpirit@lemmy.world 12 points 1 year ago

I was just joking, use whatever you want haha

[-] Moshpirit@lemmy.world 17 points 1 year ago

I'm surprised no one has said "use linux instead" already.

[-] Moshpirit@lemmy.world 19 points 1 year ago

People who abuse animals, beyond normalised speciesism. Like kicking dogs or cats. Or wearing fur. Or... OK normalised speciesism also makes me lose respect to someone when they know about it and they don't care.

[-] Moshpirit@lemmy.world 18 points 1 year ago

Apple too requires mechanisms to block stalkers from what I saw on Mastodon.

view more: next ›

Moshpirit

joined 1 year ago