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
|
||||||
|
|
|
@ -53,7 +53,7 @@ yank-ignored-url-parameters = ref,utm_source,utm_medium,utm_campaign,utm_term,ut
|
||||||
# Any {} in the string will be expanded to the filename, else the
|
# Any {} in the string will be expanded to the filename, else the
|
||||||
# filename will be appended.
|
# filename will be appended.
|
||||||
# Default:
|
# Default:
|
||||||
default-open-dispatcher =
|
default-open-dispatcher =
|
||||||
|
|
||||||
# default-page (FuzzyUrl):
|
# default-page (FuzzyUrl):
|
||||||
# The page to open if :open -t/-b/-w is used without URL. Use
|
# The page to open if :open -t/-b/-w is used without URL. Use
|
||||||
|
@ -181,7 +181,7 @@ save-session = true
|
||||||
# The name of the session to save by default, or empty for the last
|
# The name of the session to save by default, or empty for the last
|
||||||
# loaded session.
|
# loaded session.
|
||||||
# Default:
|
# Default:
|
||||||
session-default-name =
|
session-default-name =
|
||||||
|
|
||||||
# url-incdec-segments (FlagList):
|
# url-incdec-segments (FlagList):
|
||||||
# The URL segments where `:navigate increment/decrement` will search
|
# The URL segments where `:navigate increment/decrement` will search
|
||||||
|
@ -264,7 +264,7 @@ frame-flattening = false
|
||||||
# User stylesheet to use (absolute filename or filename relative to
|
# User stylesheet to use (absolute filename or filename relative to
|
||||||
# the config directory). Will expand environment variables.
|
# the config directory). Will expand environment variables.
|
||||||
# Default:
|
# Default:
|
||||||
user-stylesheet =
|
user-stylesheet =
|
||||||
|
|
||||||
# hide-scrollbar (Bool):
|
# hide-scrollbar (Bool):
|
||||||
# Hide the main scrollbar.
|
# Hide the main scrollbar.
|
||||||
|
@ -329,7 +329,7 @@ hide-wayland-decoration = false
|
||||||
# Globs are supported, so ';*' will blacklist all keychainsstarting
|
# Globs are supported, so ';*' will blacklist all keychainsstarting
|
||||||
# with ';'. Use '*' to disable keyhints
|
# with ';'. Use '*' to disable keyhints
|
||||||
# Default:
|
# Default:
|
||||||
keyhint-blacklist =
|
keyhint-blacklist =
|
||||||
|
|
||||||
# keyhint-delay (Int):
|
# keyhint-delay (Int):
|
||||||
# Time from pressing a key to seeing the keyhint dialog (ms)
|
# Time from pressing a key to seeing the keyhint dialog (ms)
|
||||||
|
@ -375,7 +375,7 @@ referer-header = same-domain
|
||||||
# user-agent (UserAgent):
|
# user-agent (UserAgent):
|
||||||
# User agent to send. Empty to send the default.
|
# User agent to send. Empty to send the default.
|
||||||
# Default:
|
# Default:
|
||||||
user-agent =
|
user-agent =
|
||||||
|
|
||||||
# proxy (Proxy):
|
# proxy (Proxy):
|
||||||
# The proxy to use.
|
# The proxy to use.
|
||||||
|
@ -407,13 +407,13 @@ dns-prefetch = true
|
||||||
# custom-headers (HeaderDict):
|
# custom-headers (HeaderDict):
|
||||||
# Set custom headers for qutebrowser HTTP requests.
|
# Set custom headers for qutebrowser HTTP requests.
|
||||||
# Default:
|
# Default:
|
||||||
custom-headers =
|
custom-headers =
|
||||||
|
|
||||||
# netrc-file (File):
|
# netrc-file (File):
|
||||||
# Set location of a netrc-file for HTTP authentication. If empty,
|
# Set location of a netrc-file for HTTP authentication. If empty,
|
||||||
# ~/.netrc is used.
|
# ~/.netrc is used.
|
||||||
# Default:
|
# Default:
|
||||||
netrc-file =
|
netrc-file =
|
||||||
|
|
||||||
|
|
||||||
# Options related to completion and command history.
|
# Options related to completion and command history.
|
||||||
|
@ -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
|
||||||
|
@ -735,7 +735,7 @@ indicator-padding = 2,2,0,4
|
||||||
# The directory to save downloads to. An empty value selects a
|
# The directory to save downloads to. An empty value selects a
|
||||||
# sensible os-specific default. Will expand environment variables.
|
# sensible os-specific default. Will expand environment variables.
|
||||||
# Default:
|
# Default:
|
||||||
download-directory =
|
download-directory =
|
||||||
|
|
||||||
# prompt-download-directory (Bool):
|
# prompt-download-directory (Bool):
|
||||||
# Whether to prompt the user for the download location.
|
# Whether to prompt the user for the download location.
|
||||||
|
@ -783,7 +783,7 @@ local-storage = true
|
||||||
# cache-size (Int):
|
# cache-size (Int):
|
||||||
# Size of the HTTP network cache. Empty to use the default value.
|
# Size of the HTTP network cache. Empty to use the default value.
|
||||||
# Default:
|
# Default:
|
||||||
cache-size =
|
cache-size =
|
||||||
|
|
||||||
|
|
||||||
# Loaded plugins/scripts and allowed actions.
|
# Loaded plugins/scripts and allowed actions.
|
||||||
|
@ -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.
|
||||||
|
@ -1518,32 +1518,32 @@ debug-console = 8pt ${_monospace}
|
||||||
# web-family-standard (FontFamily):
|
# web-family-standard (FontFamily):
|
||||||
# Font family for standard fonts.
|
# Font family for standard fonts.
|
||||||
# Default:
|
# Default:
|
||||||
web-family-standard =
|
web-family-standard =
|
||||||
|
|
||||||
# web-family-fixed (FontFamily):
|
# web-family-fixed (FontFamily):
|
||||||
# Font family for fixed fonts.
|
# Font family for fixed fonts.
|
||||||
# Default:
|
# Default:
|
||||||
web-family-fixed =
|
web-family-fixed =
|
||||||
|
|
||||||
# web-family-serif (FontFamily):
|
# web-family-serif (FontFamily):
|
||||||
# Font family for serif fonts.
|
# Font family for serif fonts.
|
||||||
# Default:
|
# Default:
|
||||||
web-family-serif =
|
web-family-serif =
|
||||||
|
|
||||||
# web-family-sans-serif (FontFamily):
|
# web-family-sans-serif (FontFamily):
|
||||||
# Font family for sans-serif fonts.
|
# Font family for sans-serif fonts.
|
||||||
# Default:
|
# Default:
|
||||||
web-family-sans-serif =
|
web-family-sans-serif =
|
||||||
|
|
||||||
# web-family-cursive (FontFamily):
|
# web-family-cursive (FontFamily):
|
||||||
# Font family for cursive fonts.
|
# Font family for cursive fonts.
|
||||||
# Default:
|
# Default:
|
||||||
web-family-cursive =
|
web-family-cursive =
|
||||||
|
|
||||||
# web-family-fantasy (FontFamily):
|
# web-family-fantasy (FontFamily):
|
||||||
# Font family for fantasy fonts.
|
# Font family for fantasy fonts.
|
||||||
# Default:
|
# Default:
|
||||||
web-family-fantasy =
|
web-family-fantasy =
|
||||||
|
|
||||||
# web-size-minimum (Int):
|
# web-size-minimum (Int):
|
||||||
# The hard minimum font size.
|
# The hard minimum font size.
|
||||||
|
|
|
@ -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