Skip Navigation
Yash Raj

I am yashraj (snaps a finger)

Posts
23
Comments
56
Joined
1 yr. ago

lemm.ee is shutting down at the end of this month

  • Ahh I see

  • lemm.ee is shutting down at the end of this month

  • Okay that's so thoughtful.

  • lemm.ee is shutting down at the end of this month

  • Shouldn't you be fine using lemmy.world?

  • Its alright! I am kinda trying to figure it out myself. But thankyou for the initial push

  • I am seeing this repo: https://github.com/Jas-SinghFSU/HyprPanel/blob/master/nix/module.nix

    this uses astal to create the said interface but is also configuring the settings like how I want, except it uses json and ts for it where I have scss and lua, otherwise I just can't wrap my head around how i can translate it to my needs. Maybe I don't need to edit the files in the build, I could just edit or update the astel.scss using nix as well like how its done there using builtins and other functions, can you help me here, if you've got time.

  • I don't think there is a way to give the config during runtime or while calling the binary of the app, I will keep trying something, one thing I think that may help is creating that file during the build process, but I just don't have enough knowledge to do that.

  • Just don't be

  • So I am importing in home manager file and the syntax and building is fine, the file is also being created in my ~/requested folder.

    But I think there has been a misunderstanding in my concept of how this package is being installed and where it will get its colors from, so this flake package astal takes colors from where it is built right? and inside there will be created a scss folder which will have the themes/astel.css file, but in our setup we will only create a file in *user's home/.config/astal directory, but then how will the app use that file? I am getting confuse here, I tried to change the astel.scss file lines to @import "~/.config/astal/scss/themes/astel.scss"; but no cigar. I am missing a piece here, can you please help me?

    Sry I am asking a little too much help now.

    Please consider these sources:

    github.com/mobsenpai/hana

    github.com/mobsenpai/aoi (just changed the name)

    https://aylur.github.io/astal/guide/getting-started/nix

  • I was always curious about this linux thing, from when I was in 7th grade, I only knew Kali linux then, and I thought one could hack anything if you had kali linux :), But I seriously started using linux in 10th grade, fell into the rabbit hole of ricing, and to this day still cant get over it although it has become more stable and I know what I am doing.

  • Yeah, must be the wind

  • @balsoft Help wanted my G!, I am stuck here I created this flake for my astal widget config: https://github.com/mobsenpai/astal.git

    And I have this flake for my main nixos config: https://github.com/hana.git

    I can try to import it now, but perhaps it seems that there is some error here. I try building this astal config using nix build (just to try to test it) and it creates a result folder inside the astal folder, where i have its flake and configs, see the astal repo, those are the contents of the folder. But there is no check.scss file gets created in the scss/theme/ folder. I haven't yet tried to import it into my nixos system, for now, didn't get the time, but will update you on that, but I feel something if not a lot of things are not good here.

  • Wow, my G! This is incredibly well-structured, and I really appreciate that you even included comments. It’s genuinely helpful, and I’m definitely going to give it a try.

    I actually posted this while my exams are ongoing, hoping someone would respond in the meantime. For real, thank you so much. I love this community!

  • can you provide me with a simple example, and syntax. I have tried, but failed. I want that the astal config uses a custom colorscheme which i configure somehow that can be given as option when importing that flake in the main nixos system.

  • Nix / NixOS @programming.dev
    Yash Raj @lemmy.world

    Customizable package (theming a flake-managed widget bar)

    I just want to know from you how you (or how you would) pass options to packages you develop with flakes.

    I am currently writing a widget bar using Astal and then import the flake in my NixOS flake and use the package.default output in home.packages. I'd like to also style this bar according to my Stylix theme, how do you do something like this?

    Nix / NixOS @programming.dev
    Yash Raj @lemmy.world

    Firefox screen sharing not working!!

    Edit: It was a portal error. needed to add xdg-portal-hyprland to extraPortals option. [nixos + hyprland user]

    Plz help! I am enclosing related files

    dotfiles - contain all nixos and firefox configs

    firefox file - I don't think this file is the problem

  • For now I have deactivated the account and will go for full deletion once I am completely "ready" lol.

  • It's alright I will keep an eye on that method for future use.

  • Looks like pinterest is not allowing the access to searx. I've used searx in past.

  • I use duckduckgo as well, and I don't particularly hate having pinterest results in the search. But I definitely don't wanna login just to see the image in low resolution which won't even have the context of where it was taken from, nor the artist credit.

  • I tried but it gives internal server error.

  • Thank you!!, will be using this IF i specifically wanna search on pinterest.

  • Privacy @lemmy.ml
    Yash Raj @lemmy.world

    I hate pinterest with a passion without anywhere else to go..

    Any way to semi achieve the image search like pinterest without using it? I've tried using google, technically it should give the same or better results but how the hell pinterest gives better search results. Also pinterest removes the context behind the image and is a privacy nightmare. I want to move away from it.

    ------------- Anyone wondering what did I end up with? Here's what I am doing. I have deactivated my pinterest account and if I specifically want results from pinterest and pinterest only then I use services such as binterest (actually that the only one working right now) and if I instant like something I take a pic of it and save in my proton drive (cloud) and if I need more recommendations out of it then I just use the google image search on that image and there's a camera like icon if you click on it, it shows more closely related images and I think that works the best instead of the general related stuff that come up upon selecting the image (the sidebar) and I kee

    unixporn @lemmy.world
    Yash Raj @lemmy.world

    Reworked my old rice, nice little changes!

    Guys please give a star on my github �* dots

    Linux @lemmy.ml
    Yash Raj @lemmy.world

    My hypridle config, is it alright?

    cross-posted from: https://lemmy.world/post/25786274

    cross-posted from: https://lemmy.world/post/25786273

    cross-posted from: https://lemmy.world/post/25765733

     undefined
        
    general {
      after_sleep_cmd=hyprctl dispatch dpms on
      before_sleep_cmd=loginctl lock-session
      lock_cmd=hyprlock
    }
    
    listener {
      on-timeout=loginctl lock-session
      timeout=300
    }
    
    listener {
      on-resume=hyprctl dispatch dpms on
      on-timeout=hyprctl dispatch dpms off
      timeout=330
    }
    
    listener {
      on-timeout=systemctl suspend
      timeout=600
    }
    
      

    Guys I feel like there's something wrong or odd in this config, cuz, I don't know whats responsible for this but, it looks like things aren't working well together, I said it looks like cuz I never caugth an actual error. So what happens is that after I leave my laptop idle, the hypridle starts doing its thing and most of the times it

    Asklemmy @lemmy.ml
    Yash Raj @lemmy.world

    My hypridle config, is it alright?

    cross-posted from: https://lemmy.world/post/25786273

    cross-posted from: https://lemmy.world/post/25765733

     undefined
        
    general {
      after_sleep_cmd=hyprctl dispatch dpms on
      before_sleep_cmd=loginctl lock-session
      lock_cmd=hyprlock
    }
    
    listener {
      on-timeout=loginctl lock-session
      timeout=300
    }
    
    listener {
      on-resume=hyprctl dispatch dpms on
      on-timeout=hyprctl dispatch dpms off
      timeout=330
    }
    
    listener {
      on-timeout=systemctl suspend
      timeout=600
    }
    
      

    Guys I feel like there's something wrong or odd in this config, cuz, I don't know whats responsible for this but, it looks like things aren't working well together, I said it looks like cuz I never caugth an actual error. So what happens is that after I leave my laptop idle, the hypridle starts doing its thing and most of the times it works, my laptop is suspended, hyprlock works etc, but sometimes, after I press any button on my keyboard

    Ask Lemmy @lemmy.world
    Yash Raj @lemmy.world

    My hypridle config, is it alright?

    cross-posted from: https://lemmy.world/post/25765733

     undefined
        
    general {
      after_sleep_cmd=hyprctl dispatch dpms on
      before_sleep_cmd=loginctl lock-session
      lock_cmd=hyprlock
    }
    
    listener {
      on-timeout=loginctl lock-session
      timeout=300
    }
    
    listener {
      on-resume=hyprctl dispatch dpms on
      on-timeout=hyprctl dispatch dpms off
      timeout=330
    }
    
    listener {
      on-timeout=systemctl suspend
      timeout=600
    }
    
      

    Guys I feel like there's something wrong or odd in this config, cuz, I don't know whats responsible for this but, it looks like things aren't working well together, I said it looks like cuz I never caugth an actual error. So what happens is that after I leave my laptop idle, the hypridle starts doing its thing and most of the times it works, my laptop is suspended, hyprlock works etc, but sometimes, after I press any button on my keyboard to wake my laptop, I can see that my laptop is up, but all I can see is black screen, and then I have to

    Hyprland Desktop Environment @lemmy.world
    Yash Raj @lemmy.world

    My hypridle config, is it alright?

     undefined
        
    general {
      after_sleep_cmd=hyprctl dispatch dpms on
      before_sleep_cmd=loginctl lock-session
      lock_cmd=hyprlock
    }
    
    listener {
      on-timeout=loginctl lock-session
      timeout=300
    }
    
    listener {
      on-resume=hyprctl dispatch dpms on
      on-timeout=hyprctl dispatch dpms off
      timeout=330
    }
    
    listener {
      on-timeout=systemctl suspend
      timeout=600
    }
    
      

    Guys I feel like there's something wrong or odd in this config, cuz, I don't know whats responsible for this but, it looks like things aren't working well together, I said it looks like cuz I never caugth an actual error. So what happens is that after I leave my laptop idle, the hypridle starts doing its thing and most of the times it works, my laptop is suspended, hyprlock works etc, but sometimes, after I press any button on my keyboard to wake my laptop, I can see that my laptop is up, but all I can see is black screen, and then I have to hard shutdown the laptop, so somethings is not adding up here.

    Linux @lemmy.ml
    Yash Raj @lemmy.world

    Disable the hyprland startup logs

    cross-posted from: https://lemmy.world/post/21426498

    I use nixos + greetd + tuigreet + hyprland. I missed to mention that I wanted to disable or hide the logs that gets shows when starting hyprland from tty terminal by writing Hyprland or when using greetd tuigreet. After entering my username and password, These logs show before hyprland starts, I want to avoid that

    Hyprland Desktop Environment @lemmy.world
    Yash Raj @lemmy.world

    Disable the Hyprland startup logs

    When using tty or greetd to start it. I use nixos + greetd + tuigreet + hyprland.

    Hyprland Desktop Environment @lemmy.world
    Yash Raj @lemmy.world

    I am so confused regarding hyprlock and systemctl combination

    cross-posted from: https://lemmy.world/post/17258082

    Problem -> When doing file transfers (mtp) or running some cli commands like nixos-rebuild, when the hyprlock kicks in they are pause at that point and only resume after unlock.

    One thing I am kind of noticing that it may be the systemctl suspend command that is suspending the processes. But overall I am confused with the best combination of pairing both the two programs.

    Here is the config (for hypridle)

     undefined
        
    general {
      before_sleep_cmd=loginctl lock-session
      lock_cmd=hyprlock
    }
    
    listener {
      on-timeout=suspend-script
      timeout=1800
    }
    
    
      

    (The suspend script)

     bash
        
          pw-cli i all 2>&1 | grep running -q
          # Only suspend if audio isn't running
          if [ $? == 1 ]; then
            systemctl suspend
          fi
    
    
      

    Let me know if you have any solution. The link attached to this post is for my github hosting my nixos dotfiles, maybe that can also help.

    Linux @lemmy.ml
    Yash Raj @lemmy.world

    Swaync volume slider not showing when using all:unset

    I always use all:unset in my css files and I did the same when configuring the swaync notification but somehow when using it inside global selector *{} it doesn't show the volumeslider which is shows in a notification, related pictures will be attached. I wanna use all:unset and so I want to know how to re-enable volumeslider without removing all:unset. I've found this config to also use it but its in scss so I didn't test it.

    with all:unset

    without all:unset

    Full style.css ->

     css
        
    * {
      all: unset;
      font-family: "FiraMono Nerd Font";
      font-size: 10pt;
      font-weight: normal;
    }
    
    .notification {
      background: #3c3836;
      border: 1px solid #504945;
      border-radius: 8px;
      padding: 7px;
    }
    
    .notification-content {
      background: #3c38
      
    Linux @lemmy.ml
    Yash Raj @lemmy.world

    Wofi Submenu Arrow Icon Disappears with *{all:unset;} in CSS

    Edit: ended up removing the submenu functionality by adding no_actions=true in wofi's config.

    My style.css ->

     css
        
    * {
      all: unset;
      font-family: "FiraMono Nerd Font";
      font-size: 10pt;
      font-weight: normal;
    }
    
    #window {
      background: #3c3836;
      border-radius: 8px;
      border: 1px solid #504945;
    }
    
    #input {
      background: #3c3836;
      border-bottom: 1px solid #504945;
      color: #ebdbb2;
      margin-bottom: 4px;
      padding: 4px;
    }
    
    #input > image.left {
      margin-right: 4px;
    }
    
    #input > image.right {
      margin-left: 4px;
    }
    
    #outer-box {
      padding: 4px;
    }
    
    #text {
      color: #ebdbb2;
    }
    
    #entry {
      border-radius: 4px;
      padding: 4px;
    }
    
    #entry:selected {
      background: #504945;
    }
    
      

    Are there any classes or a config option to set the icon to whatever I want?

    Nix / NixOS @programming.dev
    Yash Raj @lemmy.world

    nix shell and nix profile not using the branch defined in flake.nix?

    Yes I know that there are workarounds for them to set to use the flake inputs but still.. I have set nixpkgs version to 23.11 stable release and that's good, but if I try to use nix shell, nix profile or even nix-env, they all seem to use the latest master/unstable branch to install the packages by default.

    Just want to know why aren't they just default to use whatever is defined in flake.nix file?

    <OR>

    will it be implemented to use it by default in the near future?

    Reason as to why I am asking -> This is what I am using to match nix shell and flake inputs, but as you can see they are just workarounds, plus seem to cause more errors and whatnot, plus by ideology one shouldn't need to specially define it to use some version when everything is already defined.

    Nix / NixOS @programming.dev
    Yash Raj @lemmy.world

    Nixos users which emoji app do you use?

    See I use wofi-emoji but this issue #308357 is haunting me. So I just wanted to know what my fellow users use cuz I guess not a lot of people use wofi-emoji.

    Nix / NixOS @programming.dev
    Yash Raj @lemmy.world

    I can't run nix-shell -p nix-info --run "nix-info -m"

    I know that if using flakes nix shell is the right command. But I just want to know that is it normal for legacy commands to not work like that one? nix-env works tho.

    • Dotfiles
    • One thing to note is that, what I am doing temporarily is running it using this
     nix
        
    nix shell nixpkgs#nix-info
    nix-info
    
    
      
    • And the output value is this
     nix
        
     - system: `"x86_64-linux"`
     - host os: `Linux 6.1.86, NixOS, 23.11 (Tapir), 23.11.20240417.e402c3e`
     - multi-user?: `no`
     - sandbox: `yes`
     - version: `nix-env (Nix) 2.18.1`
     - nixpkgs: `not found`
    
      
    • Notice the nixpkgs: not found, This is also weird to me.
    • logs ->
     undefined
        
    error:
           … while calling anonymous lambda
    
             at «string»:1:1:
    
                1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
                 | ^
    
           error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or
      
    Linux @lemmy.ml
    Yash Raj @lemmy.world

    Skim in bash weird new line after selecting an option.

    Please check the above github issue for more info and photos.

    What is skim?

    Basically I press ctrl + r to show bash history in skim. Tho when I select an option the new line that gets printed with the completed sentence is weirdly printed.

    Linux @lemmy.ml
    Yash Raj @lemmy.world

    Alacritty font settings for Fira Mono

    Normally one defines all normal, bold, italic, bold italic font in alacritty. But since fira mono does not have italic font, how should the config structure look like?

     yaml
        
    "font": {
    "normal": {"family": "FiraMono Nerd Font", "style": "Regular"},
    "bold": {"family": "FiraMono Nerd Font", "style": "Bold"},
    "size": 10
    }
    
    
      

    Should I define the fonts which are available like normal, bold and leave italic and bold italic. Or should I just define normal font?

    Linux @lemmy.ml
    Yash Raj @lemmy.world

    Can anyone use gtk inspector and tell me the class name of the sidebar of gtk4 apps like nautilus

    Basically I am using this gtk.css file in ~/.config/gtk-4.0/gtk.css but it's weird that the sidebar is not themed correctly. If anyone knows about this, please do tell. My only lead at this moment is to find the class and add it in gtk.css file. For some reason I can't install the gtk inspector app, So if anyone has it already or knows the classname, please help.

    gtk.css file ->

     undefined
        
    @define-color accent_color #fe8019;
    @define-color accent_bg_color #d65d0e;
    @define-color accent_fg_color #ebdbb2;
    
    @define-color destructive_color #8ec07c;
    @define-color destructive_bg_color #689d6a;
    @define-color destructive_fg_color #ebdbb2;
    
    @define-color success_color #b8bb26;
    @define-color success_bg_color #98971a;
    @define-color success_fg_color #ebdbb2;
    
    @define-color warning_color #fabd2f;
    @define-color warning_bg_color #d79921;
    @define-color warning_fg_color #ebdbb2;
    
    @define-color error_color #fb4934;
    @define-color error_bg_color #cc241d;
    @define-color error_fg_color #ebdbb2;
    
    @define-colo
      
    Unixporn @lemmy.ml
    Yash Raj @lemmy.world

    Just ported my awesomewm theme to hyprland + nixos

    cross-posted from: https://lemmy.world/post/13968470

    I am extremely pleased with how it looks. Initially, I was quite concerned about achieving a similar appearance and after two unsuccessful attempts, I felt defeated and abandoned the effort. However, thanks to the helpful individuals in the Matrix chat who assured me that achieving the desired look with Waybar was indeed possible, I decided to give it another shot, initially to prove them wrong. To my surprise, I was met with significant progress. While there are still some finishing touches and refactoring to be done, I plan to address these gradually as time permits. Currently, it is functioning perfectly and is user-friendly.