mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-14 10:17:22 +02:00
Compare commits
6 Commits
bca436cd4d
...
ed7618e9da
Author | SHA1 | Date | |
---|---|---|---|
ed7618e9da | |||
915d37c3d6 | |||
88a107188e | |||
4403daa9c8 | |||
5dc91eb4ba | |||
f5e14af247 |
@ -1,23 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
if ! hash darkman 2> /dev/null; then
|
||||
echo "You don't seem to have darkman installed." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -vp ~/.local/share/
|
||||
if [ ! -d ~/.local/share/dark-mode.d ]; then
|
||||
rm ~/.local/share/{dark,light}-mode.d
|
||||
mkdir -vp ~/.local/share/{dark,light}-mode.d
|
||||
echo "Ensure ~/.local/share/ has directories {dark,light}-mode.d/"
|
||||
fi
|
||||
|
||||
if [ -d /usr/share/doc/darkman/examples ]; then
|
||||
ln -nsfv /usr/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||||
export EXAMPLESDIR="/usr/share/doc/darkman/examples"
|
||||
elif [ -d /usr/local/share/doc/darkman/examples ]; then
|
||||
ln -nsfv /usr/local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||||
export EXAMPLESDIR="/usr/local/share/doc/darkman/examples"
|
||||
elif [ -d ~/.local/share/doc/darkman/examples ]; then
|
||||
ln -nsfv ~/.local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||||
export EXAMPLESDIR="/.local/share/doc/darkman/examples"
|
||||
elif [ -d ~/src/gitlab.com/WhyNotHugo/darkman/examples ]; then
|
||||
export EXAMPLESDIR="~/src/gitlab.com/WhyNotHugo/darkman/examples"
|
||||
else
|
||||
echo "Darkman examples not found in expected locations."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ln -nsfv $EXAMPLESDIR/dark-mode.d/* ~/.local/share/dark-mode.d/
|
||||
ln -nsfv $EXAMPLESDIR/light-mode.d/* ~/.local/share/light-mode.d/
|
||||
|
||||
unset $EXAMPLESDIR
|
||||
systemctl --user disable --now darkman.service
|
||||
systemctl --user mask darkman.service
|
||||
echo "Creating an autostart seems to work better than the systemd service."
|
||||
set +x
|
||||
|
1
bash/darkman/.gitignore
vendored
Normal file
1
bash/darkman/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
darkman-setup.bash
|
4
bash/darkman/copy-these.bash
Executable file
4
bash/darkman/copy-these.bash
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
mkdir -vp ~/.local/share/{dark,light}-mode.d
|
||||
cp dark-mode.d/* ~/.local/share/dark-mode.d/
|
||||
cp light-mode.d/* ~/.local/share/light-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'")}'
|
1
bash/darkman/darkman-setup.bash
Symbolic link
1
bash/darkman/darkman-setup.bash
Symbolic link
@ -0,0 +1 @@
|
||||
../darkman-setup.bash
|
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'")}'
|
Loading…
x
Reference in New Issue
Block a user