Some fixes to fish prompt and mpv hw acceleration
This commit is contained in:
parent
fb0aa8369b
commit
7f800a0d55
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -U fish_user_paths $HOME/.local/bin $HOME/scripts $HOME/.doom-emacs/bin $HOME/.emacs.d/bin
|
set -U fish_user_paths $HOME/.local/bin $HOME/scripts $HOME/.doom-emacs/bin $HOME/.emacs.d/bin
|
||||||
set TERM "xterm-256color"
|
set TERM "xterm-256color"
|
||||||
set EDITOR "emacsclient -t -a"
|
set EDITOR "emacsclient -c -a"
|
||||||
set VISUAL "emacsclient -c -a emacs"
|
set VISUAL "emacsclient -c -a emacs"
|
||||||
|
|
||||||
### PROMPT ###
|
### PROMPT ###
|
||||||
|
@ -16,10 +16,10 @@ set VISUAL "emacsclient -c -a emacs"
|
||||||
|
|
||||||
|
|
||||||
function fish_greeting -d "what's up, fish?"
|
function fish_greeting -d "what's up, fish?"
|
||||||
set_color $fish_color_autosuggestion[1]
|
# set_color $fish_color_autosuggestion[1]
|
||||||
uname -npsr
|
# uname -npsr
|
||||||
uptime
|
# uptime
|
||||||
set_color normal
|
# set_color normal
|
||||||
end
|
end
|
||||||
|
|
||||||
function fish_title
|
function fish_title
|
||||||
|
@ -93,9 +93,9 @@ end
|
||||||
|
|
||||||
function _prompt_status_arrows -a exit_code
|
function _prompt_status_arrows -a exit_code
|
||||||
if test $exit_code -ne 0
|
if test $exit_code -ne 0
|
||||||
set arrow_colors 600 900 c00 f00
|
set arrow_colors green
|
||||||
else
|
else
|
||||||
set arrow_colors 060 090 0c0 0f0
|
set arrow_colors green
|
||||||
end
|
end
|
||||||
|
|
||||||
for arrow_color in $arrow_colors
|
for arrow_color in $arrow_colors
|
||||||
|
@ -165,6 +165,18 @@ function fish_right_prompt
|
||||||
set_color normal
|
set_color normal
|
||||||
end
|
end
|
||||||
|
|
||||||
|
### VI MODES
|
||||||
|
# Emulates vim's cursor shape behavior
|
||||||
|
# Set the normal and visual mode cursors to a block
|
||||||
|
set fish_cursor_default block
|
||||||
|
# Set the insert mode cursor to a line
|
||||||
|
set fish_cursor_insert line
|
||||||
|
# Set the replace mode cursor to an underscore
|
||||||
|
set fish_cursor_replace_one underscore
|
||||||
|
# The following variable can be used to configure cursor shape in
|
||||||
|
# visual mode, but due to fish_cursor_default, is redundant here
|
||||||
|
set fish_cursor_visual block
|
||||||
|
|
||||||
### BANG BANG FUNCTIONS
|
### BANG BANG FUNCTIONS
|
||||||
function __history_previous_command
|
function __history_previous_command
|
||||||
switch (commandline -t)
|
switch (commandline -t)
|
||||||
|
@ -194,3 +206,5 @@ function fish_user_key_bindings
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
alias yeet "paru -Rns"
|
||||||
|
alias pac "paru -Syu"
|
|
@ -5,5 +5,6 @@ speed=1.95
|
||||||
autofit=75%
|
autofit=75%
|
||||||
geometry=50%:50%
|
geometry=50%:50%
|
||||||
input-ipc-server="/tmp/mpvsocket"
|
input-ipc-server="/tmp/mpvsocket"
|
||||||
|
hwdec=auto
|
||||||
|
|
||||||
ytdl-format=bestvideo[height<=?720][fps<=?30]+bestaudio/best
|
ytdl-format=bestvideo[height<=?720][fps<=?30]+bestaudio/best
|
||||||
|
|
Loading…
Reference in a new issue