eww: Add color-scheme switch button

This commit is contained in:
2024-07-17 10:55:18 +02:00
parent b5babe522d
commit 972bcf003d
4 changed files with 66 additions and 11 deletions

View File

@ -0,0 +1,7 @@
#!/bin/sh
{% if light %}
echo light
{% else %}
echo dark
{% end %}

View File

@ -0,0 +1,21 @@
#!/bin/env fish
switch $argv[1]
case 'light'
# configure terminal stuff with light theme
dotfiles light
# change gtk theme
gsettings set org.gnome.desktop.interface color-scheme prefer-light
case 'dark'
# configure terminal stuff with dark theme
dotfiles
# change gtk theme
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
case '*'
echo "usage: set-color-scheme <dark|light>"
exit 1
end