Skip to content

u/fallen1011

In this archive from Jul 2014 to Mar 2026

12
posts
59
comments
1
media
138
score
1 saved before deletion

normal keybinds that move the active or selected window that i want to move. heres what i have below.

# Move focus with mainMod + arrow keys

bind = $mainMod, left, movefocus, l

bind = $mainMod, right, movefocus, r

bind = $mainMod, up, movefocus, u

bind = $mainMod, down, movefocus, d

# Native relative workspace navigation / move

bind = SUPER, U, workspace, e+1

bind = SUPER, I, workspace, e-1

bind = SUPER CTRL, U, movetoworkspace, e+1

bind = SUPER CTRL, I, movetoworkspace, e-1

3 points

It may seem non-trivial to me, but that’s partly a matter of perspective. Hyprctl is extremely extensive in what it can do. It essentially acts as a scripting interface that lets you communicate directly with your compositor—something most environments don’t really allow.

A good way to think about it is with a car analogy. If you learn how cars work and become a mechanic, you can fix or modify most problems yourself. However, some cars are very proprietary and locked down, so you can’t really access or change much.

Hyprland is more like an open car. If you’re willing to learn how it works, it gives you the tools to modify almost anything. Instead of features being locked away, you can usually implement what you want yourself, even if it’s not provided out of the box.

In many cases, the gap between “I want this feature” and “I have this feature” is just writing a small Bash script. With many other desktop environments or window managers, that kind of flexibility simply isn’t possible.

Hyprland effectively gives you an API, while most other environments only give you a configuration file. Once you understand that distinction, you start to see the real power and potential it provides.

4 points

this can be fixed and this is what i do:

# Monitor-local 1–9

bind = SUPER, 1, exec, bash -lc 's=1; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER, 2, exec, bash -lc 's=2; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER, 3, exec, bash -lc 's=3; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER, 4, exec, bash -lc 's=4; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER, 5, exec, bash -lc 's=5; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER, 6, exec, bash -lc 's=6; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER, 7, exec, bash -lc 's=7; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER, 8, exec, bash -lc 's=8; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER, 9, exec, bash -lc 's=9; m=$(hyprctl monitors -j | jq -r ".[]|select(.focused)|.name"); b=0; [ "$m" = DP-2 ] && b=10; [ "$m" = DP-3 ] && b=20; hyprctl dispatch workspace $((b+s))'

bind = SUPER_CTRL, 1, exec, bash -lc 'm=DP-1; ws=$(hyprctl monitors -j | jq -r --arg m "$m" ".[]|select(.name==\"$m\")|.activeWorkspace.name"); [ -n "$ws" ] && hyprctl dispatch movetoworkspace "$ws"'

bind = SUPER_CTRL, 2, exec, bash -lc 'm=DP-2; ws=$(hyprctl monitors -j | jq -r --arg m "$m" ".[]|select(.name==\"$m\")|.activeWorkspace.name"); [ -n "$ws" ] && hyprctl dispatch movetoworkspace "$ws"'

bind = SUPER_CTRL, 3, exec, bash -lc 'm=DP-3; ws=$(hyprctl monitors -j | jq -r --arg m "$m" ".[]|select(.name==\"$m\")|.activeWorkspace.name"); [ -n "$ws" ] && hyprctl dispatch movetoworkspace "$ws"'

bind = SUPERSHIFT, 1, exec, bash -lc 's=1; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

bind = SUPERSHIFT, 2, exec, bash -lc 's=2; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

bind = SUPERSHIFT, 3, exec, bash -lc 's=3; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

bind = SUPERSHIFT, 4, exec, bash -lc 's=4; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

bind = SUPERSHIFT, 5, exec, bash -lc 's=5; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

bind = SUPERSHIFT, 6, exec, bash -lc 's=6; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

bind = SUPERSHIFT, 7, exec, bash -lc 's=7; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

bind = SUPERSHIFT, 8, exec, bash -lc 's=8; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

bind = SUPERSHIFT, 9, exec, bash -lc 's=9; ws=$(hyprctl activewindow -j | jq -r ".workspace.name"); b=0; [[ "$ws" =~ ^1[0-9]$ ]] && b=10; [[ "$ws" =~ ^2[0-9]$ ]] && b=20; hyprctl dispatch movetoworkspace $((b+s))'

8 points

mpvpaper is basically a thin wrapper that:

  • Creates a Wayland layer-surface
  • Embeds mpv using --vo=libmpv
  • Passes your video + options through

mpvpaper doesnt do video decoding, The heavy lifting (RAM, GPU buffers, hwdec, frame queues) is entirely inside mpv, That’s the mpvdecoding pipeline, not the wrapper.

mpv by default maintains:

  • Demuxer cache
  • Frame queues
  • Decoder buffers
  • VO buffers

