Compare commits

...

3 Commits

Author SHA1 Message Date
Michel
55c26eb17a fix(lazygit): keybindings for rename similarity 2024-08-29 10:54:21 +02:00
Michel
7fb8c46d6d feat: minimum nvim config 2024-08-29 10:43:43 +02:00
Michel
e16d481bf8 docs: Updates after Qubes install 2024-08-29 10:41:51 +02:00
5 changed files with 46 additions and 17 deletions

View File

@ -54,7 +54,9 @@ git apply --stat --apply 2604.patch
apt install --no-install-recommends \ apt install --no-install-recommends \
aptitude \ aptitude \
curl fd-find fzf git grc ripgrep \ curl fd-find fzf git grc ripgrep \
vim-nox vim-tiny- wget xdg-utils \ vim-nox vim-tiny- wget xdg-utils xsel \
libarchive-tools trash-cli \
kitty-terminfo
dpkg-divert --rename --divert /usr/bin/fd /usr/bin/fdfind dpkg-divert --rename --divert /usr/bin/fd /usr/bin/fdfind
dpkg-divert --rename --divert /usr/share/man/man1/fd.1.gz \ dpkg-divert --rename --divert /usr/share/man/man1/fd.1.gz \
@ -120,6 +122,8 @@ _remote_ section of `.dotfiles/config`:
### Install into `/etc/skel` ### Install into `/etc/skel`
```sh ```sh
sudo vi /etc/adduser.conf
sudo mkdir -p /etc/skel/.dotfiles sudo mkdir -p /etc/skel/.dotfiles
sudo chown $(whoami) /etc/skel /etc/skel/.dotfiles sudo chown $(whoami) /etc/skel /etc/skel/.dotfiles
sudo chown $(whoami) -R /etc/skel/.config sudo chown $(whoami) -R /etc/skel/.config
@ -150,6 +154,10 @@ lazygit --git-dir=/etc/skel/.dotfiles --work-tree=/etc/skel
- [SysRq](https://www.kicksecure.com/wiki/SysRq) - [SysRq](https://www.kicksecure.com/wiki/SysRq)
- `sudo cp -aiv ~/.aptitude /root` - `sudo cp -aiv ~/.aptitude /root`
- Zsh completion “already initialized”
- <https://github.com/Kicksecure/desktop-config-dist>
- /etc/zsh/zshrc_completions
- comment out the `compinit -u` line
## Qubes Specific {#qubes} ## Qubes Specific {#qubes}
@ -210,6 +218,11 @@ for Plugin in $(asdf plugin list); { echo $Plugin; asdf list $Plugin }
TODO: [Where are all the installed flatpak apps .desktop files located](https://github.com/flatpak/flatpak/issues/1286) TODO: [Where are all the installed flatpak apps .desktop files located](https://github.com/flatpak/flatpak/issues/1286)
#### Qubes Integration
- <https://dataswamp.org/~solene/2023-09-15-flatpak-on-qubesos.html>
- `/etc/qubes/post-install.d/10-qubes-core-agent-appmenus.sh`
#### Kicksecure Wiki #### Kicksecure Wiki
- [Install Additional Software Safely](https://www.kicksecure.com/wiki/Install_Software) - [Install Additional Software Safely](https://www.kicksecure.com/wiki/Install_Software)
@ -217,8 +230,7 @@ TODO: [Where are all the installed flatpak apps .desktop files located](https://
Applications installed using Flatpak: Applications installed using Flatpak:
Qube settings → applications tab → press "Refresh Applications". Qube settings → applications tab → press "Refresh Applications".
- [Bootstrapping a Trust path To Flathub Repository Signing Key](https://www.kicksecure.com/wiki/Dev/flatpak) - [Bootstrapping a Trust path To Flathub Repository Signing Key](https://www.kicksecure.com/wiki/Dev/flatpak)
- WiP - NOTE: Not needed with package `anon-apt-sources-list`
- Not needed with package `anon-apt-sources-list`???
- <https://github.com/Kicksecure/anon-apt-sources-list> - <https://github.com/Kicksecure/anon-apt-sources-list>
```sh ```sh
@ -269,10 +281,13 @@ dpkg -i *.deb
- [Cheat Sheet](https://www.nerdfonts.com/cheat-sheet) - [Cheat Sheet](https://www.nerdfonts.com/cheat-sheet)
- <https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/bin/scripts/test-fonts.sh> - <https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/bin/scripts/test-fonts.sh>
- `xfce4-appearance-settings`
- <http://www.lagom.nl/lcd-test/subpixel.php>
### in $HOME/.fonts ### in $HOME/.fonts
```sh ```sh
mv folder ~/.fonts mv *(/) ~/.fonts
fc-cache -fv ~/.fonts fc-cache -fv ~/.fonts
``` ```
@ -291,9 +306,10 @@ See also [How to install and manage fonts on Linux](https://linuxconfig.org/how-
```sh ```sh
sudo mkdir -p /opt/fonts sudo mkdir -p /opt/fonts
sudo mv folder /opt/fonts sudo mv -i *(/) /opt/fonts
sudo chown root:root -R /opt/fonts sudo chown root:root -R /opt/fonts
fc-cache -fv /opt/fonts sudo chmod go+rX -R /opt/fonts
sudo fc-cache -fv /opt/fonts
``` ```
## kitty {#kitty} ## kitty {#kitty}
@ -331,8 +347,7 @@ sudo apt install kitty
sh ~/.config/kitty/installer.sh sh ~/.config/kitty/installer.sh
# In /opt/kitty.app # In /opt/kitty.app
# Insert Proxy export at top of installer sudo --preserve-env=ALL_PROXY sh ~/.config/kitty/installer.sh launch=n dest=/opt
sudo sh ~/.config/kitty/installer.sh launch=n dest=/opt
sudo update-alternatives \ sudo update-alternatives \
--install /usr/bin/x-terminal-emulator \ --install /usr/bin/x-terminal-emulator \
x-terminal-emulator /opt/kitty.app/bin/kitty 99 x-terminal-emulator /opt/kitty.app/bin/kitty 99
@ -382,7 +397,8 @@ wget $LOCATION
sudo mkdir -p /opt/lazygit/bin sudo mkdir -p /opt/lazygit/bin
cd /opt/lazygit/bin cd /opt/lazygit/bin
sudo tar xf ${OLDPWD}/*.tar.gz(om[1]) sudo tar xf ${OLDPWD}/*.tar.gz(om[1])
sudo chown root:root -R * sudo chown root:root -R /opt/lazygit
sudo chmod go+rX -R /opt/lazygit
``` ```
### From Go Package ### From Go Package
@ -418,9 +434,11 @@ sudo mkdir -p /opt/neovim/bin
cd /opt/neovim/bin cd /opt/neovim/bin
sudo =curl-proxy -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage sudo =curl-proxy -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod ugo+x nvim.appimage sudo mv ~/Downloads/nvim.appimage /opt/neovim/bin
ln -sf nvim.appimage nvim sudo chown root:root nvim.appimage
ln -sf nvim.appimage vi sudo chmod ugo+rx nvim.appimage
sudo ln -sf nvim.appimage nvim
sudo ln -sf nvim.appimage vi
cd $HOME cd $HOME
nvim --version nvim --version
@ -459,19 +477,21 @@ bat ~/.config/nvim/README.md
```sh ```sh
# From repository # From repository
mkdir -p ~/dev; cd ~/dev mkdir -p ~/dev_3rd; cd ~/dev_3rd
git clone https://github.com/jarun/nnn.git git clone https://github.com/jarun/nnn.git
# Compile # Compile
cd nnn cd nnn
make clean make clean
# into /usr/local
sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install
sudo cp -v misc/auto-completion/zsh/* /usr/local/share/zsh/site-functions sudo cp -v misc/auto-completion/zsh/* /usr/local/share/zsh/site-functions
sudo chmod -v a+r /usr/local/share/zsh/site-functions/* sudo chmod -v a+r /usr/local/share/zsh/site-functions/*
# into /opt # into /opt
sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 PREFIX=/opt/nnn install sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 PREFIX=/opt/nnn install
sudo mkdir -p /opt/zsh/site-functions
sudo cp -v misc/auto-completion/zsh/* /opt/zsh/site-functions sudo cp -v misc/auto-completion/zsh/* /opt/zsh/site-functions
sudo chmod -v a+r /opt/zsh/site-functions/* sudo chmod -v a+r /opt/zsh/site-functions/*
@ -479,4 +499,6 @@ sudo chmod -v a+r /opt/zsh/site-functions/*
mv -v ~/.config/nnn/plugins $HOME/nnn_plugins_$(stat -c %Y ~/.config/nnn/plugins) mv -v ~/.config/nnn/plugins $HOME/nnn_plugins_$(stat -c %Y ~/.config/nnn/plugins)
mkdir -p ~/.config/nnn mkdir -p ~/.config/nnn
cp -av plugins ~/.config/nnn cp -av plugins ~/.config/nnn
sudo mkdir -p /etc/skel/.config/nnn
sudo cp -av plugins /etc/skel/.config/nnn
``` ```

View File

@ -49,9 +49,7 @@ detect_os() {
amd64|x86_64) arch="x86_64";; amd64|x86_64) arch="x86_64";;
aarch64*) arch="arm64";; aarch64*) arch="arm64";;
armv8*) arch="arm64";; armv8*) arch="arm64";;
i386) arch="i686";; *) die "kitty binaries not available for architecture $(command uname -m)";;
i686) arch="i686";;
*) die "Unknown CPU architecture $(command uname -m)";;
esac esac
;; ;;
*) die "kitty binaries are not available for $(command uname)" *) die "kitty binaries are not available for $(command uname)"

View File

@ -60,11 +60,13 @@ keybinding:
# https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Keybindings_en.md # https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Keybindings_en.md
# https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#default # https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#default
universal: universal:
refresh: "<f5>"
nextTab: ')' nextTab: ')'
prevTab: '(' prevTab: '('
nextScreenMode: '+' nextScreenMode: '+'
prevScreenMode: '=' prevScreenMode: '='
refresh: "<f5>" increaseRenameSimilarityThreshold: ']'
decreaseRenameSimilarityThreshold: '['
notARepository: 'skip' notARepository: 'skip'

3
.config/nvim/init.vim Normal file
View File

@ -0,0 +1,3 @@
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

4
.vimrc Normal file
View File

@ -0,0 +1,4 @@
" :help nvim-from-vim
" :checkhealth
colorscheme darkblue
set background=dark