mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-22 07:09:38 +01:00
Add darkman config
This commit is contained in:
parent
2973c82f36
commit
2990b556e2
3
.config/darkman/config.yaml
Normal file
3
.config/darkman/config.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
lat: 40.0
|
||||
lng: 29.0
|
||||
dbusserver: true
|
7
.config/darkman/scripts/desktop-notification.sh
Executable file
7
.config/darkman/scripts/desktop-notification.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# trigger a small, passive popup dialog to inform the user about darkman's activity
|
||||
# reference https://wiki.archlinux.org/title/Desktop_notifications#Usage_in_programming
|
||||
|
||||
theme=$(darkman get)
|
||||
notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "switching to $theme mode"
|
12
.config/darkman/scripts/examples/kde-global-theme.sh
Executable file
12
.config/darkman/scripts/examples/kde-global-theme.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Change the global Plasma Theme. On Manjaro you can use "org.manjaro.breath-dark.desktop"
|
||||
# or you can create your own global Plasma Theme with the "Plasma Look And Feel Explorer".
|
||||
# Reference: https://userbase.kde.org/Plasma/Create_a_Global_Theme_Package
|
||||
#
|
||||
# Since Plasma 5.26 the lookandfeeltool does not work anymore without "faking" the screen.
|
||||
# Reference: https://bugs.kde.org/show_bug.cgi?id=460643
|
||||
|
||||
lookandfeeltool -platform offscreen --apply "org.kde.breeze.desktop"
|
||||
# lookandfeeltool -platform offscreen --apply "org.kde.breezetwilight.desktop"
|
||||
# lookandfeeltool -platform offscreen --apply "org.kde.breezedark.desktop"
|
16
.config/darkman/scripts/examples/kde-gtk-theme.sh
Executable file
16
.config/darkman/scripts/examples/kde-gtk-theme.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# GTK apps are not affected by the Plasma Global Theme, which only applies to Qt based programs.
|
||||
# GTK themes can be installed here: Global Theme > Application Style > Configure GNOME/GTK Application Style.
|
||||
# Reference: https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
|
||||
|
||||
source "$HOME/scripts/common-vars.sh"
|
||||
if [ $theme == "dark" ]; then
|
||||
theme_string="Breeze-dark-gtk"
|
||||
else
|
||||
theme_string="Default"
|
||||
fi
|
||||
|
||||
echo "string:$theme_string"
|
||||
|
||||
dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:$theme_string"
|
3
.config/darkman/scripts/examples/mako.sh
Executable file
3
.config/darkman/scripts/examples/mako.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
makoctl set-mode dark
|
4
.config/darkman/scripts/gtk.sh
Executable file
4
.config/darkman/scripts/gtk.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
theme=$(darkman get)
|
||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-$theme"
|
31
.config/darkman/scripts/terminal-stuff.sh
Executable file
31
.config/darkman/scripts/terminal-stuff.sh
Executable file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# trigger a small, passive popup dialog to inform the user about darkman's activity
|
||||
# reference https://wiki.archlinux.org/title/Desktop_notifications#Usage_in_programming
|
||||
|
||||
|
||||
theme=$(darkman get)
|
||||
PATH="$HOME/.local/bin/:$PATH"
|
||||
|
||||
if [ $theme == "dark" ]; then
|
||||
sed -i 's/tokyonight_day/tokyonight_storm/g' "$HOME/.config/kitty/kitty.conf"
|
||||
sed -i 's/Light/Origin/g' "$HOME/.config/bat/config"
|
||||
sed -i 's/flat-remix-light/tokyo-storm/g' "$HOME/.config/btop/btop.conf"
|
||||
else
|
||||
sed -i 's/tokyonight_storm/tokyonight_day/g' "$HOME/.config/kitty/kitty.conf"
|
||||
sed -i 's/Origin/Light/g' "$HOME/.config/bat/config"
|
||||
sed -i 's/tokyo-storm/flat-remix-light/g' "$HOME/.config/btop/btop.conf"
|
||||
fi
|
||||
|
||||
kill -SIGUSR1 $(pgrep kitty)
|
||||
tmux source-file "$HOME/.config/tmux/$theme.conf"
|
||||
|
||||
|
||||
# This uses the neovim-remote python package to control other neovim instances.
|
||||
# see: https://github.com/mhinz/neovim-remote
|
||||
# Further, it is assumed that toggling the background in neovim is enough.
|
||||
# Anything else should be handled by the set color scheme.
|
||||
|
||||
for server in $(nvr --serverlist); do
|
||||
nvr --servername "$server" -cc "set background=$theme"
|
||||
done
|
Loading…
Reference in New Issue
Block a user