Compare commits

...

2 Commits

Author SHA1 Message Date
Sem
5c995f7aa2 Add matugen config for kitty and wip for QT 2026-03-30 22:00:29 +02:00
Sem
ddd9a93679 add matugen support for hyprland 2026-03-30 20:56:59 +02:00
15 changed files with 3536 additions and 99 deletions

150
hypr/colors.conf Normal file
View File

@@ -0,0 +1,150 @@
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$background = rgba(0e1415ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$error = rgba(ff5449ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$error_container = rgba(7b0007ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$inverse_on_surface = rgba(5f6666ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$inverse_primary = rgba(338d91ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$inverse_surface = rgba(dde4e3ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_background = rgba(5d6364ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_error = rgba(5c0003ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_error_container = rgba(ff7d70ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_primary = rgba(004d50ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_primary_container = rgba(5cb1b5ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_primary_fixed = rgba(7dd2d5ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_primary_fixed_variant = rgba(58adb1ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_secondary = rgba(142e2fff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_secondary_container = rgba(8ea9aaff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_secondary_fixed = rgba(aec9caff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_secondary_fixed_variant = rgba(8ba5a6ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_surface = rgba(9ea4a4ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_surface_variant = rgba(7b8585ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_tertiary = rgba(172a45ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_tertiary_container = rgba(93a5c5ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_tertiary_fixed = rgba(b2c5e7ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$on_tertiary_fixed_variant = rgba(8fa1c1ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$outline = rgba(4c5656ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$outline_variant = rgba(323c3cff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$primary = rgba(479da1ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$primary_container = rgba(004144ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$primary_fixed = rgba(005b5eff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$primary_fixed_dim = rgba(004144ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$scrim = rgba(000000ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$secondary = rgba(7b9697ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$secondary_container = rgba(253e3fff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$secondary_fixed = rgba(3c5556ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$secondary_fixed_dim = rgba(253e3fff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$shadow = rgba(000000ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$source_color = rgba(2f5c5eff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface = rgba(0e1415ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_bright = rgba(343a3bff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_container = rgba(1a2121ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_container_high = rgba(252b2bff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_container_highest = rgba(303636ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_container_low = rgba(161d1dff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_container_lowest = rgba(090f10ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_dim = rgba(0e1415ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_tint = rgba(80d4d8ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$surface_variant = rgba(3f4949ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$tertiary = rgba(7f91b1ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$tertiary_container = rgba(293b56ff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$tertiary_fixed = rgba(40526eff)
$image = /home/sem/Pictures/wallpapers/smoked_that_by_seven_teenth_deb3ya8-fullview.jpg
$tertiary_fixed_dim = rgba(293b56ff)

View File

@@ -17,6 +17,7 @@
# source = ~/.config/hypr/myColors.conf
source = ~/linux-dotfiles/hypr/monitors.conf
source = colors.conf
###################
### MY PROGRAMS ###
@@ -86,8 +87,8 @@ general {
border_size = 2
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(d2519cee) rgba(dd94ffee) 45deg
col.inactive_border = rgba(d2519caa)
col.active_border = $inverse_primary
col.inactive_border = $on_secondary
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false

49
kitty/current-theme.conf Normal file
View File

@@ -0,0 +1,49 @@
cursor #479da1
cursor_text_color #004d50
foreground #9ea4a4
background #090f10
selection_foreground #142e2f
selection_background #7b9697
url_color #7b9697
#: black 000000 767676
color0 #0e1415
color8 #303636
#: red cc0403 f2201f
color1 #864f35
color9 #cf9d85
#: green 19cb00 23fd00
color2 #253e3f
color10 #3c5556
#: yellow cecb00 fffd00
color3 #293b56
color11 #40526e
#: blue 0d73cc 1a8fff
color4 #58adb1
color12 #479da1
#: magenta cb1ed1 fd28ff
color5 #8ba5a6
color13 #7b9697
#: cyan 0dcdcd 14ffff
color6 #8fa1c1
color14 #7f91b1
#: white dddddd ffffff
color7 #7b8585
color15 #9ea4a4
mark1_foreground #7dd2d5
mark1_background #005b5e
mark2_foreground #aec9ca
mark2_background #3c5556
mark3_foreground #b2c5e7
mark3_background #40526e
active_tab_foreground #004d50
active_tab_background #479da1
inactive_tab_foreground #5cb1b5
inactive_tab_background #004144
active_border_color #479da1
inactive_border_color #004d50
# bell_border_color #ff5a00

3156
kitty/kitty.conf Normal file

File diff suppressed because it is too large Load Diff

49
kitty/themes/Matugen.conf Normal file
View File

@@ -0,0 +1,49 @@
cursor #479da1
cursor_text_color #004d50
foreground #9ea4a4
background #090f10
selection_foreground #142e2f
selection_background #7b9697
url_color #7b9697
#: black 000000 767676
color0 #0e1415
color8 #303636
#: red cc0403 f2201f
color1 #864f35
color9 #cf9d85
#: green 19cb00 23fd00
color2 #253e3f
color10 #3c5556
#: yellow cecb00 fffd00
color3 #293b56
color11 #40526e
#: blue 0d73cc 1a8fff
color4 #58adb1
color12 #479da1
#: magenta cb1ed1 fd28ff
color5 #8ba5a6
color13 #7b9697
#: cyan 0dcdcd 14ffff
color6 #8fa1c1
color14 #7f91b1
#: white dddddd ffffff
color7 #7b8585
color15 #9ea4a4
mark1_foreground #7dd2d5
mark1_background #005b5e
mark2_foreground #aec9ca
mark2_background #3c5556
mark3_foreground #b2c5e7
mark3_background #40526e
active_tab_foreground #004d50
active_tab_background #479da1
inactive_tab_foreground #5cb1b5
inactive_tab_background #004144
active_border_color #479da1
inactive_border_color #004d50
# bell_border_color #ff5a00

View File

@@ -40,85 +40,30 @@ block_postfix = "*>"
# Value from -1 to 1.
# -1 represents minimum contrast, 0 represents standard (i.e. the design as spec'd),
# and 1 represents maximum contrast.
contrast = 1.0
contrast = -1.0
[config.wallpaper]
# Whether to set the wallpaper or not
set = true
# The base command to run for applying the wallpaper.
# Keywords like {{ image }} or anything that works inside of hooks works here.
# You could also set a static color if you use the color keywords and the wallpaper setter supports it.
command = "swww img --transition-type center {{ image }}"
command = "awww img {{ image }} --transition-type grow --transition-fps 60 --transition-duration 0.6"
# Whether to set the wallpaper or not
set = true
# For example, killing the wallpaper daemon. Usage is like a normal hook.
# pre_hook = ""
[templates.hyprland]
input_path = '~/linux-dotfiles/matugen/templates/hyprland-colors.conf'
output_path = '~/linux-dotfiles/hypr/colors.conf'
post_hook = "hyprctl reload && echo 'done'"
# If you don't want to use the other colors that are automatically generated (on_color, on_color_container) you can just import a custom json with the colors instead.
# For an example of importing json see: https://iniox.github.io/#matugen/usage/importing-json
[config.custom_colors]
red = "#ff0000"
blue = "#0000ff"
green = "#00ff00"
[templates.kitty]
input_path = '~/linux-dotfiles/matugen/templates/kitty-colors.conf'
output_path = '~/linux-dotfiles/kitty/themes/Matugen.conf'
post_hook = "kitty +kitten themes --reload-in=all Matugen"
[templates.includeme]
input_path = "./include.txt"
# The output path is optional if you just want to import the template anyways.
# output_path = "./a/include.txt"
[templates.qt5ct]
input_path = '~/linux-dotfiles/matugen/templates/qtct-colors.conf'
output_path = '~/linux-dotfiles/qt5ct/colors/matugen.conf'
[templates.name1]
# Relative paths will be resolved from the path `config.toml` is in.
input_path = "./colors.whatever-extension"
output_path = "./a/colors-generated.whatever-extension"
# Defaults to a value of 0 if unspecified, determines the order that each template is processed.
# You can use index = n to force a particular template hook to run after everything else, and index = -n for before everything else
index = 1
# Defaults to the type from CLI if unspecified.
# One of `SchemeContent`, `SchemeExpressive`, `SchemeFidelity`, `SchemeFruitSalad`, `SchemeMonochrome`, `SchemeNeutral`, `SchemeRainbow`, `SchemeTonalSpot`, `SchemeVibrant`
type = "SchemeExpressive"
# For testing of the `--continue-on-error` flag
# [templates.ishoulderror]
# Relative paths will be resolved from the path `config.toml` is in.
# input_path = "./error-testing.txt"
# output_path = "./a/error-testing.txt"
# This will use a different input path depending on what mode you use.
# input_path_modes = { dark = "./colors.whatever-extension", light = "./colors.whatever-extension" }
# This will compare all of the colors inside the array with the color you set as `compare_to`, and returns the closest color to it.
# You can then use `{{closest_color}}` inside hooks.
colors_to_compare = [
{ name = "black", color = "#000000" },
{ name = "red", color = "#ff0000" },
{ name = "maroon", color = "#800000" },
{ name = "yellow", color = "#ffff00" },
{ name = "olive", color = "#808000" },
{ name = "lime", color = "#00ff00" },
{ name = "green", color = "#008000" },
{ name = "aqua", color = "#00ffff" },
{ name = "teal", color = "#008080" },
{ name = "blue", color = "#0000ff" },
{ name = "navy", color = "#000080" },
{ name = "fuchsia", color = "#ff00ff" },
{ name = "purple", color = "#800080" },
]
compare_to = "{{colors.primary.default.hex}}"
# Runs before the template is exported. You can use keywords here.
# If you want the command to be async, add an & symbol to the end of the command on unix.
pre_hook = 'echo "source color {{colors.source_color.default.hex}}, source image {{image}}, closest color {{closest_color}}"'
# Runs after the template is exported. You can use keywords here.
# If you want the command to be async, add an & symbol to the end of the command on unix.
post_hook = 'echo "after gen"'
# For overriding the prefix for a specific template only
expr_prefix = "{{"
expr_postfix = "}}"
# Only hex values
# https://m3.material.io/styles/color/advanced/adjust-existing-colors#1cc12e43-237b-45b9-8fe0-9a3549c1f61e
# If you want to use the original color without any harmonization, add `_source` after the name like: `{{ color_source }}`
# Example: To use the original red color you would use `{{ red_source }}` instead of `{{ red }}`
[templates.qt6ct]
input_path = '~/linux-dotfiles/matugen/templates/qtct-colors.conf'
output_path = '~/linux-dotfiles/qt6ct/colors/matugen.conf'

View File

@@ -0,0 +1,4 @@
<* for name, value in colors *>
$image = {{image}}
${{name}} = rgba({{value.default.hex_stripped}}ff)
<* endfor *>

View File

@@ -0,0 +1,49 @@
cursor {{ colors.primary.dark.hex }}
cursor_text_color {{ colors.on_primary.dark.hex }}
foreground {{ colors.on_surface.dark.hex }}
background {{ colors.surface_container_lowest.dark.hex }}
selection_foreground {{ colors.on_secondary.dark.hex }}
selection_background {{ colors.secondary.dark.hex }}
url_color {{ colors.secondary.dark.hex }}
#: black 000000 767676
color0 {{ colors.surface.dark.hex }}
color8 {{ colors.surface_container_highest.dark.hex }}
#: red cc0403 f2201f
color1 {{ base16.base08.dark.hex | lighten: -20.0 }}
color9 {{ base16.base08.dark.hex | lighten: 10.0 }}
#: green 19cb00 23fd00
color2 {{ colors.secondary_fixed_dim.dark.hex }}
color10 {{ colors.secondary_fixed.dark.hex }}
#: yellow cecb00 fffd00
color3 {{ colors.tertiary_fixed_dim.dark.hex }}
color11 {{ colors.tertiary_fixed.dark.hex }}
#: blue 0d73cc 1a8fff
color4 {{ colors.on_primary_fixed_variant.dark.hex }}
color12 {{ colors.primary.dark.hex }}
#: magenta cb1ed1 fd28ff
color5 {{ colors.on_secondary_fixed_variant.dark.hex }}
color13 {{ colors.secondary.dark.hex }}
#: cyan 0dcdcd 14ffff
color6 {{ colors.on_tertiary_fixed_variant.dark.hex }}
color14 {{ colors.tertiary.dark.hex }}
#: white dddddd ffffff
color7 {{ colors.on_surface_variant.dark.hex }}
color15 {{ colors.on_surface.dark.hex }}
mark1_foreground {{ colors.on_primary_fixed.dark.hex }}
mark1_background {{ colors.primary_fixed.dark.hex }}
mark2_foreground {{ colors.on_secondary_fixed.dark.hex }}
mark2_background {{ colors.secondary_fixed.dark.hex }}
mark3_foreground {{ colors.on_tertiary_fixed.dark.hex }}
mark3_background {{ colors.tertiary_fixed.dark.hex }}
active_tab_foreground {{ colors.on_primary.dark.hex }}
active_tab_background {{ colors.primary.dark.hex }}
inactive_tab_foreground {{ colors.on_primary_container.dark.hex }}
inactive_tab_background {{ colors.primary_container.dark.hex }}
active_border_color {{ colors.primary.dark.hex }}
inactive_border_color {{ colors.on_primary.dark.hex }}
# bell_border_color #ff5a00

View File

@@ -0,0 +1,4 @@
[ColorScheme]
active_colors={{colors.on_background.default.hex}}, {{colors.surface.default.hex}}, #ffffff, #cacaca, #9f9f9f, #b8b8b8, {{colors.on_background.default.hex}}, #ffffff, {{colors.on_surface.default.hex}}, {{colors.background.default.hex}}, {{colors.background.default.hex}}, {{colors.shadow.default.hex}}, {{colors.primary_container.default.hex}}, {{colors.on_primary_container.default.hex}}, {{colors.secondary.default.hex}}, {{colors.primary.default.hex}}, {{colors.surface.default.hex}}, {{colors.scrim.default.hex}}, {{colors.surface.default.hex}}, {{colors.on_surface.default.hex}}, {{colors.secondary.default.hex}}
disabled_colors={{colors.on_background.default.hex}}, {{colors.surface.default.hex}}, #ffffff, #cacaca, #9f9f9f, #b8b8b8, {{colors.on_background.default.hex}}, #ffffff, {{colors.on_surface.default.hex}}, {{colors.background.default.hex}}, {{colors.background.default.hex}}, {{colors.shadow.default.hex}}, {{colors.primary_container.default.hex}}, {{colors.on_primary_container.default.hex}}, {{colors.secondary.default.hex}}, {{colors.primary.default.hex}}, {{colors.surface.default.hex}}, {{colors.scrim.default.hex}}, {{colors.surface.default.hex}}, {{colors.on_surface.default.hex}}, {{colors.secondary.default.hex}}
inactive_colors={{colors.on_background.default.hex}}, {{colors.surface.default.hex}}, #ffffff, #cacaca, #9f9f9f, #b8b8b8, {{colors.on_background.default.hex}}, #ffffff, {{colors.on_surface.default.hex}}, {{colors.background.default.hex}}, {{colors.background.default.hex}}, {{colors.shadow.default.hex}}, {{colors.primary_container.default.hex}}, {{colors.on_primary_container.default.hex}}, {{colors.secondary.default.hex}}, {{colors.primary.default.hex}}, {{colors.surface.default.hex}}, {{colors.scrim.default.hex}}, {{colors.surface.default.hex}}, {{colors.on_surface.default.hex}}, {{colors.secondary.default.hex}}

View File

@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#5d6364, #0e1415, #ffffff, #cacaca, #9f9f9f, #b8b8b8, #5d6364, #ffffff, #9ea4a4, #0e1415, #0e1415, #000000, #004144, #5cb1b5, #7b9697, #479da1, #0e1415, #000000, #0e1415, #9ea4a4, #7b9697
disabled_colors=#5d6364, #0e1415, #ffffff, #cacaca, #9f9f9f, #b8b8b8, #5d6364, #ffffff, #9ea4a4, #0e1415, #0e1415, #000000, #004144, #5cb1b5, #7b9697, #479da1, #0e1415, #000000, #0e1415, #9ea4a4, #7b9697
inactive_colors=#5d6364, #0e1415, #ffffff, #cacaca, #9f9f9f, #b8b8b8, #5d6364, #ffffff, #9ea4a4, #0e1415, #0e1415, #000000, #004144, #5cb1b5, #7b9697, #479da1, #0e1415, #000000, #0e1415, #9ea4a4, #7b9697

3
qt5ct/qt5ct.conf Normal file
View File

@@ -0,0 +1,3 @@
[Appearance]
color_scheme_path=/home/sem/linux-dotfiles/qt5ct/colors/matugen.conf
custom_palette=true

View File

@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#5d6364, #0e1415, #ffffff, #cacaca, #9f9f9f, #b8b8b8, #5d6364, #ffffff, #9ea4a4, #0e1415, #0e1415, #000000, #004144, #5cb1b5, #7b9697, #479da1, #0e1415, #000000, #0e1415, #9ea4a4, #7b9697
disabled_colors=#5d6364, #0e1415, #ffffff, #cacaca, #9f9f9f, #b8b8b8, #5d6364, #ffffff, #9ea4a4, #0e1415, #0e1415, #000000, #004144, #5cb1b5, #7b9697, #479da1, #0e1415, #000000, #0e1415, #9ea4a4, #7b9697
inactive_colors=#5d6364, #0e1415, #ffffff, #cacaca, #9f9f9f, #b8b8b8, #5d6364, #ffffff, #9ea4a4, #0e1415, #0e1415, #000000, #004144, #5cb1b5, #7b9697, #479da1, #0e1415, #000000, #0e1415, #9ea4a4, #7b9697

3
qt6ct/qt6ct.conf Normal file
View File

@@ -0,0 +1,3 @@
[Appearance]
color_scheme_path=/home/sem/linux-dotfiles/qt6ct/colors/matugen.conf
custom_palette=true

View File

@@ -1,4 +1,3 @@
import Quickshell
import Quickshell.Io
import QtQuick
@@ -36,15 +35,14 @@ Item {
var index = Math.floor(Math.random() * wallpapers.length);
var path = wallpapers[index];
// console.log("wallpaper set to " + path);
wallpaperProcess.command = ["awww", "img", path, "--transition-type", "grow", "--transition-fps", "60", "--transition-duration", "0.6"];
wallpaperProcess.command = ["matugen", "image", path]
console.log("Running command: " + wallpaperProcess.command);
wallpaperProcess.running = true;
}
Timer {
interval: 60000
interval: 1000 * 60 * 15 // every 15 minutes
running: true
repeat: true
onTriggered: wallpaperHolder.setRandomWallpaper()

View File

@@ -1,18 +1,32 @@
pragma ComponentBehavior: Bound
import Quickshell
import Quickshell.Wayland
import Quickshell.Hyprland
import Quickshell.Io
import QtQuick
import QtQuick.Layouts
import QtQuick.Window
import "."
import "constants"
import "ui"
import "services"
ShellRoot {
id: root
// put RandomWallpaper and SystemStats here so they only get instantiated once
RandomWallpaper {}
SystemStats {
id: stats
}
Variants {
model: Quickshell.screens
// qmllint disable uncreatable-type
PanelWindow {
id: root
id: rootPanel
required property ShellScreen modelData
screen: modelData
// =====================
// Layout
@@ -23,11 +37,12 @@ PanelWindow {
implicitHeight: 25
color: Constants.colBg
RandomWallpaper {}
SystemStats {
id: stats
Loader {
id: wallpaperLoader
sourceComponent: RandomWallpaper {}
active: false
}
TopBar {
anchors.fill: parent
@@ -35,3 +50,6 @@ PanelWindow {
memUsage: stats.memUsage
}
}
}
}