From 7be0acbb1cd6b6d3c4c3df95611cb86be4b46915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 21 Mar 2023 18:19:32 +0100 Subject: Drop desktop variant and rework nix packages --- shellrc.d/sway | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 shellrc.d/sway (limited to 'shellrc.d/sway') 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 +} -- cgit v1.2.3