From 7a903c6f69db494b1ca6a565cfca729e228665ed Mon Sep 17 00:00:00 2001 From: Maximilian Wagner Date: Wed, 13 Dec 2023 22:10:20 +0100 Subject: [PATCH] did a little something --- config | 10 ++++++++-- dp-9 | 0 scripts/rotate-second-screen.sh | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 dp-9 create mode 100755 scripts/rotate-second-screen.sh diff --git a/config b/config index dc6c263..d12a6c7 100644 --- a/config +++ b/config @@ -13,9 +13,10 @@ ], "modules-center": [ - "clock", "idle_inhibitor", + "clock", "custom/weather", + "custom/rotate", ], "modules-right": [ @@ -73,7 +74,12 @@ "warning": 70, "critical": 90, }, - "on-click": "kitty -e 'htop'", + "on-click": "xfce4-terminal -e 'htop'", + }, + + "custom/rotate": { + "format": " 󰑧 ", + "on-click": "~/.config/waybar/scripts/rotate-second-screen.sh", }, "custom/keyboard-layout": { diff --git a/dp-9 b/dp-9 new file mode 100644 index 0000000..e69de29 diff --git a/scripts/rotate-second-screen.sh b/scripts/rotate-second-screen.sh new file mode 100755 index 0000000..cfd9e85 --- /dev/null +++ b/scripts/rotate-second-screen.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sway output DP-4 transform 90 clockwise