mirror of https://github.com/artizirk/dotfiles.git
Compare commits
8 Commits
f77b79d5e7
...
9359a4a193
Author | SHA1 | Date |
---|---|---|
Arti Zirk | 9359a4a193 | |
Arti Zirk | c8cad40f75 | |
Arti Zirk | 38b7ebcbfe | |
Arti Zirk | fd976244c5 | |
Arti Zirk | 40a3e1571b | |
Arti Zirk | 5d16610c57 | |
Arti Zirk | 94e8abf192 | |
Arti Zirk | 67ed4c20c9 |
|
@ -1,9 +1,22 @@
|
|||
# -*- conf -*-
|
||||
[main]
|
||||
font=Terminus:size=12
|
||||
workers=1
|
||||
|
||||
font=Terminus:size=10
|
||||
include=/usr/share/foot/themes/tango
|
||||
|
||||
[colors]
|
||||
foreground=ffffff
|
||||
|
||||
[scrollback]
|
||||
lines=10000
|
||||
|
||||
[url]
|
||||
osc8-underline=always
|
||||
|
||||
[tweak]
|
||||
#render-timer=osd
|
||||
#delayed-render-lower=0
|
||||
#delayed-render-upper=0
|
||||
|
||||
# vim: ft=dosini
|
||||
|
|
|
@ -24,8 +24,7 @@ set $bg "~/Pildid/background.png"
|
|||
set $lockcmd ~/.bin/swaylock.sh $bg
|
||||
|
||||
# Your preferred terminal emulator
|
||||
#set $term gnome-terminal
|
||||
set $term alacritty
|
||||
set $term foot
|
||||
# Your preferred application launcher
|
||||
# None: it's recommended that you pass the final command to sway
|
||||
set $menu rofi -show combi -modes combi -combi-modes "drun,run" -show-icons -normal-window
|
||||
|
|
|
@ -13,6 +13,7 @@ end
|
|||
-- This is where you actually apply your config choices
|
||||
|
||||
config.font = wezterm.font 'Terminus'
|
||||
config.adjust_window_size_when_changing_font_size = false
|
||||
config.color_scheme = 'Tango (base16)'
|
||||
config.colors = {
|
||||
-- The default text color
|
||||
|
@ -31,6 +32,7 @@ config.window_padding = {
|
|||
bottom = 0,
|
||||
}
|
||||
|
||||
front_end = "WebGpu"
|
||||
|
||||
config.enable_kitty_keyboard = true
|
||||
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
_prompt_executing=""
|
||||
function __prompt_precmd() {
|
||||
local ret="$?"
|
||||
if test "$_prompt_executing" != "0"
|
||||
then
|
||||
_PROMPT_SAVE_PS1="$PS1"
|
||||
_PROMPT_SAVE_PS2="$PS2"
|
||||
PS1=$'%{\e]133;P;k=i\a%}'$PS1$'%{\e]133;B\a\e]122;> \a%}'
|
||||
PS2=$'%{\e]133;P;k=s\a%}'$PS2$'%{\e]133;B\a%}'
|
||||
fi
|
||||
if test "$_prompt_executing" != ""
|
||||
then
|
||||
printf "\033]133;D;%s;aid=%s\007" "$ret" "$$"
|
||||
fi
|
||||
printf "\033]133;A;cl=m;aid=%s\007" "$$"
|
||||
_prompt_executing=0
|
||||
}
|
||||
function __prompt_preexec() {
|
||||
PS1="$_PROMPT_SAVE_PS1"
|
||||
PS2="$_PROMPT_SAVE_PS2"
|
||||
printf "\033]133;C;\007"
|
||||
_prompt_executing=1
|
||||
}
|
||||
preexec_functions+=(__prompt_preexec)
|
||||
precmd_functions+=(__prompt_precmd)
|
10
.zshrc
10
.zshrc
|
@ -49,6 +49,14 @@ zstyle ':prompt:grml:left:setup' items rc config-env virtual-env change-root use
|
|||
# Disable right side sad smiley, works nicer with resized terminal
|
||||
zstyle ':prompt:grml:right:setup' use-rprompt false
|
||||
|
||||
# disable PROMPT_EOL_MARK or also known as % on end of line
|
||||
# https://unix.stackexchange.com/a/302710
|
||||
#set +o prompt_cr +o prompt_sp
|
||||
|
||||
# enable OSC 133 shell prompt start/end reporting
|
||||
# so that the terminal can scroll jump between prompts
|
||||
xsource ~/.config/zsh/functions/semantic-prompt.zsh
|
||||
|
||||
# Git based dotfiles setup start
|
||||
function _config_activate {
|
||||
export GIT_DIR=$HOME/.cfg/
|
||||
|
@ -293,7 +301,7 @@ function npm {
|
|||
|
||||
function ssh {
|
||||
(
|
||||
if [[ "$TERM" == "alacritty" ]]; then
|
||||
if [[ "$TERM" == "foot" ]]; then
|
||||
export TERM=xterm-256color
|
||||
fi
|
||||
exec /usr/bin/ssh $@
|
||||
|
|
Loading…
Reference in New Issue