Compare commits

...

37 Commits

Author SHA1 Message Date
1bb836dee1 pythonpad : env applied. 2025-12-05 13:52:07 +09:00
218ca4bbd7 emacs : use built-in org-mode 2025-08-13 20:22:12 +09:00
a6759eff18 script : nvim 2025-08-13 20:21:51 +09:00
023a6d0c5b fish : atuin is out 2025-08-13 20:21:09 +09:00
aaee6aef92 emacs : org download location setup 2025-08-12 16:00:59 +09:00
b2b4dd33a5 zsh : python startup env 2025-08-12 16:00:36 +09:00
fc4538ac6e python pad 2025-08-12 16:00:23 +09:00
92c63e4949 pythonpad 2025-08-12 16:00:12 +09:00
45830fad57 fish : zsh to fish config. 2025-05-25 23:11:57 +09:00
7a7e38806d script : endeavouros to cachyOS 2025-05-25 23:11:28 +09:00
f8d47693c9 script : init linux 2025-05-22 22:47:19 +09:00
8d34b0f472 emacs : disable valign mode 2025-04-13 09:48:47 +09:00
8a0e52ab03 bspwm : add scratch pad 2025-03-19 16:26:05 +09:00
e559352d85 Merge remote-tracking branch 'origin/main' 2025-03-19 07:17:00 +09:00
e335f8e40c emacs : pdf-tool disable when windows env. 2025-03-16 22:50:21 +09:00
baea7cf95e emacs : tramp config 2025-03-16 18:07:48 +09:00
631b54fbcd emacs/bspwm : update daemon binding 2025-03-16 12:48:19 +09:00
7bc66f159d Merge remote-tracking branch 'origin/main' 2025-03-16 10:27:56 +09:00
e8418bd7af emacs : org noter - roam integration 2025-03-16 10:27:43 +09:00
24f816edd9 emacs : daemon configuration 2025-03-15 16:58:03 +09:00
8e17f130e7 copilot & gpt packages add 2025-03-08 12:08:53 +09:00
e363c90761 emacs : org noter is added, pdf view 2025-02-18 13:29:04 +09:00
5ebf4d23bb wsltty : restore wsltty config 2025-02-18 10:10:08 +09:00
b6dc73188c Merge remote-tracking branch 'origin/main' 2025-02-18 10:07:15 +09:00
5a98c1cb31 emacs : embark keybinding change, C-. is not work on ubuntu 2025-02-01 14:01:06 +09:00
b1128126f4 emacs : unbind keys (symbol-overlay) 2024-12-26 17:15:46 +09:00
c8633e1d37 neovim : theme is changed, for readability 2024-12-26 17:15:12 +09:00
5866ff1364 gitconfig : remove unused 2024-12-26 17:14:35 +09:00
6cdb9c5b8f sxhkd : remove unused binding 2024-12-26 17:14:19 +09:00
533a13971d bspwm : screen rule is removed for fullscreen session 2024-12-26 17:13:06 +09:00
ed95c3a26a leftwm : removed 2024-12-26 17:12:49 +09:00
e28bea766c leftwm : bspwm to leftwm 2024-09-30 20:09:23 +09:00
cefeb45dce Merge branch 'main' of https://github.com/JaeUs3792/dotfiles 2024-09-23 22:00:06 +09:00
4199b6571f emacs : org-modern foreground color to gray 2024-09-05 14:25:16 +09:00
a5096ef3a1 emacs : org-modern keywords color settings 2024-09-05 14:21:15 +09:00
5415fbc30f emacs : chatgpt -> gptel 2024-09-05 14:21:01 +09:00
d10e8aa916 powershell font install scripts 2024-05-22 21:29:13 +09:00
25 changed files with 407 additions and 305 deletions

View File

