mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-17 03:37:40 +02:00
Compare commits
No commits in common. "e19eec70f5ba295e87bf8a7a769d97f2919add27" and "86e2ec0aa6d30f136edc119d42a96086928de697" have entirely different histories.
e19eec70f5
...
86e2ec0aa6
@ -11,9 +11,6 @@ if [ ! -d ~/.local/share/dark-mode.d ]; then
|
|||||||
echo "Ensure ~/.local/share/ has directories {dark,light}-mode.d/"
|
echo "Ensure ~/.local/share/ has directories {dark,light}-mode.d/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Ctrl-C unless you want the examples... Sleeping for 3."
|
|
||||||
sleep 3
|
|
||||||
|
|
||||||
if [ -d /usr/share/doc/darkman/examples ]; then
|
if [ -d /usr/share/doc/darkman/examples ]; then
|
||||||
export EXAMPLESDIR="/usr/share/doc/darkman/examples"
|
export EXAMPLESDIR="/usr/share/doc/darkman/examples"
|
||||||
elif [ -d /usr/local/share/doc/darkman/examples ]; then
|
elif [ -d /usr/local/share/doc/darkman/examples ]; then
|
||||||
|
2
bash/darkman/.gitignore
vendored
2
bash/darkman/.gitignore
vendored
@ -1,3 +1 @@
|
|||||||
darkman-setup.bash
|
darkman-setup.bash
|
||||||
dark-mode.d
|
|
||||||
light-mode.d
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../../submodules/shell-things/local/share/dark-mode.d
|
|
11
bash/darkman/dark-mode.d/zz-kde-kali-wallpaper.sh
Executable file
11
bash/darkman/dark-mode.d/zz-kde-kali-wallpaper.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# To change the wallpaper on all desktops, you have to run a PlasmaShell script
|
||||||
|
# and iterate over all available desktops. This examples uses the default light
|
||||||
|
# wallpaper on Manjaro (Bamboo).
|
||||||
|
|
||||||
|
# Script credit @mamantoha: https://gist.github.com/mamantoha/c01363e5c791e8324d6248b09cf29bbb
|
||||||
|
|
||||||
|
WALLPAPER_PATH="/usr/share/wallpapers/KaliMetalDark/contents/images/3840x2160.png"
|
||||||
|
|
||||||
|
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "file://'$WALLPAPER_PATH'")}'
|
2
bash/darkman/dark-mode.d/zz-kde-plasma-theme-kalipurple.sh
Executable file
2
bash/darkman/dark-mode.d/zz-kde-plasma-theme-kalipurple.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
lookandfeeltool --apply "Kali-Purple-Dark"
|
11
bash/darkman/dark-mode.d/zz-kde-wallpaper-fedora.sh
Executable file
11
bash/darkman/dark-mode.d/zz-kde-wallpaper-fedora.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# To change the wallpaper on all desktops, you have to run a PlasmaShell script
|
||||||
|
# and iterate over all available desktops. This examples uses the default dark
|
||||||
|
# wallpaper on Manjaro (Bamboo).
|
||||||
|
|
||||||
|
# Script credit @mamantoha: https://gist.github.com/mamantoha/c01363e5c791e8324d6248b09cf29bbb
|
||||||
|
|
||||||
|
WALLPAPER_PATH="/usr/share/wallpapers/F$(lsb_release -sr)/contents/images_dark/3840x2160.png"
|
||||||
|
|
||||||
|
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "file://'$WALLPAPER_PATH'")}'
|
21
bash/darkman/dark-mode.d/zz-konsole-kali.sh
Executable file
21
bash/darkman/dark-mode.d/zz-konsole-kali.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/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
|
@ -1 +0,0 @@
|
|||||||
../../submodules/shell-things/local/share/light-mode.d
|
|
11
bash/darkman/light-mode.d/zz-kde-kali-wallpaper.sh
Executable file
11
bash/darkman/light-mode.d/zz-kde-kali-wallpaper.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# To change the wallpaper on all desktops, you have to run a PlasmaShell script
|
||||||
|
# and iterate over all available desktops. This examples uses the default light
|
||||||
|
# wallpaper on Manjaro (Bamboo).
|
||||||
|
|
||||||
|
# Script credit @mamantoha: https://gist.github.com/mamantoha/c01363e5c791e8324d6248b09cf29bbb
|
||||||
|
|
||||||
|
WALLPAPER_PATH="/usr/share/wallpapers/KaliMetal/contents/images/3840x2160.jpg"
|
||||||
|
|
||||||
|
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "file://'$WALLPAPER_PATH'")}'
|
2
bash/darkman/light-mode.d/zz-kde-plasma-theme-fedora.sh
Executable file
2
bash/darkman/light-mode.d/zz-kde-plasma-theme-fedora.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
lookandfeeltool --apply "org.fedoraproject.fedora.desktop"
|
2
bash/darkman/light-mode.d/zz-kde-plasma-theme-kalipurple.sh
Executable file
2
bash/darkman/light-mode.d/zz-kde-plasma-theme-kalipurple.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
lookandfeeltool --apply "Kali-Purple-Light"
|
11
bash/darkman/light-mode.d/zz-kde-wallpaper-fedora.sh
Executable file
11
bash/darkman/light-mode.d/zz-kde-wallpaper-fedora.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# To change the wallpaper on all desktops, you have to run a PlasmaShell script
|
||||||
|
# and iterate over all available desktops. This examples uses the default dark
|
||||||
|
# wallpaper on Manjaro (Bamboo).
|
||||||
|
|
||||||
|
# Script credit @mamantoha: https://gist.github.com/mamantoha/c01363e5c791e8324d6248b09cf29bbb
|
||||||
|
|
||||||
|
WALLPAPER_PATH="/usr/share/wallpapers/F$(lsb_release -sr)/contents/images/3840x2160.png"
|
||||||
|
|
||||||
|
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "file://'$WALLPAPER_PATH'")}'
|
21
bash/darkman/light-mode.d/zz-konsole-kali.sh
Executable file
21
bash/darkman/light-mode.d/zz-konsole-kali.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/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
|
@ -1 +1 @@
|
|||||||
Subproject commit fb1c03aa9d70b22507fb762ac74d60f4b896c686
|
Subproject commit e4028761cbe258f9a9e09b8d3380f1f0a0c3df79
|
@ -1 +1 @@
|
|||||||
Subproject commit 9953890c9b9f8bc72fc24f7fd2a1f77d66d88520
|
Subproject commit f427d07d1dad87ddc7d29fe53f7878fd0122afa0
|
Loading…
x
Reference in New Issue
Block a user