Configuration of X11 i3wm tty

This commit is contained in:
2024-07-12 21:16:28 +02:00
parent 7e15fbad29
commit 616255d2c4
29 changed files with 907 additions and 7 deletions

66
X11/.Xresources Normal file
View File

@@ -0,0 +1,66 @@
*foreground:#abb2bf
*foreground-light:#d4d8df
*foreground-lighter:#f6f7f9
*background:#c6d0f5
*background-light:#323842
*background-dark:#21252b
*background-darker:#1e2227
*cursorColor:#98c379
*scrollBar:false
*saveLines:65535
*termName:rxvt-unicode
*font:xft:DejaVu SansM Nerd Font Mono:style=Regular:size=12:antialias=true
*boldFont:xft:DejaVu SansM Nerd Font Mono:style=Bold:size=12:antialias=true
*intensityStyles:true
*iconFile:/usr/share/icons/ePapirus/96x96/apps/urxvt.svg
*cutchars:"()<>=[]{}|\"\`'*"
*iso14755:false
*utf8:true
*geometry:87x27
!Black
*color0:#51576d
*color8:#626880
!Red
*color1:#e78284
*color9:#e78284
!Green
*color2:#a6d189
*color10:#a6d189
!Yellow
*color3:#e5c890
*color11:#e5c890
!Blue
*color4:#8caaee
*color12:#8caaee
!Pink
*color5:#f4b8e4
*color13:#f4b8e4
!Teal
*color6:#81c8be
*color14:#81c8be
!White
*color7:#b5bfe2
*color15:#a5adce
!-------------------------
! Rxvt Only
!-------------------------
! scroll up/down
URxvt.keysym.S-Up: command:\033]720;1\007
URxvt.keysym.S-Down: command:\033]721;1\007
URxvt.perl-ext:-confirm-paste
URxvt.perl-lib:/usr/lib/urxvt/perl
URxvt.perl-ext-common:resize-font,matcher
!Configure font size extension :
URxvt.keysym.A-Up: resize-font:bigger
URxvt.keysym.A-Down: resize-font:smaller
URxvt.keysym.A-equal: resize-font:reset
URxvt.keysym.A-slash: resize-font:show
!Configure Url Launcher
URxvt.url-launcher: firefox
URxvt.matcher.button: C-1
URxvt.keysym.A-u: perl:matcher:select

8
X11/00-keyboard.conf Normal file
View File

@@ -0,0 +1,8 @@
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us_qwerty-fr"
Option "XkbModel" "pc105"
Option "XkbVariant" "qwerty-fr"
Option "XkbOptions" ""
EndSection

13
X11/deploy.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
#Switch to the script directory
_BASENAME=$(basename "$0")
cd "$(dirname "$0")" || _exit 1
cp xinitrc /etc/X11/xinit/xinitrc
cp .Xresources /etc/X11/xinit/.Xresources
cp 00-keyboard.conf /etc/X11/xorg.conf.d/00-keyboard.conf
wget https://raw.githubusercontent.com/qwerty-fr/qwerty-fr/master/linux/us_qwerty-fr -O /tmp/us_qwerty-fr
cp /usr/share/X11/xkb/symbols/us /usr/share/X11/xkb/symbols/us_qwerty-fr
cat /tmp/us_qwerty-fr >> /usr/share/X11/xkb/symbols/us_qwerty-fr

34
X11/xinitrc Normal file
View File

@@ -0,0 +1,34 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
numlockx &
exec i3