3
submitted 1 week ago by [email protected] to c/[email protected]

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)

general {
  before_sleep_cmd=loginctl lock-session
  lock_cmd=hyprlock
}

listener {
  on-timeout=suspend-script
  timeout=1800
}

(The suspend script)

      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.

[-] [email protected] 25 points 1 week ago

lol. I am glad I became privacy conscious before this happened.

12
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

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 using all:unset

without all:unset without all:unset

Full style.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: #3c3836;
  color: #ebdbb2;
}

.notification-row {
  margin: 2px;
}

.close-button {
  background: #cc241d;
  border-radius: 50%;
  color: #282828;
}

.close-button:hover {
  background: #fb4934;
  transition: all 0.15s ease-in-out;
}

.time {
  color: #98971a;
  font-size: 9pt;
  margin-right: 24px;
}

.control-center {
  background: #3c3836;
  border: 1px solid #504945;
  border-radius: 8px;
  padding: 8px;
}

.control-center-list-placeholder {
  background: #3c3836;
  color: #7c6f64;
}

.widget-title {
  background: #3c3836;
  color: #ebdbb2;
}

.widget-title > button {
  background: #98971a;
  color: #282828;
  border-radius: 4px;
  padding: 2px;
}

.widget-title > button:hover {
  background: #b8bb26;
  color: #282828;
  transition: all 0.15s ease-in-out;
}

.widget-dnd {
  background: #3c3836;
  color: #ebdbb2;
}

.widget-dnd > switch {
  background: #665c54;
  border-radius: 4px;
}

.widget-dnd > switch:checked {
  background: #d65d0e;
}

.widget-dnd > switch slider {
  background: #282828;
  border-radius: 4px;
}

[-] [email protected] 3 points 2 months ago

Hm looks amazing. Tq.

[-] [email protected] 3 points 2 months ago

what hyprland blur settings you're using?

9
submitted 2 months ago* (last edited 1 month ago) by [email protected] to c/[email protected]

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

My style.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?

13
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

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? 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.

5
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

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.

2
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

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 shell nixpkgs#nix-info
nix-info
  • And the output value is this
 - 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 ->

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 -I)

       at «none»:0: (source not available)
14
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

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.

19
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

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?

"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?

[-] [email protected] 4 points 2 months ago* (last edited 2 months ago)

That's it. Thank you for this.

16
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

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 ->

@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-color window_bg_color #282828;
@define-color window_fg_color #ebdbb2;

@define-color view_bg_color #282828;
@define-color view_fg_color #ebdbb2;

@define-color headerbar_bg_color #282828;
@define-color headerbar_fg_color #ebdbb2;
@define-color headerbar_border_color #ebdbb2;
@define-color headerbar_backdrop_color @window_bg_color;
@define-color headerbar_shade_color rgba(0, 0, 0, 0.36);

@define-color card_bg_color rgba(255, 255, 255, 0.08);
@define-color card_fg_color #ebdbb2;
@define-color card_shade_color rgba(0, 0, 0, 0.36);

@define-color dialog_bg_color #3c3836;
@define-color dialog_fg_color #ebdbb2;

@define-color popover_bg_color #3c3836;
@define-color popover_fg_color #ebdbb2;

@define-color shade_color rgba(0, 0, 0, 0.36);
@define-color scrollbar_outline_color rgba(0, 0, 0, 0.5);

Sidebar ->

[-] [email protected] 3 points 2 months ago

All the other apps eg. file manager app and all are themed perfectly tho. Only this sidepanel of file/folder upload/download dialog box which appears when uploading a file on a website on firefox is like this.

[-] [email protected] 2 points 3 months ago

I used to be all over the place trying out different window managers like Bspwm, i3, and a bunch more in Xorg. Then I stumbled upon AwesomeWM, and let me tell you, it was a rollercoaster at first but totally worth it. This bad boy, written in Lua, let me tweak everything without needing extra add-ons. I could whip up notifications, lockscreen, bars, widgets - you name it - all in one go. No need for separate plugins cluttering things up. It was all pure Lua goodness, and that's what hooked me. Before Awesome, I had this mishmash of apps with their own configs in different languages. It worked, but it was a headache to manage. Awesome's simplicity and all-in-one setup just clicked for me. Even though I've moved on to Wayland and Hyprlnad now, AwesomeWM will always have a special place in my heart. Its blend of power and customization is just too good to forget.

[-] [email protected] 4 points 3 months ago

I thought so. That was also my main concern abt trying it out bcz I had an older nvidia gpu like 710 or something so that was completely incompatible but the newer ones should work good if not perfect. I can't vouch for that though cuz I am not using nvidia now.

[-] [email protected] 6 points 3 months ago

I've had a positive experience overall. While I haven't been involved in gaming lately, I can say that for my daily work and development tasks, the transition from Xorg to Wayland has been smooth and without any major drawbacks.

121
submitted 3 months ago by [email protected] to c/[email protected]

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.

52
submitted 3 months ago by [email protected] to c/[email protected]

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.

[-] [email protected] 3 points 3 months ago

Why am I not surprised?

view more: next ›

mobsenpai

joined 3 months ago