Skip to content

Commit

Permalink
sway: simple display rotate script
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Jul 8, 2024
1 parent c0a4d4f commit 2a03398
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sway/.local/bin/rotate-display
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit 2a03398

Please sign in to comment.