Configuration of X11 i3wm tty
This commit is contained in:
7
TODO
Normal file
7
TODO
Normal file
@@ -0,0 +1,7 @@
|
||||
install steam, wine and lib32 multilib
|
||||
pipwire-pulseaudio as root to X11
|
||||
dynamic colors
|
||||
dmenu
|
||||
picom
|
||||
dunst
|
||||
polybar
|
||||
66
X11/.Xresources
Normal file
66
X11/.Xresources
Normal 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
8
X11/00-keyboard.conf
Normal 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
13
X11/deploy.sh
Executable 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
34
X11/xinitrc
Normal 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
|
||||
@@ -45,6 +45,9 @@ pacman-key --init
|
||||
pacman-key --populate
|
||||
pacman -Sy
|
||||
|
||||
sed -i "s|^#Color.*|Color|" /etc/pacman.conf
|
||||
sed -i "s|^#ParallelDownloads.*|ParallelDownloads = 10|" /etc/pacman.conf
|
||||
|
||||
##Install base
|
||||
pacstrap -c -K /mnt \
|
||||
base \
|
||||
@@ -93,6 +96,10 @@ Name=*
|
||||
DHCP=yes
|
||||
EOF
|
||||
|
||||
cd /mnt/etc
|
||||
ln -sf ../run/systemd/resolve/stub-resolv.conf resolv.conf
|
||||
cd
|
||||
|
||||
arch-chroot /mnt systemctl enable sshd.service systemd-networkd.service systemd-timesyncd.service systemd-resolved.service
|
||||
|
||||
#umount -R /mnt
|
||||
|
||||
21
configure.sh
21
configure.sh
@@ -2,12 +2,21 @@
|
||||
|
||||
set -e
|
||||
|
||||
#Switch to the script directory
|
||||
_BASENAME=$(basename "$0")
|
||||
cd "$(dirname "$0")" || _die "Error when changing directory"
|
||||
cd "$(dirname "$0")" || _exit 1
|
||||
|
||||
source ../lib.sh
|
||||
scripts/installyay.sh
|
||||
|
||||
while read -r line
|
||||
do
|
||||
echo "$line"
|
||||
done < import.list
|
||||
sed -i "s|^#Color.*|Color|" /etc/pacman.conf
|
||||
sed -i "s|^#ParallelDownloads.*|ParallelDownloads = 10|" /etc/pacman.conf
|
||||
|
||||
yay
|
||||
yay -S --noconfirm - < packages
|
||||
|
||||
tty/deploy.sh
|
||||
network/deploy.sh
|
||||
X11/deploy.sh
|
||||
i3wm/deploy.sh
|
||||
|
||||
cp -r wallpapers /usr/local/share
|
||||
168
i3wm/config
Normal file
168
i3wm/config
Normal file
@@ -0,0 +1,168 @@
|
||||
set $mod Mod4
|
||||
|
||||
# Reload Restart config
|
||||
bindsym $mod+c reload
|
||||
bindsym $mod+r restart
|
||||
bindsym $mod+e exit
|
||||
|
||||
# Floating Modifier
|
||||
floating_modifier $mod
|
||||
|
||||
# Kill focused window
|
||||
bindsym $mod+q kill
|
||||
|
||||
# change focus
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# Move Focused
|
||||
bindsym $mod+Control+Up move up
|
||||
bindsym $mod+Control+Down move down
|
||||
bindsym $mod+Control+Left move left
|
||||
bindsym $mod+Control+Right move right
|
||||
|
||||
bindsym $mod+o move container to output next
|
||||
|
||||
# Resizing window
|
||||
bindsym $mod+Shift+Up resize grow height 10 px or 10 ppt
|
||||
bindsym $mod+Shift+Down resize shrink height 10 px or 10 ppt
|
||||
bindsym $mod+Shift+Left resize shrink width 10 px or 10 ppt
|
||||
bindsym $mod+Shift+Right resize grow width 10 px or 10 ppt
|
||||
|
||||
# Workspace layout
|
||||
bindsym $mod+space layout toggle splitv splith tabbed
|
||||
|
||||
# Fullscreen
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# Splitting
|
||||
bindsym $mod+v split vertical
|
||||
bindsym $mod+h split horizontal
|
||||
bindsym $mod+Control+space split toggle
|
||||
|
||||
# Volume control
|
||||
bindsym F5 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
bindsym F6 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
|
||||
##############
|
||||
# Workspaces #
|
||||
##############
|
||||
|
||||
set $monitor0 HDMI-0
|
||||
set $monitor1 HDMI-1
|
||||
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
|
||||
workspace $ws1 output $monitor0
|
||||
workspace $ws2 output $monitor0
|
||||
workspace $ws3 output $monitor0
|
||||
workspace $ws4 output $monitor0
|
||||
workspace $ws5 output $monitor1
|
||||
workspace $ws6 output $monitor1
|
||||
workspace $ws7 output $monitor1
|
||||
workspace $ws8 output $monitor1
|
||||
|
||||
bindsym $mod+mod2+KP_1 workspace $ws1
|
||||
bindsym $mod+mod2+KP_2 workspace $ws2
|
||||
bindsym $mod+mod2+KP_3 workspace $ws3
|
||||
bindsym $mod+mod2+KP_4 workspace $ws4
|
||||
bindsym $mod+mod2+KP_5 workspace $ws5
|
||||
bindsym $mod+mod2+KP_6 workspace $ws6
|
||||
bindsym $mod+mod2+KP_7 workspace $ws7
|
||||
bindsym $mod+mod2+KP_8 workspace $ws8
|
||||
|
||||
bindsym $mod+Control+mod2+KP_1 move container to workspace $ws1
|
||||
bindsym $mod+Control+mod2+KP_2 move container to workspace $ws2
|
||||
bindsym $mod+Control+mod2+KP_3 move container to workspace $ws3
|
||||
bindsym $mod+Control+mod2+KP_4 move container to workspace $ws4
|
||||
bindsym $mod+Control+mod2+KP_5 move container to workspace $ws5
|
||||
bindsym $mod+Control+mod2+KP_6 move container to workspace $ws6
|
||||
bindsym $mod+Control+mod2+KP_7 move container to workspace $ws7
|
||||
bindsym $mod+Control+mod2+KP_8 move container to workspace $ws8
|
||||
|
||||
###########################
|
||||
#Design
|
||||
###########################
|
||||
|
||||
title_align center
|
||||
default_border pixel 1
|
||||
|
||||
# Gaps
|
||||
gaps inner 10px
|
||||
hide_edge_borders smart_no_gaps
|
||||
smart_gaps on
|
||||
gaps inner 5
|
||||
|
||||
#smart|ignore|leave_fullscreen
|
||||
popup_during_fullscreen ignore
|
||||
|
||||
# Font
|
||||
set $font ComicShannsMono Nerd Font Bold
|
||||
font pango:$font 11
|
||||
|
||||
#colors
|
||||
set_from_resource $fg i3wm.foreground #abb2bf
|
||||
set_from_resource $fgli i3wm.foreground-light #d4d8df
|
||||
set_from_resource $fglier i3wm.foreground-lighter #f6f7f9
|
||||
set_from_resource $bg i3wm.background #282c34
|
||||
set_from_resource $bgli i3wm.background-light #323842
|
||||
set_from_resource $bgda i3wm.background-dark #21252b
|
||||
set_from_resource $bgdaer i3wm.background-darker #1e2227
|
||||
set_from_resource $black i3wm.color0 #1e2227
|
||||
set_from_resource $red i3wm.color1 #e06c75
|
||||
set_from_resource $green i3wm.color2 #98c379
|
||||
set_from_resource $yellow i3wm.color3 #e5c07b
|
||||
set_from_resource $blue i3wm.color4 #000000
|
||||
set_from_resource $purple i3wm.color5 #c678dd
|
||||
set_from_resource $cyan i3wm.color6 #56b6c2
|
||||
set_from_resource $white i3wm.color7 #f6f7f9
|
||||
|
||||
# class border backgr. text indicator child_border
|
||||
|
||||
client.focused $blue $bg $blue $purple $blue
|
||||
client.focused_inactive $bgdaer $bgli $fglier $purple $bgdaer
|
||||
client.unfocused $bgdaer $bg $fg $purple $bgdaer
|
||||
client.urgent $red $bg $fg $purple $bgli
|
||||
client.placeholder $bgli $bg $fg $purple $bgli
|
||||
|
||||
client.background $bg
|
||||
|
||||
###########
|
||||
# Startup #
|
||||
###########
|
||||
|
||||
exec --no-startup-id xrandr --output HDMI-1 --primary --right-of HDMI-0
|
||||
exec_always --no-startup-id /etc/i3/wallpapers.sh
|
||||
exec_always --no-startup-id "killall picom ; picom"
|
||||
exec_always --no-startup-id "killall dunst ; dunst"
|
||||
exec_always --no-startup-id "killall polybar ; polybar HDMI-0 ; polybar HDMI-1"
|
||||
exec_always --no-startup-id "killall nextcloud ; nextcloud"
|
||||
|
||||
#################
|
||||
# Apps shortcut #
|
||||
#################
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec --no-startup-id dmenu_run_history -l 10 -fn "ComicShannsMono Nerd Font" -nb "#282c34" -nf "#61AFEF" -sb "#61AFEF" -sf "#282C34"
|
||||
|
||||
bindsym Print exec flameshot gui
|
||||
bindsym $mod+Shift+p exec --no-startup-id pavucontrol
|
||||
bindsym $mod+Shift+d exec --no-startup-id discord
|
||||
bindsym $mod+Shift+f exec --no-startup-id firefox
|
||||
bindsym $mod+Shift+s exec --no-startup-id steam
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec --no-startup-id urxvt
|
||||
|
||||
# Display help
|
||||
for_window [instance="cheatsheet"] floating enable
|
||||
bindsym $mod+s exec --no-startup-id urxvt -geometry 160x40 -name cheatsheet -e /etc/i3/i3wm_key_help.sh
|
||||
9
i3wm/deploy.sh
Executable file
9
i3wm/deploy.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Switch to the script directory
|
||||
_BASENAME=$(basename "$0")
|
||||
cd "$(dirname "$0")" || _exit 1
|
||||
|
||||
cp config /etc/i3/config
|
||||
cp i3wm_key_help.sh /etc/i3/i3wm_key_help.sh
|
||||
cp wallpapers.sh /etc/i3/wallpapers.sh
|
||||
101
i3wm/i3wm_key_help.sh
Executable file
101
i3wm/i3wm_key_help.sh
Executable file
@@ -0,0 +1,101 @@
|
||||
#!/bin/bash
|
||||
|
||||
_CR="\e[170D\e[1B"
|
||||
_E1="\e[1C"
|
||||
_E2="\e[2C"
|
||||
_E_RIGHT="\e[70C"
|
||||
_BOLD="\e[1m"
|
||||
_BLACK="\e[38;5;0m"
|
||||
_RED="\e[38;5;1m"
|
||||
_BLUE="\e[38;5;4m"
|
||||
_PURPLE="\e[38;5;5m"
|
||||
_CYAN="\e[38;5;6m"
|
||||
_BG_RED="\e[48;5;1m"
|
||||
_RESET="\e[0m"
|
||||
|
||||
# _title [string:bg_color] [string:message] [bool:right]
|
||||
_title() {
|
||||
printf "$_CR$_E1$_BOLD$_BLACK$1"
|
||||
[[ ! -z $3 ]] && printf "$_E_RIGHT"
|
||||
for (( i=0; i<(( 10 - ${#2} / 2 )); i++ ))
|
||||
do
|
||||
printf " "
|
||||
done
|
||||
printf "$2"
|
||||
for (( i=0; i<(( 10 - ${#2} / 2 )); i++ ))
|
||||
do
|
||||
printf " "
|
||||
done
|
||||
(( ${#2} % 2 == 0 )) && printf " "
|
||||
printf "$_RESET$_CR"
|
||||
}
|
||||
|
||||
# _shortcut [string:modifier] [string:key] [string:message] [bool:right]
|
||||
_shortcut() {
|
||||
_MODIFIER=$(sed "s|+|\\\e[38;5;1m+\\\e[38;5;5m|g" <<< $1)
|
||||
[[ ! -z $4 ]] && printf "$_E_RIGHT"
|
||||
printf "$_E2"
|
||||
printf "$_PURPLE$_MODIFIER$_RESET"
|
||||
[[ ! -z $1 ]] && printf "$_RED+$_RESET"
|
||||
printf "$_CYAN$2$_RESET"
|
||||
printf " $3"
|
||||
printf "$_CR"
|
||||
}
|
||||
|
||||
_move() {
|
||||
printf "\e[$1;$2H"
|
||||
}
|
||||
|
||||
tput civis
|
||||
clear
|
||||
|
||||
_title "\e[48;5;063m" "i3"
|
||||
_shortcut "Super" "c" "Reload i3"
|
||||
_shortcut "Super" "r" "Restart i3"
|
||||
_shortcut "Super" "e" "Exit i3"
|
||||
|
||||
_title "\e[48;5;035m" "Applications"
|
||||
_shortcut "Super" "d" "Dmenu"
|
||||
_shortcut "Super+Shift" "f" "Firefox"
|
||||
_shortcut "Super+Shift" "s" "Steam"
|
||||
_shortcut "Super+Shift" "d" "Discord"
|
||||
_shortcut "Super+Shift" "p" "Pavucontrol"
|
||||
|
||||
_title "\e[48;5;191m" "Window"
|
||||
_shortcut "Super" "q" "Kill window"
|
||||
_shortcut "Super" "o" "Move window to next screen"
|
||||
_shortcut "Super" "h" "Split horizontally"
|
||||
_shortcut "Super" "v" "Split vertically"
|
||||
_shortcut "Super" "f" "Toggle fullscreen"
|
||||
_shortcut "Super" "Space" "Toggle layout"
|
||||
_shortcut "Super" "arrows" "Change window focus"
|
||||
_shortcut "Super+Shift" "arrows" "Resize window"
|
||||
_shortcut "Super+ctrl" "arrows" "Move focused window"
|
||||
_shortcut "Super+Ctrl" "Space" "Toggle window split"
|
||||
|
||||
_title "\e[48;5;170m" "Workspace"
|
||||
_shortcut "Super" "Numpad" "Move to workspace n"
|
||||
_shortcut "Super+Ctrl" "Numpad" "Move focused window to workspace n"
|
||||
|
||||
_title "\e[48;5;092m" "Sound"
|
||||
_shortcut "" "F4" "Decrease volume"
|
||||
_shortcut "" "F5" "Increase volume"
|
||||
|
||||
_move 1 1
|
||||
|
||||
_title "\e[48;5;204m" "Urxvt" true
|
||||
_shortcut "Alt" "Up" "Increase font size" true
|
||||
_shortcut "Alt" "Down" "Decrease font size" true
|
||||
_shortcut "Alt" "=" "Reset font size" true
|
||||
_shortcut "Alt" "/" "Show font" true
|
||||
_shortcut "Alt" "u" "Url matcher" true
|
||||
_shortcut "Shift" "Up" "Scroll up one line" true
|
||||
_shortcut "Shift" "PageUp" "Scroll one page" true
|
||||
_shortcut "Shift" "Down" "Scroll down one line" true
|
||||
_shortcut "Shift" "PageDown" "Scroll down one page" true
|
||||
|
||||
_title "\e[48;5;214m" "Tmux" true
|
||||
|
||||
_move 1 1
|
||||
|
||||
read -n 1 -s
|
||||
15
i3wm/wallpapers.sh
Executable file
15
i3wm/wallpapers.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
_LINES=$(ps -eo pid,cmd | grep wallpaper | \
|
||||
grep -v grep | grep -v $$ | awk '{print $1}' | tr '\n' ' ')
|
||||
|
||||
for i in $_LINES
|
||||
do
|
||||
kill $i
|
||||
done
|
||||
|
||||
while (( $(pgrep i3) ))
|
||||
do
|
||||
feh --randomize --bg-max /usr/local/share/wallpapers
|
||||
sleep 10
|
||||
done
|
||||
@@ -1 +0,0 @@
|
||||
login/getty-override.conf /etc/systemd/system/getty@tty1.service.d/autologin.conf
|
||||
8
network/00-wired.network
Normal file
8
network/00-wired.network
Normal file
@@ -0,0 +1,8 @@
|
||||
[Match]
|
||||
Name=en*
|
||||
|
||||
[Network]
|
||||
DHCP=no
|
||||
|
||||
Address=192.168.0.2/24
|
||||
Gateway=192.168.0.254
|
||||
8
network/deploy.sh
Executable file
8
network/deploy.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Switch to the script directory
|
||||
_BASENAME=$(basename "$0")
|
||||
cd "$(dirname "$0")" || _exit 1
|
||||
|
||||
cp 00-wired.network /etc/systemd/network/00-wired.network
|
||||
cp resolved.conf /etc/systemd/resolved.conf
|
||||
38
network/resolved.conf
Normal file
38
network/resolved.conf
Normal file
@@ -0,0 +1,38 @@
|
||||
# This file is part of systemd.
|
||||
#
|
||||
# systemd is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU Lesser General Public License as published by the Free
|
||||
# Software Foundation; either version 2.1 of the License, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# Entries in this file show the compile time defaults. Local configuration
|
||||
# should be created by either modifying this file (or a copy of it placed in
|
||||
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in
|
||||
# the /etc/systemd/resolved.conf.d/ directory. The latter is generally
|
||||
# recommended. Defaults can be restored by simply deleting the main
|
||||
# configuration file and all drop-ins located in /etc/.
|
||||
#
|
||||
# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
|
||||
#
|
||||
# See resolved.conf(5) for details.
|
||||
|
||||
[Resolve]
|
||||
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
|
||||
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
|
||||
# Google: 8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
|
||||
# Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
|
||||
DNS=9.9.9.9
|
||||
FallbackDNS=2001:41d0:303:20da::1 217.182.138.218
|
||||
#FallbackDNS=1.1.1.1#cloudflare-dns.com 9.9.9.9#dns.quad9.net 8.8.8.8#dns.google 2606:4700:4700::1111#cloudflare-dns.com 2620:fe::9#dns.quad9.net 2001:4860:4860::8888#dns.google
|
||||
Domains=.
|
||||
#DNSSEC=no
|
||||
#DNSOverTLS=no
|
||||
#MulticastDNS=yes
|
||||
#LLMNR=no
|
||||
Cache=no
|
||||
#CacheFromLocalhost=no
|
||||
#DNSStubListener=yes
|
||||
#DNSStubListenerExtra=
|
||||
#ReadEtcHosts=yes
|
||||
#ResolveUnicastSingleLabel=no
|
||||
#StaleRetentionSec=0
|
||||
32
packages
32
packages
@@ -0,0 +1,32 @@
|
||||
catppuccin-cursors-latte
|
||||
chromium
|
||||
code
|
||||
discord
|
||||
dmenu
|
||||
dunst
|
||||
feh
|
||||
flameshot
|
||||
firefox
|
||||
i3lock
|
||||
i3-wm
|
||||
lxappearance
|
||||
nextcloud-client
|
||||
nwg-look
|
||||
otf-comicshanns-nerd
|
||||
oxygen-icons-svg
|
||||
pavucontrol
|
||||
pipewire
|
||||
pipewire-jack
|
||||
pipewire-pulse
|
||||
polybar
|
||||
python-pywal
|
||||
neofetch
|
||||
numlockx
|
||||
picom
|
||||
polybar
|
||||
rxvt-unicode-truecolor-wide-glyphs
|
||||
ttf-dejavu-nerd
|
||||
wget
|
||||
wireguard-tools
|
||||
xorg
|
||||
xorg-xinit
|
||||
5
polybar/calendar.sh
Executable file
5
polybar/calendar.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
_DAY=$(date +%e)
|
||||
dunstify -I /usr/share/icons/oxygen/scalable/actions/view-calendar.svgz \
|
||||
"" "$(cal | sed -e "s/$_DAY /<b><u>$_DAY<\/u><\/b> /g")"
|
||||
236
polybar/config.ini
Normal file
236
polybar/config.ini
Normal file
@@ -0,0 +1,236 @@
|
||||
;==========================================================
|
||||
;
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/polybar/polybar
|
||||
;
|
||||
; The README contains a lot of information
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
background = #303446
|
||||
background-alt = #232634
|
||||
foreground = #c6d0f5
|
||||
primary = #8caaee
|
||||
alert = #e78284
|
||||
disabled = #737994
|
||||
|
||||
[bar/HDMI-0]
|
||||
monitor = HDMI-0
|
||||
|
||||
width = 100%
|
||||
height = 30px
|
||||
radius = 0
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3px
|
||||
|
||||
border-size = 0pt
|
||||
|
||||
padding-left = 10px
|
||||
padding-right = 0px
|
||||
|
||||
font-0 = ComicShannsMono Nerd Font:pixelsize=14;2
|
||||
font-1 = Polybar:pixelsize=20;2
|
||||
|
||||
fixed-center = true
|
||||
modules-left = cpu separator memory separator filesystem separator eth separator ethspeed separator pulseaudio
|
||||
modules-center = i3
|
||||
modules-right = xkeyboard separator dateprefix date
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
enable-ipc = true
|
||||
|
||||
[bar/HDMI-1]
|
||||
monitor = HDMI-1
|
||||
|
||||
width = 100%
|
||||
height = 30px
|
||||
radius = 0
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3px
|
||||
|
||||
border-size = 0pt
|
||||
|
||||
padding-left = 10px
|
||||
padding-right = 0px
|
||||
|
||||
font-0 = ComicShannsMono Nerd Font:pixelsize=14;2
|
||||
font-1 = Polybar:pixelsize=20;2
|
||||
|
||||
fixed-center = true
|
||||
modules-left = cpu separator memory separator filesystem separator eth separator ethspeed separator pulseaudio
|
||||
modules-center = i3
|
||||
modules-right = pacman separator xkeyboard separator dateprefix date systray
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
enable-ipc = true
|
||||
|
||||
[module/separator]
|
||||
type = custom/text
|
||||
|
||||
format = <label>
|
||||
format-padding = 6px
|
||||
|
||||
label = |
|
||||
|
||||
[module/systray]
|
||||
type = internal/tray
|
||||
|
||||
format-margin = 0px
|
||||
tray-spacing = 5px
|
||||
tray-padding = 0px
|
||||
tray-size = 90%
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
|
||||
pin-workspaces = true
|
||||
show-urgent = true
|
||||
enable-scroll = false
|
||||
|
||||
format = <label-state>
|
||||
|
||||
label-focused = %name%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline= ${colors.primary}
|
||||
label-focused-padding = 15px
|
||||
|
||||
label-unfocused = %name%
|
||||
label-unfocused-background = ${colors.background-alt}
|
||||
label-unfocused-padding = 15px
|
||||
|
||||
label-urgent = %name%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 15px
|
||||
|
||||
label-separator = " "
|
||||
label-separator-padding = 0px
|
||||
label-separator-foreground = #ffb52a
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#61afef}%{F-} %percentage_used%%
|
||||
label-mounted-font = 1
|
||||
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.disabled}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume = <label-volume>
|
||||
format-volume-prefix-font = 1
|
||||
format-volume-prefix = " "
|
||||
format-volume-prefix-foreground = ${colors.primary}
|
||||
|
||||
label-volume = "%percentage%%"
|
||||
label-volume-font = 1
|
||||
|
||||
label-muted = %{F#61afef}%{F-} mute
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-foreground = ${colors.primary}
|
||||
|
||||
label-indicator-foreground = ${colors.background}
|
||||
label-indicator-background = ${colors.primary}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage_used:2%%
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage%%
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface-type = wired
|
||||
interval = 5
|
||||
format-connected = <label-connected>
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.primary}
|
||||
|
||||
label-connected = %ifname% %local_ip%
|
||||
|
||||
[module/ethspeed]
|
||||
type = internal/network
|
||||
interface-type = wired
|
||||
interval = 5
|
||||
format-connected = <label-connected>
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.primary}
|
||||
|
||||
label-connected = %upspeed% %downspeed%
|
||||
[module/pacman]
|
||||
type = custom/script
|
||||
exec = pacman -Syup | head -n -4 | wc -l
|
||||
interval = 600
|
||||
|
||||
format = <label>
|
||||
format-prefix = " "
|
||||
format-prefix-foreground=${colors.primary}
|
||||
|
||||
|
||||
[module/dateprefix]
|
||||
type = custom/text
|
||||
exec = date +"%a %Y-%m-%d %H:%M:%S"
|
||||
;interval = 1
|
||||
|
||||
format = <label>
|
||||
format-foreground=${colors.primary}
|
||||
|
||||
label = " "
|
||||
label-padding-right = 5px
|
||||
|
||||
click-left = calendar.sh
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1.0
|
||||
|
||||
date = %a %Y-%m-%d %H:%M
|
||||
date-alt = %H:%M:%S
|
||||
|
||||
format = <label>
|
||||
|
||||
label = %date%
|
||||
label-padding-right = 10px
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = false
|
||||
|
||||
; vim:ft=dosini
|
||||
6
scripts/installyay.sh
Executable file
6
scripts/installyay.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /opt || exit 1
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
cd yay || exit 1
|
||||
makepkg -sric --noconfirm
|
||||
3
tty/autologin.conf
Normal file
3
tty/autologin.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin root %I $TERM
|
||||
3
tty/bash.bashaliases
Normal file
3
tty/bash.bashaliases
Normal file
@@ -0,0 +1,3 @@
|
||||
ll=ls --color=auto -lha
|
||||
grep=grep --color=auto
|
||||
ip=ip -color=auto
|
||||
15
tty/bash.bashexport
Normal file
15
tty/bash.bashexport
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
export BROWSER="/usr/bin/firefox"
|
||||
export EDITOR="nvim"
|
||||
export TERMINAL="rxvt-unicode"
|
||||
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_STATE_HOME="$HOME/.local/state"
|
||||
|
||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
|
||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||
export WINEPREFIX="$XDG_DATA_HOME/wine"
|
||||
64
tty/bash.bashrc
Normal file
64
tty/bash.bashrc
Normal file
@@ -0,0 +1,64 @@
|
||||
#
|
||||
# /etc/bash.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
[[ $DISPLAY ]] && shopt -s checkwinsize
|
||||
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
case ${TERM} in
|
||||
Eterm*|alacritty*|aterm*|foot*|gnome*|konsole*|kterm*|putty*|rxvt*|tmux*|xterm*)
|
||||
PROMPT_COMMAND+=('printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
|
||||
|
||||
;;
|
||||
screen*)
|
||||
PROMPT_COMMAND+=('printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ -r /usr/share/bash-completion/bash_completion ]]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
fi
|
||||
|
||||
#if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
||||
# exec Hyprland --i-am-really-stupid
|
||||
#fi
|
||||
|
||||
. /usr/share/git/git-prompt.sh
|
||||
# afficher le status de la branche locale (<, >, =)
|
||||
export GIT_PS1_SHOWUPSTREAM=1
|
||||
# affiche (*) en cas de modifications en zone de travail ou de cache
|
||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
# affiche (%) en cas de nouveaux fichiers
|
||||
export GIT_PS1_SHOWUNTRACKEDFILES=1
|
||||
# affiche ($) lorsqu’au moins une zone de stash existe
|
||||
export GIT_PS1_SHOWSTASHSTATE=1
|
||||
|
||||
export PS1="\[\e[1;34m\]\u\[\e[0;33m\]@\[\e[0;36m\]\h\[\e[0;33m\] \[\e[0;35m\]\w\[\e[0;00m\]\$(__git_ps1)"
|
||||
if [ "$(id -u)" != 0 ]; then
|
||||
PS1=$PS1" \$ "
|
||||
else
|
||||
PS1=$PS1" # "
|
||||
fi
|
||||
|
||||
# You may comment the following lines if you won't `ls' to be colorized:
|
||||
eval "$(dircolors)"
|
||||
umask=002
|
||||
|
||||
while read -r line
|
||||
do
|
||||
alias "$line"
|
||||
done < /etc/bash.bashaliases
|
||||
|
||||
source "/etc/bash.bashexport"
|
||||
|
||||
PATH=/games:/usr/local/sbin:/usr/local/bin:/usr/bin
|
||||
|
||||
# History config
|
||||
HISTSIZE=1000
|
||||
HISTTIMEFORMAT="%F %T "
|
||||
|
||||
neofetch
|
||||
18
tty/deploy.sh
Executable file
18
tty/deploy.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
HOSTNAME="ArchTest"
|
||||
|
||||
#Switch to the script directory
|
||||
_BASENAME=$(basename "$0")
|
||||
cd "$(dirname "$0")" || _exit 1
|
||||
|
||||
cp issue /etc/issue
|
||||
cp inputrc /etc/inputrc
|
||||
cp bash.bashrc /etc/bash.bashrc
|
||||
cp bash.bashaliases /etc/bash.bashaliases
|
||||
cp bash.bashexport /etc/bash.bashexport
|
||||
mkdir -p /etc/systemd/system/getty@tty1.service.d/
|
||||
cp autologin.conf /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
|
||||
printf "%s\n" "$HOSTNAME" > /etc/hostname
|
||||
sed -i "s|^PRETTY_NAME.*|PRETTY_NAME=\"$HOSTNAME\"|" /etc/os-release
|
||||
26
tty/inputrc
Normal file
26
tty/inputrc
Normal file
@@ -0,0 +1,26 @@
|
||||
set bell-style none
|
||||
set meta-flag on
|
||||
set input-meta on
|
||||
set convert-meta off
|
||||
set output-meta on
|
||||
set colored-stats on
|
||||
set completion-ignore-case on
|
||||
set editing-mode emacs
|
||||
|
||||
"\e[A":history-search-backward
|
||||
"\e[B":history-search-forward
|
||||
|
||||
$if term=linux
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
$endif
|
||||
|
||||
$if term=xterm
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
$endif
|
||||
|
||||
$if term=rxvt-unicode
|
||||
"\e[7~": beginning-of-line
|
||||
"\e[8~": end-of-line
|
||||
$endif
|
||||
2
tty/issue
Normal file
2
tty/issue
Normal file
@@ -0,0 +1,2 @@
|
||||
Arch Linux \r (\l)
|
||||
\e{blue}IP address:\e{reset} \4
|
||||
BIN
wallpapers/blue.jpg
Normal file
BIN
wallpapers/blue.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
BIN
wallpapers/orange.jpg
Normal file
BIN
wallpapers/orange.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 MiB |
BIN
wallpapers/purple.jpg
Normal file
BIN
wallpapers/purple.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 KiB |
Reference in New Issue
Block a user