diff options
Diffstat (limited to 'shellrc.d/sway')
-rw-r--r-- | shellrc.d/sway | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/shellrc.d/sway b/shellrc.d/sway new file mode 100644 index 0000000..4713914 --- /dev/null +++ b/shellrc.d/sway @@ -0,0 +1,19 @@ +# 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 +} |