@ -22,6 +22,8 @@ killall nm-applet && nm-applet &
killall volumeicon && volumeicon & killall volumeicon && volumeicon &
#killall conky #killall conky
#sleep 3 && conky -c ~/.config/conky/conkyrc #sleep 3 && conky -c ~/.config/conky/conkyrc
emacsclient --eval '(kill-emacs)'
emacs --daemon
~/scripts/random_wallpaper.sh ~/scripts/random_wallpaper.sh
@ -66,15 +68,10 @@ bspc config focused_private_border_color "$color1"
bspc config active_private_border_color "$color1" bspc config active_private_border_color "$color1"
bspc config normal_private_border_color "$color1" bspc config normal_private_border_color "$color1"
bspc rule -a \* state=tiled bspc rule -a Emacs state=tiled
# Load session # bspc rule -a \* state=tiled
# shellcheck source=/dev/null bspc rule -a scpad sticky=on state=floating rectangle=1400x700+660+40
#. "$BSPWM_CONFIG/restore.cfg" bspc rule -a pythonpad sticky=on state=floating rectangle=1400x700+660+40
#if [ -e "$BSPWM_STATE" ] ; then
# bspc wm --load-state "$BSPWM_STATE"
# bspc wm --adopt-orphans
# rm "$BSPWM_STATE"
#fi
# TODO heres polybar # TODO heres polybar
if [[ $JUPCID == "HOME-DESKTOP" ]]; then if [[ $JUPCID == "HOME-DESKTOP" ]]; then

View File

@ -4,7 +4,6 @@
(defun custom-setup-fonts () (defun custom-setup-fonts ()
"setup fonts..." "setup fonts..."
(when (display-graphic-p)
;; default font ;; default font
(cl-loop for font in '("FiraCode Nerd Font Mono" "Jetbrains Mono" (cl-loop for font in '("FiraCode Nerd Font Mono" "Jetbrains Mono"
"Source Code Pro" "DejaVu Sans Mono") "Source Code Pro" "DejaVu Sans Mono")
@ -33,14 +32,25 @@
when (font-installed-p font) when (font-installed-p font)
return (progn return (progn
(setq face-font-rescale-alist `((,font . 1.00))) (setq face-font-rescale-alist `((,font . 1.00)))
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font)))))) (set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font)))))
(custom-setup-fonts) (when (display-graphic-p)
(custom-setup-fonts))
(add-hook 'window-setup-hook #'custom-setup-fonts) (add-hook 'window-setup-hook #'custom-setup-fonts)
(if (daemonp)
(add-hook 'after-make-frame-functions
(lambda (frame)
;; (setq doom-modeline-icon t)
(with-selected-frame frame
(custom-setup-fonts)
;; default transparency (85 . 85) or (100 . 100)
(set-frame-parameter (selected-frame) 'alpha '(85 . 85)))))
(custom-setup-fonts))
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
;; select theme ;; select theme
(setq custom-theme-sel 'doom-one) (setq custom-theme-sel 'doom-one)
;; default transparency (85 . 85) or (100 . 100)
(set-frame-parameter (selected-frame) 'alpha '(85 . 85))
;; Org setup ;; Org setup
(setq custom-org-directory "~/org" (setq custom-org-directory "~/org"

View File

@ -1,16 +1,23 @@
;; init-chatgpt.el -*- lexical-binding: t -*- ;; init-chatgpt.el -*- lexical-binding: t -*-
(use-package chatgpt-shell (use-package gptel
:straight t :straight t
:ensure t :ensure t
:defer t :defer t
:config :config
(setq chatgpt-shell-openai-key custom-chatgpt-my-key)) (setq gptel-model "gpt-4o-mini")
(use-package dall-e-shell (setq gptel-api-key custom-chatgpt-my-key))
(use-package org-ai
:straight t :straight t
:ensure t :ensure t
:defer t :commands (org-ai-mode
org-ai-global-mode)
:init
(add-hook 'org-mode-hook #'org-ai-mode) ; enable org-ai in org-mode
(org-ai-global-mode) ; installs global keybindings on C-c M-a
:config :config
(setq dall-e-shell-openai-key custom-chatgpt-my-key)) (setq org-ai-default-chat-model "gpt-4") ; if you are on the gpt-4 beta:
(org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets
(provide 'init-chatgpt) (provide 'init-chatgpt)
;;; init-chatgpt.el ends here ;;; init-chatgpt.el ends here

View File

@ -5,5 +5,9 @@
:ensure t) :ensure t)
;; :hook (prog-mode . copilot-mode)) ;; :hook (prog-mode . copilot-mode))
(use-package copilot-chat
:straight (:host github :repo "chep/copilot-chat.el" :files ("*.el"))
:after (request org markdown-mode shell-maker))
(provide 'init-copilot) (provide 'init-copilot)
;;; init-copilot.el ends here ;;; init-copilot.el ends here

View File

