dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

commit 9dc6f0b033448969e1ecee432bb1af3d6cfd9592
parent edc681bf46724ae0fdbf159c1888d1df27cef85d
Author: Bharatvaj <bharatvaj@yahoo.com>
Date:   Sun,  3 Jul 2022 08:29:59 +0530

Add .config/X11/keybindings

Use `dwm` as WM when starting X

Use Noto Emoji fonts in addition to Fira Mono in Xresources

Move Xresources to XDG friendly path

Diffstat:
D.Xresources | 38--------------------------------------
M.config/.gitignore | 5++++-
A.config/X11/Xresources | 38++++++++++++++++++++++++++++++++++++++
A.config/X11/keybindings | 7+++++++
M.config/X11/xinitrc | 13+++++--------
5 files changed, 54 insertions(+), 47 deletions(-)

diff --git a/.Xresources b/.Xresources @@ -1,38 +0,0 @@ -URxvt*background: #000000 -URxvt*foreground: #FFFFFF -URxvt*font: xft:Fira Mono:pixelsize=14 -URxvt*boldFont: xft:Fira Mono:bold:pixelsize=14 -URxvt*saveLines: 12000 -URxvt*scrollBar: false -URxvt*scrollstyle: rxvt -URxvt*perl-ext-common: default,matcher,new-window -URxvt*urlLauncher: firefox -URxvt.internalBorder: 6 -URxvt.keysym.C-N: perl:new-window -URxvt*matcher.button: 1 - -URxvt*colorUL: #86a2be -! black -URxvt*color0 : #2E3436 -URxvt*color8 : #555753 -! red -URxvt*color1 : #CC0000 -URxvt*color9 : #EF2929 -! green -URxvt*color2 : #4E9A06 -URxvt*color10 : #8AE234 -! yellow -URxvt*color3 : #C4A000 -URxvt*color11 : #FCE94F -! blue -URxvt*color4 : #3465A4 -URxvt*color12 : #729FCF -! magenta -URxvt*color5 : #75507B -URxvt*color13 : #AD7FA8 -! cyan -URxvt*color6 : #06989A -URxvt*color14 : #34E2E2 -! white -URxvt*color7 : #D3D7CF -URxvt*color15 : #EEEEEC diff --git a/.config/.gitignore b/.config/.gitignore @@ -2,7 +2,10 @@ * !.gitignore -!X11 +!X11/ +!X11/keybindings +!X11/xinitrc +!X11/Xresources !alacritty/ !alacritty/** !bash/ diff --git a/.config/X11/Xresources b/.config/X11/Xresources @@ -0,0 +1,38 @@ +URxvt*background: #000000 +URxvt*foreground: #FFFFFF +URxvt*font: xft:Fira Mono:pixelsize=14 xft:Noto Color Emoji:pixelsize=14 +URxvt*boldFont: xft:Fira Mono:bold:pixelsize=14 +URxvt*saveLines: 12000 +URxvt*scrollBar: false +URxvt*scrollstyle: rxvt +URxvt*perl-ext-common: default,matcher,new-window +URxvt*urlLauncher: firefox +URxvt.internalBorder: 6 +URxvt.keysym.C-N: perl:new-window +URxvt*matcher.button: 1 + +URxvt*colorUL: #86a2be +! black +URxvt*color0 : #2E3436 +URxvt*color8 : #555753 +! red +URxvt*color1 : #CC0000 +URxvt*color9 : #EF2929 +! green +URxvt*color2 : #4E9A06 +URxvt*color10 : #8AE234 +! yellow +URxvt*color3 : #C4A000 +URxvt*color11 : #FCE94F +! blue +URxvt*color4 : #3465A4 +URxvt*color12 : #729FCF +! magenta +URxvt*color5 : #75507B +URxvt*color13 : #AD7FA8 +! cyan +URxvt*color6 : #06989A +URxvt*color14 : #34E2E2 +! white +URxvt*color7 : #D3D7CF +URxvt*color15 : #EEEEEC diff --git a/.config/X11/keybindings b/.config/X11/keybindings @@ -0,0 +1,7 @@ +__type() { + type "$@" >/dev/null 2>/dev/null +} + +__type setxkbmap && setxkbmap -option caps:escape +__type setxkbmap && setxkbmap -option altwin:swap_alt_win +__type xbmap && xbmap diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc @@ -1,16 +1,13 @@ #!/bin/sh -__type() { - type "$@" >/dev/null 2>/dev/null -} +. ~/.config/X11/keybindings -__type i3 || (echo "i3 not found" && exit 1) +WM=dwm + +__type $WM || (echo "$WM not found" && exit 1) -__type setxkbmap && setxkbmap -option caps:escape -__type setxkbmap && setxkbmap -option altwin:swap_alt_win -__type xbmap && xbmap __type xrdb && xrdb merge ~/.config/X11/Xresources __type hsetroot && exec hsetroot -solid "#000000" & __type compton && exec compton & -exec i3 +exec $WM