Adds proper wallpaper reaction to theme
This commit is contained in:
parent
ab0c103ad9
commit
1a04002bd2
22 changed files with 96 additions and 55 deletions
3
.config/theming/modes/executors/01-Desktop-notification.sh
Executable file
3
.config/theming/modes/executors/01-Desktop-notification.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "switching to ${TARGET_MODE} mode"
|
||||
8
.config/theming/modes/executors/10-Backlight.sh
Executable file
8
.config/theming/modes/executors/10-Backlight.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/env sh
|
||||
|
||||
TARGET_BRIGHTNESS=25%
|
||||
if [[ $TARGET_MODE == 'light' ]]; then
|
||||
TARGET_BRIGHTNESS=75%
|
||||
fi
|
||||
|
||||
brightnessctl set $TARGET_BRIGHTNESS
|
||||
7
.config/theming/modes/executors/10-Bluelight.sh
Executable file
7
.config/theming/modes/executors/10-Bluelight.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/env sh
|
||||
|
||||
if [[ $TARGET_MODE == 'light' ]]; then
|
||||
hyprctl hyprsunset identity
|
||||
else
|
||||
hyprctl hyprsunset temperature 5000
|
||||
fi
|
||||
21
.config/theming/modes/executors/10-Themes.sh
Executable file
21
.config/theming/modes/executors/10-Themes.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/env sh
|
||||
|
||||
CURSOR="Qogir-dark"
|
||||
THEME="Gruvbox-Orange-Dark"
|
||||
|
||||
if [[ $TARGET_MODE == 'light' ]]; then
|
||||
CURSOR="Qogir"
|
||||
THEME="Gruvbox-Orange-Light"
|
||||
|
||||
wal -l --theme base16-gruvbox-medium
|
||||
else
|
||||
wal --theme base16-gruvbox-medium
|
||||
fi
|
||||
|
||||
hyprctl setcursor ${CURSOR} 32
|
||||
|
||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-${TARGET_MODE}"
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "${THEME}"
|
||||
|
||||
$HOME/.config/theming/compile.sh
|
||||
$HOME/.config/theming/update.sh
|
||||
8
.config/theming/modes/executors/20-Wallpaper.sh
Executable file
8
.config/theming/modes/executors/20-Wallpaper.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/env sh
|
||||
|
||||
SOURCE_WALLPAPER="$HOME/.local/share/wallpapers/commit-less.jpg"
|
||||
SHADER_PATH="$HOME/.cache/wal/wallpaper.glsl"
|
||||
TARGET_PATH="$HOME/.cache/wallpaper.png"
|
||||
|
||||
image-glsl-processing --input "$SOURCE_WALLPAPER" --shader "$SHADER_PATH" --output "$TARGET_PATH"
|
||||
swww img "$TARGET_PATH"
|
||||
Loading…
Add table
Add a link
Reference in a new issue