@ -123,5 +123,12 @@
:ensure t :ensure t
:hook (after-init . global-so-long-mode)) :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) (provide 'init-edit)
;;; init-edit.el ends here. ;;; init-edit.el ends here.

View File

@ -48,6 +48,9 @@
(symbol-overlay-mode 1))) (symbol-overlay-mode 1)))
(advice-add #'deactivate-mark :after #'turn-on-symbol-overlay)) (advice-add #'deactivate-mark :after #'turn-on-symbol-overlay))
(define-key symbol-overlay-map (kbd "h") nil) (define-key symbol-overlay-map (kbd "h") nil)
(define-key symbol-overlay-map (kbd "d") nil)
(define-key symbol-overlay-map (kbd "c") nil)
(define-key symbol-overlay-map (kbd "y") nil)
(define-key symbol-overlay-map (kbd "g") 'symbol-overlay-map-help)) (define-key symbol-overlay-map (kbd "g") 'symbol-overlay-map-help))
;; Colorize color names in buffers ;; Colorize color names in buffers

View File

@ -4,7 +4,7 @@
(require 'init-custom) (require 'init-custom)
(use-package org (use-package org
:ensure nil ; built-in :straight (:type built-in)
:custom-face (org-ellipsis ((t (:foreground unspecified)))) :custom-face (org-ellipsis ((t (:foreground unspecified))))
:pretty-hydra :pretty-hydra
;; See `org-structure-template-alist' ;; See `org-structure-template-alist'
@ -156,6 +156,7 @@ prepended to the element after the #+HEADER: tag."
(python . t) (python . t)
(ruby . t) (ruby . t)
(C . t) (C . t)
(dot . t)
(shell . t)) (shell . t))
"Alist of org ob languages.") "Alist of org ob languages.")
;;(unless ON-WINDOWS ;;(unless ON-WINDOWS
@ -238,6 +239,17 @@ prepended to the element after the #+HEADER: tag."
:config :config
(setq org-journal-dir (expand-file-name "journal/" org-directory)) (setq org-journal-dir (expand-file-name "journal/" org-directory))
(setq org-journal-file-type 'weekly)) (setq org-journal-file-type 'weekly))
(use-package org-noter
:straight t
:ensure t
:defer t
:config
(setq org-noter-always-create-frame nil
org-noter-hide-other nil
org-noter-notes-search-path '("~/org/notes")
org-noter-separate-notes-from-heading t
org-noter-highlight-selected-text t)
(org-noter-enable-org-roam-integration))
(use-package org-modern (use-package org-modern
:straight t :straight t
@ -246,15 +258,24 @@ prepended to the element after the #+HEADER: tag."
:hook ((org-mode . org-modern-mode) :hook ((org-mode . org-modern-mode)
(org-agenda-finalize . org-modern-agenda)) (org-agenda-finalize . org-modern-agenda))
:config :config
(setq org-modern-table nil)) (setq org-modern-table nil)
(setq org-modern-todo-faces
(quote (("TODO" :background "#E6DA73" :foreground "#666666")
("PROJ" :background "#50B7D9" :foreground "#666666")
("STRT" :background "#A1DC2D" :foreground "#666666")
("WAIT" :background "#9E54FD" :foreground "#666666")
("HOLD" :background "#9E54FD" :foreground "#666666")
("IDEA" :background "#FF7F00" :foreground "#666666")
("DONE" :background "#C7C7C7" :foreground "#666666")
("KILL" :background "#C7C7C7" :foreground "#666666")))))
(use-package valign ;; (use-package valign
:straight t ;; :straight t
:ensure t ;; :ensure t
:defer t ;; :defer t
:hook (org-mode . valign-mode) ;; :hook (org-mode . valign-mode)
:custom ;; :custom
(valign-fancy-bar t)) ;; (valign-fancy-bar t))
;; Auto-toggle Org LaTeX fragments ;; Auto-toggle Org LaTeX fragments
@ -293,23 +314,25 @@ prepended to the element after the #+HEADER: tag."
(use-package org-contrib ;; to use org-screenshot-take (use-package org-contrib ;; to use org-screenshot-take
:straight t :straight t
:ensure t :ensure t
:defer t
:defer t) :defer t)
(use-package org-attach-screenshot (use-package org-attach-screenshot
:straight t :straight t
:ensure t :ensure t
:defer t
:defer t) :defer t)
(use-package org-download (use-package org-download
:after org
:straight t :straight t
:ensure t :ensure t
:defer t :demand t
:defer t) :init
(setq org-download-image-dir "./images")
(setq org-download-heading-lvl nil)
:config
(org-download-enable))
(use-package ob-latex-as-png (use-package ob-latex-as-png
:straight t :straight t
:ensure t :ensure t
:defer t :defer t)
:ensure t)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Org roam ; ;; Org roam ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View File

@ -11,31 +11,32 @@
(org-mode . olivetti-mode)) (org-mode . olivetti-mode))
:init (setq olivetti-body-width 0.62)) :init (setq olivetti-body-width 0.62))
(use-package pdf-tools (unless ON-WINDOWS
:straight t (use-package pdf-tools
:ensure t :straight t
:defer t :ensure t
:defines pdf-annot-activate-created-annotations :defer t
:hook ((pdf-tools-enabled . pdf-view-auto-slice-minor-mode) :defines pdf-annot-activate-created-annotations
(pdf-tools-enabled . pdf-isearch-minor-mode) :hook ((pdf-tools-enabled . pdf-view-auto-slice-minor-mode)
(pdf-tools-enabled . pdf-view-themed-minor-mode)) (pdf-tools-enabled . pdf-isearch-minor-mode))
:mode ("\\.[pP][dD][fF]\\'" . pdf-view-mode) ;;(pdf-tools-enabled . pdf-view-themed-minor-mode))
:magic ("%PDF" . pdf-view-mode) :mode ("\\.[pP][dD][fF]\\'" . pdf-view-mode)
:bind (:map pdf-view-mode-map :magic ("%PDF" . pdf-view-mode)
("C-s" . isearch-forward)) :bind (:map pdf-view-mode-map
:init ("C-s" . isearch-forward))
(pdf-tools-install) :init
:config (pdf-tools-install)
(setq-default pdf-view-display-size 'fit-page) :config
(setq-default pdf-view-resize-factor 1.1) ;; zoom in/out setting (setq-default pdf-view-display-size 'fit-page)
(defun my/pdf-view-open-in-zathura () (setq-default pdf-view-resize-factor 1.1) ;; zoom in/out setting
(interactive) (defun my/pdf-view-open-in-zathura ()
(save-window-excursion (interactive)
(let ((current-file (buffer-file-name)) (save-window-excursion
(current-page (number-to-string (pdf-view-current-page)))) (let ((current-file (buffer-file-name))
(async-shell-command (current-page (number-to-string (pdf-view-current-page))))
(format "zathura -P %s \"%s\"" current-page current-file)))) (async-shell-command
(message "Sent to zathura"))) (format "zathura -P %s \"%s\"" current-page current-file))))
(message "Sent to zathura"))))
;; Recover last viewed position ;; Recover last viewed position
(use-package pdf-view-restore (use-package pdf-view-restore

View File

@ -27,9 +27,7 @@
:straight t :straight t
:ensure t :ensure t
:init :init
(if (display-graphic-p) (load-theme custom-theme-sel t)
(load-theme custom-theme-sel t)
(load-theme 'doom-gruvbox t))
:config :config
(doom-themes-visual-bell-config)) (doom-themes-visual-bell-config))
(use-package doom-modeline (use-package doom-modeline

View File

@ -81,7 +81,10 @@
:straight t :straight t
:ensure t :ensure t
:defer t :defer t
:bind (("C-." . embark-act)) :bind (("C-," . embark-act)
:map minibuffer-local-map
("C-c C-c" . embark-collect)
("C-c C-e" . embark-export))
:config :config
(with-eval-after-load 'embark-consult (with-eval-after-load 'embark-consult
(add-hook 'embark-collect-mode-hook #'consult-preview-at-point-mode)) (add-hook 'embark-collect-mode-hook #'consult-preview-at-point-mode))

View File

@ -4,27 +4,93 @@ end
set fish_greeting set fish_greeting
set VETHER_IP $(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2) # Format man pages
export DISPLAY=$VETHER_IP:10.0 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 # emacs
alias emupgrade="~/.emacs.d/bin/doom upgrade"
alias emsync="~/.emacs.d/bin/doom sync"
alias emd="emacs --daemon" alias emd="emacs --daemon"
alias emdk="emacsclient --eval '(kill-emacs)'" alias emdk="emacsclient --eval '(kill-emacs)'"
alias em="emacsclient -c -a 'emacs'" alias em="emacsclient -c -a 'emacs'"
alias emt="emacsclient -c -a 'emacs -nw'" 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 #neovim to vi
alias vi=nvim alias vi=nvim
alias vimdiff="nvim -d" alias vimdiff="nvim -d"
#alias cat=bat #alias cat=bat
#pacman unlock
alias paruunlock="sudo rm /var/lib/pacman/db.lck"
#grub update #grub update
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg" 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 #gpg for future uses
#verify signature for isos #verify signature for isos
#alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify" #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 gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
#alias fix-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 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" #figlet -w 100 "$hostname"
export PYTHONSTARTUP=/home/jaeus/scripts/my_imports.py export PYTHONSTARTUP=/home/jaeus/scripts/my_imports.py
starship init fish | source starship init fish | source
cat ~/.cache/wal/sequences &
#atuin init fish | source

View File

@ -21,9 +21,9 @@ return {
{ {
'morhetz/gruvbox', 'morhetz/gruvbox',
config = function() config = function()
-- vim.g.gruvbox_contrast_dark='soft' vim.g.gruvbox_contrast_dark='soft'
-- vim.cmd("set background=dark") vim.cmd("set background=dark")
-- vim.cmd.colorscheme "gruvbox" vim.cmd.colorscheme "gruvbox"
end end
}, },
{ {
@ -48,7 +48,7 @@ return {
{ {
"tomasr/molokai", "tomasr/molokai",
config = function() config = function()
vim.cmd.colorscheme "molokai" -- vim.cmd.colorscheme "molokai"
end end
}, },
} }

View File

@ -2,10 +2,13 @@
super+Return super+Return
alacritty alacritty
super+shift+Return
~/scripts/scpad
super+shift+p
~/scripts/pythonpad
#Apps and programs #Apps and programs
super+e super+e
emacs --debug-init emacsclient -c -a 'emacs'
#emacsclient -c -a 'emacs'
super+b super+b
qutebrowser qutebrowser
super+f super+f
@ -29,146 +32,36 @@ super+s
super+shift+s super+shift+s
scrot -s -e 'xclip -selection clipboard -t image/png -i $f' scrot -s -e 'xclip -selection clipboard -t image/png -i $f'
super+shift+e super+shift+e
rofi drun,run,filebrowser -show rofi -show drun
alt+Tab alt+Tab
rofi -show window rofi -show window
##rofi things
##Launch apps
#super+shift+e
# ~/.bscripts/rofi.sh drun
#
##Window switcher
#alt+Tab
# ~/.bscripts/rofi.sh window
#
##Configuration launcher
#super+shift+s
# ~/.bscripts/rofi.sh config
#
##Resolution switcher
##control+shift+p
# #bash -c "~/.bscripts/rofi.sh resolution"
#
##Screenshot
#Print
# ~/.bscripts/ss.sh
##Delayed screenshot
#super+Print
# sleep 3 && ~/.bscripts/ss.sh
#
##Color picker
#control+alt+c
# colorpicker --short --one-shot | xclip -selection "clipboard"
#
##Suspend the pc
#super+o
# ~/.bscripts/lock.sh
#
##Osu stuff
#control+alt+o
# xsetwacom --set "HUION 420 Pen stylus" Area 1000 0 5000 3700
#shift+control+o
# xsetwacom set "HUION 420 Pen stylus" ResetArea
##super+x
## ~/.osuthings/surfdirect.sh raise
##super+z
## ~/.osuthings/surfdirect.sh lower
#
##Window and workspace shenanigans
#super+c
# wmctrl -c `xdotool getwindowfocus` -i
#alt+F4
# xdotool getwindowfocus windowclose
#control+period
# ~/.bscripts/wpm_reports.sh move +1
#control+comma
# ~/.bscripts/wpm_reports.sh move -1
#control+alt+period
# ~/.bscripts/wpm_reports.sh select +1
#control+alt+comma
# ~/.bscripts/wpm_reports.sh select -1
#super+{1,2,3,4,5}
# ~/.bscripts/wpm_reports.sh jump {0,1,2,3,4}
#
##Weeb
#control+alt+b
# ~/.mangaread
#
##Display stuff
#super+control+p
# xrandr --output HDMI1 --auto --left-of eDP1
#super+shift+p
# xrandr -s 0
#
## Toggle picom ## Toggle picom
super+p super+p
if (pgrep -c picom); then; killall picom; else; picom; fi if (pgrep -c picom); then; killall picom; else; picom; fi
super+w super+w
~/scripts/random_wallpaper.sh ~/scripts/random_wallpaper.sh
##Keyboard layouts # reset window manager & SXHKD
#super+space
# ~/.config/eww/mybar/scripts/kb_layouts cycle es us
#
##Media controls
#alt+period
# ~/.bscripts/volume.sh up #&& pkill -RTMIN+2 i3blocks
#alt+comma
# ~/.bscripts/volume.sh down #&& pkill -RTMIN+2 i3blocks
#alt+m
# ~/.bscripts/volume.sh mute
#XF86AudioRaiseVolume
# ~/.bscripts/volume.sh up #&& pkill -RTMIN+2 i3blocks
#XF86AudioLowerVolume
# ~/.bscripts/volume.sh down#&& pkill -RTMIN+2 i3blocks
#XF86AudioMute
# ~/.bscripts/volume.sh mute #&& pkill -RTMIN+2 i3blocks
#alt+shift+period
# ~/.bscripts/brightness.sh up
#alt+shift+comma
# ~/.bscripts/brightness.sh down
#Pause
# playerctl play-pause
#XF86AudioPlay
# playerctl play-pause
#XF86AudioPause
# playerctl play-pause
#XF86AudioNext
# playerctl next
#XF86AudioPrev
# playerctl previous
#
##Open-close eww
#control+alt+e
# ~/.config/eww/dashboard/launch_dashboard
#super+m
# ~/.config/eww/mybar/scripts/popup_music
#
##bspwm stuff
#super+s
# bspc desktop focused --layout next && polybar-msg hook layout 1
#super+shift+q
# ~/.bscripts/rofi.sh outopts
#XF86PowerOff
# ~/.bscripts/rofi.sh outopts
super+shift+r super+shift+r
bspc wm -r bspc wm -r
#control+alt+space
# ~/.bscripts/toggle_float.sh
#super+shift+{k,j,h,l}
# play -v 0.4 ~/Documents/Sounds/tile.wav& ~/.bscripts/bsmove.sh {north,south,west,east} # lock screen
#super+{k,j,h,l} super+shift+l
# ~/.bscripts/bselect.sh {north,south,west,east} i3lock-fancy
#
#super+alt+l # resize
# bspc node focused -z right 15 0 super+alt+l
#super+alt+h bspc node focused -z right 15 0
# bspc node focused -z left -15 0 super+alt+h
#super+alt+k bspc node focused -z right -15 0
# bspc node focused -z top 0 -15 super+alt+k
#super+alt+j bspc node focused -z bottom 0 -15
# bspc node focused -z bottom 0 15 super+alt+j
bspc node focused -z bottom 0 15
super + shift + f super + shift + f
bspc node focused -t "~floating" bspc node focused -t "~floating"
super + {_,shift +} + {h,l} super + {_,shift +} + {h,l}
@ -179,10 +72,6 @@ super + j
if (bspc query -N -n focused.fullscreen); then; bspc query -N -n .local.window.hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; bspc node next.leaf.local -f -t fullscreen; bspc query -N -n .local.window.!hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; else; bspc node -f south; fi if (bspc query -N -n focused.fullscreen); then; bspc query -N -n .local.window.hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; bspc node next.leaf.local -f -t fullscreen; bspc query -N -n .local.window.!hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; else; bspc node -f south; fi
super + k super + k
if (bspc query -N -n focused.fullscreen); then; bspc query -N -n .local.window.hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; bspc node prev.leaf.local -f -t fullscreen; bspc query -N -n .local.window.!hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; else; bspc node -f north; fi if (bspc query -N -n focused.fullscreen); then; bspc query -N -n .local.window.hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; bspc node prev.leaf.local -f -t fullscreen; bspc query -N -n .local.window.!hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; else; bspc node -f north; fi
#super + {_,shift + }n
# bspc node -f {next,prev}.local super + {t,shift + t,s,f}
#super + {t,shift + t,s,f}
# bspc node -t {\~tiled,\~pseudo_tiled, \~floating,\~fullscreen}
super+space super+space
if (bspc query -N -n focused.fullscreen); then; bspc node -f -t tiled; polybar-msg cmd show; bspc query -N -n .local.window.hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; else; bspc node -f -t fullscreen; polybar-msg cmd hide; bspc query -N -n .local.window.!hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; fi if (bspc query -N -n focused.fullscreen); then; bspc node -f -t tiled; polybar-msg cmd show; bspc query -N -n .local.window.hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; else; bspc node -f -t fullscreen; polybar-msg cmd hide; bspc query -N -n .local.window.!hidden.!focused | xargs -I\{\} bspc node \{\} -g hidden; fi

View File

@ -6,3 +6,11 @@
defaultBranch = master defaultBranch = master
[core] [core]
editor = vim editor = vim
[protocol "file"]
allow = always
[commit]
gpgsign = false
[tag]
gpgsign = false
[gpg]
format = openpgp

11
.gitignore vendored
View File

@ -1,17 +1,8 @@
.ssh/* .ssh/*
!.ssh/config !.ssh/config
/.emacs.rational.d/backups/
/.emacs.rational.d/var/
/.emacs.rational.d/undo/
/.config/htop/ /.config/htop/
/.config/qutebrowser/ /.config/qutebrowser/
/.config/tmux/ /.config/tmux/
/.emacs.vanilla/var/
/.emacs.vanilla/straight/
/.emacs.vanilla/elpa/
/.emacs.vanilla/.org-generic-id-locations
/.emacs.df/var/
/.emacs.vanilla/emacs.el
/.config/blender/ /.config/blender/
/.config/configstore/ /.config/configstore/
/.config/dconf/ /.config/dconf/
@ -23,7 +14,5 @@
/.config/pulse/ /.config/pulse/
/.config/tmuxinator/ /.config/tmuxinator/
/.config/vimb/ /.config/vimb/
/.emacs.df/.org-id-locations
/.emacs.df/bookmarks
/.config/Code - OSS/ /.config/Code - OSS/
/.config/Electron/ /.config/Electron/

37
.minttyrc Normal file
View File

@ -0,0 +1,37 @@
# Dracula
ForegroundColour=248,248,242
BackgroundColour=40,42,54
Black=0,0,0
BoldBlack=104,104,104
Red=255,85,85
BoldRed=255,110,103
Green=80,250,123
BoldGreen=90,247,142
Yellow=241,250,140
BoldYellow=244,249,157
Blue=202,169,250
BoldBlue=202,169,250
Magenta=255,121,198
BoldMagenta=255,146,208
Cyan=139,233,253
BoldCyan=154,237,254
White=191,191,191
BoldWhite=230,230,230
Font=ComicShanns Nerd Font
FontHeight=12
Term=xterm-256color
Locale=ko_KR
Charset=UTF-8
FontSmoothing=default
AllowBlinking=no
BoldAsFont=no
CursorType=block
CursorBlinks=yes
BellTaskbar=no
BellType=0
BellFlash=no
FontWeight=400
FontIsBold=no
Transparency=medium

8
.zshrc
View File

@ -46,6 +46,12 @@ if [[ $JUPCID == "WSL" ]];then
fi fi
# python env # python env
export PYTHONSTARTUP=~/scripts/my_imports.py export PYTHONSTARTUPSCRIPT=~/scripts/my_imports.py
eval "$(starship init zsh)" eval "$(starship init zsh)"
# pokemon-colorscripts --no-title -s -r
. "$HOME/.atuin/bin/env"
eval "$(atuin init zsh)"

View 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

View File

@ -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

21
scripts/install_fonts.ps1 Normal file
View File

@ -0,0 +1,21 @@
pushd c:\tools
$a = "FiraCode","ComicShannsMono","Mononoki"
foreach($i in $a){
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*$i.zip" | cut -d : -f 2,3 | tr -d """" | wget -qi -
}
$files = Get-ChildItem .\*.zip
mkdir Fonts
foreach($file in $files){
unzip -o $file -d .\Fonts
}
cp Fonts\*.ttf c:\windows\fonts
cp Fonts\*.otf c:\windows\fonts
popd

18
scripts/pythonpad Executable file
View 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

View File

@ -0,0 +1,3 @@
#!/bin/bash
yay -S python2-bin

18
scripts/scpad Executable file
View 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

View File

@ -0,0 +1,6 @@
$a = "FiraCode","ComicShannsMono","Mononoki"
foreach($i in $a){
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*$i.zip" | cut -d : -f 2,3 | tr -d """" | wget -qi -
}

3
scripts/vivado_installlibs.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
yay -S ncurses5-compat-libs libxcrypt-compat libpng12 lib32-libpng12 gtk3 inetutils xorg-xlsclients cpio