Compare commits
4 commits
821ab390df
...
79eecc1e22
Author | SHA1 | Date | |
---|---|---|---|
79eecc1e22 | |||
7e0796842a | |||
1e947632d7 | |||
b4ecaee3b7 |
15 changed files with 174 additions and 0 deletions
4
darkman/.config/darkman/config.yaml
Normal file
4
darkman/.config/darkman/config.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
lat: 43.7
|
||||
lng: 7.2
|
||||
dbusserver: true
|
||||
portal: true
|
5
darkman/.local/share/dark-mode.d/gtk-theme.sh
Executable file
5
darkman/.local/share/dark-mode.d/gtk-theme.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
|
||||
gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark
|
||||
|
6
darkman/.local/share/dark-mode.d/notification.sh
Executable file
6
darkman/.local/share/dark-mode.d/notification.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/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
|
||||
|
||||
notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "switching to dark mode"
|
6
darkman/.local/share/dark-mode.d/wofi.sh
Executable file
6
darkman/.local/share/dark-mode.d/wofi.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cat \
|
||||
"$HOME/.config/wofi/colors-dark.css" \
|
||||
"$HOME/.config/wofi/base.css" \
|
||||
> "$HOME/.config/wofi/style.css"
|
5
darkman/.local/share/light-mode.d/gtk-theme.sh
Executable file
5
darkman/.local/share/light-mode.d/gtk-theme.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
gsettings set org.gnome.desktop.interface color-scheme prefer-light
|
||||
gsettings set org.gnome.desktop.interface gtk-theme Adwaita
|
||||
|
6
darkman/.local/share/light-mode.d/notification.sh
Executable file
6
darkman/.local/share/light-mode.d/notification.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/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
|
||||
|
||||
notify-send --app-name="darkman" --urgency=low --icon=weather-clear "switching to light mode"
|
6
darkman/.local/share/light-mode.d/wofi.sh
Executable file
6
darkman/.local/share/light-mode.d/wofi.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cat \
|
||||
"$HOME/.config/wofi/colors-light.css" \
|
||||
"$HOME/.config/wofi/base.css" \
|
||||
> "$HOME/.config/wofi/style.css"
|
|
@ -17,6 +17,7 @@
|
|||
"modules-right": [
|
||||
"idle_inhibitor",
|
||||
"custom/ddcbrightness",
|
||||
"custom/light-dark-mode",
|
||||
"pulseaudio",
|
||||
"network",
|
||||
"bluetooth",
|
||||
|
@ -210,5 +211,16 @@
|
|||
"format-ok": "",
|
||||
"system": true, // Monitor failed systemwide units.
|
||||
"user": true // Ignore failed user units.
|
||||
},
|
||||
"custom/light-dark-mode": {
|
||||
"exec": "/home/bca/.config/waybar/darkman",
|
||||
"return-type": "json",
|
||||
"format": "{icon}",
|
||||
"tooltip": true,
|
||||
"on-click": "darkman toggle",
|
||||
"format-icons": {
|
||||
"light": " ",
|
||||
"dark": " "
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
19
waybar/.config/waybar/darkman
Executable file
19
waybar/.config/waybar/darkman
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
# vim: ft=bash
|
||||
|
||||
print_json() {
|
||||
case "$1" in
|
||||
prefer-dark)
|
||||
echo '{"text": "dark", "alt": "dark", "class": "dark", "tooltip": "Dark mode"}'
|
||||
;;
|
||||
prefer-light)
|
||||
echo '{"text": "light", "alt": "light", "class": "light", "tooltip": "Light mode"}'
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
print_json "$(gsettings get org.gnome.desktop.interface color-scheme | cut -nd"'" -f 2)"
|
||||
gsettings monitor org.gnome.desktop.interface color-scheme | while read -r l; do
|
||||
print_json "$(echo "$l" | cut -d"'" -f 2)"
|
||||
done
|
||||
|
|
@ -97,6 +97,7 @@ button:hover {
|
|||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#power-profiles-daemon,
|
||||
#customcustom-light-dark-mode,
|
||||
#custom-ddcbrightness,
|
||||
#idle_inhibitor,
|
||||
#mpd {
|
||||
|
|
42
wofi/.config/wofi/base.css
Normal file
42
wofi/.config/wofi/base.css
Normal file
|
@ -0,0 +1,42 @@
|
|||
#window {
|
||||
background-color: @window-background;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 10px;
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
#entry{
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
background-color: @background-selected;
|
||||
}
|
||||
|
||||
#expander-box {
|
||||
margin-left: 4em;
|
||||
}
|
||||
|
||||
expander {
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
:not(expander) > * > .entry {
|
||||
margin-left: 1.1em;
|
||||
}
|
||||
|
||||
image {
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
#text {
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
#input {
|
||||
color: @foreground;
|
||||
background-color: @background;
|
||||
border: 0;
|
||||
}
|
6
wofi/.config/wofi/colors-dark.css
Normal file
6
wofi/.config/wofi/colors-dark.css
Normal file
|
@ -0,0 +1,6 @@
|
|||
@define-color window-background rgba(255, 255, 255, 0.1);
|
||||
@define-color background #002b36;
|
||||
@define-color background-selected #073642;
|
||||
@define-color foreground #839496;
|
||||
|
||||
|
5
wofi/.config/wofi/colors-light.css
Normal file
5
wofi/.config/wofi/colors-light.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
@define-color window-background rgba(255, 255, 255, 0.1);
|
||||
@define-color background #fdf6e3;
|
||||
@define-color background-selected #eee8d5;
|
||||
@define-color foreground #657b83;
|
||||
|
3
wofi/.config/wofi/config
Normal file
3
wofi/.config/wofi/config
Normal file
|
@ -0,0 +1,3 @@
|
|||
allow_images=true
|
||||
allow_markup=true
|
||||
key_expand=Tab
|
48
wofi/.config/wofi/style.css
Normal file
48
wofi/.config/wofi/style.css
Normal file
|
@ -0,0 +1,48 @@
|
|||
@define-color window-background rgba(255, 255, 255, 0.1);
|
||||
@define-color background #002b36;
|
||||
@define-color background-selected #073642;
|
||||
@define-color foreground #839496;
|
||||
|
||||
|
||||
#window {
|
||||
background-color: @window-background;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 10px;
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
#entry{
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
background-color: @background-selected;
|
||||
}
|
||||
|
||||
#expander-box {
|
||||
margin-left: 4em;
|
||||
}
|
||||
|
||||
expander {
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
:not(expander) > * > .entry {
|
||||
margin-left: 1.1em;
|
||||
}
|
||||
|
||||
image {
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
#text {
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
#input {
|
||||
color: @foreground;
|
||||
background-color: @background;
|
||||
border: 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue