We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18a96d commit 64c5b81Copy full SHA for 64c5b81
HackerOS/Scripts/Bin/revert_to_plasma.sh
@@ -0,0 +1,18 @@
1
+#!/bin/bash
2
+
3
+# Funkcja sprawdzająca czy Plasma działa na tty2
4
+is_plasma_running() {
5
+ pgrep -a startplasma-wayland | grep -q "tty2"
6
+}
7
8
+if is_plasma_running; then
9
+ echo "[INFO] Plasma już działa na tty2 → tylko przełączam."
10
+ sudo chvt 2
11
+else
12
+ echo "[INFO] Plasma nie działa → uruchamiam na tty2."
13
+ # Przełącz na tty2
14
15
+ sleep 1
16
+ # Odpal Plasma Wayland w tty2
17
+ sudo openvt -c 2 -s -w -- /usr/bin/startplasma-wayland &
18
+fi
0 commit comments