From 6ecedcfdd4fa09fd8e747f27e91d54d632770466 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 20 Jul 2024 08:05:50 +0300 Subject: [PATCH] darkman: rm the konsole scripts since I use console which has the feature --- local/share/dark-mode.d/zz-konsole-kali.sh | 21 --------------------- local/share/light-mode.d/zz-konsole-kali.sh | 21 --------------------- 2 files changed, 42 deletions(-) delete mode 100755 local/share/dark-mode.d/zz-konsole-kali.sh delete mode 100755 local/share/light-mode.d/zz-konsole-kali.sh diff --git a/local/share/dark-mode.d/zz-konsole-kali.sh b/local/share/dark-mode.d/zz-konsole-kali.sh deleted file mode 100755 index 252761d4..00000000 --- a/local/share/dark-mode.d/zz-konsole-kali.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -# KDE's default terminal emulator supports profiles, you can create one in -# Settings > Manage Profiles. You can select a dark or light theme in -# Appearance > Color scheme and font. The following script iterates over all -# instances of Konsole und changes the profile of all sessions. This is necessary, -# if there are multiple tabs in one of the Konsole instances. -# Reference: https://docs.kde.org/stable5/en/konsole/konsole/konsole.pdf - -PROFILE='Kali-Dark' - -# loop over all running konsole instances -for pid in $(pidof konsole); do - # TODO: loop over all windows of the instance, instead of only the first - - # loop over all sessions in the current window - for session in $(qdbus "org.kde.konsole-$pid" /Windows/1 sessionList); do - # change profile through dbus message - qdbus "org.kde.konsole-$pid" "/Sessions/$session" setProfile "$PROFILE" - done -done diff --git a/local/share/light-mode.d/zz-konsole-kali.sh b/local/share/light-mode.d/zz-konsole-kali.sh deleted file mode 100755 index 0191d6aa..00000000 --- a/local/share/light-mode.d/zz-konsole-kali.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -# KDE's default terminal emulator supports profiles, you can create one in -# Settings > Manage Profiles. You can select a dark or light theme in -# Appearance > Color scheme and font. The following script iterates over all -# instances of Konsole und changes the profile of all sessions. This is necessary, -# if there are multiple tabs in one of the Konsole instances. -# Reference: https://docs.kde.org/stable5/en/konsole/konsole/konsole.pdf - -PROFILE='Kali-Light' - -# loop over all running konsole instances -for pid in $(pidof konsole); do - # TODO: loop over all windows of the instance, instead of only the first - - # loop over all sessions in the current window - for session in $(qdbus "org.kde.konsole-$pid" /Windows/1 sessionList); do - # change profile through dbus message - qdbus "org.kde.konsole-$pid" "/Sessions/$session" setProfile "$PROFILE" - done -done