Skip to content

u/wilo108

In this archive from Mar 2021 to Sep 2026

1
posts
105
comments
0
media
429
score

I'm considering a move the other way (Hyprland -> Niri), but I'm concerned about things like screen-sharing, which seem to be pretty solid in Hyprland. What's making you think about leaving Niri?

1 points

You're strictly correct by the letter, of course, but in context /u/Novero95's comment that people "People that doesn't like change shouldn't be relaying in [sic] a project in active development" isn't well-countered by Linux as an example.

2 points

u/syaorancode is entirely correct. Here's a shortened snippet of code I use to deal with this:

~/.config/hypr/listen.sh:

#!/bin/bash
windowtitlev2() {
  IFS=',' read -r -a args <<< "$1"
  window_addr="${args[0]#*>>}"

  if [[ ${args[1]} == "Extension: (Bitwarden Password Manager) -"* ]]; then
    hyprctl --batch "\
      dispatch setfloating address:0x${window_addr}; \
      dispatch resizewindowpixel exact 20% 50%, address:0x${window_addr}; \
      dispatch centerwindow; \
    "
  fi
}

handle() {
  case $1 in
    windowtitlev2\>*) windowtitlev2 "$1" ;;
  esac
}

socat -U - UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done

And my hyprland.conf has exec-once = ~/.config/hypr/listen.sh

1 points

My solution is hand-rolled -- here's how I do it (recently updated to the 0.53 syntax):

$wallpaperCmd = zsh -c 'pkill hyprpaper; exec hyprpaper -c =(wp=$(shuf -en1 ~/Media/wallpaper/*/*) && echo "wallpaper{\nmonitor=\nipc=false\npath=$wp\n}\nsplash=false")'

exec-once = $wallpaperCmd
bind = $mainMod, B, exec, $wallpaperCmd

And I retrieve the current wallpaper with:

rg -N 'path=(.*)$' -or '$1' $(cat /proc/$(pidof hyprpaper)/cmdline | cut -d '' -f3)

e.g.

alias current_wp="rg -N 'path=(.*)\$' -or '\$1' \$(cat /proc/\$(pidof hyprpaper)/cmdline | cut -d '' -f3)"

or, e.g. for swaylock:

exec swaylock -i "$(rg "path=(.*)$" -or "\$1" $(cat /proc/$(pidof hyprpaper)/cmdline | cut -d "" -f3) || echo .)"

Perhaps something similar will work for you?

1 points
# Whole-screen zoom
bind = Ctrl+Super, mouse_down, exec, hyprctl keyword cursor:zoom_factor $(hyprctl -j getoption cursor:zoom_factor | jq ".float + 1.0")  # Zoom in
bind = Ctrl+Super, mouse_up, exec, hyprctl keyword cursor:zoom_factor $(hyprctl -j getoption cursor:zoom_factor |  jq "[.float + 1.0, 1.0] | min")  # Zoom out
bindc = Ctrl+Super, mouse:274, exec, hyprctl keyword cursor:zoom_factor 1.0  # Reset

??

26 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.