Compare commits

..

2 Commits

Author SHA1 Message Date
6689c1b2d5 fix: fontsize too small 2024-09-08 17:24:39 -03:00
b4b9645cc3 feat(desktop)!: add fish shell! 2024-09-08 17:24:39 -03:00
5 changed files with 120 additions and 1 deletions

View File

@ -0,0 +1,50 @@
if status --is-login
fish_add_path ~/.local/bin
set -gx BAT_THEME "Solarized (light)"
set -gx EDITOR "nvim"
if test -z "$WAYLAND_DISPLAY" && test "$XDG_VTNR" -eq 1
set -gx XDG_CURRENT_DESKTOP "sway"
sway
end
end
if status is-interactive
alias ls="bash ~/scripts/elash.sh"
alias v="nvim"
alias reboot="systemctl reboot"
alias hr="date +'%Hh:%M, %d-%m-%Y'"
alias ff="fastfetch"
alias feh="imv"
alias lg="lazygit"
alias cpr="cd ~/repos/cports-docker && docker compose run --build --rm cports"
alias cop="wl-copy"
alias poweroff="systemctl poweroff"
alias cat="bat"
end
function pst
set -l file
set -l use_ansifilter false
if command -v ansifilter > /dev/null
set use_ansifilter true
end
if command test -p /dev/stdin
set file (mktemp)
if test $use_ansifilter = true
ansifilter > $file
else
cat > $file
end
else if test -n "$argv[1]"
set file "$argv[1]"
end
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
if command test -p /dev/stdin
rm "$file"
end
end

View File

@ -0,0 +1,43 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:767676
SETUVAR fish_color_cancel:\x2d\x2dreverse
SETUVAR fish_color_command:0087ff
SETUVAR fish_color_comment:586e75
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:00d75f
SETUVAR fish_color_error:dc322f
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:\x1d
SETUVAR fish_color_keyword:\x1d
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_option:\x1d
SETUVAR fish_color_param:00afaf
SETUVAR fish_color_quote:d7af5f
SETUVAR fish_color_redirection:6c71c4
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_background:\x1d
SETUVAR fish_pager_color_completion:B3A06D
SETUVAR fish_pager_color_description:B3A06D
SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_secondary_background:\x1d
SETUVAR fish_pager_color_secondary_completion:\x1d
SETUVAR fish_pager_color_secondary_description:\x1d
SETUVAR fish_pager_color_secondary_prefix:\x1d
SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dbrblack
SETUVAR fish_pager_color_selected_completion:\x1d
SETUVAR fish_pager_color_selected_description:\x1d
SETUVAR fish_pager_color_selected_prefix:\x1d
SETUVAR fish_user_paths:/yang/\x2elocal/bin

View File

@ -0,0 +1,3 @@
function fish_greeting
# no op
end

View File

@ -0,0 +1,21 @@
function fish_prompt
# This is a simple prompt. It looks like
# alfa@nobby /path/to/dir $
# with the path shortened and colored
# and a "#" instead of a "$" when run as root.
set -l symbol ' $ '
set -l color $fish_color_cwd
if fish_is_root_user
set symbol ' # '
set -q fish_color_cwd_root
and set color $fish_color_cwd_root
end
echo -n $USER@$hostname
set_color $color
echo -n (prompt_pwd)
set_color normal
echo -n $symbol
end

View File

@ -3,7 +3,7 @@ exec_always {
gsettings set $gnome-schema gtk-theme 'NumixSolarizedDarkCyan' gsettings set $gnome-schema gtk-theme 'NumixSolarizedDarkCyan'
gsettings set $gnome-schema icon-theme 'Numix-Circle' gsettings set $gnome-schema icon-theme 'Numix-Circle'
gsettings set $gnome-schema cursor-theme 'Simp1e' gsettings set $gnome-schema cursor-theme 'Simp1e'
gsettings set $gnome-schema font-name 'UbuntuMono Nerd Font Mono 14' gsettings set $gnome-schema font-name 'UbuntuMono Nerd Font Mono 16'
} }
exec { exec {
@ -17,7 +17,9 @@ exec {
~/scripts/swww.sh ~/scripts/swww.sh
otd-daemon otd-daemon
~/scripts/weechat.sh ~/scripts/weechat.sh
cp ~/main.kbdx ~/docs/next_cloud/
dunst & dunst &
nextcloud --background
} }
# vim: ts=2 sts=2 sw=2 ft=swayconfig # vim: ts=2 sts=2 sw=2 ft=swayconfig