Archived
1
0
Fork 0

Switch urxvt to alacritty

This commit is contained in:
J. Elfring (p) 2020-08-14 13:32:06 +02:00
parent 1b93d5e385
commit 35c56a0eec
11 changed files with 12 additions and 456 deletions

View file

@ -1,146 +0,0 @@
!! drop in Solarized colorscheme for Xresources/Xdefaults
!!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB
!!--------- ------- ---- ------- ----------- ---------- ----------- -----------
!!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
!!base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
!!base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46
!!base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51
!!base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59
!!base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63
!!base2 #eee8d5 7/7 white 254 #e4e4e4 92 -00 10 238 232 213 44 11 93
!!base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99
!!yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71
!!orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80
!!red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86
!!magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83
!!violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77
!!blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82
!!cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63
!!green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60
#define S_base03 #002b36
#define S_base04 #00171d
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #c1cacd
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
!URxvt*background: S_base04
!URxvt*foreground: S_base00
*background: #00171d
*foreground: #c1cacd
*depth: 32
!*fading: 40
!*fadeColor: S_base03
*cursorColor: #93a1a1
*pointerColorBackground:#586e75
*pointerColorForeground:#93a1a1
!! black dark/light
*color0: #073642
*color8: #002b36
!! red dark/light
*color1: #dc322f
*color9: #cb4b16
!! green dark/light
*color2: #859900
*color10: #586e75
!! yellow dark/light
*color3: #b58900
*color11: #c1cacd
!! blue dark/light
*color4: #268bd2
*color12: #839496
!! magenta dark/light
*color5: #d33682
*color13: #6c71c4
!! cyan dark/light
*color6: #2aa198
*color14: #93a1a1
!! white dark/light
*color7: #eee8d5
*color15: #fdf6e3
*utf8: 1
*saveLines: 65534
!-- Xft settings -- !
! This stays out until I find out what it does.
! It produces ugly huge fonts :(
!Xft.dpi: 144
!ft.rgba: rgb
!ft.autohint: 0
!ft.lcdfilter: lcddefault
!ft.hintstyle: hintfull
!ft.hinting: 1
!ft.antialias: 1
! -- Fonts -- !
URxvt.font: xft:Inconsolata:style=Regular:size=12,\
xft:Symbola:style=Regular:size=12
URxvt.boldFont: xft:Inconsolata:style=Bold:size=12,\
xft:Symbola:style=Bold:size=12
*faceSize: 10
*bellIsUrgent: true
!! scroll
!! do not scroll with output
URxvt*scrollTtyOutput: false
!! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
URxvt*scrollWithBuffer: true
!! scroll back to the bottom on keypress
URxvt*scrollTtyKeypress: true
!! scrollback buffer
URxvt.secondaryScreen: 1
URxvt.secondaryScroll: 0
URxvt.secondaryWheel: 1
!! no terminal-scrollbar
URxvt*scrollBar: false
!! terminal name
URxvt*termName: rxvt
!! terminal transparency
!URxvt*transparent: true
!URxvt*shading: 20
!! copy paste
URxvt*clipboard.copycmd: xclip -i -selection clipboard
URxvt*clipboard.pastecmd: xclip -o -selection clipboard
!! clickable urls
!URxvt.perl-ext-common: default,matcher,selection-to-clipboard
!URxvt.url-launcher: /usr/local/bin/browser-exec
!URxvt.matcher.button: 1
!URxvt.url-select.underline: true
!! Resizable Fonts
URxvt.perl-ext-common: font-size
!! No annoying 14755 box
URxvt.iso14755: false
URxvt.iso14755_52: false
!! get option over to work
URxvt.keysym.M-Left: \033[1;5D
URxvt.keysym.M-Right: \033[1;5C
URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C

View file

@ -1,154 +0,0 @@
!! drop in Solarized colorscheme for Xresources/Xdefaults
!!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB
!!--------- ------- ---- ------- ----------- ---------- ----------- -----------
!!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
!!base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
!!base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46
!!base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51
!!base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59
!!base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63
!!base2 #eee8d5 7/7 white 254 #e4e4e4 92 -00 10 238 232 213 44 11 93
!!base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99
!!yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71
!!orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80
!!red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86
!!magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83
!!violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77
!!blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82
!!cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63
!!green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60
#define S_base03 #002b36
#define S_base04 #00171d
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #c1cacd
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
!URxvt*background: S_base04
!URxvt*foreground: S_base00
*background: #00171d
*foreground: #c1cacd
*depth: 32
!*fading: 40
!*fadeColor: S_base03
*cursorColor: #93a1a1
*pointerColorBackground:#586e75
*pointerColorForeground:#93a1a1
!! black dark/light
*color0: #073642
*color8: #002b36
!! red dark/light
*color1: #dc322f
*color9: #cb4b16
!! green dark/light
*color2: #859900
*color10: #586e75
!! yellow dark/light
*color3: #b58900
*color11: #c1cacd
!! blue dark/light
*color4: #268bd2
*color12: #839496
!! magenta dark/light
*color5: #d33682
*color13: #6c71c4
!! cyan dark/light
*color6: #2aa198
*color14: #93a1a1
!! white dark/light
*color7: #eee8d5
*color15: #fdf6e3
*utf8: 1
*saveLines: 65534
!-- Xft settings -- !
! This stays out until I find out what it does.
! It produces ugly huge fonts :(
!Xft.dpi: 144
!ft.rgba: rgb
!ft.autohint: 0
!ft.lcdfilter: lcddefault
!ft.hintstyle: hintfull
!ft.hinting: 1
!ft.antialias: 1
! -- Fonts -- !
URxvt.font: xft:Inconsolata:style=Regular:size=12,\
xft:Symbola:style=Regular:size=12
URxvt.boldFont: xft:Inconsolata:style=Bold:size=12,\
xft:Symbola:style=Bold:size=12
*faceSize: 10
*bellIsUrgent: true
!! scroll
!! do not scroll with output
URxvt*scrollTtyOutput: false
!! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
URxvt*scrollWithBuffer: true
!! scroll back to the bottom on keypress
URxvt*scrollTtyKeypress: true
!! scrollback buffer
URxvt.secondaryScreen: 1
URxvt.secondaryScroll: 0
URxvt.secondaryWheel: 1
!! no terminal-scrollbar
URxvt*scrollBar: false
!! terminal name
URxvt*termName: rxvt
!! terminal transparency
!URxvt*transparent: true
!URxvt*shading: 20
!! copy paste
URxvt*clipboard.copycmd: xclip -i -selection clipboard
URxvt*clipboard.pastecmd: xclip -o -selection clipboard
!! clickable urls
!URxvt.perl-ext-common: default,matcher,selection-to-clipboard
!URxvt.url-launcher: /usr/local/bin/browser-exec
!URxvt.matcher.button: 1
!URxvt.url-select.underline: true
!! Resizable Fonts
URxvt.perl-ext-common: font-size
!! No annoying 14755 box
URxvt.iso14755: false
URxvt.iso14755_52: false
!! get option over to work
URxvt.keysym.M-Left: \033[1;5D
URxvt.keysym.M-Right: \033[1;5C
URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C
Xft.dpi: 180
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

View file

@ -1,23 +0,0 @@
#!/bin/bash
##################################################################
## Themer
# Switch Xresources colortheme from dark to light and back
# again.
#
statefile=~/.local/themer.state
state=$(cat $statefile)
case "$state" in
Dark) xrdb -merge ~/.bin/themer_Xresources.light
echo Light > $statefile
;;
Light) xrdb -merge ~/.bin/themer_Xresources.dark
echo Dark > $statefile
;;
esac
state=$(cat $statefile)
notify-send "Console Theme" "$state"

View file

@ -1,56 +0,0 @@
#define S_base03 #00171d
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
*background: S_base03
*foreground: S_base0
*fadeColor: S_base03
*cursorColor: S_base1
*pointerColorBackground:S_base01
*pointerColorForeground:S_base1
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
!! black dark/light
*color0: S_base02
*color8: S_base03
!! red dark/light
*color1: S_red
*color9: S_orange
!! green dark/light
*color2: S_green
*color10: S_base01
!! yellow dark/light
*color3: S_yellow
*color11: S_base00
!! blue dark/light
*color4: S_blue
*color12: S_base0
!! magenta dark/light
*color5: S_magenta
*color13: S_violet
!! cyan dark/light
*color6: S_cyan
*color14: S_base1
!! white dark/light
*color7: S_base2
*color15: S_base3

View file

@ -1,56 +0,0 @@
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #000000
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
*background: S_base3
*foreground: S_base00
*fadeColor: S_base3
*cursorColor: S_base01
*pointerColorBackground:S_base1
*pointerColorForeground:S_base01
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
!! black dark/light
*color0: S_base02
*color8: S_base03
!! red dark/light
*color1: S_red
*color9: S_orange
!! green dark/light
*color2: S_green
*color10: S_base01
!! yellow dark/light
*color3: S_yellow
*color11: S_base00
!! blue dark/light
*color4: S_blue
*color12: S_base0
!! magenta dark/light
*color5: S_magenta
*color13: S_violet
!! cyan dark/light
*color6: S_cyan
*color14: S_base1
!! white dark/light
*color7: S_base2
*color15: S_base3

View file

@ -6,7 +6,7 @@ export PATH=~/.local/bin:~/.bin:$PATH
# Make vim the default editor
export EDITOR=vim;
export TERMINAL="urxvt";
export TERMINAL="alacritty";
# Larger bash history (allow 32³ entries; default is 500)
export HISTSIZE=50000000;

View file

@ -383,5 +383,5 @@ d_r2s(){
## Menu-Man
mman(){
man -k . | sort | dmenu -l 30 | awk '{print substr($2, 2, length($2) - 2) " " $1}' | xargs -r urxvt -e man
man -k . | sort | dmenu -l 30 | awk '{print substr($2, 2, length($2) - 2) " " $1}' | xargs -r $TERMINAL -e man
}

View file

@ -214,8 +214,8 @@ bindsym XF86Sleep exec "~/.bin/screenlock.sh"
exec --no-startup-id xautolock -time 15 -locker "~/.bin/screenlock.sh" &
# quick terminal
bindsym $mod+$alt+Shift+F1 exec --no-startup-id urxvt -name metask -e bash -o ignoreeof
exec --no-startup-id urxvt -name metask -e bash -o ignoreeof
bindsym $mod+$alt+Shift+F1 exec --no-startup-id $TERMINAL -name metask -e bash -o ignoreeof
exec --no-startup-id $TERMINAL -name metask -e bash -o ignoreeof
for_window [instance="metask"] floating enable;
for_window [instance="metask"] move scratchpad; \
[instance="metask"] scratchpad show; \

View file

@ -8,7 +8,7 @@ set $alt Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:Terminus 8
font pango:B612Mono 10
font pango:Inconsolata 10
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
@ -31,8 +31,7 @@ font pango:B612Mono 10
#client.background #ffffff
## Green theme
#client.focused #77994B #547628 #EEEEEE #41FF00
client.focused #859900 #859900 #EEEEEE #41FF00
client.focused #77994B #547628 #EEEEEE #41FF00
client.focused_inactive #333333 #5F676A #EEEEEE #333333
# Use Mouse+$mod to drag floating windows to their wanted position
@ -215,8 +214,8 @@ bindsym XF86Sleep exec "~/.bin/screenlock.sh"
exec --no-startup-id xautolock -time 15 -locker "~/.bin/screenlock.sh" &
# quick terminal
bindsym $mod+$alt+Shift+F1 exec --no-startup-id urxvt -name metask -e bash -o ignoreeof
exec --no-startup-id urxvt -name metask -e bash -o ignoreeof
bindsym $mod+$alt+Shift+F1 exec --no-startup-id $TERMINAL --class metask -e bash -o ignoreeof
exec --no-startup-id $TERMINAL --class metask -e bash -o ignoreeof
for_window [instance="metask"] floating enable;
for_window [instance="metask"] move scratchpad; \
[instance="metask"] scratchpad show; \
@ -244,7 +243,6 @@ bindsym $mod+$alt+b exec ~/.bin/startAltBrowser.sh
bindsym $mod+n exec ~/.bin/startBrowserPrivat.sh
bindsym $mod+$alt+n exec ~/.bin/startAltBrowserPrivat.sh
bindsym $mod+m exec ~/.bin/dmenu_dir2menu.sh ~/.screenlayout/
bindsym $mod+t exec ~/.bin/themer
# Get current public IP or restart a fritz.box connection
bindsym $mod+i exec --no-startup-id notify-send "Public IP address" "$(curl https://canihazip.com/s)"

View file

@ -11,7 +11,6 @@ filetype plugin indent on " required
call plug#begin('~/.vim/vimplug-plugins')
Plug 'Raimondi/delimitMate' " Autoclose quotes, parenthesis, brackets, etc.
Plug 'airblade/vim-gitgutter' " Git-indicators on the left
Plug 'altercation/vim-colors-solarized' " Colortheme
Plug 'dhruvasagar/vim-table-mode' " Nice ascii tables
Plug 'itchyny/lightline.vim' " Status-line
Plug 'junegunn/vim-easy-align' " Align at any chars
@ -164,14 +163,6 @@ if has('gui_running')
set regexpengine=1
syntax enable
endif
" set background=dark # set by Xresources
let g:solarized_termcolors=256
let g:solarized_termtrans=1
" let g:hybrid_use_Xresources = 1
" let g:rehash256 = 1
colorscheme solarized
set guifont=Inconsolata:h15
set guioptions-=L
" This comes first, because we have mappings that depend on leader
" With a map leader it's possible to do extra key combinations

View file

@ -2,13 +2,15 @@
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
## Import exports
source ~/.exports
## Setup Keyboard
xmodmap -e 'keycode 135 = Multi_key' # remaps context-menu-key to Compose
## Setup resources
xrdb -merge ~/.Xresources
test -f ~/.local/Xresources && xrdb -merge ~/.local/Xresources
echo Dark > ~/.local/themer.state
## Setup Touchpad
synclient TapButton1=1 \