On a looping wallpaper its basically expanding and there have been historical reports of libmpv under Wayland not releasing buffers cleanly.

Here the script ive put together (best i could do). Update the video path to what video file you want to use. MAKE SURE you change the resolution (im on dual 5120x1440) so youll need to change that for your screen resolution. The script monitors the mpvpaper process and after 200mb it kills it and reloads it with minimal interrupt in flow of the live wallpaper look, fade and some blur to keep it smooth as possible. you can change the 200mb limit as you want.

#!/usr/bin/env bash

# -------------------------

# Configuration

# -------------------------

VIDEO="$HOME/Path/to/videofile.mp4"

MONITOR="*"

LIMIT=200000 # KB memory threshold

CHECK_INTERVAL=30 # seconds between memory checks

FADE_TIME=0.3 # seconds for fade in/out

LOCKFILE="$HOME/.mpvpaper-wallpaper.lock"

WAIT_MAX=10 # seconds to wait for mpv to start

# -------------------------

# Lock file

# -------------------------

exec 200>"$LOCKFILE"

flock -n 200 || { echo "Another instance is running, exiting."; exit 0; }

# -------------------------

# Helper functions

# -------------------------

fade_out() {

hyprctl keyword decoration:blur:size 12

hyprctl keyword decoration:blur:passes 3

sleep "$FADE_TIME"

}

fade_in() {

hyprctl keyword decoration:blur:size 6

hyprctl keyword decoration:blur:passes 2

sleep "$FADE_TIME"

}

start_mpvpaper() {

mpvpaper -o loop \

-o video-unscaled=no \

-o force-window=yes \

-o keepaspect=no \

-o video-aspect-override=5120:1440 \

"$MONITOR" "$VIDEO" &

NEW_PID=$!

sleep 1

for i in $(seq 1 $WAIT_MAX); do

if kill -0 "$NEW_PID" 2>/dev/null; then

echo "mpvpaper started (PID=$NEW_PID)"

return 0

fi

sleep 1

done

echo "ERROR: mpvpaper failed to start"

return 1

}

kill_mpvpaper() {

local PID="$1"

if [[ -n "$PID" ]] && kill -0 "$PID" 2>/dev/null; then

kill -TERM "$PID"

sleep 1

kill -KILL "$PID" 2>/dev/null || true

fi

}

# -------------------------

# Main loop

# -------------------------

start_mpvpaper

MPV_PID=$NEW_PID

while true; do

sleep "$CHECK_INTERVAL"

# Check process

if ! kill -0 "$MPV_PID" 2>/dev/null; then

echo "mpvpaper exited unexpectedly, restarting..."

start_mpvpaper

MPV_PID=$NEW_PID

continue

fi

# Check memory

RSS=$(ps -p "$MPV_PID" -o rss= | tr -d ' ')

if [[ -n "$RSS" ]] && (( RSS > LIMIT )); then

echo "Seamless restart (RSS=${RSS}KB)..."

# Start new instance

start_mpvpaper

NEW_PID=$NEW_PID

# Fade transition

fade_out

fade_in

# Kill old instance

kill_mpvpaper "$MPV_PID"

# Update PID

MPV_PID=$NEW_PID

fi

done

1 points

Ah I see. I understand now what you mean. Apologies this I’m not sure. I don’t recall those having actual previews outside of how wine and lib32’s work. What I mean is that in the example of using steam to install windows games or wine to install windows applications the exe’s DO have previews but they require 32 bit libraries. (Lib32).

I don’t know which ones u need, but it is fixable. sorry that’s the most I know of for that specific issue.

1 points

I don’t recall executables having a preview. Do you mean actual .exe as in windows exe or do you mean .sh scripts executions.

I do recall in the past dolphin from kde had this function for scripts where u could see previews of the actual code but it was nested into their breeze theme. Some previews do become nested like that.

What are you looking for to see in the exe previews? Was this something u had in the past?

1 points

so I have a weird issue that I'm not sure if I can explain well. One monitor is displaying AwesomeWM, the other 2 are black with display but when I move the mouse to them it's a black "X" cursor. the Nvidia settings show them active and setup properly. I've seen it before but do not remember the resolution. I'm going to look for more research.

​

If I use something like arandr, those displays dont actually show active, even though they display in Nvidia settings properly

​

EDIT - RESOLVED WITH XINERMA enabled! thank you~!!!

2 points

my apologies for the late reply. my goal is to get them in SLI working together, I just now enabled sli through "Nvidia-settings -sli=auto which I believe is the correct command.

​

/u/nvidian_alt pointed out that my cards are backwards and so I put the monitors into the other card and now starts works. however how do I switch the config to use the other card. I'm not too familiar with this process. or is that what the BUSID PCI 5:0:0 is.

​

​

1 points

have you run arch, just curious how different does it feel using parabola vs any other distro. also how similar is qtile to awm? this is the first ive ever seen and heard of qtile

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