-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from dhruveshb-mecha/dev-v4
feat: configs and apps added
- Loading branch information
Showing
7 changed files
with
100 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import: | ||
- ~/.alacritty-theme/themes/flat-remix.yml | ||
window: | ||
decorations: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
colors: | ||
primary: | ||
background: "#000000" | ||
foreground: "#FFFFFF" | ||
normal: | ||
black: "#1F2229" | ||
red: "#EC0101" | ||
green: "#47D4B9" | ||
yellow: "#FF8A18" | ||
blue: "#277FFF" | ||
magenta: "#D71655" | ||
cyan: "#05A1F7" | ||
white: "#FFFFFF" | ||
bright: | ||
black: "#1F2229" | ||
red: "#D41919" | ||
green: "#5EBDAB" | ||
yellow: "#FEA44C" | ||
blue: "#367bf0" | ||
magenta: "#BF2E5D" | ||
cyan: "#49AEE6" | ||
white: "#FFFFFF" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/usr/bin/env nu | ||
|
||
use logger.nu | ||
|
||
alias SUDO = sudo | ||
|
||
export def configure_alacritty [] { | ||
log_info "Configuring system files:" | ||
let rootfs_dir = $env.ROOTFS_DIR | ||
let build_conf_path = $env.BUILD_CONF_PATH | ||
|
||
let script_dir_path = (open $build_conf_path | get include-path) | ||
let alacritty_package_path = $script_dir_path + "/alacritty/" | ||
let alacritty_bin = $alacritty_package_path + "alacritty" | ||
log_debug $"Alacritty binary path: ($alacritty_bin)" | ||
|
||
let alacritty_config = $alacritty_package_path + "alacritty.yml" | ||
log_debug $"Alacritty configuration path: ($alacritty_config)" | ||
|
||
let alacritty_theme = $alacritty_package_path + "flat-remix.yml" | ||
log_debug $"Alacritty theme path: ($alacritty_theme)" | ||
|
||
let alacritty_dest = $"($rootfs_dir)/usr/bin/" | ||
let config_dir = $"($rootfs_dir)/home/mecha/.config" | ||
let config_dest = $"($config_dir)/alacritty" | ||
let theme_dest = $"($rootfs_dir)/home/mecha/.alacritty-theme/themes" | ||
|
||
# System-level configuration | ||
log_info "Installing alacritty binary..." | ||
SUDO cp $alacritty_bin $alacritty_dest | ||
log_debug "System binary installation completed successfully." | ||
|
||
# User-level configuration | ||
log_info "Setting up user alacritty configuration..." | ||
|
||
# Create config directory if it doesn't exist | ||
if not ($config_dest | path exists) { | ||
log_debug $"Creating directory: ($config_dest)" | ||
SUDO mkdir -p $config_dest | ||
} | ||
|
||
# Copy configuration file | ||
log_debug $"Copying ($alacritty_config) to ($config_dest)" | ||
SUDO cp $alacritty_config $"($config_dest)/alacritty.yml" | ||
log_info "alacritty.yml copied successfully." | ||
|
||
# Create theme directory and copy theme | ||
log_info "Setting up Alacritty theme..." | ||
if not ($theme_dest | path exists) { | ||
log_debug $"Creating directory: ($theme_dest)" | ||
SUDO mkdir -p $theme_dest | ||
} | ||
|
||
# Copy theme file | ||
log_debug $"Copying ($alacritty_theme) to ($theme_dest)" | ||
SUDO cp $alacritty_theme $"($theme_dest)/flat-remix.yml" | ||
log_info "flat-remix.yml theme file copied successfully." | ||
|
||
log_debug "Alacritty configuration completed successfully." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters