diff options
author | Karel Kočí <cynerd@email.cz> | 2023-03-21 18:19:32 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-03-21 20:46:05 +0100 |
commit | 7be0acbb1cd6b6d3c4c3df95611cb86be4b46915 (patch) | |
tree | fcdca6619a05b1e72ebb8b9ddf0d04586b434e94 /shellrc.d/sway | |
parent | f0eab21bab34beb657059cf5dfe91ca8072edb35 (diff) | |
download | shellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.tar.gz shellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.tar.bz2 shellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.zip |
Drop desktop variant and rework nix packages
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 +} |