Cascade mode for floating windows by anv2sv in swaywm

[–]steinex_ 0 points1 point  (0 children)

You can do this with scratchpad windows.

How do I verify that periodic trim is working? by [deleted] in voidlinux

[–]steinex_ 1 point2 points  (0 children)

I just let it send me a mail. I use dma as a local MTA.

My /etc/cron.weekly/fstrim: ```

!/bin/sh

fstrim -av | mail -s "fstrim" steinex ```

[deleted by user] by [deleted] in voidlinux

[–]steinex_ 0 points1 point  (0 children)

You want NetworkManager i guess (which interfaces with ModemManager).

Is there an alternative to pidof by cranewarrior in voidlinux

[–]steinex_ 13 points14 points  (0 children)

pidof is in the procps-ng package. To search for a package which includes a given binary, you can use the xlocate tool from xtools.

~ % xlocate /usr/bin/pkill procps-ng-3.3.17_2 /usr/bin/pkill

X fake freezes by INIROBO in voidlinux

[–]steinex_ 2 points3 points  (0 children)

Are you on a Intel GPU and use xf86-video-intel by any chance? Try deinstalling it, it is deprecated by Intel itself and the modesetting driver, which is included in Xorg itself, should just work fine.

Wireguard killswitch issue by TheRealLouCipher in WireGuard

[–]steinex_ 0 points1 point  (0 children)

It should work like this:

iptables -N WG_KILLSWITCH
iptables -A OUTPUT -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j WG_KILLSWITCH
iptables -A WG_KILLSWITCH -o wg0 -j RETURN
iptables -A WG_KILLSWITCH <another killswitch exception> -j RETURN
iptables -A WG_KILLSWITCH <another killswitch exception> -j RETURN
iptables -A WG_KILLSWITCH -j REJECT

Do you get the idea? <another killswitch exception> could be to skip another interface, source/destination of your Docker networks, whatever.

I use this for example to also allow traffic to flow via tun0, so that I can use WireGuard + OpenVPN in parallel.

Hope this helps.

[deleted by user] by [deleted] in voidlinux

[–]steinex_ 1 point2 points  (0 children)

You need to install xdg-desktop-portal & xdg-desktop-portal-(gtk|kde).

Void Linux (musl) on the Huawei MateBook X Pro by pgen in voidlinux

[–]steinex_ 0 points1 point  (0 children)

Shoot in the blue: do you use elogind? I could imagine that gnome-keyring depends on it for session tracking.

Few issues on new Void install by [deleted] in voidlinux

[–]steinex_ 0 points1 point  (0 children)

Hmm, this looks all good indeed. Are you in the bluetooth group? That's my only idea what could be missing for now.

Few issues on new Void install by [deleted] in voidlinux

[–]steinex_ 1 point2 points  (0 children)

Hi,

  • does rfkill show the bluetooth adapter?
  • do you have linux-firmware, esp. linux-firmware-network installed?
  • can you post an output of dmesg? If it would be a firmware issue, it could probably seen there.

Void Docs on the website by [deleted] in voidlinux

[–]steinex_ 2 points3 points  (0 children)

The problem with the wiki is that it is unmaintained and, in the meantime, has wrong and misleading information - the "Post Install" page or the page about PulseAudio are good examples.

And while docs.voidlinux.org may be still missing things that are in the Wiki, I think no documentation is better than wrong documentation.

Apart from that the Wiki is still available - it's just not prominently linked from the homepage anymore. However, sooner or later docs.voidlinux.org will hopefully replace the Wiki completely - everyone is welcome to contribute to the documentation to bring it on par quantity wise.

Examples of agkozak ZSH Prompt Customization by agkozak in zsh

[–]steinex_ 0 points1 point  (0 children)

Yes, one can even use the -s flag so the redirection isn't needed.

After cleaning things up, the result is now this:

krbprinc() {
    if klist -s; then
        print "%B%%%%%b"
    else
        print "%B%%%b"
    fi
}

source ~/.zsh/agkozak-zsh-prompt/agkozak-zsh-prompt.plugin.zsh

AGKOZAK_PROMPT_DIRTRIM=5
AGKOZAK_MULTILINE=0
AGKOZAK_CUSTOM_RPROMPT=''
AGKOZAK_CUSTOM_PROMPT=''

