From d31c9583322097939b08f602e65edeba556c4e3c Mon Sep 17 00:00:00 2001 From: nub31 Date: Fri, 26 Sep 2025 18:48:08 +0200 Subject: [PATCH] prompt --- .bashrc | 12 ++++++++---- .config/hypr/input.conf | 4 ++-- .config/waybar/style.css | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.bashrc b/.bashrc index 3924665..ab64c44 100644 --- a/.bashrc +++ b/.bashrc @@ -10,7 +10,11 @@ if [[ "$PS1" && -f /usr/share/bash-completion/bash_completion ]]; then source /usr/share/bash-completion/bash_completion fi -# Init starship -if command -v starship > /dev/null; then - eval "$(starship init bash)" -fi +git_branch() { + branch=$(git branch --show-current 2>/dev/null) + if [ -n "$branch" ]; then + echo " 󰘬 $branch" + fi +} + +PS1='\[\e[38;5;238m\]╭╴\[\e[0;2m\]󰣇\[\e[0m\] \[\e[38;5;171;1;2m\]\u\[\e[0m\] on \[\e[38;5;221;1m\]\h\[\e[0m\] at \[\e[38;5;159;1m\]\w\[\e[0m\]\[\e[38;5;156m\]$(git_branch)\n\[\e[38;5;238m\]╰─\[\e[0m\] ' diff --git a/.config/hypr/input.conf b/.config/hypr/input.conf index a0e0ced..faf0b48 100644 --- a/.config/hypr/input.conf +++ b/.config/hypr/input.conf @@ -1,10 +1,10 @@ # https://wiki.hyprland.org/Configuring/Variables/#input input { - kb_layout = us + kb_layout = us,no + kb_options = grp:win_space_toggle kb_variant = kb_model = - kb_options = kb_rules = follow_mouse = 1 diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 469f2d1..9ddd85b 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -1,5 +1,5 @@ * { - font-family: "JetBrainsMono Nerd Font, Font Awesome, monospace"; + font-family: "JetBrainsMono Nerd Font", "Noto Sans Japanese", "Font Awesome", monospace; font-size: 14px; font-weight: 900; } @@ -73,4 +73,4 @@ button:hover { #custom-lock:hover { color: #E06C75; border-color: #E06C75; -} \ No newline at end of file +}