From 2a03398f37f77dc1f42bf0ae17d3b1a4ea22220c Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 8 Jul 2024 23:39:07 +0200 Subject: [PATCH] sway: simple display rotate script --- sway/.local/bin/rotate-display | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 sway/.local/bin/rotate-display diff --git a/sway/.local/bin/rotate-display b/sway/.local/bin/rotate-display new file mode 100755 index 0000000..d8121c4 --- /dev/null +++ b/sway/.local/bin/rotate-display @@ -0,0 +1,5 @@ +#!/bin/bash + +# Rotates the display +display=$(swaymsg -t get_outputs --raw | jq '. | map(select(.focused == true)) | .[0].name' -r) +swaymsg output "${display}" transform "${1}"