aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/sway
blob: 4713914a5babf4cafd84880d740413e384650b69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}