Compare commits

...

6 Commits

Author SHA1 Message Date
fbbaf80b41 Add keybind for file fzf. 2022-12-15 04:23:39 +00:00
f666bc37bb Untrack files. 2022-12-04 23:41:08 +00:00
d850c17bdc Specify cursor theme. 2022-12-04 23:40:48 +00:00
38813392c0 Add fzf plugin. 2022-12-04 23:38:05 +00:00
74698b5673 Update environment variables.
- Added flatpak bin directory to path, and also the desktop files to
  $XDG_DATA_DIRS
- Export fcitx environment variables.
2022-12-04 23:35:42 +00:00
35842c95e7 Add instalation script for rime-cantonese support. 2022-12-04 23:34:38 +00:00
6 changed files with 35 additions and 10 deletions

View File

@ -7,6 +7,10 @@
# custom scripts and programs # custom scripts and programs
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
PATH="$HOME/.config/scripts/bin:$PATH" PATH="$HOME/.config/scripts/bin:$PATH"
PATH="/var/lib/flatpak/exports/bin:$PATH"
# flatpak desktop files
XDG_DATA_DIRS="/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
if grep "arch-laptop" /etc/hostname &> /dev/null ; then if grep "arch-laptop" /etc/hostname &> /dev/null ; then
export IS_LAPTOP=1 export IS_LAPTOP=1
@ -15,6 +19,10 @@ fi
# for java applicatons # for java applicatons
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
if [[ ! -z "$IS_LAPTOP" ]]; then if [[ ! -z "$IS_LAPTOP" ]]; then
WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 dbus-run-session sway WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 dbus-run-session sway

View File

@ -1,4 +1,4 @@
[Settings] [Settings]
gtk-icon-theme-name=kora gtk-icon-theme-name=kora
gtk-theme-name=Materia-dark-compact gtk-theme-name=Materia-dark-compact
gtk-cursor-theme-name=default gtk-cursor-theme-name=Bibata-Original-Classic

View File

@ -37,8 +37,13 @@ autocmd vimenter * ++nested colorscheme gruvbox
set encoding=utf8 set encoding=utf8
set fileencoding=utf8 set fileencoding=utf8
" Remapping
noremap <C-Space> :Files<Enter>
" plugins " plugins
call plug#begin('~/.local/share/nvim/site/plugged') call plug#begin('~/.local/share/nvim/site/plugged')
Plug 'lervag/vimtex' Plug 'lervag/vimtex'
Plug 'morhetz/gruvbox' Plug 'morhetz/gruvbox'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end() call plug#end()

View File

@ -0,0 +1,21 @@
#!/bin/sh
# Script to install rime-cantonese based on https://github.com/rime/rime-cantonese/wiki/FreeBSD-%E5%AE%89%E8%A3%9D%E6%95%99%E7%A8%8B
rimedir="$HOME/.local/share/fcitx5/rime"
clonedir="$rimedir/repos"
if [[ "$1" == "uninstall" ]] || [[ "$1" == "-u" ]]; then
rm -rf "$clonedir"
find "$rimedir" -type l -delete
else
mkdir -p "$rimedir/opencc"
mkdir -p "$clonedir"
cd "$rimedir"
clonebasename="$(basename $clonedir)"
git clone https://github.com/rime/rime-cantonese.git "$clonedir/rime-cantonese"
for file in $(find "$clonebasename/rime-cantonese" -type f -name '*.yaml'); do ln -sf "$file"; done
for file in $(find "$clonebasename/rime-cantonese/opencc" -type f); do ln -sf "../$file" "opencc"; done
git clone https://github.com/CanCLID/rime-loengfan.git "$clonedir/rime-loengfan"
for file in $(find "$clonebasename/rime-cantonese" -type f -name '*.yaml'); do ln -sf "$file"; done
fi

View File

@ -1,3 +0,0 @@
gtk-theme-name="Materia-dark-compact"
gtk-icon-theme-name="kora"
gtk-cursor-theme-name=" default "

View File

@ -1,6 +0,0 @@
#!/bin/bash
# bookmarks
export NNN_BMS='z:/mnt/InternalSSD/lin;x:/mnt/InternalSSD/win;c:/mnt/InternalHDD'
# use trashcan
export NNN_TRASH=1