Update alacritty to also use Iosevka, better shell functions filename, add some other miscellaneous helpers for managing polybar bar and screenshots
This commit is contained in:
parent
b92da9287a
commit
67572b1c4c
|
@ -39,19 +39,19 @@ draw_bold_text_with_bright_colors: true
|
||||||
font:
|
font:
|
||||||
# The normal (roman) font face to use.
|
# The normal (roman) font face to use.
|
||||||
normal:
|
normal:
|
||||||
family: Monaco # should be "Menlo" or something on macOS.
|
family: Iosevka # should be "Menlo" or something on macOS.
|
||||||
# Style can be specified to pick a specific face.
|
# Style can be specified to pick a specific face.
|
||||||
# style: Regular
|
# style: Regular
|
||||||
|
|
||||||
# The bold font face
|
# The bold font face
|
||||||
bold:
|
bold:
|
||||||
family: Monaco # should be "Menlo" or something on macOS.
|
family: Iosevka # should be "Menlo" or something on macOS.
|
||||||
# Style can be specified to pick a specific face.
|
# Style can be specified to pick a specific face.
|
||||||
# style: Bold
|
# style: Bold
|
||||||
|
|
||||||
# The italic font face
|
# The italic font face
|
||||||
italic:
|
italic:
|
||||||
family: Monaco # should be "Menlo" or something on macOS.
|
family: Iosevka # should be "Menlo" or something on macOS.
|
||||||
# Style can be specified to pick a specific face.
|
# Style can be specified to pick a specific face.
|
||||||
# style: Italic
|
# style: Italic
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ font:
|
||||||
# Offset is the extra space around each character. offset.y can be thought of
|
# Offset is the extra space around each character. offset.y can be thought of
|
||||||
# as modifying the linespacing, and offset.x as modifying the letter spacing.
|
# as modifying the linespacing, and offset.x as modifying the letter spacing.
|
||||||
offset:
|
offset:
|
||||||
x: -5.0
|
x: -37.0
|
||||||
y: 0.0
|
y: 0.0
|
||||||
|
|
||||||
# OS X only: use thin stroke font rendering. Thin strokes are suitable
|
# OS X only: use thin stroke font rendering. Thin strokes are suitable
|
||||||
|
|
|
@ -614,7 +614,7 @@ last-close = ignore
|
||||||
# multiple: Hide the tab bar if only one tab is open.
|
# multiple: Hide the tab bar if only one tab is open.
|
||||||
# switching: Show the tab bar when switching tabs.
|
# switching: Show the tab bar when switching tabs.
|
||||||
# Default: always
|
# Default: always
|
||||||
show = multiple
|
show = switching
|
||||||
|
|
||||||
# show-switching-delay (Int):
|
# show-switching-delay (Int):
|
||||||
# Time to show the tab bar before hiding it when tabs->show is set
|
# Time to show the tab bar before hiding it when tabs->show is set
|
||||||
|
@ -697,13 +697,13 @@ tabs-are-windows = false
|
||||||
# * `{backend}`: Either 'webkit' or 'webengine'
|
# * `{backend}`: Either 'webkit' or 'webengine'
|
||||||
# * `{private}` : Indicates when private mode is enabled.
|
# * `{private}` : Indicates when private mode is enabled.
|
||||||
# Default: {index}: {title}
|
# Default: {index}: {title}
|
||||||
title-format = {index}: {title}
|
title-format = {title}
|
||||||
|
|
||||||
# title-format-pinned (FormatString):
|
# title-format-pinned (FormatString):
|
||||||
# The format to use for the tab title for pinned tabs. The same
|
# The format to use for the tab title for pinned tabs. The same
|
||||||
# placeholders like for title-format are defined.
|
# placeholders like for title-format are defined.
|
||||||
# Default: {index}
|
# Default: {index}
|
||||||
title-format-pinned = {index}
|
title-format-pinned =
|
||||||
|
|
||||||
# title-alignment (TextAlignment):
|
# title-alignment (TextAlignment):
|
||||||
# Alignment of the text inside of tabs
|
# Alignment of the text inside of tabs
|
||||||
|
@ -1478,12 +1478,12 @@ prompts.selected.bg = #308cc6
|
||||||
# Default: xos4 Terminus, Terminus, Monospace, "DejaVu Sans Mono",
|
# Default: xos4 Terminus, Terminus, Monospace, "DejaVu Sans Mono",
|
||||||
# Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New",
|
# Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New",
|
||||||
# Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal
|
# Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal
|
||||||
_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal
|
_monospace = Iosevka, Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal
|
||||||
|
|
||||||
# completion (Font):
|
# completion (Font):
|
||||||
# Font used in the completion widget.
|
# Font used in the completion widget.
|
||||||
# Default: 8pt ${_monospace}
|
# Default: 8pt ${_monospace}
|
||||||
completion = 8pt ${_monospace}
|
completion = 9pt ${_monospace}
|
||||||
|
|
||||||
# completion.category (Font):
|
# completion.category (Font):
|
||||||
# Font used in the completion categories.
|
# Font used in the completion categories.
|
||||||
|
|
|
@ -7,12 +7,11 @@ export BAR_ON_TOP=0
|
||||||
export BAR_SIDE_MARGIN=200
|
export BAR_SIDE_MARGIN=200
|
||||||
|
|
||||||
MONITOR_WIDTH=$(xrandr | grep "$BAR_MONITOR" | grep -Po ' \d+' | head -n 1)
|
MONITOR_WIDTH=$(xrandr | grep "$BAR_MONITOR" | grep -Po ' \d+' | head -n 1)
|
||||||
export BAR_FONT=$(xrdb -query | sed -ne 's/.*font:\s*xft:\([^:]*\)\:.*$/\1/p' | head -n 1)
|
|
||||||
# export BAR_ICON_FONT="Font Awesome 5 Free"
|
export BAR_FONT="${BAR_FONT:-$(xrdb -query | sed -ne 's/.*font:\s*xft:\([^:]*\)\:.*$/\1/p' | head -n 1)}"
|
||||||
# export BAR_ICON_FONT_2="Font Awesome 5 Brands"
|
export BAR_ICON_FONT="${BAR_ICON_FONT:-"FontAwesome"}"
|
||||||
export BAR_ICON_FONT="FontAwesome"
|
export BAR_FONT_SIZE="${BAR_FONT_SIZE:-$(xrdb -query | sed -ne 's/.*font:\s*xft:[^-]*\=\([0-9]*\).*$/\1/p' | head -n 1)}"
|
||||||
export BAR_FONT_SIZE=$(xrdb -query | sed -ne 's/.*font:\s*xft:[^-]*\=\([0-9]*\).*$/\1/p' | head -n 1)
|
export BAR_ICON_FONT_SIZE="${BAR_ICON_FONT_SIZE:-$((BAR_FONT_SIZE))}"
|
||||||
export BAR_ICON_FONT_SIZE=$((BAR_FONT_SIZE))
|
|
||||||
|
|
||||||
export GAP=$(bspc wm -d | grep -Po '(windowGap.*?,)' | grep -Po '\-?\d*' | head -n 1)
|
export GAP=$(bspc wm -d | grep -Po '(windowGap.*?,)' | grep -Po '\-?\d*' | head -n 1)
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@ if [ -f "$HOME/.xmodmap" ]; then
|
||||||
xmodmap "$HOME/.xmodmap"
|
xmodmap "$HOME/.xmodmap"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
xcape -e 'Control_L=Escape' &
|
||||||
|
|
||||||
pulseaudio --start &
|
pulseaudio --start &
|
||||||
|
|
||||||
xset s off -dpms &
|
xset s off -dpms &
|
||||||
|
|
|
@ -1,2 +1,7 @@
|
||||||
remove Lock = Caps_Lock
|
! convert caps lock to control
|
||||||
keysym Caps_Lock = Escape
|
clear Lock
|
||||||
|
keycode 66 = Control_L
|
||||||
|
add Control = Control_L
|
||||||
|
|
||||||
|
! a fake keycode for xcape
|
||||||
|
keycode 999 = Escape
|
||||||
|
|
|
@ -104,21 +104,8 @@ alias resrc="source \$HOME/.bashrc"
|
||||||
alias redshift="redshift -l 39.0997:-94.5786"
|
alias redshift="redshift -l 39.0997:-94.5786"
|
||||||
alias gpmdpe="electron --app=/usr/share/gpmdp/resources/app.asar"
|
alias gpmdpe="electron --app=/usr/share/gpmdp/resources/app.asar"
|
||||||
|
|
||||||
screenshot() {
|
|
||||||
SCROT_DIR="$NICE_HOME/img/scrots/"
|
|
||||||
mkdir -p "$SCROT_DIR"
|
|
||||||
scrot "$@" "$NICE_HOME/img/scrots/%Y-%m-%d_%H-%M-%S_\$wx\$h.png"
|
|
||||||
}
|
|
||||||
export -f screenshot
|
|
||||||
|
|
||||||
export NOTES_DIR="$NICE_HOME"
|
export NOTES_DIR="$NICE_HOME"
|
||||||
|
|
||||||
n() {
|
|
||||||
SUBDIR="${2:-}"
|
|
||||||
mkdir -p "$NICE_HOME/doc/notes/$SUBDIR"
|
|
||||||
"$EDITOR" "$NICE_HOME/doc/notes/$SUBDIR/$(date +%Y-%m-%d)_$1.md"
|
|
||||||
}
|
|
||||||
|
|
||||||
# games aliases
|
# games aliases
|
||||||
# this sometimes fixes steam dynamic library issues?
|
# this sometimes fixes steam dynamic library issues?
|
||||||
# alias steam="LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' steam"
|
# alias steam="LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' steam"
|
||||||
|
|
|
@ -20,7 +20,7 @@ source "$DOTFILES_PATH/shell/paths"
|
||||||
source "$DOTFILES_PATH/shell/aliases"
|
source "$DOTFILES_PATH/shell/aliases"
|
||||||
|
|
||||||
# import our global shell functions
|
# import our global shell functions
|
||||||
source "$DOTFILES_PATH/shell/shell_funcs"
|
source "$DOTFILES_PATH/shell/funcs"
|
||||||
|
|
||||||
# import our autocompletions
|
# import our autocompletions
|
||||||
source "$DOTFILES_PATH/shell/autocompletions"
|
source "$DOTFILES_PATH/shell/autocompletions"
|
||||||
|
|
|
@ -24,6 +24,33 @@ startbar() {
|
||||||
}
|
}
|
||||||
export -f startbar
|
export -f startbar
|
||||||
|
|
||||||
|
restartbar() {
|
||||||
|
stopbar
|
||||||
|
startbar
|
||||||
|
}
|
||||||
|
export -f restartbar
|
||||||
|
|
||||||
|
screenshot() {
|
||||||
|
SCROT_DIR="$NICE_HOME/img/scrots/"
|
||||||
|
mkdir -p "$SCROT_DIR"
|
||||||
|
FILENAME="$NICE_HOME/img/scrots/%Y-%m-%d_%H-%M-%S_\$wx\$h.png"
|
||||||
|
scrot "$@" "${FILENAME}" >/dev/null && echo "Saved screenshot to: ${FILENAME}"
|
||||||
|
}
|
||||||
|
export -f screenshot
|
||||||
|
|
||||||
|
editscrot() {
|
||||||
|
SCROT_DIR="$NICE_HOME/img/scrots/"
|
||||||
|
LATEST_SCROT="$(\ls -Art "${SCROT_DIR}" | tail -n 1)"
|
||||||
|
krita "${SCROT_DIR}${LATEST_SCROT}"
|
||||||
|
}
|
||||||
|
|
||||||
|
n() {
|
||||||
|
SUBDIR="${2:-}"
|
||||||
|
mkdir -p "$NICE_HOME/doc/notes/$SUBDIR"
|
||||||
|
"$EDITOR" "$NICE_HOME/doc/notes/$SUBDIR/$(date +%Y-%m-%d)_$1.md"
|
||||||
|
}
|
||||||
|
export -f n
|
||||||
|
|
||||||
# save the current directory for later retrieval
|
# save the current directory for later retrieval
|
||||||
scwd() {
|
scwd() {
|
||||||
addon=""
|
addon=""
|
Reference in a new issue