This commit is contained in:
Alexander Bell 2025-05-17 01:56:29 +02:00
parent b8a49b9fab
commit e0e2ae33a4
5 changed files with 143 additions and 7 deletions

View File

@ -185,3 +185,7 @@ else
alias grep="/usr/bin/grep $GREP_OPTIONS"
fi
unset GREP_OPTIONS
# HAS TO BE AT THE END!!!!
# Starship bash prompt bar
eval "$(starship init bash)"

View File

@ -27,7 +27,7 @@
}
},
"color": {
"keys": "yellow", // Key color
"keys": "#f2b065", // Key color
"title": "red" // Title color
},
},

View File

@ -68,7 +68,7 @@ input-field {
# uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator)
# hide_input = true
position = 0, -200
position = 0, -155
halign = center
valign = center
}
@ -80,12 +80,12 @@ label {
font_size = 90
font_family = $font_dune
shadow_size = 10
shadow_size = 8
shadow_passes = 3
#color = rgba(fc9e07ff)
color = rgba(fce4b8ff)
position = 0, 400
position = 0, 370
halign = center
valign = center
}
@ -97,10 +97,12 @@ label {
font_size = 25
font_family = $font
shadow_size = 5
shadow_size = 3
shadow_passes = 2
position = 0, -300
color = rgba(fce4b8ff)
position = 0, -280
halign = center
valign = center
}

111
.config/starship.toml Normal file
View File

@ -0,0 +1,111 @@
format = """
$battery $username $localip$hostname 󰍴 $directory$git_branch$git_metrics$git_status$docker_context$python$java$package
$cmd_duration $character
"""
palette = 'dune'
[palettes.dune]
white = '#edc190'
bright_orange = '#f2b065'
orange = '#f49b35'
red = '#ea4504'
brown = '#a02401'
# NOT USED RIGHT NOW
[time]
disabled = false
format = '[](yellow) [\[ $time \]](yellow) '
time_format = '%T'
utc_time_offset = '+2'
#time_range = '10:00:00-14:00:00'
[battery]
charging_symbol = '󰂄'
full_symbol = '󰁹'
discharging_symbol = '󰂃'
format = '[$symbol]($style)'
[[battery.display]]
threshold = 100
style = 'green'
[[battery.display]]
threshold = 50
style = 'yellow'
[[battery.display]]
threshold = 30
style = 'red'
[hostname]
ssh_only = true
format = ' [$ssh_symbol$hostname]($style)'
style = 'orange'
ssh_symbol = "󰇧"
disabled = false
[localip]
ssh_only = false
format = '[$localipv4](#6ac5cc)'
disabled = false
[username]
style_user = "blue bold"
style_root = "red bold"
format = "[]($style)"
disabled = false
show_always = true
[character]
success_symbol = "[](bold white)"
error_symbol = "[✗](bold red)"
[directory]
read_only = " "
truncation_length = 10
truncate_to_repo = true # truncates directory to root folder if in github repo
style = "bold italic bright_orange"
[cmd_duration]
min_time = 4
show_milliseconds = true
format = '[$duration]($style)'
disabled = false
style = "bold italic red"
[docker_context]
symbol = " "
format = "via [$symbol$context]($style) "
style = "blue bold"
only_with_files = true
detect_files = ["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]
detect_folders = []
disabled = false
[git_branch]
symbol = " "
[git_status]
diverged = '⇕⇡${ahead_count}⇣${behind_count}'
format = "[${ahead_behind}$staged$untracked$conflicted](purple) "
disabled = false
[git_metrics]
added_style = 'green'
deleted_style = 'red'
format = '[+$added]($added_style)[ / ](purple)[-$deleted]($deleted_style) '
disabled = false
[java]
symbol = " "
[package]
symbol = "󰏗 "
[python]
symbol = " "
#pyenv_version_name = true
format = 'via [${symbol}python (${version} )(\($virtualenv\) )]($style)'
style = "bold yellow"
pyenv_prefix = "venv "
python_binary = ["./venv/bin/python", "python", "python3", "python2"]
detect_extensions = ["py"]
version_format = "v${raw}"

View File

@ -3,6 +3,10 @@
# Run as root
# Kitty tab bar: https://github.com/kovidgoyal/kitty/discussions/4447#discussioncomment-3240635
###################################################################
# SYMBOLIC LINKS
###################################################################
ln -s ~/dotfiles/.conf/hypr ~/.config/hypr
ln -s ~/dotfiles/.conf/hyprpaper ~/.config/hyprpaper
ln -s ~/dotfiles/.conf/fastfetch ~/.config/fastfetch
@ -10,10 +14,18 @@ ln -s ~/dotfiles/.conf/mimeapps.list ~/.config/mimeapps.list
ln -s ~/dotfiles/wallpapers ~/wallpapers
ln -s ~/dotfiles/.fonts ~/.fonts
# Starship config
ln -s ~/dotfiles/.config/starship.toml ~/.config/starship.toml
ln -s ~/dotfiles/.config/starship.toml /root/.config/starship.toml
# Fix Electron Apps Wayland scaling issue:
# If app doesn't work, add "--no-sandbox" to app in /usr/share/applications/
ln -s ~/dotfiles/.conf/environment.d ~/.config/environment.d
###################################################################
# PACKAGES
###################################################################
# Hyperland stuff
# uwsm needed for launching hypr on boot
pacman -S uwsm hyprland xdg-desktop-portal-hyprland hyprpaper
@ -28,12 +40,19 @@ pacman -S yazi ffmpeg poppler fd p7zip
# Use amdctl for undervolting
pacman -S btop ripgrep bat neovim nano grim slurp dust fastfetch imv wl-clipboard amdctl
# Bash prompt bar
pacman -S starship
# Networking
# For connecting to eduroam install config with this script: https://cat.eduroam.org/
# wpa_supplicant is dependency of networkmanager that was not installed for some reason.
# Run networkmanager with "nmcli dev wifi connect 'ssid' password 'password'"
pacman -S networkmanager wpa_supplicant
###################################################################
# TINKERING
###################################################################
# Launch directly into hyprlock and skipping login
echo '[Service]\nExecStart=\nExecStart=-/sbin/agetty --noreset --noclear --autologin alex %I $TERM' | sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf > /dev/null && sudo systemctl enable getty@tty1