New refurb laptop, fix lot of stuff
#todo manage small differences between multiple laptops...master
parent
d072f133ad
commit
92bff24fab
|
@ -1,8 +0,0 @@
|
||||||
Xft.dpi: 170
|
|
||||||
Xft.autohint: 0
|
|
||||||
Xft.lcdfilter: lcddefault
|
|
||||||
Xft.hintstyle: hintfull
|
|
||||||
Xft.hinting: 1
|
|
||||||
Xft.antialias: 1
|
|
||||||
Xft.rgba: rgb
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
cadence
|
||||||
alsa-plugins
|
alsa-plugins
|
||||||
gddccontrol
|
gddccontrol
|
||||||
hamster-time-tracker
|
hamster-time-tracker
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
arc-gtk-theme
|
arc-gtk-theme
|
||||||
arc-icon-theme
|
arc-icon-theme
|
||||||
autojump
|
|
||||||
cadence
|
|
||||||
docker
|
docker
|
||||||
|
dkms
|
||||||
dunst
|
dunst
|
||||||
feh
|
feh
|
||||||
firefox
|
firefox
|
||||||
|
@ -13,8 +12,12 @@ i3-wm
|
||||||
i3lock-color
|
i3lock-color
|
||||||
jq
|
jq
|
||||||
libusb-compat
|
libusb-compat
|
||||||
|
less
|
||||||
maim
|
maim
|
||||||
|
man-db
|
||||||
|
man-pages
|
||||||
mlocate
|
mlocate
|
||||||
|
nmap
|
||||||
nemo
|
nemo
|
||||||
neofetch
|
neofetch
|
||||||
network-manager-applet
|
network-manager-applet
|
||||||
|
@ -36,7 +39,6 @@ python-pygments
|
||||||
python-pyperclip
|
python-pyperclip
|
||||||
python-requests
|
python-requests
|
||||||
qbittorrent
|
qbittorrent
|
||||||
redshift
|
|
||||||
restic
|
restic
|
||||||
rofi
|
rofi
|
||||||
rsync
|
rsync
|
||||||
|
@ -46,7 +48,7 @@ terminator
|
||||||
thunderbird
|
thunderbird
|
||||||
trash-cli
|
trash-cli
|
||||||
ttf-dejavu
|
ttf-dejavu
|
||||||
ttf-font-awesome-5
|
ttf-font-awesome
|
||||||
ttf-material-icons-git
|
ttf-material-icons-git
|
||||||
ttf-symbola
|
ttf-symbola
|
||||||
ttf-weather-icons
|
ttf-weather-icons
|
||||||
|
@ -61,6 +63,7 @@ xdg-user-dirs
|
||||||
xdotool
|
xdotool
|
||||||
xorg-server
|
xorg-server
|
||||||
xorg-xinit
|
xorg-xinit
|
||||||
|
xorg-xrandr
|
||||||
xsel
|
xsel
|
||||||
yay-bin
|
yay-bin
|
||||||
zsh
|
zsh
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[variables]
|
[variables]
|
||||||
dpi = 150
|
dpi = 100
|
||||||
height = 54
|
height = 70
|
||||||
top_left = powermenu system-uptime-pretty battery player-mpris
|
top_left = powermenu system-uptime-pretty battery player-mpris
|
||||||
top_center = xwindow
|
top_center = xwindow
|
||||||
top_right = system-usb-udev backlight pulseaudio date
|
top_right = system-usb-udev backlight pulseaudio date
|
|
@ -1,2 +1,2 @@
|
||||||
icons=()
|
icons=( )
|
||||||
parts=(/)
|
parts=(/ /home)
|
||||||
|
|
|
@ -10,6 +10,6 @@ XDG_DOWNLOAD_DIR="$HOME/downloads"
|
||||||
XDG_TEMPLATES_DIR="$HOME/"
|
XDG_TEMPLATES_DIR="$HOME/"
|
||||||
XDG_PUBLICSHARE_DIR="$HOME/"
|
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||||
XDG_DOCUMENTS_DIR="$HOME/documents"
|
XDG_DOCUMENTS_DIR="$HOME/documents"
|
||||||
XDG_MUSIC_DIR="$HOME/music"
|
XDG_MUSIC_DIR="$HOME/"
|
||||||
XDG_PICTURES_DIR="$HOME/images"
|
XDG_PICTURES_DIR="$HOME/images"
|
||||||
XDG_VIDEOS_DIR="$HOME/videos"
|
XDG_VIDEOS_DIR="$HOME/videos"
|
||||||
|
|
|
@ -89,16 +89,25 @@ if [ ! -z "$INIT" ]; then
|
||||||
# https://man.archlinux.org/man/rofi-dmenu.5
|
# https://man.archlinux.org/man/rofi-dmenu.5
|
||||||
echo -e "* Symlink dmenu → rofi..."
|
echo -e "* Symlink dmenu → rofi..."
|
||||||
sudo ln -sf /usr/bin/rofi /usr/bin/dmenu
|
sudo ln -sf /usr/bin/rofi /usr/bin/dmenu
|
||||||
echo -e "* Enabling NetworkManager..."
|
echo -e "* Enabling required systemd units..."
|
||||||
sudo systemctl enable --now NetworkManager
|
sudo systemctl enable --now NetworkManager
|
||||||
|
sudo systemctl enable --now systemd-timesyncd
|
||||||
|
echo -e "* Ensure hardware clock is up to date..."
|
||||||
|
sudo hwclock --systohc
|
||||||
# So that "Open in Terminal" works in Nemo
|
# So that "Open in Terminal" works in Nemo
|
||||||
|
echo -e "* Make 'Open Terminal' work in Nemo..."
|
||||||
gsettings set org.cinnamon.desktop.default-applications.terminal exec i3-sensible-terminal
|
gsettings set org.cinnamon.desktop.default-applications.terminal exec i3-sensible-terminal
|
||||||
# For screenshots
|
# For screenshots
|
||||||
pip install pychee
|
echo -e "* Install pychee for uploading screenshots on Lychee..."
|
||||||
|
pip install --break-system-packages pychee
|
||||||
# Additionnal plugins for ZSH
|
# Additionnal plugins for ZSH
|
||||||
|
echo -e "* Install ZSH plugins for oh-my-zsh..."
|
||||||
sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /usr/share/oh-my-zsh/plugins/zsh-syntax-highlighting
|
sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /usr/share/oh-my-zsh/plugins/zsh-syntax-highlighting
|
||||||
sudo git clone https://github.com/zsh-users/zsh-autosuggestions /usr/share/oh-my-zsh/plugins/zsh-autosuggestions
|
sudo git clone https://github.com/zsh-users/zsh-autosuggestions /usr/share/oh-my-zsh/plugins/zsh-autosuggestions
|
||||||
sudo git clone https://github.com/unixorn/fzf-zsh-plugin.git /usr/share/oh-my-zsh/plugins/fzf-zsh-plugin
|
sudo git clone https://github.com/unixorn/fzf-zsh-plugin.git /usr/share/oh-my-zsh/plugins/fzf-zsh-plugin
|
||||||
|
# Basic directory structure
|
||||||
|
echo -e "* Create base home directories..."
|
||||||
|
mkdir -p ~/documents ~/images/screenshots ~/videos ~/downloads
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z ${ENV} ]; then
|
if [ ! -z ${ENV} ]; then
|
||||||
|
|
2
.zshrc
2
.zshrc
|
@ -33,8 +33,6 @@ autoload -U compinit && compinit -u
|
||||||
plugins=(
|
plugins=(
|
||||||
# acs command → print aliases by group
|
# acs command → print aliases by group
|
||||||
aliases
|
aliases
|
||||||
# `j` to go to an already used directory by partial name
|
|
||||||
autojump
|
|
||||||
colored-man-pages
|
colored-man-pages
|
||||||
# cat with colors → ccat or cless
|
# cat with colors → ccat or cless
|
||||||
colorize
|
colorize
|
||||||
|
|
10
README.md
10
README.md
|
@ -1,8 +1,9 @@
|
||||||
# dotfiles
|
# dotfiles
|
||||||
|
|
||||||
## Generic todo
|
## Generic TODOs
|
||||||
|
|
||||||
Would be great to have a real people-agnostic base, separated from my own customization. Right now, base configuration still have personal path and stuff, making it unusable as-is for other people.
|
* Would be great to have a real people-agnostic base, separated from my own customization. Right now, base configuration still have personal path and stuff, making it unusable as-is for other people.
|
||||||
|
* Have a command to cancel stuff if case something goes bad, want to restore base system, etc
|
||||||
|
|
||||||
## What is this, Chosto ?
|
## What is this, Chosto ?
|
||||||
|
|
||||||
|
@ -24,7 +25,6 @@ In brief this is the classic Arch/i3 combo with :
|
||||||
* [Rofi](https://github.com/DaveDavenport/rofi), a full-customizable app launcher
|
* [Rofi](https://github.com/DaveDavenport/rofi), a full-customizable app launcher
|
||||||
* Automatic login (drives are encrypted)
|
* Automatic login (drives are encrypted)
|
||||||
* Automatic backups
|
* Automatic backups
|
||||||
* Blue light reducer at night
|
|
||||||
* A fancy lock screen, with optional hibernation, either triggered by hotkey or when there is no activity for X minutes
|
* A fancy lock screen, with optional hibernation, either triggered by hotkey or when there is no activity for X minutes
|
||||||
* ZSH with Oh My ZSH
|
* ZSH with Oh My ZSH
|
||||||
* Mappings to control ALSA volume from dedicated keyboards buttons, to play/plause players compatible with MPRIS D-Bus Interface spec
|
* Mappings to control ALSA volume from dedicated keyboards buttons, to play/plause players compatible with MPRIS D-Bus Interface spec
|
||||||
|
@ -41,7 +41,7 @@ In brief this is the classic Arch/i3 combo with :
|
||||||
|
|
||||||
* A working [Arch installation](https://wiki.archlinux.org/title/installation_guide)
|
* A working [Arch installation](https://wiki.archlinux.org/title/installation_guide)
|
||||||
* Login with a `sudoer` user
|
* Login with a `sudoer` user
|
||||||
* [yay](https://github.com/Jguer/yay) AUR wrapper
|
* [yay](https://github.com/Jguer/yay) AUR wrapper (better check your [mirrors](https://wiki.archlinux.org/title/Mirrors) too)
|
||||||
* Python 3 and Pip
|
* Python 3 and Pip
|
||||||
* Git
|
* Git
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ Please note : on my system `XDG_CONFIG_HOME` is empty and default to `$HOME/.con
|
||||||
|
|
||||||
### Clone the repository
|
### Clone the repository
|
||||||
|
|
||||||
* Clone in bare repository : `git clone --bare https://github.com/Chostakovitch/dotfiles.git $HOME/.cfg`. A bare repository does not have a working tree (basically it is just `.git` content). So we avoid conflicts with another git repository.
|
* Clone in bare repository : `git clone --bare https://git.chosto.me/Chosto/dotfiles.git $HOME/.cfg`. A bare repository does not have a working tree (basically it is just `.git` content). So we avoid conflicts with another git repository.
|
||||||
* Create a working tree outside `.cfg` : `git --git-dir=$HOME/.cfg/ --work-tree=$HOME checkout`.
|
* Create a working tree outside `.cfg` : `git --git-dir=$HOME/.cfg/ --work-tree=$HOME checkout`.
|
||||||
|
|
||||||
Credits to [this article](https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/) for the trick.
|
Credits to [this article](https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/) for the trick.
|
||||||
|
|
Loading…
Reference in New Issue