mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-14 18:27:22 +02:00
Compare commits
No commits in common. "ed7618e9dac81806ff672bcb35d1e23db805b7d0" and "bca436cd4dd4566052459089a447a36f6a8f3685" have entirely different histories.
ed7618e9da
...
bca436cd4d
@ -1,34 +1,23 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
|
||||||
if ! hash darkman 2> /dev/null; then
|
if ! hash darkman 2> /dev/null; then
|
||||||
echo "You don't seem to have darkman installed." 1>&2
|
echo "You don't seem to have darkman installed." 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d ~/.local/share/dark-mode.d ]; then
|
mkdir -vp ~/.local/share/
|
||||||
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
|
if [ -d /usr/share/doc/darkman/examples ]; then
|
||||||
export EXAMPLESDIR="/usr/share/doc/darkman/examples"
|
ln -nsfv /usr/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||||||
elif [ -d /usr/local/share/doc/darkman/examples ]; then
|
elif [ -d /usr/local/share/doc/darkman/examples ]; then
|
||||||
export EXAMPLESDIR="/usr/local/share/doc/darkman/examples"
|
ln -nsfv /usr/local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||||||
elif [ -d ~/.local/share/doc/darkman/examples ]; then
|
elif [ -d ~/.local/share/doc/darkman/examples ]; then
|
||||||
export EXAMPLESDIR="/.local/share/doc/darkman/examples"
|
ln -nsfv ~/.local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||||||
elif [ -d ~/src/gitlab.com/WhyNotHugo/darkman/examples ]; then
|
|
||||||
export EXAMPLESDIR="~/src/gitlab.com/WhyNotHugo/darkman/examples"
|
|
||||||
else
|
else
|
||||||
echo "Darkman examples not found in expected locations."
|
echo "Darkman examples not found in expected locations."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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 disable --now darkman.service
|
||||||
systemctl --user mask darkman.service
|
systemctl --user mask darkman.service
|
||||||
echo "Creating an autostart seems to work better than the systemd service."
|
echo "Creating an autostart seems to work better than the systemd service."
|
||||||
set +x
|
|
||||||
|
1
bash/darkman/.gitignore
vendored
1
bash/darkman/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
darkman-setup.bash
|
|
@ -1,4 +0,0 @@
|
|||||||
#!/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/
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/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'")}'
|
|
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
lookandfeeltool --apply "Kali-Purple-Dark"
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/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 +0,0 @@
|
|||||||
../darkman-setup.bash
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/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'")}'
|
|
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
lookandfeeltool --apply "org.fedoraproject.fedora.desktop"
|
|
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
lookandfeeltool --apply "Kali-Purple-Light"
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/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