Compare commits
No commits in common. "b955f0b77d9b19a046b76335e0ccbd624ffe47e4" and "f2d4a91579ee7891b2af80bbabc9f3fe3024dff2" have entirely different histories.
b955f0b77d
...
f2d4a91579
@ -1,14 +1,8 @@
|
||||
function theme
|
||||
if test (count $argv) -eq 1
|
||||
if test "$argv[1]" = "dark"
|
||||
if command -q osascript
|
||||
command osascript -e 'tell application "System Events" to set dark mode of appearance preferences to true'
|
||||
end
|
||||
fish_config theme choose "Catppuccin Frappe"
|
||||
else if test "$argv[1]" = "light"
|
||||
if command -q osascript
|
||||
command osascript -e 'tell application "System Events" to set dark mode of appearance preferences to false'
|
||||
end
|
||||
fish_config theme choose "Catppuccin Latte"
|
||||
else
|
||||
echo "Error: Invalid theme. Use 'dark' or 'light'." >&2
|
||||
|
@ -30,6 +30,5 @@ install_symlink "$ROOTDIR/helix" "$HOME/.config/helix"
|
||||
install_symlink "$ROOTDIR/nix" "$HOME/.config/nix"
|
||||
install_symlink "$ROOTDIR/ripgrep" "$HOME/.config/ripgrep"
|
||||
install_symlink "$ROOTDIR/sbt" "$HOME/.config/sbt"
|
||||
install_symlink "$ROOTDIR/wezterm" "$HOME/.config/wezterm"
|
||||
|
||||
echo
|
||||
|
@ -1,22 +0,0 @@
|
||||
local wezterm = require 'wezterm'
|
||||
|
||||
function get_appearance()
|
||||
if wezterm.gui then
|
||||
return wezterm.gui.get_appearance()
|
||||
end
|
||||
return 'Dark'
|
||||
end
|
||||
|
||||
function scheme_for_appearance(appearance)
|
||||
if appearance:find 'Dark' then
|
||||
return 'catppuccin-frappe'
|
||||
else
|
||||
return 'catppuccin-latte'
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
color_scheme = scheme_for_appearance(get_appearance()),
|
||||
initial_cols = 168,
|
||||
initial_rows = 42,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user