aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-03-24 11:10:25 +0100
committerKarel Kočí <cynerd@email.cz>2023-03-24 11:13:35 +0100
commitf9ffd5ad9a5a8db7f941ea4d9caa9d8dfe9a2536 (patch)
tree1e7703ab53375e4459b4657ca9bb8aff96bc7377
parenta89f72fb3ed3c7103a34727911d04e891acc6040 (diff)
downloadshellrc-f9ffd5ad9a5a8db7f941ea4d9caa9d8dfe9a2536.tar.gz
shellrc-f9ffd5ad9a5a8db7f941ea4d9caa9d8dfe9a2536.tar.bz2
shellrc-f9ffd5ad9a5a8db7f941ea4d9caa9d8dfe9a2536.zip
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.
-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