# vim: ft=sh: # These are utility functions loaded when we are running in Sway [ "$XDG_CURRENT_DESKTOP" != "sway" ] && return alias swm='swaymsg' # Clip stdin to clipboard clip() { wl-copy --trim-newline } sway_outputs() { swaymsg -t get_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