Add font configuration

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-05-30 18:43:16 +02:00
parent 636c25e519
commit 3aab1c0e4e
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
5 changed files with 54 additions and 4 deletions

12
install
View file

@ -107,6 +107,7 @@ ADD_GROUPS=(
# Array of systemd services which should be enabled # Array of systemd services which should be enabled
SYSTEMD_SERVICES=( SYSTEMD_SERVICES=(
"acpid"
"cronie" "cronie"
"NetworkManager" "NetworkManager"
"org.cups.cupsd" "org.cups.cupsd"
@ -334,6 +335,9 @@ sudo install -m 644 "${SYSTEM_DIR}/etc/X11/xorg.conf.d/20-displaylink.conf" "/et
print_log "Copying 20-displaylink.conf to ${YELLOW}/etc/X11/nvidia-xorg.conf.d${RESET}" print_log "Copying 20-displaylink.conf to ${YELLOW}/etc/X11/nvidia-xorg.conf.d${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/X11/xorg.conf.d/20-displaylink.conf" "/etc/X11/nvidia-xorg.conf.d" sudo install -m 644 "${SYSTEM_DIR}/etc/X11/xorg.conf.d/20-displaylink.conf" "/etc/X11/nvidia-xorg.conf.d"
print_log "Copying vconsole.conf to ${YELLOW}/etc/vconsole.conf${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/vconsole.conf" "/etc/vconsole.conf"
############################################################################### ###############################################################################
# Setting lockscreen image # # Setting lockscreen image #
############################################################################### ###############################################################################
@ -354,6 +358,14 @@ print_section "Creating issue file"
sudo install "/tmp/issue" "/etc/issue" sudo install "/tmp/issue" "/etc/issue"
print_log "Issue file created" print_log "Issue file created"
###############################################################################
# Fonts #
###############################################################################
print_section "Fonts"
sudo mkfontdir /usr/share/fonts/75dpi
sudo mkfontdir /usr/share/fonts/100dpi
print_log "Prepare xorg fonts"
############################################################################### ###############################################################################
# Set default shell # # Set default shell #
############################################################################### ###############################################################################

View file

@ -1,5 +1,5 @@
! SCRIPT NAME: ! SCRIPT NAME:
! .Xresources ! .xresources
! !
! AUTHOR: ! AUTHOR:
! Severin Kaderli <severin@kaderli.dev> ! Severin Kaderli <severin@kaderli.dev>
@ -24,4 +24,32 @@ rofi.location: 2
rofi.yoffset: 35 rofi.yoffset: 35
rofi.fixed-num-lines: false rofi.fixed-num-lines: false
Sxiv.background: #000000 Sxiv.background: #000000
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Terminal colors
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*.color0: #252525
*.color8: #252525
*.color1: #ff5252
*.color9: #ff5252
*.color2: #c3d82c
*.color10: #c3d82c
*.color3: #ffd740
*.color11: #ffd740
*.color4: #40c4ff
*.color12: #40c4ff
*.color5: #ff4081
*.color13: #ff4081
*.color6: #70c0ba
*.color14: #70c0ba
*.color7: #eaeaea
*.color15: #eaeaea

View file

@ -13,7 +13,7 @@
# ./launch # ./launch
# Terminate already running bar instances # Terminate already running bar instances
killall -q polybar pkill polybar
# Wait until the processes have been shut down # Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done while pgrep -x polybar >/dev/null; do sleep 1; done

View file

@ -16,7 +16,6 @@
setopt prompt_subst setopt prompt_subst
unsetopt correct unsetopt correct
# Zsh keybindings # Zsh keybindings
bindkey "\e[H" beginning-of-line bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line bindkey "\e[F" end-of-line
@ -40,6 +39,15 @@ zstyle ':completion:*' menu select
# Persistent rehash # Persistent rehash
zstyle ':completion:*' rehash true zstyle ':completion:*' rehash true
# Use colors from xresources for linux console
if [ "$TERM" = "linux" ]; then
_SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p'
for i in $(sed -n "$_SEDCMD" "${XDG_CONFIG_HOME}/X11/xresources" | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}'); do
echo -en "$i"
done
clear
fi
# Sourcing environment variables # Sourcing environment variables
if [ -f "${HOME}/.config/custom/env" ]; then if [ -f "${HOME}/.config/custom/env" ]; then
. "${HOME}/.config/custom/env" . "${HOME}/.config/custom/env"

2
system/etc/vconsole.conf Normal file
View file

@ -0,0 +1,2 @@
FONT=ter-132n
KEYMAP=de_CH-latin1