mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-16 00:51:35 +09:00
Compare commits
15 Commits
e335f8e40c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1bb836dee1 | |||
| 218ca4bbd7 | |||
| a6759eff18 | |||
| 023a6d0c5b | |||
| aaee6aef92 | |||
| b2b4dd33a5 | |||
| fc4538ac6e | |||
| 92c63e4949 | |||
| 45830fad57 | |||
| 7a7e38806d | |||
| f8d47693c9 | |||
| 8d34b0f472 | |||
| 8a0e52ab03 | |||
| e559352d85 | |||
| baea7cf95e |
@ -70,6 +70,8 @@ bspc config normal_private_border_color "$color1"
|
||||
|
||||
bspc rule -a Emacs state=tiled
|
||||
# bspc rule -a \* state=tiled
|
||||
bspc rule -a scpad sticky=on state=floating rectangle=1400x700+660+40
|
||||
bspc rule -a pythonpad sticky=on state=floating rectangle=1400x700+660+40
|
||||
|
||||
# TODO heres polybar
|
||||
if [[ $JUPCID == "HOME-DESKTOP" ]]; then
|
||||
|
||||
@ -123,5 +123,12 @@
|
||||
:ensure t
|
||||
:hook (after-init . global-so-long-mode))
|
||||
|
||||
;; remote edit
|
||||
(use-package tramp
|
||||
:ensure nil
|
||||
:custom
|
||||
(tramp-default-method "ssh")
|
||||
(tramp-connection-timeout 5))
|
||||
|
||||
(provide 'init-edit)
|
||||
;;; init-edit.el ends here.
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
(require 'init-custom)
|
||||
|
||||
(use-package org
|
||||
:ensure nil ; built-in
|
||||
:straight (:type built-in)
|
||||
:custom-face (org-ellipsis ((t (:foreground unspecified))))
|
||||
:pretty-hydra
|
||||
;; See `org-structure-template-alist'
|
||||
@ -269,13 +269,13 @@ prepended to the element after the #+HEADER: tag."
|
||||
("DONE" :background "#C7C7C7" :foreground "#666666")
|
||||
("KILL" :background "#C7C7C7" :foreground "#666666")))))
|
||||
|
||||
(use-package valign
|
||||
:straight t
|
||||
:ensure t
|
||||
:defer t
|
||||
:hook (org-mode . valign-mode)
|
||||
:custom
|
||||
(valign-fancy-bar t))
|
||||
;; (use-package valign
|
||||
;; :straight t
|
||||
;; :ensure t
|
||||
;; :defer t
|
||||
;; :hook (org-mode . valign-mode)
|
||||
;; :custom
|
||||
;; (valign-fancy-bar t))
|
||||
|
||||
|
||||
;; Auto-toggle Org LaTeX fragments
|
||||
@ -314,23 +314,25 @@ prepended to the element after the #+HEADER: tag."
|
||||
(use-package org-contrib ;; to use org-screenshot-take
|
||||
:straight t
|
||||
:ensure t
|
||||
:defer t
|
||||
:defer t)
|
||||
(use-package org-attach-screenshot
|
||||
:straight t
|
||||
:ensure t
|
||||
:defer t
|
||||
:defer t)
|
||||
(use-package org-download
|
||||
:after org
|
||||
:straight t
|
||||
:ensure t
|
||||
:defer t
|
||||
:defer t)
|
||||
:demand t
|
||||
:init
|
||||
(setq org-download-image-dir "./images")
|
||||
(setq org-download-heading-lvl nil)
|
||||
:config
|
||||
(org-download-enable))
|
||||
(use-package ob-latex-as-png
|
||||
:straight t
|
||||
:ensure t
|
||||
:defer t
|
||||
:ensure t)
|
||||
:defer t)
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Org roam ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
@ -4,27 +4,93 @@ end
|
||||
|
||||
set fish_greeting
|
||||
|
||||
set VETHER_IP $(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
|
||||
export DISPLAY=$VETHER_IP:10.0
|
||||
# Format man pages
|
||||
set -x MANROFFOPT "-c"
|
||||
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
# Set settings for https://github.com/franciscolourenco/done
|
||||
set -U __done_min_cmd_duration 10000
|
||||
set -U __done_notification_urgency_level low
|
||||
|
||||
## Environment setup
|
||||
# Apply .profile: use this to put fish compatible .profile stuff in
|
||||
if test -f ~/.fish_profile
|
||||
source ~/.fish_profile
|
||||
end
|
||||
|
||||
# Add ~/.local/bin to PATH
|
||||
if test -d ~/.local/bin
|
||||
if not contains -- ~/.local/bin $PATH
|
||||
set -p PATH ~/.local/bin
|
||||
end
|
||||
end
|
||||
|
||||
## Functions
|
||||
# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
|
||||
function __history_previous_command
|
||||
switch (commandline -t)
|
||||
case "!"
|
||||
commandline -t $history[1]; commandline -f repaint
|
||||
case "*"
|
||||
commandline -i !
|
||||
end
|
||||
end
|
||||
|
||||
function __history_previous_command_arguments
|
||||
switch (commandline -t)
|
||||
case "!"
|
||||
commandline -t ""
|
||||
commandline -f history-token-search-backward
|
||||
case "*"
|
||||
commandline -i '$'
|
||||
end
|
||||
end
|
||||
|
||||
if [ "$fish_key_bindings" = fish_vi_key_bindings ];
|
||||
bind -Minsert ! __history_previous_command
|
||||
bind -Minsert '$' __history_previous_command_arguments
|
||||
else
|
||||
bind ! __history_previous_command
|
||||
bind '$' __history_previous_command_arguments
|
||||
end
|
||||
|
||||
# Fish command history
|
||||
function history
|
||||
builtin history --show-time='%F %T '
|
||||
end
|
||||
|
||||
## Aliases
|
||||
alias ls='eza -al --color=always --group-directories-first --icons' # preferred listing
|
||||
alias la='eza -a --color=always --group-directories-first --icons' # all files and dirs
|
||||
alias ll='eza -l --color=always --group-directories-first --icons' # long format
|
||||
alias lt='eza -aT --color=always --group-directories-first --icons' # tree listing
|
||||
alias l.="eza -a | grep -e '^\.'" # show only dotfiles
|
||||
|
||||
alias big="expac -H M '%m\t%n' | sort -h | nl" # Sort installed packages according to size in MB
|
||||
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages
|
||||
#pacman unlock
|
||||
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
|
||||
|
||||
# Get fastest mirrors
|
||||
alias mirror="sudo cachyos-rate-mirrors"
|
||||
# Cleanup orphaned packages
|
||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'
|
||||
# Recent installed packages
|
||||
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"
|
||||
|
||||
# emacs
|
||||
alias emupgrade="~/.emacs.d/bin/doom upgrade"
|
||||
alias emsync="~/.emacs.d/bin/doom sync"
|
||||
alias emd="emacs --daemon"
|
||||
alias emdk="emacsclient --eval '(kill-emacs)'"
|
||||
alias em="emacsclient -c -a 'emacs'"
|
||||
alias emt="emacsclient -c -a 'emacs -nw'"
|
||||
alias emtangle="emacs --batch -eval \"(require 'org)\" --eval '(org-babel-tangle-file \"~/.config/emacs/emacs.org\")'"
|
||||
|
||||
#neovim to vi
|
||||
alias vi=nvim
|
||||
alias vimdiff="nvim -d"
|
||||
#alias cat=bat
|
||||
#pacman unlock
|
||||
alias paruunlock="sudo rm /var/lib/pacman/db.lck"
|
||||
|
||||
#grub update
|
||||
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
#youtube-dl
|
||||
alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
||||
#gpg for future uses
|
||||
#verify signature for isos
|
||||
#alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify"
|
||||
@ -33,21 +99,8 @@ alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
||||
#alias gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
|
||||
#alias fix-gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
|
||||
#alias fix-key="[ -d ~/.gnupg ] || mkdir ~/.gnupg ; cp /etc/pacman.d/gnupg/gpg.conf ~/.gnupg/ ; echo 'done'"
|
||||
alias startsv="ssh odroid startsv"
|
||||
alias stopsv="ssh odroid stopsv"
|
||||
alias gpulls="pushd ~/.config/emacs && git pull && pushd ~/org && git pull && popd && popd"
|
||||
|
||||
# Changing "ls" to "exa"
|
||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
||||
alias la='exa -a --color=always --group-directories-first' # all files and dirs
|
||||
alias ll='exa -l --color=always --group-directories-first' # long format
|
||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||
alias l.='exa -a | egrep "^\."'
|
||||
|
||||
#figlet -w 100 "$hostname"
|
||||
export PYTHONSTARTUP=/home/jaeus/scripts/my_imports.py
|
||||
|
||||
starship init fish | source
|
||||
|
||||
cat ~/.cache/wal/sequences &
|
||||
#atuin init fish | source
|
||||
|
||||
@ -2,6 +2,10 @@
|
||||
|
||||
super+Return
|
||||
alacritty
|
||||
super+shift+Return
|
||||
~/scripts/scpad
|
||||
super+shift+p
|
||||
~/scripts/pythonpad
|
||||
#Apps and programs
|
||||
super+e
|
||||
emacsclient -c -a 'emacs'
|
||||
@ -42,6 +46,12 @@ super+w
|
||||
super+shift+r
|
||||
bspc wm -r
|
||||
|
||||
|
||||
|
||||
# lock screen
|
||||
super+shift+l
|
||||
i3lock-fancy
|
||||
|
||||
# resize
|
||||
super+alt+l
|
||||
bspc node focused -z right 15 0
|
||||
|
||||
8
.zshrc
8
.zshrc
@ -46,6 +46,12 @@ if [[ $JUPCID == "WSL" ]];then
|
||||
fi
|
||||
|
||||
# python env
|
||||
export PYTHONSTARTUP=~/scripts/my_imports.py
|
||||
export PYTHONSTARTUPSCRIPT=~/scripts/my_imports.py
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
# pokemon-colorscripts --no-title -s -r
|
||||
|
||||
. "$HOME/.atuin/bin/env"
|
||||
|
||||
eval "$(atuin init zsh)"
|
||||
|
||||
67
scripts/init_script_archlinux.sh
Executable file
67
scripts/init_script_archlinux.sh
Executable file
@ -0,0 +1,67 @@
|
||||
#!/bin/bash
|
||||
|
||||
# essential packages
|
||||
paru -S eza --noconfirm
|
||||
|
||||
# clone config
|
||||
git clone https://github.com/JaeUs3792/dotfiles ~/.dotfiles
|
||||
|
||||
paru -S stow --noconfirm
|
||||
cd ~/.dotfiles
|
||||
stow .
|
||||
|
||||
# korean input
|
||||
paru -S ibus-hangul
|
||||
|
||||
#ZSH
|
||||
paru -S zsh starship --noconfirm
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc
|
||||
|
||||
# fish
|
||||
paru -S fish starship bat --noconfirm
|
||||
|
||||
|
||||
# neovim
|
||||
paru -S neovim nvim-lazy --noconfirm
|
||||
|
||||
# git config
|
||||
git config --global user.name "JaeYoo-Im"
|
||||
git config --global user.email "cpu3792@gmail.com"
|
||||
git config --global user.autocrlf input
|
||||
|
||||
# tmux
|
||||
paru -S tmux --noconfirm
|
||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
TMUX_PLUGIN_MANAGER_PATH=~/.config/tmux/plugins/tpm ~/.tmux/plugins/tpm/scripts/install_plugins.sh
|
||||
TMUX_PLUGIN_MANAGER_PATH=~/.config/tmux/plugins/tpm ~/.tmux/plugins/tpm/bin/update_plugins all
|
||||
|
||||
# font
|
||||
paru -S ttf-firacode-nerd ttf-mononoki-nerd otf-comicshanns-nerd ttf-times-new-roman ttf-nanum noto-fonts-emoji ttf-symbola noto-fonts-cjk --noconfirm
|
||||
|
||||
#syncthing
|
||||
paru -S syncthing --noconfirm
|
||||
sudo systemctl enable syncthing@jaeus.service
|
||||
sudo systemctl start syncthing@jaeus.service
|
||||
|
||||
# express vpn
|
||||
paru -S expressvpn-gui
|
||||
sudo systemctl enable expressvpn
|
||||
sudo systemctl start expressvpn
|
||||
|
||||
#emacs
|
||||
paru -S emacs --noconfirm
|
||||
paru -S texlive-basic texlive-langkorean --noconfirm
|
||||
paru -S jupyterlab --noconfirm
|
||||
paru -S zathura-pdf-mupdf
|
||||
|
||||
#verilator
|
||||
paru -S verilator
|
||||
|
||||
# trilium
|
||||
paru -S trilium-bin
|
||||
|
||||
# sourcegit
|
||||
paru -S sourcegit-bin
|
||||
@ -1,69 +0,0 @@
|
||||
#!/bin/sh
|
||||
paru
|
||||
paru -S stow trayer --noconfirm
|
||||
|
||||
# config file handling
|
||||
rm ~/.config/polybar/config
|
||||
rm ~/.zshrc ~/.bashrc ~/.xmonad/xmonad.hs
|
||||
rm -rf ~/.config/alacritty ~/.xmonad/scripts
|
||||
cd ~/.dotfiles
|
||||
stow .
|
||||
|
||||
|
||||
#ZSH
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc
|
||||
|
||||
# NUSHELL
|
||||
#paru -S nushell
|
||||
#nu ~/scripts/init_script_nushell.nu
|
||||
#echo "Changing Shell to nushell"
|
||||
#chsh -s /bin/nu # change shell
|
||||
|
||||
# FISH
|
||||
#paru -S fish starship
|
||||
#chsh -s /bin/fish
|
||||
|
||||
# neovim
|
||||
paru -S neovim --noconfirm
|
||||
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
nvim +PlugInstall +q +q
|
||||
|
||||
# git config
|
||||
git config --global user.name "JaeYoo-Im"
|
||||
git config --global user.email "cpu3792@gmail.com"
|
||||
git config --global user.autocrlf input
|
||||
|
||||
# tmux
|
||||
paru -S tmux --noconfirm
|
||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
TMUX_PLUGIN_MANAGER_PATH=~/.config/tmux/plugins/tpm ~/.tmux/plugins/tpm/scripts/install_plugins.sh
|
||||
TMUX_PLUGIN_MANAGER_PATH=~/.config/tmux/plugins/tpm ~/.tmux/plugins/tpm/bin/update_plugins all
|
||||
|
||||
# font
|
||||
paru -S ttf-firacode-nerd ttf-nanum ttf-mononoki-nerd --noconfirm
|
||||
|
||||
# hangul
|
||||
paru -S fcitx-hangul fcitx-configtool --noconfirm
|
||||
|
||||
# enpass
|
||||
#paru -S enpass --noconfirm
|
||||
#paru -S bitwarden --noconfirm
|
||||
#paru -S green-tunnel --noconfirm
|
||||
|
||||
#emacs
|
||||
paru -S ripgrep emacs --noconfirm
|
||||
paru -S texlive-most texlive-lang --noconfirm
|
||||
paru -S jupyterlab --noconfirm
|
||||
paru -S zathura zathura-cb zathura-pdf-mupdf
|
||||
|
||||
#syncthing
|
||||
paru -S syncthing --noconfirm
|
||||
mkdir SyncThing
|
||||
sudo systemctl enable syncthing@jaeus.service
|
||||
|
||||
# etc
|
||||
paru -S figlet --noconfirm
|
||||
18
scripts/pythonpad
Executable file
18
scripts/pythonpad
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
winclass="$(xdotool search --class pythonpad)";
|
||||
|
||||
if [ -z "$winclass" ]; then
|
||||
PYTHONSTARTUP=/home/jaeus/scripts/my_imports.py alacritty --class pythonpad -e python
|
||||
else
|
||||
if [ ! -f /tmp/pythonpad ]; then
|
||||
touch /tmp/pythonpad && xdo hide "$winclass"
|
||||
elif [ -f /tmp/pythonpad ]; then
|
||||
rm /tmp/pythonpad && xdo show "$winclass"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
3
scripts/questasim_install_libs.sh
Executable file
3
scripts/questasim_install_libs.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
yay -S python2-bin
|
||||
18
scripts/scpad
Executable file
18
scripts/scpad
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
winclass="$(xdotool search --class scpad)";
|
||||
|
||||
if [ -z "$winclass" ]; then
|
||||
alacritty --class scpad
|
||||
else
|
||||
if [ ! -f /tmp/scpad ]; then
|
||||
touch /tmp/scpad && xdo hide "$winclass"
|
||||
elif [ -f /tmp/scpad ]; then
|
||||
rm /tmp/scpad && xdo show "$winclass"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
3
scripts/vivado_installlibs.sh
Executable file
3
scripts/vivado_installlibs.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
yay -S ncurses5-compat-libs libxcrypt-compat libpng12 lib32-libpng12 gtk3 inetutils xorg-xlsclients cpio
|
||||
Reference in New Issue
Block a user