mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-05-28 18:37:33 +02:00
Compare commits
17 Commits
c25edaaede
...
f9882b31b9
Author | SHA1 | Date | |
---|---|---|---|
f9882b31b9 | |||
7deb9c3e01 | |||
3ca884e828 | |||
ca876caea0 | |||
83f7b5b447 | |||
c2b438a680 | |||
6ecedcfdd4 | |||
d56660f3c6 | |||
d41e225bf0 | |||
80119c9059 | |||
38eeaaa4ce | |||
f64f5727d0 | |||
42efd8ce0b | |||
7624918bda | |||
a479e2ed06 | |||
bf2484e3e3 | |||
37cf2abc56 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -20,6 +20,9 @@
|
||||
# Certificates (unlikely to happen, but better safe than sorry)
|
||||
*.pem
|
||||
|
||||
# I tend to have files with that name around on occassion
|
||||
*.gitignore.*
|
||||
|
||||
# Symlinks
|
||||
install.run
|
||||
LICENSE
|
||||
|
@ -9,7 +9,8 @@ ExecStartPre=-/usr/sbin/modprobe pps_ldisc
|
||||
# Empty ExecStart= before the actual ExecStart= removes the original
|
||||
# ExecStart= line
|
||||
ExecStart=
|
||||
ExecStart=/usr/sbin/gpsd /dev/gps0 --nowait --foreground $AMINDAGPSD
|
||||
# Maybe specify the GPS device in /etc/gpsd.aminda.conf instead?
|
||||
ExecStart=/usr/sbin/gpsd --readonly --nowait --foreground $AMINDAGPSD
|
||||
# Missing from the original unit, will reconnect all GPS says man gpsd
|
||||
ExecReload=/usr/bin/killall -HUP gpsd
|
||||
# Avoiding systemd considering the unit as failed.
|
||||
|
21
local/share/dark-mode.d/00-do-not-repeat-yourself.sh
Normal file
21
local/share/dark-mode.d/00-do-not-repeat-yourself.sh
Normal file
@ -0,0 +1,21 @@
|
||||
if ! hash lsb_release 2> /dev/null; then
|
||||
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
|
||||
echo $ERRORMESSAGE
|
||||
#notify-send $ERRORMESSAGE
|
||||
exit 0
|
||||
fi
|
||||
|
||||
export DISTROID=$(lsb_release -si)
|
||||
export DISTROREL=$(lsb_release -sr)
|
||||
|
||||
export DARKMANGET=$(darkman get)
|
||||
|
||||
printf "Distribution: $DISTROID\nRelease: $DISTROREL\nMode: $DARKMANGET\n"
|
||||
|
||||
if [[ "$DARKMANGET" == "dark" ]]; then
|
||||
(notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "Teema: $DARKMANGET" &)
|
||||
elif [[ "$DARKMANGET" == "light" ]]; then
|
||||
(notify-send --app-name="darkman" --urgency=low --icon=weather-clear "Teema: $DARKMANGET" &)
|
||||
else
|
||||
echo "darkman: Something went wrong?"
|
||||
fi
|
14
local/share/dark-mode.d/10-adwaita-breeze-dark.bash
Executable file
14
local/share/dark-mode.d/10-adwaita-breeze-dark.bash
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is all adapted from /usr/share/doc/darkman/examples/dark-mode.d/
|
||||
|
||||
# GTK Theme
|
||||
(gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' &)
|
||||
(gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark &)
|
||||
(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Adwaita-dark" &)
|
||||
|
||||
# Xfce theme?
|
||||
(exec xfconf-query -c xsettings -p /Net/ThemeName -s 'Adwaita-dark' &)
|
||||
|
||||
# Plasma
|
||||
(lookandfeeltool --apply "org.kde.breezedark.desktop" &)
|
7
local/share/dark-mode.d/13-plasma-distro-themes.bash
Executable file
7
local/share/dark-mode.d/13-plasma-distro-themes.bash
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh
|
||||
|
||||
if [[ "$DISTROID" == "Kali" ]]; then
|
||||
lookandfeeltool --apply "Kali-Purple-Dark"
|
||||
fi
|
@ -1,10 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export DISTROID=$(lsb_release -si)
|
||||
export DISTROREL=$(lsb_release -sr)
|
||||
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh
|
||||
|
||||
if [ "$DISTROID" == "Fedora" ]; then
|
||||
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,16 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is all adapted from /usr/share/doc/darkman/examples/dark-mode.d/
|
||||
|
||||
# Notify of light theme switch
|
||||
(notify-send --app-name="darkman" --urgency=low --icon=moon-phase-full "Moonlights" &)
|
||||
|
||||
# GTK Theme
|
||||
(gsettings set org.gnome.desktop.interface gtk-theme Breeze-Dark &)
|
||||
(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" &)
|
||||
|
||||
# Xfce theme?
|
||||
(exec xfconf-query -c xsettings -p /Net/ThemeName -s 'Breeze' &)
|
||||
|
||||
# Plasma
|
||||
(lookandfeeltool --apply "org.kde.breezedark.desktop" &)
|
@ -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,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
|
1
local/share/light-mode.d/.gitignore
vendored
Normal file
1
local/share/light-mode.d/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
00-do-not-repeat-yourself.sh
|
1
local/share/light-mode.d/00-do-not-repeat-yourself.sh
Symbolic link
1
local/share/light-mode.d/00-do-not-repeat-yourself.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../dark-mode.d/00-do-not-repeat-yourself.sh
|
@ -2,10 +2,8 @@
|
||||
|
||||
# This is all adapted from /usr/share/doc/darkman/examples/light-mode.d/
|
||||
|
||||
# Notify of light theme switch
|
||||
(notify-send --app-name="darkman" --urgency=low --icon=weather-clear "Let there be light" &)
|
||||
|
||||
# GTK Theme
|
||||
(gsettings set org.gnome.desktop.interface color-scheme 'prefer-light' &)
|
||||
(gsettings set org.gnome.desktop.interface gtk-theme Breeze &)
|
||||
(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" &)
|
||||
|
9
local/share/light-mode.d/13-plasma-distro-themes.bash
Executable file
9
local/share/light-mode.d/13-plasma-distro-themes.bash
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh
|
||||
|
||||
if [[ "$DISTROID" == "Kali" ]]; then
|
||||
lookandfeeltool --apply "Kali-Purple-Light"
|
||||
elif [[ "$DISTROID" == "Fedora" ]]; then
|
||||
lookandfeeltool --apply "org.fedoraproject.fedora.desktop"
|
||||
fi
|
@ -1,10 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export DISTROID=$(lsb_release -si)
|
||||
export DISTROREL=$(lsb_release -sr)
|
||||
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh
|
||||
|
||||
if [ "$DISTROID" == "Fedora" ]; then
|
||||
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'")}'
|
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
lookandfeeltool --apply "Kali-Purple-Light"
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user