prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland
GNU General Public License v3.0
5.94k stars 715 forks source link

[Feature Request] use hyprland-specific tools instead of analogues ; Hypridle ; Hyprlock #967

Open Gigas002 opened 5 months ago

Gigas002 commented 5 months ago

The hyprlock just got a first release recently, which gave me an idea if we could replace some current tools to hyprland-specific ones. Here's what I came up with:

Not much atm, but still..

kRHYME7 commented 5 months ago

Too soon. I am trying to daily drive both. HAHA. So many breaking changes

swww -> hyprpaper

But this swww is much better for now. We have .gif support on swww.

Gigas002 commented 5 months ago

Good to know you're keeping a track on this! :+1:

We have .gif support on swww.

Current themes doesn't have .gifs on wallpapers by default, I think, so it shouldn't be a breaking change for anyone. But yes, still a fair point.

kRHYME7 commented 5 months ago

Current themes doesn't have .gifs on wallpapers by default, I think, so it shouldn't be a breaking change for anyone. But yes, still a fair point.

Some themes now have .gif but yeah not all use .gif. Maybe I'm too biased, but swww seems to work well.

Hyprlock and hypridle are promising, as their configs are defaulted inside ~/.config/hypr/ and follow the same formatting as hyprland.conf. Definitely can be added soon. Hyprlock for now is tooooooo buggy, haha why the release.

H1manshu-Soni commented 5 months ago

hypridle is interesting too :eyes:

kRHYME7 commented 5 months ago

Here's my 'hypridle' config

$SCREENLOCK = hyprlock # If you prefer to use swaylock: 'swaylock -f'

general {
    lock_cmd = $SCREENLOCK
    unlock_cmd = #notify-send "unlock!"      # same as above, but unlock
    before_sleep_cmd = $SCREENLOCK    # command ran before sleep
    after_sleep_cmd = # notify-send "Awake!"  # command ran after sleep
    ignore_dbus_inhibit = 0     
}

# Dims the display
listener { 
    timeout = 60
    on-timeout = brightnessctl -s && brightnessctl s 1%       
    on-resume = brightnessctl -r                            
}

# Lock it first before dpms off so that screen won't show for a moment after wakeup.
listener {
    timeout = 120
    on-timeout = $SCREENLOCK                                   
}

# DPMS off
listener {
    timeout = 300
    on-timeout = hyprctl dispatch dpms off       
    on-resume = hyprctl dispatch dpms on                            
}

# Suspend
listener {
    timeout = 500                                   
    on-timeout = systemctl suspend
}
Skerse commented 5 months ago

I'd love to replace it in the future once it matures because the projects are still very new and don't have a lot of features at the moment. Still i'd happy to replace some sway project stuff in replacement for things that should integrate well with hyprland. Also yeah even though hyprpaper is nice, it's a little too simple to be a replacement for swww.