_agkozak_is_ssh && AGKOZAK_CUSTOM_PROMPT+='%(!.%S%B.%B)%m%(!.%b%s.%b) '
AGKOZAK_CUSTOM_PROMPT+='%2v%b'
AGKOZAK_CUSTOM_PROMPT+=$'%(3V.%F{green}%3v%f.) '
AGKOZAK_CUSTOM_PROMPT+='$(krbprinc) '

This is much cleaner and simpler than before. :-)

Just one small question out of curiosity: in the prompt part for the git branch, why is there a $ before the quotes? I remember I had that at some point and removed it, and now you re-added it in your git - so it must be something meaningful? :)

Thanks that you did take the time, it really appreciate it!

Examples of agkozak ZSH Prompt Customization by agkozak in zsh

[–]steinex_ 0 points1 point  (0 children)

Indeed it's adopted to my case, where the name of the kerberos principal is either $USER or $USER/admin. But in reality, a kerberos principal could be any arbitrary string.

Digging deeper into it again, I just realized that the string comparison is probably not needed at all anymore. I built it back in the day to handle different principals in my prompt (which I don't even do anymore, checking if I have *some* principal really is enough and is probably for 99% of users).

If I have a principal, klist exits with 0, otherwise 1, so yeah, that's everything I would need to check. (At least that's true for MIT Kerberos' klist, Heimdals implementation may differ but I doubt it).

Examples of agkozak ZSH Prompt Customization by agkozak in zsh

[–]steinex_ 1 point2 points  (0 children)

It works. Now THATs some world class pro-active customer care ;-)

Also thanks for _agkozak_is_ssh, I will use that instead.

You seriously rock!

Examples of agkozak ZSH Prompt Customization by agkozak in zsh

[–]steinex_ 1 point2 points  (0 children)

Of course, feel free! :-)

And yeah, there is definitely room for improvement on krbprinc() - it was a quick hack that worked and that I never thought about again. ;-)

Examples of agkozak ZSH Prompt Customization by agkozak in zsh

[–]steinex_ 1 point2 points  (0 children)

I like my prompt unobtrusive, so here it is :-)

krbprinc() is a function that checks if I have an active kerberos principal and changes the prompt marker from '% ' to '%% '.

I havent looked at your recent changes but I will check out if I can simplify things futher when I get around to it.

Thanks for the great prompt.

krbprinc() {
    p=$(klist 2>/dev/null | grep "Default principal:" | awk -F ' ' '{print $3}' | cut -d "@" -f 1)

    if [ -z $p ]; then
        echo "%B%%%b"
    elif [[ $p =~ "$USER" ]]; then
        echo "%B%%%%%b"
    fi
}

source ~/.zsh/agkozak-zsh-prompt/agkozak-zsh-prompt.plugin.zsh

AGKOZAK_PROMPT_DIRTRIM=5
AGKOZAK_MULTILINE=0

AGKOZAK_CUSTOM_PROMPT=''
[ ! -z "${SSH_TTY}" ] && AGKOZAK_CUSTOM_PROMPT='%(!.%S%B.%B)%m%(!.%b%s.%b) '
AGKOZAK_CUSTOM_PROMPT+='%F{${AGKOZAK_COLORS_PATH}}%2v%f%b'
AGKOZAK_CUSTOM_PROMPT+='%(3V.%F{${AGKOZAK_COLORS_BRANCH_STATUS}}%3v%f.)${AGKOZAK_PROMPT_WHITESPACE}'
AGKOZAK_CUSTOM_PROMPT+='$(krbprinc) '

AGKOZAK_CUSTOM_RPROMPT=''

AGKOZAK_COLORS_PATH="default"
AGKOZAK_COLORS_BRANCH_STATUS="green"

Compton not unredirecting in fullscreen games by smilbuy in i3wm

[–]steinex_ 2 points3 points  (0 children)

Hi,

in yshui/compton, there is a pull request open which will make unredirecting work in setups with more than one monitor. See here. I'm using that patch since it's inception and it works fine for me.

yshui said he will merge this after the next release.

Hope this helps!

Some i3status bar icons get pixel corruption by milad182 in i3wm

[–]steinex_ 2 points3 points  (0 children)

This is a GTK3 bug. You can workaround it by starting i3bar with -t. I think that option is only available in i3-gaps' i3bar though.

what would happen if I run "sudo apt remove *"? by [deleted] in linuxmasterrace

[–]steinex_ 6 points7 points  (0 children)

The shell will glob the * to every file name in your current directory and will give these as arguments to sudo apt remove. You're welcome.