aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc.d')
-rw-r--r--shellrc.d/sway9
1 files changed, 9 insertions, 0 deletions
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