Compare commits

...
2 Commits
7 changed files with 35 additions and 16 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
font-family = JetBrainsMono Nerd Font
theme = dark:Catppuccin Mocha,light:Catppuccin Latte
window-theme = ghostty
#command = nu
command = nu
background-blur = true
auto-update = check
macos-option-as-alt = left
+1 -1
View File
@@ -64,7 +64,7 @@ hl.env("TERM", "ghostty")
hl.env("TERMINAL", "ghostty")
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
hl.env("QT_QPA_PLATFORM", "wayland")
hl.env("GTK_THEME", "catppuccin-mocha-mauve-standard+default")
hl.env("PROTON_DLSS_UPGRADE", "1")
---------------------
+26 -9
View File
@@ -2,20 +2,35 @@
def apply-theme [selected: string] {
let choice = if $selected == "auto" {
let color_scheme = (bash -lc "gsettings get org.gnome.desktop.interface color-scheme 2>/dev/null || true" | str trim)
if ($color_scheme | str contains "prefer-dark") {
let mode = (try { darkman get | str trim } catch { "" })
if $mode == "dark" {
"mocha"
} else if ($color_scheme | str contains "prefer-light") {
} else if $mode == "light" {
"latte"
} else {
let hour = (date now | format date "%H" | into int)
if ($hour >= 19 or $hour < 7) { "mocha" } else { "latte" }
let color_scheme = (bash -lc "gsettings get org.gnome.desktop.interface color-scheme 2>/dev/null || true" | str trim)
if ($color_scheme | str contains "prefer-dark") {
"mocha"
} else if ($color_scheme | str contains "prefer-light") {
"latte"
} else {
let hour = (date now | format date "%H" | into int)
if ($hour >= 19 or $hour < 7) { "mocha" } else { "latte" }
}
}
} else {
$selected
}
let wanted_darkman = if $choice == "mocha" { "dark" } else { "light" }
let current_darkman = (try { darkman get | str trim } catch { "" })
if $current_darkman != "" and $current_darkman != $wanted_darkman {
try {
bash -c $"darkman set ($wanted_darkman) &"
} catch {}
}
let home = $env.HOME
let base = $"($home)/.config/themes/catppuccin/($choice)"
@@ -71,9 +86,11 @@ def apply-theme [selected: string] {
let color_scheme = if $choice == "mocha" { "prefer-dark" } else { "prefer-light" }
bash -lc $"gsettings set org.gnome.desktop.interface color-scheme ($color_scheme)"
if ($"($home)/.config/gtk-3.0/settings.ini" | path exists) {
bash -lc $'sed -i "s/^gtk-theme-name=.*/gtk-theme-name=($gtk_theme)/" "$HOME/.config/gtk-3.0/settings.ini"'
}
try {
mkdir $"($home)/.config/gtk-3.0"
} catch {}
let prefer_dark = if $choice == "mocha" { "1" } else { "0" }
$"[Settings]\ngtk-theme-name=($gtk_theme)\ngtk-application-prefer-dark-theme=($prefer_dark)\n" | save -f $"($home)/.config/gtk-3.0/settings.ini"
} catch {
}
+2
View File
@@ -45,6 +45,8 @@
owncloud-client
wl-clipboard
obsidian
htop
btop
];
home.file = {
+3 -3
View File
@@ -2,7 +2,7 @@
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
color_theme = "/home/johannes/.config/btop/themes/catppuccin_latte.theme"
color_theme = "/home/johannes/.config/btop/themes/catppuccin_mocha.theme"
#* If the theme set background should be shown, set to False if you want terminal background transparency.
theme_background = false
@@ -61,7 +61,7 @@ graph_symbol_net = "default"
graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
shown_boxes = "cpu net proc mem"
shown_boxes = "cpu mem net proc"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 1000
@@ -265,7 +265,7 @@ rsmi_measure_pcie_speeds = true
gpu_mirror_graph = true
#* Set which GPU vendors to show. Available values are "nvidia amd intel apple"
shown_gpus = "nvidia amd intel"
shown_gpus = "nvidia amd apple"
#* Custom gpu0 model name, empty string to disable.
custom_gpu_name0 = ""
+1 -1
View File
@@ -1,2 +1,2 @@
[flavor]
use = "catppuccin-latte"
use = "catppuccin-mocha"
+1 -1
View File
@@ -20,7 +20,7 @@
"npm:@ff-labs/pi-fff",
"npm:@juicesharp/rpiv-ask-user-question"
],
"theme": "catppuccin-tui-latte",
"theme": "catppuccin-tui-mocha",
"hideThinkingBlock": true,
"quietStartup": true,
"enableInstallTelemetry": false,