From 803c4d8ef898f74a69e5699dd5da7d90da3389c9 Mon Sep 17 00:00:00 2001 From: fennek182 Date: Sun, 14 Jun 2026 01:05:07 +0200 Subject: [PATCH] updated aliases: run commands in the background with hyprland by using _run_ or _hyprexec_ --- .config/shell/aliasrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index cd9dc2c..a995111 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -50,9 +50,17 @@ alias please="sudo" alias scr="hyprctl keyword exec scrcpy --video-codec=h265 -m1920 --max-fps=90" alias mpvo="hyprctl keyword exec mpv " alias pride="cli-pride-flags " - alias hdr-mpv="ENABLE_HDR_WSI=1 mpv --vo=gpu-next --target-colorspace-hint --gpu-api=vulkan --gpu-context=waylandvk" +# run commands in the background using hyprland +function run_cmd () { + cmd_string="hyprctl 'dispatch hl.dsp.exec_cmd(\"$@\")'" + echo $cmd_string + eval $cmd_string +} +alias run="run_cmd" +alias hyprexec="run_cmd" + # video showcase alias 24fps="mpv ~/.local/share/sample-vids/24fps.mkv"