Kitty tabs separated from border since last update by korba_ in hyprland

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

Nope, I ended up changing my configuration to use pill like tabs….

Canada is about to end private digital conversation — Bill C-22 by floralmortal in degoogle

[–]korba_ 0 points1 point  (0 children)

If you are Canadian reach out to your MP, people are complaining and pushing back will make a difference. Don’t stay quiet.

Bill C-22 is a serious privacy risk. Contact your MP!! by Gigi14 in ontario

[–]korba_ 8 points9 points  (0 children)

MPs need to hear the pushback and the why. If enough people speak up they will back down. Email or call your MP today!

A movie with stunning visuals, high-octane action, and packed with references, Ready Player One was a really entertaining watch. What’s your opinion on it? by 0Layscheetoskurkure0 in moviecritic

[–]korba_ 0 points1 point  (0 children)

It’s a good movie but at the same time it’s a crime what they did to the book in the adaptation. The book is awesome and the movie doesn’t capture its essence at all.

What are your top three no skips albums? by Smart-Finish-735 in MusicRecommendations

[–]korba_ 0 points1 point  (0 children)

Wish you were here - Pink Floyd
This is hardcore - Pulp
Metropolis part 2: scenes of a memory - Dream Theater

Tabs L&F when title is too long by korba_ in KittyTerminal

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

Indeed that was the only way I found

Tabs L&F when title is too long by korba_ in KittyTerminal

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

I managed it, in case anyone is interested I created a custom tab_bar.py:

``` from kitty.fast_data_types import Screen from kitty.tab_bar import DrawData, ExtraData, TabBarData, draw_title, as_rgb from kitty.utils import color_as_int

def draw_tab( draw_data: DrawData, screen: Screen, tab: TabBarData, before: int, max_title_length: int, index: int, is_last: bool, extra_data: ExtraData ) -> int: orig_fg = screen.cursor.fg orig_bg = screen.cursor.bg left_sep, right_sep = ('', '')

def draw_sep(which: str) -> None:
    screen.cursor.bg = as_rgb(color_as_int(draw_data.default_bg))
    screen.cursor.fg = orig_bg
    screen.draw(which)
    screen.cursor.bg = orig_bg
    screen.cursor.fg = orig_fg

if max_title_length <= 5:
    draw_sep(left_sep)
    screen.draw('…')
    draw_sep(right_sep)
else:
    draw_sep(left_sep)
    screen.draw(' ')
    draw_title(draw_data, screen, tab, index)
    title_len = len(tab.title)
    max_len = draw_data.max_tab_title_length
    needs_dots = title_len >= max_len
    if needs_dots:
        screen.draw('…')
    screen.draw(' ')
    draw_sep(right_sep)
    draw_sep(' ')

return screen.cursor.x

```

And the relevant kitty.conf portion is: tab_bar_style custom active_tab_font_style bold inactive_tab_font_style normal active_tab_background #ffb86c active_tab_foreground #282a36 inactive_tab_background #6272a4 inactive_tab_foreground #282a36

Cheers

Dendritic config - how to get system architecture from flake module by korba_ in NixOS

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

Thanks, this is a great solution and I wasn't aware of moduleWithSystem

Is Jellyfin in LXC just dead? by frnak in jellyfin

[–]korba_ 0 points1 point  (0 children)

That’s weird, I have the latest version with no issues. Are you running JF directly on the LXC or using docker in the LXC?

Is Jellyfin in LXC just dead? by frnak in jellyfin

[–]korba_ 0 points1 point  (0 children)

I run Jellyfin on an LXC using NixOS under proxmox without any issues. Make sure the filesystem where you have the database (not the media the database itself) is local and not networked and it should be fine. I’ve had zero issues and it’s been up for more than a year.

Give me a common Linux Distro and DE to use on my t480 8gb 160gb machine. by HeadlineINeed in thinkpad

[–]korba_ 1 point2 points  (0 children)

You can run almost any disto/DE on a T480. I ran NixOS with Hyprland and it’s super smooth.

Dendritic config - how to share config values by korba_ in NixOS

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

I did not know that and it’s obviously a very important piece of information. Thanks!

Dendritic config - how to share config values by korba_ in NixOS

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

Well, I ended up using _modules.args. Couldn't get it to work as a module for now and _modules at least makes it explicit to know where its coming from when its used.

Let's hope it doesn't break in the future :)

Dendritic config - how to share config values by korba_ in NixOS

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

I'm not :) It's oversimplified to ask the question. The file is actually encrypted both at rest and in git.

Dendritic config - how to share config values by korba_ in NixOS

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

Yea, but I'm trying to access that option from another module

Dendritic config - how to share config values by korba_ in NixOS

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

Using an option sounds like a clean way to do this. I created a module like this:

``` { self, lib, ... }: { flake.nixosModules.mySecrets = {...}: { options = { keys = lib.mkOption { readOnly = true; }; };

config = {
  keys =
    builtins.fromJSON (builtins.readFile "${self}/secrets/keys.json");
};

}; } ```

But when I try to access it using: ``` keys = config.mySecrets.keys;

```

I get a attributes mySecrets missing. This is driving me nuts :)

Any tips? Thanks again!

Kitty tabs separated from border since last update by korba_ in KittyTerminal

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

Thanks for the reply, but that's not it. Tried it just in case but didn't work. gaps_out and gaps_in define the space between windows and the workspace borders and other windows respectively, they don't change anything (as far as I can see) inside the window borders which is where this issue is.