From f9ffd5ad9a5a8db7f941ea4d9caa9d8dfe9a2536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Mar 2023 11:10:25 +0100 Subject: sway: add unetbootin It is better to have it this way to just pull it from cache when I need it as I almost never use it. --- shellrc.d/sway | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'shellrc.d/sway') diff --git a/shellrc.d/sway b/shellrc.d/sway index 4713914..0145bff 100644 --- a/shellrc.d/sway +++ b/shellrc.d/sway @@ -17,3 +17,12 @@ sway_outputs() { sway_inputs() { swaymsg -t get_inputs } + +if command -v nix >/dev/null; then + +unetbootin() ( + nix shell 'nixpkgs#xorg.xhost' 'nixpkgs#unetbootin' \ + -c 'bash' -c "xhost local:root && sudo QT_X11_NO_MITSHM=1 unetbootin $*" +) + +fi -- cgit v1.2.3