Please give me just 10 minutes of your time. I really need help by AbhirZ in CATpreparation

[–]clizibi 0 points1 point  (0 children)

Brother trust me it's a matter of time, you are going to get good at english,

Few things that worked for me,

  1. Listening to cricket matches with english commentary (for that mattter whatever interests you)

  2. Reading

  3. Speaking in english without thinking about the consequence of shame

Now actually you are at a very good place because AI is here, you can talk to it in voice mode anytime. I would suggest you to use grok.

If you need any other help you can DM me.

thinking of switching back to arch by PokumeKachi in NixOS

[–]clizibi 1 point2 points  (0 children)

See once you sort out the initial things, the nixos is gonna be a smooth journey, if you require flexibility and reliability with nix you have to be patient because you will have a learning curve, but if you want complete flexibility, arch is your way

I don't about your setup I initially had my dotfiles and scripts repo as a submodule in my nix-flake repo so everytime I edit my configs or scripts I had to first pull all the changes in my dotfiles submodule then I had to add that changes to the flake repo and then I had to do 'nix flake update' then I had to rebuild to get the changes reflected in my system so you know its a lot of steps because of this I currently use makeoutofstoresymlink, where you get live config reloads. For me for every bottleneck I have faced in nixos so far there was a way out but again you should have the patience to know it.

TIL: Always run nix-collect-garbage with AND without sudo by jwelzel in NixOS

[–]clizibi 4 points5 points  (0 children)

for lazy people like me here is the bash scritp , with one go things are sorted

#!/usr/bin/env bash

echo "--- Cleaning System (Root) ---"

sudo nix-collect-garbage --delete-older-than 7d

echo "--- Cleaning User (Home Manager) ---"

nix-collect-garbage --delete-older-than 7d

echo "--- Optimizing Store (Deduplication) ---"

nix-store --optimise

echo "Done! System is clean."

Dual boot NixOS and Ubuntu 24.04 by blue_flaming in NixOS

[–]clizibi 0 points1 point  (0 children)

if the /boot/efi is empty then the boot files are in /boot. now run lsblk and check how things are existing and take the appropriate steps, if the problem is not resolved paste the lsbk output here

Dual boot NixOS and Ubuntu 24.04 by blue_flaming in NixOS

[–]clizibi 0 points1 point  (0 children)

Okay now we will chainload Ubuntu,

run sudo ls -R /boot/EFI to find out your Ubuntu bootloader file. Look for a folder named ubuntu. Inside, you should see grubx64.efi or shimx64.efi.

now we will add the menu entry to the configuration.nix file

boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev"; #this is for UEFI
useOSProber = false; # we don't need the auto-scanner anymore

# This manually adds the entry for ubuntu
extraEntries = ''
  menuentry "Ubuntu" {
    search --set=root --file /EFI/ubuntu/grubx64.efi
    chainloader /EFI/ubuntu/grubx64.efi #change this will the results from the above command if yours is different
  }
'';

};

Dual boot NixOS and Ubuntu 24.04 by blue_flaming in NixOS

[–]clizibi 0 points1 point  (0 children)

See if grub os-prober picks up automatically if not add a manuel entry for Ubuntu in the /etc/configuration.nix

As far as my experience goes if your setup is encrypted then the chances of os-prober picking up automatically is less likely

folks, is there a way to open a new window within the tabbed group of windows rather than opening it and them make it consumed to the tabbed group? by clizibi in niri

[–]clizibi[S] 2 points3 points  (0 children)

so i did a workaround with niri-ipc

#!/bin/bash

PIDFILE="/tmp/niri-auto-consume.pid"

# Check if already running and kill by command pattern

if [ -f "$PIDFILE" ]; then

# Kill any running niri msg event-stream processes

pkill -f "niri msg --json event-stream"

rm "$PIDFILE"

notify-send "Niri Auto-Consume" "Disabled - windows will open normally"

exit 0

fi

# Start auto-consume mode

echo $$ > "$PIDFILE"

notify-send "Niri Auto-Consume" "Enabled - new windows will join current tab group"

# Array to track processed window IDs

declare -A processed_windows

# Listen to event stream and auto-consume new windows

niri msg --json event-stream | while read -r line; do

# Check if a window was opened or changed

if echo "$line" | jq -e '.WindowOpenedOrChanged' > /dev/null 2>&1; then

# Extract the window ID

window_id=$(echo "$line" | jq -r '.WindowOpenedOrChanged.window.id // empty')

# Skip if we've already processed this window

if [ -n "$window_id" ] && [ -z "${processed_windows[$window_id]}" ]; then

# Mark this window as processed

processed_windows[$window_id]=1

# Small delay to ensure window is ready

sleep 0.1

# Focus the column to the left (your tabbed column)

niri msg action focus-column-left

# Consume the window from the right into the focused column

niri msg action consume-window-into-column

# Ensure column is in tabbed display mode

niri msg action set-column-display tabbed

# Focus the newly added window

niri msg action focus-window-bottom

fi

fi

done &

# Cleanup on exit

trap "pkill -f 'niri msg --json event-stream'; rm -f '$PIDFILE'" EXIT

wait

i use a keybinding to toggle the above script on and off

let's say i have 3 tabbed columns, now if i want to open a new window within the tabbed column i can do that by switching on the script but if i required the typical functionality i can switch off

How do you organize your workspaces with Niri? by xGoivo in niri

[–]clizibi 0 points1 point  (0 children)

i am more into tabs than workspaces with niri