mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
darkman: recognize Kali
This commit is contained in:
parent
d41e225bf0
commit
d56660f3c6
@ -7,3 +7,5 @@ fi
|
||||
|
||||
export DISTROID=$(lsb_release -si)
|
||||
export DISTROREL=$(lsb_release -sr)
|
||||
|
||||
echo "$DISTROID $DISTROREL"
|
||||
|
@ -1,11 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
. 00-do-not-repeat-yourself.sh
|
||||
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh
|
||||
|
||||
if [ -f ~/.wallpaper.dark ]; then
|
||||
export WALLPAPER_PATH="$HOME/.wallpaper.dark"
|
||||
elif [ "$DISTROID" == "Fedora" ]; then
|
||||
export WALLPAPER_PATH="/usr/share/wallpapers/F$DISTROREL/contents/images_dark/3840x2160.png"
|
||||
elif [ "$DISTROID" == "Kali" ]; then
|
||||
export WALLPAPER_PATH="/usr/share/wallpapers/KaliMetalDark/contents/images/3840x2160.png"
|
||||
fi
|
||||
|
||||
echo "Wallpaper: $WALLPAPER_PATH"
|
||||
|
||||
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,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,11 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
. 00-do-not-repeat-yourself.sh
|
||||
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh
|
||||
|
||||
if [ -f ~/.wallpaper.light ]; then
|
||||
export WALLPAPER_PATH="$HOME/.wallpaper.light"
|
||||
elif [ "$DISTROID" == "Fedora" ]; then
|
||||
export WALLPAPER_PATH="/usr/share/wallpapers/F$DISTROREL/contents/images/3840x2160.png"
|
||||
elif [ "$DISTROID" == "Kali" ]; then
|
||||
export WALLPAPER_PATH="/usr/share/wallpapers/KaliMetal/contents/images/3840x2160.jpg"
|
||||
fi
|
||||
|
||||
echo "Wallpaper: $WALLPAPER_PATH"
|
||||
|
||||
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,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'")}'
|
Loading…
Reference in New Issue
Block a user