gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
Sonarpulse has quit [Ping timeout: 240 seconds]
Sonarpulse has joined #nixos-chat
Sonarpulse has quit [Ping timeout: 240 seconds]
LnL has quit [Read error: Connection reset by peer]
LnL has joined #nixos-chat
Sonarpulse has joined #nixos-chat
Sonarpulse has quit [Ping timeout: 264 seconds]
drakonis has joined #nixos-chat
drakonis has quit [Remote host closed the connection]
obadz- has joined #nixos-chat
jD91mZM2 has joined #nixos-chat
obadz has quit [Ping timeout: 260 seconds]
obadz- is now known as obadz
obadz has quit [Ping timeout: 246 seconds]
zybell_ has quit [Ping timeout: 265 seconds]
zybell_ has joined #nixos-chat
jD91mZM2 has quit [Ping timeout: 246 seconds]
jD91mZM2 has joined #nixos-chat
Lisanna has quit [Quit: Lisanna]
jD91mZM2_ has joined #nixos-chat
jD91mZM2_ has quit [Client Quit]
jD91mZM2 has quit [Ping timeout: 240 seconds]
obadz has joined #nixos-chat
jD91mZM2 has joined #nixos-chat
obadz- has joined #nixos-chat
obadz has quit [Ping timeout: 268 seconds]
obadz- is now known as obadz
obadz- has joined #nixos-chat
obadz has quit [Ping timeout: 240 seconds]
obadz- is now known as obadz
jD91mZM2 has quit [Quit: WeeChat 2.0]
balsoft[m] has quit [Ping timeout: 240 seconds]
adisbladis[m] has quit [Ping timeout: 246 seconds]
sphalerit has quit [Ping timeout: 250 seconds]
hedning[m] has quit [Ping timeout: 256 seconds]
Drakonis[m] has quit [Ping timeout: 256 seconds]
unlmtd has quit [Ping timeout: 260 seconds]
dtz has quit [Ping timeout: 276 seconds]
pstn has quit [Ping timeout: 276 seconds]
hedning[m] has joined #nixos-chat
Drakonis[m] has joined #nixos-chat
sphalerit has joined #nixos-chat
pstn has joined #nixos-chat
dtz has joined #nixos-chat
adisbladis[m] has joined #nixos-chat
unlmtd has joined #nixos-chat
balsoft[m] has joined #nixos-chat
jD91mZM2 has joined #nixos-chat
<jD91mZM2> Completely unrelated question out of the blue: Does anybody here use tmux for anything else than keeping programs alive in the background? Maybe you're always using tmux in order to be able to split panes at any time?
<sphalerite> jD91mZM2: yeah, I use tmux for scrollback as well, my X terminal (st) doesn't have scrollback
<sphalerite> and for splits
<sphalerite> I rarely run a terminal without tmux inside.
<samueldr> tmux is my terminal's "tabs"
<jD91mZM2> sphalerite: How do you launch it? Manually?
<samueldr> oh, and I too rarely use a terminal without tmux :)
<jD91mZM2> :+1:
<samueldr> I'm curious to see other approaches
<MichaelRaskin> I never migrated from screen, but my StumpWM has a binding to bring to front or open urxvt with my main screen session
<jD91mZM2> What's your story on truecolor? I've seen that tmux seems to mess some colors up
<samueldr> aggregation of years of customizations, tweaks and fixes!
<samueldr> it may not be necessary anymore
<samueldr> it may have never been necessary
<samueldr> I was thinking, yesterday, to completely re-do my dotfiles
<jD91mZM2> samueldr: When you auto startup terminals, don't you ever worry that they leak? Like if you close an X terminal using the menu button and it doesn't close tmux?
<samueldr> no, I like that they don't necessarily close
<samueldr> in catastrophical events
<sphalerite> jD91mZM2: I have a terminal start up and attach or create a session on login on my main laptop
<samueldr> ^B + s → switch tmux session
<samueldr> I use tmux sessionist to have ^B + X to kill the current session and switch to a new one
<sphalerite> as for 256-colour mode, it hasn't been a problem for me
<sphalerite> just make sure that TERM is set to a 256-colour value both inside and outside it and it's fine
<samueldr> sphalerite: what exact mechanism do you use to start tmux on login?
<jD91mZM2> Alright. I've recently started using tmux for weechat to avoid having to reconnect every time I restart X, but only that. Maybe I should look into getting my main workflow into tmux
<sphalerite> samueldr: exec st -c MainTerm -e sh -c 'tmux a || exec tmux'
<sphalerite> in my i3 config
<samueldr> thanks
<samueldr> so it's on local terminal creation, not all terminals; the way I do it creates a tmux session for ssh connections too
<samueldr> (it even would on VT, but I deactivated it, don't remember why)
<sphalerite> yeah and only on graphical login
<jD91mZM2> I might just start using `tmux attach -t main || tmux new -s main` as Konsole's shell
<jD91mZM2> btw terminal of choice? Konsole is great but kind of bloaty
<sphalerite> st :)
<samueldr> are you sure it's bloaty?
<samueldr> I've been using konsole for a couple of months
<samueldr> (I mean, if you forget about the dependency train following it)
<samueldr> konsole seemed lean enough compared to other DE terminals
<samueldr> I think I switched to konsole because of the way it handled fonts, though I don't remember the specifics
<samueldr> I think there was a font that I couldn't use on the terminal I was using previously because it wasn't declared as monospaced even though it was
<sphalerite> alacritty is nice too, although its config is more complicated and I don't like its defaults
<samueldr> I'm trying, since yesterday, kitty
<jD91mZM2> samueldr: The dependency thing is what I meant :P
<samueldr> eh, disk space is cheap :)
<jD91mZM2> Yeah I don't personally have a problem with Konsole, but since it seems like nobody else is using it I'm looking out for alternatives too
<jD91mZM2> I like going with the flow :P
<samueldr> oh, I'm going back to console if kitty isn't perfect
<infinisil> I used konsole in the past but then at some point I wasn't able to change its settings anymore because of some dbus thing
<infinisil> Now using alacritty
<samueldr> the only reason I'm looking at kitty is because it's supposed to be lean, and it's rendered using opengl
<jD91mZM2> Could your font issue have to do with ligatures btw? They were the main reason I decided to use konsole in the first place, but then I stuck because transparency and stuff :^)
<samueldr> (though I hate how there already was a kitty terminal and they didn't care)
<samueldr> no, pretty sure it was just a badly made font file
<samueldr> uhm, I think I wanted alacritty when I searched for "that gpu based terminal I can't remember the name" lol
<jD91mZM2> heh
<jD91mZM2> Seems like a lot of people are coming aboard the alacritty train
<samueldr> I haven't looked into it yet, but I wanted a not-too-dumb grid of chars
<samueldr> I don't need tabs nor scrollbacks, since I want to use tmux
<infinisil> I've been wanting to create a nice nixos module for tmux with all the plugins and stuff
<infinisil> (not specific to nixos though, should be usable standalone/with home-manager/with nixos)
<jD91mZM2> Does anybody else have color issues with alacritty?
<jD91mZM2> See how it's green?
<jD91mZM2> I mean it's specified as green but normally green in base16-default-dark would mean gray
<sphalerite> jD91mZM2: huh. I have issues with the default colour scheme, which is one of the reasons I don't use alacritty, but I don't think I ever saw that
<sphalerite> oh but you have weird colour schemes
<sphalerite> idk
<jD91mZM2> Hey don't judge my colorscheme
<jD91mZM2> :^)
<sphalerite> how are you specifying it for alacritty?
<infinisil> There's a whole bunch here: https://github.com/jwilm/alacritty/wiki/Color-schemes
<sphalerite> infinisil: I'd prefer something that's not a "module", instead being just a function for making regular packages with wrapper scripts
<sphalerite> I don't like the "anything can depend on anything else" model.
<infinisil> sphalerite: Yeah, that's what I would go for, but I'd use the module system to pass arguments to the function. Because it's really useful with the option descriptions, type checking & co.
<infinisil> aka a submodule
<MichaelRaskin> sphalerite: you don't value all the effort that went into modelling imperative assignments with global variables in a purely functional language with immutable data?
<sphalerite> lol
<sphalerite> there was some brief discussion on the topic for the current nixos module https://github.com/NixOS/nixpkgs/issues/36648
<jD91mZM2> sphalerite: Woah st looks nice
<infinisil> What I want is to be able to do this: `pkgs.tmux.withConfig ({ lib, ... }: { some.option = 10; })`
<infinisil> As in, the pkg config is right where the pkg is defined, as it should be
<sphalerite> jD91mZM2: doesn't have hardware acceleration though
<sphalerite> and there's that annoying tmux crash bug that arises in certain circumstances with st
<sphalerite> But yeah other than that I like st
<infinisil> sphalerite: Ah yeah just saw your comment in the issue with `withConfig`
<infinisil> The disadvantage of doing `systemPackages = [ (tmux.withConfig { ... }) ]` is that you lose modularity
<infinisil> You could still get modularity by using the module system for that
<sphalerite> oh yes I need to split my tmux config into multiple files :p
<jD91mZM2> infinisil: Normally with home-manager you'd say programs.tmux = { enable = true; "some.option" = 10; }, which is reasonable
<infinisil> sphalerite: Sarcasm or not? Because I do split my configs into a lot of files
<sphalerite> Yes, it was sarcasm. I get that splitting config into mutliple files might be desirable in general, but I don't see why you'd want to split your tmux config into multiple files.
<infinisil> jD91mZM2: But the problems: can't have multiple configs, not reusable on non-HM/NixOS, clutters global option space
<infinisil> jD91mZM2: And it can change/changes global options even though it doesn't really need to
<infinisil> E.g. with HM it sets home.files.".tmux.conf", with NixOS environment.etc."tmux/whatever"
<infinisil> And what if we want to add 100 super nice options for a package? You won't be able to merge that into nixpkgs
<infinisil> I remember there being a PR that adds like 700 options for a single package.. Of course it didn't get merged
<jD91mZM2> infinisil: HM seems like it allows any key, not just a defined set
<infinisil> what do you mean?
<jD91mZM2> They don't specify anywhere which options are available like some.option. They allow any arbitrary key
<jD91mZM2> Maybe I misunderstood what you meant with "100 super nice options for a package"
<infinisil> Nope, you can't set options that aren't defined
<jD91mZM2> But... it works tho...
<infinisil> Huh
<jD91mZM2> See xresources.config for example. I can set "XTerm*decRegisterColors" or whatever and it works. Doubt they added that in
<infinisil> You mean you can set `foobar.whatever = 1;` in your home.nix and it doesn't give an error?
<jD91mZM2> ​But I get what you mean. I just like having the configuration options consistent
<infinisil> Yeah that doesn't work in general
<infinisil> The reason it works with this is because https://github.com/rycee/home-manager/blob/master/modules/xresources.nix#L24
<infinisil> The option in that case isn't `xresources.properties."XTerm*decRegisterColors"`, but rather `xresources.properties` and you set it to an attrset
<jD91mZM2> oh
drakonis has joined #nixos-chat
<jD91mZM2> sphalerite: Darn, the suckless terminal doesn't seem to support changing cursors like neovim, nor transparency
<sphalerite> jD91mZM2: it does support changing cursors
<jD91mZM2> sphalerite: Like neovim? Doesn't work out of the box for me
<sphalerite> hm I thought the terminfo patch was upstream now
<jD91mZM2> Oh, FYI, I'm using stable
<sphalerite> basically it does support it out of the box, but it doesn't report it in the terminfo file
<sphalerite> to see for yoruself that it does actually support changing the cursor, do `printf '\e[6 q'`
<jD91mZM2> btw copy pasting
<sphalerite> select something to get it in the PRIMARY buffer
<sphalerite> middle-click to paste, shift-insert to paste from the CLIPBOARD buffer
<sphalerite> hold shift while clicking and dragging to select even if whatever's running inside the terminal uses the mouse
<jD91mZM2> Darn, it doesn't let you copy to clip?
<jD91mZM2> btw your printf command isn't working for me even in konsole
<jD91mZM2> Well ok it's not printing "q" in suckless so it is being read
<drakonis> jD91mZM2, that's because it sucks
<jD91mZM2> sphalerite: lol turns out that was just tmux
<sphalerite> jD91mZM2: no, I don't think so. Can't be hard to change it so it does though.
<sphalerite> jD91mZM2: oh yeah, tmux doesn't pass it through if the Ss terminfo thing isn't set
<sphalerite> oh yeah, 18.03 still has 0.7 where st doesn't include Ss in its terminfo. 0.8.1 which is in unstable does
<sphalerite> but I think I have a patch on mine that adds it in 0.7
<jD91mZM2> Alright. I think I'll stick to Konsole for the transparency though. But it was nice to see an alternative, thanks :)
<sphalerite> what do you need transparency for?
<sphalerite> you can use compton to make st transparent I think :p
<infinisil> Yeah compton is very flexible with transparency, works for every window
jD91mZM2 has quit [Ping timeout: 268 seconds]
jD91mZM2 has joined #nixos-chat
zybell_ has quit [Ping timeout: 256 seconds]
Sonarpulse has joined #nixos-chat
zybell_ has joined #nixos-chat
jD91mZM2 has quit [Quit: WeeChat 2.0]
<samueldr> one thing compositor generally can't do is make the (default) background transparent while other colors and the text non-transparent, right?
<samueldr> I mean, the program needs to handle this, transparency is for the whole window
Lisanna has joined #nixos-chat
drakonis has quit [Remote host closed the connection]
drakonis has joined #nixos-chat
drakonis has quit [Remote host closed the connection]
drakonis has joined #nixos-chat
wohoo has joined #nixos-chat
wohoo has left #nixos-chat [#nixos-chat]
<joepie91> samueldr: correct, in principle
<joepie91> it's theoretically possible for an application to signal to the compositor which areas should be rendered opaque
<joepie91> but one way or another the application needs to decide this, the composite has no inherent knowledge of the application's UI structure
<joepie91> compositor *
<joepie91> its responsibility is to composite together rendered things :P
<samueldr> in the compiz times, with blurred transparency, using something like ~50% transparency with blurred background wasn't bad
<samueldr> not enough noise to distract from the letters
<samueldr> though, I wouldn't use non-blurred transparency, and neither would I like text that's transparent
<samueldr> thinking back, I used blurred transparency 10 years before it was trendy...
<infinisil> I want blurred background without it draining battery..
<drakonis> i'm trying to switch to i3wm but i don't know what to use with it
<samueldr> use whatever works for you :) (assuming you're talking terminals) you could even use the one from your DE, initially, and later test others
<drakonis> its my first time with i3
<samueldr> when I quit xfce, I used xfce-terminal for a while
<samueldr> so while what I was using was different, at least the terminal worked exactly as I was used
<drakonis> kde isn't working out anymore
<samueldr> oh, major issue with kitty: double-click and tripe-click selection doesn't seem to work :/
zybell_ has quit [Ping timeout: 240 seconds]
<gchristensen> so I think I found the cutest and weirdest hosting company
<MichaelRaskin> They beat progrmr's commented-out sign up link for the smallest-RAM VMs? (with the explanation that if you cannot find this link, you cannot make anything work in this amount of RAM)
<gchristensen> lol
<gchristensen> https://epycly.com/
zybell_ has joined #nixos-chat
<infinisil> bookmarked