pika-gnome-layouts/usr/lib/pika/gnome-layouts/dconf-accent.sh

30 lines
1.7 KiB
Bash
Raw Normal View History

2022-12-23 11:49:39 +01:00
#! /usr/bin/bash
2023-03-24 17:25:56 +01:00
gnome-extensions enable pika-darkmode@pika.com
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/manual-time-source true
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-button-placement "'none'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/time-source "'ondemand'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/enabled true
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/enabled true
dconf write /org/pika/layouts/pika-theme 1
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/enabled true
2023-03-28 14:29:57 +02:00
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunrise "'pika-gnome-theme'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunset "'pika-gnome-theme dark'"
2023-09-23 11:25:47 +02:00
if [[ $1 == Teal ]]
2023-03-24 17:25:56 +01:00
then
2023-09-16 14:45:24 +02:00
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'Jasper-Light'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'Jasper-Dark'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "'Jasper-Light'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "'Jasper-Dark'"
2023-03-24 17:25:56 +01:00
else
2023-09-16 14:45:24 +02:00
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'Jasper-$1-Light'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'Jasper-$1-Dark'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "'Jasper-$1-Light'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "'Jasper-$1-Dark'"
2023-03-24 17:25:56 +01:00
fi
2023-03-25 14:17:53 +01:00
if dconf read /org/gnome/desktop/interface/color-scheme | grep dark
then
2023-03-28 14:29:57 +02:00
pika-gnome-theme dark
2023-03-25 14:17:53 +01:00
else
2023-03-28 14:29:57 +02:00
pika-gnome-theme
2023-03-25 14:17:53 +01:00
fi