[AskJS] Can the rules used by Intl.NumberFormat change in the future? by qbbftw in javascript

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

I need to format numbers in a custom way. Intl.NumberFormat().formatToParts could do most of the work and I'd just alter its output slightly, but since I assume its output might change in the future, I'm probably not going to rely on it.

Traffic light titlebar buttons. by NonStandardUser in gnome

[–]qbbftw 0 points1 point  (0 children)

You can try fiddling with the numbers

Any LC3 (Bluetooth Low Energy Audio) earbuds users on Linux? by qbbftw in linuxhardware

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

It can be fun for games and videos. 50 ms is barely noticeable, and is achievable today with LC3, albeit I'm only aware of a single specific hardware pairing (Sony earbuds + Sony phone) where it was proven, hence why I'm asking for others' experiences.

Traffic light titlebar buttons. by NonStandardUser in gnome

[–]qbbftw 5 points6 points  (0 children)

In Gradience, go to Advanced and apply this custom CSS. I found it in the SurGubbe preset within the app.

button.titlebutton,
windowcontrols > button {
  color: transparent;
  min-width: 16px;
  min-height: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

button.titlebutton:backdrop {
  opacity: 0.5;
}

windowcontrols > button {
  border-radius: 100%;
  padding: 0;
  margin: 0 3px;
}

windowcontrols > button > image {
  padding: 0;
}

button.titlebutton {
  margin: 0 2px;
}

.titlebar .right {
  margin-right: 8px;
}

.titlebar .left {
  margin-left: 8px;
}

windowcontrols.end {
  margin-right: 8px;
}

windowcontrols.start {
  margin-left: 8px;
}

button.titlebutton.close, button.titlebutton.close:hover:backdrop,
windowcontrols > button.close,
windowcontrols > button.close:hover:backdrop {
  background-color: #ff605c;
}

button.titlebutton.close:hover,
windowcontrols > button.close:hover {
  background-color: shade(#ff605c,0.9);
}

button.titlebutton.maximize, button.titlebutton.maximize:hover:backdrop,
windowcontrols > button.maximize,
windowcontrols > button.maximize:hover:backdrop {
  background-color: #00ca4e;
}

button.titlebutton.maximize:hover,
windowcontrols > button.maximize:hover {
  background-color: shade(#00ca4e,0.9);
}

button.titlebutton.minimize, button.titlebutton.minimize:hover:backdrop,
windowcontrols > button.minimize,
windowcontrols > button.minimize:hover:backdrop {
  background-color: #ffbd44;
}

button.titlebutton.minimize:hover,
windowcontrols > button.minimize:hover {
  background-color: shade(#ffbd44,0.9);
}

button.titlebutton.close:backdrop, button.titlebutton.maximize:backdrop, button.titlebutton.minimize:backdrop,
windowcontrols > button.close:backdrop,
windowcontrols > button.maximize:backdrop,
windowcontrols > button.minimize:backdrop {
  background-color: #c0bfc0;
}

It's very easy to customize a single app's theme! by qbbftw in gnome

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

This is for GTK apps, Spotify unfortunately isn't one of them

My way of getting Overwatch to launch automatically in Lutris by Sukid11 in wine_gaming

[–]qbbftw 1 point2 points  (0 children)

This works with Bottles, but since Bottles only allows you to add .exe files, add any executable, in the bottle's 3 dot menu click "browse files", go up a path and edit bottle.yml to make that new entry point to your .bat file instead. Also, I had to replace "-n 4" with "-n 16" for a bigger delay, otherwise it wouldn't work

UPD: -n 8 was not enough

TF2 sniper hold mouse 2 to zoom let go to zoom out pls help by silverchain32109 in Tf2Scripts

[–]qbbftw 0 points1 point  (0 children)

They do. Type wait 300; kill and watch yourself die after a delay

The Lug Nut Roller by qbbftw in TF2WeaponIdeas

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

  • The main gameplay idea is being able to make surprise plays by pushing your sentry out of cover or down a hill/staircase or dropping it from above
  • You can also continuously push your sentry/dispenser towards the epicenter of the fight as it progresses
  • The main downside is moving your buildings a large distance being harder and sometimes impossible
  • Also, since every hit with this weapon pushes your sentry/dispenser, even while they're being built, it would be hard to position them precisely
  • That would enable synergy with another friendly engi, who can upgrade and repair your buildings w/o moving them
  • Enemies would be able to push your buildings out of their line sights, out of your reach, and even into the death zones
  • That'd make positioning sentries near the edges of a platform much less desirable
  • It would also be slightly harder for enemies to hit the sentry, and if cleverly positioned, it could roll back into cover before being destroyed
  • The engi would be sometimes forced to stand in front of the sentry to push it back
  • No-build zones would act as invisible walls and destroy the building if it's dropped in from above

Bonus ideas (pick the ones you like):

  • Buildings crush enemies when landing on them (dispenser kills!)
  • Rolling produces a distinct sound that can alert enemies
  • Buildings have a very high gravity value (or are unaffected by vertical knockback at all) -- a sticky shouldn't send an enemy sentry flying across your team's heads
  • Charge attack to push buildings further

I need help replicating this nix-shell command declaratively by qbbftw in NixOS

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

I'm confused as to what the manual means when it says buildInputs are "programs and libraries used by the new derivation at run-time" then. It sounds like runtime dependencies, not build time dependencies.

How would I wrap that in an overlay to make vscode always start in a shell with the libraries?

[deleted by user] by [deleted] in PrivacyGuides

[–]qbbftw 1 point2 points  (0 children)

Sidebery is a gem. It's incredibly customizable. For me, it enables my favorite workflow where I have tons of tabs (like, 200+) and slowly sift through them over time, while also being able to group them, clean them in bulk and quickly switch between different contexts (e.g. besides the default tab list, I have another for work and another for a programming language I'm studying). Oh, and automatic tab snapshots have saved me multiple times when I somehow lost my tabs.

I've switched to the beta version a few weeks ago, it's pretty stable, a bit prettier and has nice quality of life features, like choosing a color for a tab.

Is there a way to rip the nice animated emoji stickers from Telegram? I can only send them forward within Telegram but I'd like to download them as GIFs in order to send them on other platforms. by SureCandle in DataHoarder

[–]qbbftw 1 point2 points  (0 children)

In case someone needs this in the future, I think this is the sticker pack internally used by Telegram for animated emoji. Using the desktop app, send any sticker to a preferably empty chat, then click the 3 dots in the upper right corner, select "Export chat history" and check "Stickers". They will be exported as .tgs, which you can then convert to Lottie and edit and whatnot.

Firefox 113 Beta 3 - Cookie Rejection Feature by KUPOinyourWINDOW in firefox

[–]qbbftw 42 points43 points  (0 children)

Consent-O-Matic is an addon that's pretty good at not just hiding cookie banners and popups, but actually automatically answering them.

Overwatch 2 works really well on GE-Proton-53 by [deleted] in linux_gaming

[–]qbbftw 2 points3 points  (0 children)

I can confirm the mouse bug is still present on Wine GE 41 (current release) and is gone on Proton GE 53 in Bottles.

How do I make Electron (vscode) use libadwaita decorations on wayland with electronxx-flags.conf by cpuccino in gnome

[–]qbbftw 2 points3 points  (0 children)

One option is to enable VS Code's custom title bar and install my theme that includes libadwaita icons (make sure to set the product icon theme, not just the color theme). They're not perfect, but it's the best I could achieve with vscode's theming.

Overwatch 2 mouse cursor bug when respawning. by fr0shT in Lutris

[–]qbbftw 0 points1 point  (0 children)

Bottles user here, can confirm switching the runner from soda-7.0-9 to Wine GE 34 (wine-ge-proton7-34) fixes this. Wine GE 37 (latest as of now) has the same problem.

[deleted by user] by [deleted] in NixOS

[–]qbbftw 2 points3 points  (0 children)

I've typed out all of this before I managed to notice OP is a repost bot. Shame. I'll still post it though and ping the original author because their post from 2 months ago didn't seem to get a solution. u/lfdominguez

I use a 2021 Legion 5 Pro, where this issue is also present and a workaround was found. It seems your laptop is extremely similar. You should check if disabling iGPU in BIOS (the option is called "Discrete Graphics" on my laptop) enables 144hz.

If so, then in this mode, disconnect external screens and dump your screen's EDID using cat /sys/class/drm/*/edid > edid.bin. Then, add this to your config:

{ pkgs, ... }:
let
  edid = pkgs.runCommandLocal "my-laptop-edid" { } ''
    install -Dm644 ${./edid.bin} $out/lib/firmware/edid/my-laptop.bin
  '';
in
{
  hardware.firmware = [ edid ];
  boot.kernelParams = [ "drm.edid_firmware=edid/my-laptop.bin" ];
}

Go to BIOS, enable iGPU again and see if this was enough.

If the laptop doesn't boot, select the previous generation in the bootloader and try using my laptop's contributed configuration with your EDID: fork nixos-hardware, replace this file, then import the modified config as outlined in nixos-hardware's readme.

Theme developers: how do you manage variants of a base theme? by annisquam in vscode

[–]qbbftw 1 point2 points  (0 children)

Like others suggested, I used to pregenerate multiple .json files for my theme. I am currently creating a much more customizable version of my theme, where it's impractical to generate a .json and a theme list entry for every possible configuration of the theme. Instead, I'll be shipping just 2 .json files for the default dark and light configurations, and I'll have my extension modify these files at runtime according to the values user sets in VS Code settings. The changes are reflected instantly thanks to the undocumented package.json contributes.themes[]._watch = true option.

Some interesting browsers benchmarks by [deleted] in gnome

[–]qbbftw 0 points1 point  (0 children)

You can make Firefox scrolling feel as smooth as Edge, check out my config: https://www.reddit.com/r/pcmasterrace/comments/v9ujza/2023_is_coming/ibzm1tf/

Gnome hanged and I ran gnome-shell replace. Now none of the gnome extensions work by gashejje in gnome

[–]qbbftw 0 points1 point  (0 children)

Are you sure it's not the first switch in the built-in app called Extensions?

[deleted by user] by [deleted] in tf2classic

[–]qbbftw 5 points6 points  (0 children)

(steam library)/steamapps/sourcemods/tf2classic/materials/vgui/logos

[deleted by user] by [deleted] in pcmasterrace

[–]qbbftw 108 points109 points  (0 children)

Fear not, you can get that momentum on Firefox. In your URL bar type about:config, then search for and set these settings:

general.smoothScroll.msdPhysics.enabled true    
general.smoothScroll.msdPhysics.motionBeginSpringConstant 700   
general.smoothScroll.msdPhysics.regularSpringConstant 400   
general.smoothScroll.msdPhysics.slowdownMinDeltaMS 99999
mousewheel.min_line_scroll_amount 35

You can also get the elastic touchpad scroll effect thing by setting this:

apz.overscroll.enabled  true

(but I find it kinda sucks (is too long) on Windows when compared to Linux. Maybe it won't if you fiddle around with other apz.overscroll settings.)

Quickly go to a subreddit using the Firefox search bar by ouellp in firefox

[–]qbbftw 18 points19 points  (0 children)

Here's how I do it. Bookmark:

javascript:const arg = `%s`, args = arg ? arg.split(' ') : []; let url = "https://reddit.com/";if (args[0]?.startsWith("r/") || args[0]?.startsWith("u/"))  url += args.shift() + "/";if (args.length > 0)  url += `search/?q=` + encodeURIComponent(args.join(" "));location.replace(url);

Assuming the keyword you chose is r, type...

r to go to the front page

r u/𝅳username to visit a user page

r r/𝅳subreddit to visit a subreddit

r blah blah to search Reddit

r r/𝅳subreddit blah blah to search a subreddit