mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-17 09:13:32 +09:00
Compare commits
33 Commits
e28bea766c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1bb836dee1 | |||
| 218ca4bbd7 | |||
| a6759eff18 | |||
| 023a6d0c5b | |||
| aaee6aef92 | |||
| b2b4dd33a5 | |||
| fc4538ac6e | |||
| 92c63e4949 | |||
| 45830fad57 | |||
| 7a7e38806d | |||
| f8d47693c9 | |||
| 8d34b0f472 | |||
| 8a0e52ab03 | |||
| e559352d85 | |||
| e335f8e40c | |||
| baea7cf95e | |||
| 631b54fbcd | |||
| 7bc66f159d | |||
| e8418bd7af | |||
| 24f816edd9 | |||
| 8e17f130e7 | |||
| e363c90761 | |||
| 5ebf4d23bb | |||
| b6dc73188c | |||
| 5a98c1cb31 | |||
| b1128126f4 | |||
| c8633e1d37 | |||
| 5866ff1364 | |||
| 6cdb9c5b8f | |||
| 533a13971d | |||
| ed95c3a26a | |||
| cefeb45dce | |||
| d10e8aa916 |
@ -22,6 +22,8 @@ killall nm-applet && nm-applet &
|
||||
killall volumeicon && volumeicon &
|
||||
#killall conky
|
||||
#sleep 3 && conky -c ~/.config/conky/conkyrc
|
||||
emacsclient --eval '(kill-emacs)'
|
||||
emacs --daemon
|
||||
|
||||
~/scripts/random_wallpaper.sh
|
||||
|
||||
@ -66,15 +68,10 @@ bspc config focused_private_border_color "$color1"
|
||||
bspc config active_private_border_color "$color1"
|
||||
bspc config normal_private_border_color "$color1"
|
||||
|
||||
bspc rule -a \* state=tiled
|
||||
# Load session
|
||||
# shellcheck source=/dev/null
|
||||
#. "$BSPWM_CONFIG/restore.cfg"
|
||||
#if [ -e "$BSPWM_STATE" ] ; then
|
||||
# bspc wm --load-state "$BSPWM_STATE"
|
||||
# bspc wm --adopt-orphans
|
||||
# rm "$BSPWM_STATE"
|
||||
#fi
|
||||
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
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
|
||||
(defun custom-setup-fonts ()
|
||||
"setup fonts..."
|
||||
(when (display-graphic-p)
|
||||
;; default font
|
||||
(cl-loop for font in '("FiraCode Nerd Font Mono" "Jetbrains Mono"
|
||||
"Source Code Pro" "DejaVu Sans Mono")
|
||||
@ -33,14 +32,25 @@
|
||||
when (font-installed-p font)
|
||||
return (progn
|
||||
(setq face-font-rescale-alist `((,font . 1.00)))
|
||||
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font))))))
|
||||
(custom-setup-fonts)
|
||||
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font)))))
|
||||
(when (display-graphic-p)
|
||||
(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
|
||||
(setq custom-theme-sel 'doom-one)
|
||||
;; default transparency (85 . 85) or (100 . 100)
|
||||
(set-frame-parameter (selected-frame) 'alpha '(85 . 85))
|
||||
|
||||
;; Org setup
|
||||
(setq custom-org-directory "~/org"
|
||||
|
||||
@ -7,6 +7,17 @@
|
||||
(setq gptel-model "gpt-4o-mini")
|
||||
(setq gptel-api-key custom-chatgpt-my-key))
|
||||
|
||||
(use-package org-ai
|
||||
:straight t
|
||||
:ensure 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
|
||||
(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)
|
||||
;;; init-chatgpt.el ends here
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
:ensure t)
|
||||
;; :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)
|
||||
;;; init-copilot.el ends here
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -48,6 +48,9 @@
|
||||
(symbol-overlay-mode 1)))
|
||||
(advice-add #'deactivate-mark :after #'turn-on-symbol-overlay))
|
||||
(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))
|
||||
|
||||
;; Colorize color names in buffers
|
||||
|
||||
@ -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'
|
||||
@ -156,6 +156,7 @@ prepended to the element after the #+HEADER: tag."
|
||||
(python . t)
|
||||
(ruby . t)
|
||||
(C . t)
|
||||
(dot . t)
|
||||
(shell . t))
|
||||
"Alist of org ob languages.")
|
||||
;;(unless ON-WINDOWS
|
||||
@ -238,6 +239,17 @@ prepended to the element after the #+HEADER: tag."
|
||||
:config
|
||||
(setq org-journal-dir (expand-file-name "journal/" org-directory))
|
||||
(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
|
||||
:straight t
|
||||
@ -257,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
|
||||
@ -302,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 ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
@ -11,14 +11,15 @@
|
||||
(org-mode . olivetti-mode))
|
||||
:init (setq olivetti-body-width 0.62))
|
||||
|
||||
(unless ON-WINDOWS
|
||||
(use-package pdf-tools
|
||||
:straight t
|
||||
:ensure t
|
||||
:defer t
|
||||
:defines pdf-annot-activate-created-annotations
|
||||
:hook ((pdf-tools-enabled . pdf-view-auto-slice-minor-mode)
|
||||
(pdf-tools-enabled . pdf-isearch-minor-mode)
|
||||
(pdf-tools-enabled . pdf-view-themed-minor-mode))
|
||||
(pdf-tools-enabled . pdf-isearch-minor-mode))
|
||||
;;(pdf-tools-enabled . pdf-view-themed-minor-mode))
|
||||
:mode ("\\.[pP][dD][fF]\\'" . pdf-view-mode)
|
||||
:magic ("%PDF" . pdf-view-mode)
|
||||
:bind (:map pdf-view-mode-map
|
||||
@ -35,7 +36,7 @@
|
||||
(current-page (number-to-string (pdf-view-current-page))))
|
||||
(async-shell-command
|
||||
(format "zathura -P %s \"%s\"" current-page current-file))))
|
||||
(message "Sent to zathura")))
|
||||
(message "Sent to zathura"))))
|
||||
|
||||
;; Recover last viewed position
|
||||
(use-package pdf-view-restore
|
||||
|
||||
@ -27,9 +27,7 @@
|
||||
:straight t
|
||||
:ensure t
|
||||
:init
|
||||
(if (display-graphic-p)
|
||||
(load-theme custom-theme-sel t)
|
||||
(load-theme 'doom-gruvbox t))
|
||||
:config
|
||||
(doom-themes-visual-bell-config))
|
||||
(use-package doom-modeline
|
||||
|
||||
@ -81,7 +81,10 @@
|
||||
:straight t
|
||||
:ensure 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
|
||||
(with-eval-after-load 'embark-consult
|
||||
(add-hook 'embark-collect-mode-hook #'consult-preview-at-point-mode))
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
xrandr --output HDMI-1 --primary --mode 2560x1440 --rotate normal
|
||||
export AAA="aaaa"
|
||||
@ -1,137 +0,0 @@
|
||||
// _ ___ ___ _
|
||||
// | | / __)_ / __|_)
|
||||
// | | ____| |__| |_ _ _ _ ____ ____ ___ ____ | |__ _ ____ ____ ___ ____
|
||||
// | |/ _ ) __) _) | | | \ / ___) _ \| _ \| __) |/ _ | / ___) _ \| _ \
|
||||
// | ( (/ /| | | |_| | | | | | | ( (__| |_| | | | | | | ( ( | |_| | | |_| | | | |
|
||||
// |_|\____)_| \___)____|_|_|_| \____)___/|_| |_|_| |_|\_|| (_)_| \___/|_| |_|
|
||||
// A WindowManager for Adventurers (____/
|
||||
// For info about configuration please visit https://github.com/leftwm/leftwm/wiki
|
||||
|
||||
// For defining the window rules check the class with this command xprop | grep 'CLASS'
|
||||
|
||||
|
||||
#![enable(implicit_some)]
|
||||
(
|
||||
modkey: "Mod4",
|
||||
mousekey: "Mod4",
|
||||
workspaces: [],
|
||||
tags: [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9",
|
||||
],
|
||||
max_window_width: None,
|
||||
layouts: [
|
||||
MainAndVertStack,
|
||||
LeftWiderRightStack,
|
||||
MainAndHorizontalStack,
|
||||
CenterMainBalanced,
|
||||
GridHorizontal,
|
||||
/* MainAndDeck, */
|
||||
/* EvenHorizontal, */
|
||||
/* EvenVertical, */
|
||||
/* Fibonacci, */
|
||||
/* LeftMain, */
|
||||
/* CenterMain, */
|
||||
/* CenterMainFluid, */
|
||||
/* Monocle, */
|
||||
/* RightWiderLeftStack, */
|
||||
],
|
||||
layout_mode: Workspace,
|
||||
insert_behavior: Bottom,
|
||||
scratchpad: [
|
||||
(name: "Alacritty", value: "alacritty", x: 400, y: 300, height: 400, width: 1200),
|
||||
],
|
||||
window_rules: [
|
||||
( window_class: "Navigator", spawn_on_tag: 1 ),
|
||||
( window_class: "Mailspring", spawn_on_tag: 8 ),
|
||||
( window_title: "Qv2ray", spawn_on_tag: 9 ),
|
||||
( window_class: "Zotero", spawn_on_tag: 3 ),
|
||||
( window_class: "frog", spawn_floating: true ),
|
||||
( window_class: "krita", spawn_on_tag: 5 ),
|
||||
( window_class: "Blender", spawn_on_tag: 5 ),
|
||||
( window_class: "Inkscape", spawn_on_tag: 5 ),
|
||||
( window_class: "resolve", spawn_on_tag: 6 ),
|
||||
( window_class: "libreoffice", spawn_on_tag: 4 ),
|
||||
( window_class: "easyeffects", spawn_on_tag: 6 ),
|
||||
( window_class: "gnome-calculator", spawn_floating: true ),
|
||||
|
||||
],
|
||||
disable_current_tag_swap: false,
|
||||
disable_tile_drag: false,
|
||||
disable_window_snap: true,
|
||||
focus_behaviour: Sloppy,
|
||||
focus_new_windows: true,
|
||||
single_window_border: true,
|
||||
sloppy_mouse_follows_focus: true,
|
||||
keybind: [
|
||||
( command: Execute, value: "~/.config/leftwm/scripts/brightness_up.sh", modifier: [], key: "XF86XK_MonBrightnessUp" ),
|
||||
( command: Execute, value: "~/.config/leftwm/scripts/brightness_down.sh", modifier: [], key: "XF86XK_MonBrightnessDown" ),
|
||||
( command: Execute, value: "amixer -q set Master 5%+", modifier: [], key: "XF86XK_AudioRaiseVolume" ),
|
||||
( command: Execute, value: "amixer -q set Master 5%-", modifier: [], key: "XF86XK_AudioLowerVolume" ),
|
||||
( command: Execute, value: "amixer set Master toggle", modifier: [], key: "XF86XK_AudioMute" ),
|
||||
( command: Execute, value: "import -window root ~/Pictures/$(date '+%Y%m%d-%H%M%S').png", modifier: [], key: "Print" ),
|
||||
(command: Execute, value: "rofi -show drun", modifier: ["modkey"], key: "p"),
|
||||
(command: Execute, value: "rofi -show run", modifier: ["modkey"], key: "e"),
|
||||
(command: Execute, value: "rofi -show ssh", modifier: ["modkey"], key: "s"),
|
||||
(command: Execute, value: "rofi -show", modifier: ["modkey"], key: "Tab"),
|
||||
(command: Execute, value: "alacritty", modifier: ["modkey", "Shift"], key: "Return"),
|
||||
(command: CloseWindow, value: "", modifier: ["modkey", "Shift"], key: "q"),
|
||||
(command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "r"),
|
||||
(command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"),
|
||||
(command: Execute, value: "slock", modifier: ["modkey", "Control"], key: "l"),
|
||||
(command: MoveToLastWorkspace, value: "", modifier: ["modkey", "Shift"], key: "w"),
|
||||
(command: SwapTags, value: "", modifier: ["modkey"], key: "w"),
|
||||
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "k"),
|
||||
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "j"),
|
||||
(command: MoveWindowTop, value: "", modifier: ["modkey"], key: "Return"),
|
||||
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "k"),
|
||||
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "j"),
|
||||
(command: NextLayout, value: "", modifier: ["modkey", "Control"], key: "k"),
|
||||
(command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "j"),
|
||||
(command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "l"),
|
||||
(command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "h"),
|
||||
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "Up"),
|
||||
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "Down"),
|
||||
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "Up"),
|
||||
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "Down"),
|
||||
(command: NextLayout, value: "", modifier: ["modkey", "Control"], key: "Up"),
|
||||
(command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "Down"),
|
||||
(command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "Right"),
|
||||
(command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "Left"),
|
||||
(command: ToggleFloating, modifier: ["modkey", "Control"], key: "f"),
|
||||
(command: TileToFloating, modifier: ["modkey", "Shift"], key: "f"),
|
||||
(command: FloatingToTile, modifier: ["modkey", "Shift"], key: "t"),
|
||||
(command: GotoTag, value: "1", modifier: ["modkey"], key: "1"),
|
||||
(command: GotoTag, value: "2", modifier: ["modkey"], key: "2"),
|
||||
(command: GotoTag, value: "3", modifier: ["modkey"], key: "3"),
|
||||
(command: GotoTag, value: "4", modifier: ["modkey"], key: "4"),
|
||||
(command: GotoTag, value: "5", modifier: ["modkey"], key: "5"),
|
||||
(command: GotoTag, value: "6", modifier: ["modkey"], key: "6"),
|
||||
(command: GotoTag, value: "7", modifier: ["modkey"], key: "7"),
|
||||
(command: GotoTag, value: "8", modifier: ["modkey"], key: "8"),
|
||||
(command: GotoTag, value: "9", modifier: ["modkey"], key: "9"),
|
||||
(command: MoveToTag, value: "1", modifier: ["modkey", "Shift"], key: "1"),
|
||||
(command: MoveToTag, value: "2", modifier: ["modkey", "Shift"], key: "2"),
|
||||
(command: MoveToTag, value: "3", modifier: ["modkey", "Shift"], key: "3"),
|
||||
(command: MoveToTag, value: "4", modifier: ["modkey", "Shift"], key: "4"),
|
||||
(command: MoveToTag, value: "5", modifier: ["modkey", "Shift"], key: "5"),
|
||||
(command: MoveToTag, value: "6", modifier: ["modkey", "Shift"], key: "6"),
|
||||
(command: MoveToTag, value: "7", modifier: ["modkey", "Shift"], key: "7"),
|
||||
(command: MoveToTag, value: "8", modifier: ["modkey", "Shift"], key: "8"),
|
||||
(command: MoveToTag, value: "9", modifier: ["modkey", "Shift"], key: "9"),
|
||||
(command: FocusPreviousTag, modifier: ["Control", "Alt"], key: "Left"),
|
||||
(command: FocusNextTag, modifier: ["Control", "Alt"], key: "Right"),
|
||||
(command: FocusPreviousTag, modifier: ["Control", "Alt"], key: "h"),
|
||||
(command: FocusNextTag, modifier: ["Control", "Alt"], key: "l"),
|
||||
(command: ToggleFullScreen, modifier: ["modkey"], key: "f"),
|
||||
(command: ToggleScratchPad, value: "Alacritty", modifier: ["modkey", "Shift"], key: "p"),
|
||||
],
|
||||
state_path: None,
|
||||
)
|
||||
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
brightness=$(cat /sys/class/backlight/intel_backlight/brightness)
|
||||
new_brightness=$(($brightness - 200))
|
||||
|
||||
if [[ $new_brightness -gt 0 ]]; then
|
||||
echo $new_brightness > /sys/class/backlight/intel_backlight/brightness
|
||||
fi
|
||||
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
brightness=$(cat /sys/class/backlight/intel_backlight/brightness)
|
||||
max_brightness=$(cat /sys/class/backlight/intel_backlight/max_brightness)
|
||||
new_brightness=$(($brightness + 200))
|
||||
|
||||
if [[ $new_brightness -lt $max_brightness ]]; then
|
||||
echo $new_brightness > /sys/class/backlight/intel_backlight/brightness
|
||||
fi
|
||||
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
leftwm-command "SendWorkspaceToTag $1 $2"
|
||||
@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
|
||||
#set background
|
||||
if [ -x "$(command -v feh)" ]; then
|
||||
feh --bg-scale $SCRIPTPATH/down.jpg
|
||||
fi
|
||||
|
||||
leftwm-command "UnloadTheme"
|
||||
|
||||
pkill picom
|
||||
pkill polybar
|
||||
pkill flameshot
|
||||
|
||||
kill $(ps aux | grep "layout.sh" | grep -v grep | awk '{print $2}')
|
||||
@ -1,408 +0,0 @@
|
||||
;==========================================================
|
||||
;
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/jaagr/polybar
|
||||
;
|
||||
; The README contains a lot of information
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
background = #1a1b26
|
||||
foreground = #c0caf5
|
||||
background-alt = #a9b1d6
|
||||
foreground-alt = #8e94d0
|
||||
primary = #ffb52a
|
||||
secondary = #e60053
|
||||
alert = #bd2c40
|
||||
|
||||
|
||||
[bar/mainbar0]
|
||||
inherit = bar/barbase
|
||||
modules-left = workspace0
|
||||
[module/workspace0]
|
||||
type = custom/script
|
||||
height = 20
|
||||
exec = leftwm-state -w 0 -t $SCRIPTPATH/template.liquid
|
||||
tail = true
|
||||
|
||||
[bar/mainbar1]
|
||||
inherit = bar/barbase
|
||||
modules-left = workspace1
|
||||
[module/workspace1]
|
||||
type = custom/script
|
||||
exec = leftwm-state -w 1 -t $SCRIPTPATH/template.liquid
|
||||
tail = true
|
||||
|
||||
[bar/mainbar2]
|
||||
inherit = bar/barbase
|
||||
modules-left = workspace2
|
||||
[module/workspace2]
|
||||
type = custom/script
|
||||
exec = leftwm-state -w 2 -t $SCRIPTPATH/template.liquid
|
||||
tail = true
|
||||
|
||||
[bar/mainbar3]
|
||||
inherit = bar/barbase
|
||||
modules-left = workspace3
|
||||
[module/workspace3]
|
||||
type = custom/script
|
||||
exec = leftwm-state -w 3 -t $SCRIPTPATH/template.liquid
|
||||
tail = true
|
||||
|
||||
|
||||
[bar/barbase]
|
||||
width = ${env:width}
|
||||
offset-x = ${env:offsetx}
|
||||
monitor = ${env:monitor}
|
||||
height = 27
|
||||
fixed-center = false
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
border-size = 0
|
||||
border-color = #000000
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
font-0 = JetBrainsMono Nerd Font Mono:pixelsize=12;1
|
||||
modules-center =
|
||||
modules-right = filesystem xbacklight pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
[module/ewmh]
|
||||
type = internal/xworkspaces
|
||||
label-active = " %icon% %name% "
|
||||
label-active-foreground = ${colors.foreground-alt}
|
||||
label-active-background = ${colors.background-alt}
|
||||
label-active-underline = ${colors.primary}
|
||||
label-occupied = " %icon% %name% "
|
||||
label-occupied-underline = ${colors.secondary}
|
||||
label-urgent = " %icon% %name% "
|
||||
label-urgent-foreground = ${colors.foreground}
|
||||
label-urgent-background = ${colors.background}
|
||||
label-urgent-underline = ${colors.alert}
|
||||
label-empty = " %icon% %name% "
|
||||
label-empty-foreground = ${colors.foreground}
|
||||
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:30:...%
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-prefix-underline = ${colors.secondary}
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.secondary}
|
||||
|
||||
label-indicator-padding = 0
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline= ${colors.primary}
|
||||
label-focused-padding = 2
|
||||
|
||||
label-occupied = %index%
|
||||
label-occupied-padding = 2
|
||||
|
||||
label-urgent = %index%!
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %index%
|
||||
label-empty-foreground = ${colors.foreground-alt}
|
||||
label-empty-padding = 2
|
||||
|
||||
; Separator in between workspaces
|
||||
; label-separator = |
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
index-sort = true
|
||||
wrapping-scroll = false
|
||||
|
||||
; Only show workspaces on the same output as the bar
|
||||
;pin-workspaces = true
|
||||
|
||||
label-mode-padding = 2
|
||||
label-mode-foreground = #000
|
||||
label-mode-background = ${colors.primary}
|
||||
|
||||
; focused = Active workspace on focused monitor
|
||||
label-focused = %index%
|
||||
label-focused-background = ${module/bspwm.label-focused-background}
|
||||
label-focused-underline = ${module/bspwm.label-focused-underline}
|
||||
label-focused-padding = ${module/bspwm.label-focused-padding}
|
||||
|
||||
; unfocused = Inactive workspace on any monitor
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
||||
|
||||
; visible = Active workspace on unfocused monitor
|
||||
label-visible = %index%
|
||||
label-visible-background = ${self.label-focused-background}
|
||||
label-visible-underline = ${self.label-focused-underline}
|
||||
label-visible-padding = ${self.label-focused-padding}
|
||||
|
||||
; urgent = Workspace with urgency hint set
|
||||
label-urgent = %index%
|
||||
label-urgent-background = ${module/bspwm.label-urgent-background}
|
||||
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
||||
|
||||
; Separator in between workspaces
|
||||
; label-separator = |
|
||||
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
||||
|
||||
icon-prev =
|
||||
icon-stop =
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-next =
|
||||
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
|
||||
format = <label> <bar>
|
||||
label = BL
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-indicator-foreground = #fff
|
||||
bar-indicator-font = 2
|
||||
bar-fill = ─
|
||||
bar-fill-font = 2
|
||||
bar-fill-foreground = #9f78e1
|
||||
bar-empty = ─
|
||||
bar-empty-font = 2
|
||||
bar-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/backlight-acpi]
|
||||
inherit = module/xbacklight
|
||||
type = internal/backlight
|
||||
card = intel_backlight
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = ""
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage:2%%
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #4bffdc
|
||||
label = %percentage_used%%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface-type = wireless
|
||||
interval = 3.0
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
format-connected-underline = #9f78e1
|
||||
label-connected = %essid%
|
||||
format-disconnected =
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 = 直
|
||||
ramp-signal-3 = 直
|
||||
ramp-signal-4 =
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface-type = wired
|
||||
interval = 3.0
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = %local_ip%
|
||||
format-disconnected =
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 5
|
||||
date = "%Y-%m-%d"
|
||||
date-alt = "%A, %B %d, %Y"
|
||||
time = "%H:%M"
|
||||
time-alt = "%H:%M:%S"
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #0a6cf5
|
||||
label = %date% %time%
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = VOL %percentage%%
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
label-muted = muted
|
||||
label-muted-foreground = #666
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/alsa]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = VOL
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = AC
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
format-discharging = <animation-discharging> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
animation-discharging-0 =
|
||||
animation-discharging-1 =
|
||||
animation-discharging-2 =
|
||||
animation-discharging-foreground = ${colors.foreground-alt}
|
||||
animation-discharging-framerate = 750
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp> <label>
|
||||
format-underline = #f50a4d
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature-c%
|
||||
label-warn = %temperature-c%
|
||||
label-warn-foreground = ${colors.secondary}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = true
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
label-open =
|
||||
label-open-foreground = ${colors.secondary}
|
||||
label-close = ﰸ
|
||||
label-close-foreground = ${colors.secondary}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
|
||||
menu-0-0 =
|
||||
menu-0-0-exec = menu-open-1
|
||||
menu-0-1 =
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
menu-1-0 = cancel
|
||||
menu-1-0-exec = menu-open-0
|
||||
menu-1-1 = reboot
|
||||
menu-1-1-exec = sudo reboot
|
||||
|
||||
menu-2-0 = power off
|
||||
menu-2-0-exec = sudo poweroff
|
||||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
@ -1,3 +0,0 @@
|
||||
{% for workspace in workspaces %}
|
||||
{{workspace.w}} {{workspace.x}} {{workspace.y}}
|
||||
{% endfor %}
|
||||
@ -1,26 +0,0 @@
|
||||
{% for tag in workspace.tags %}
|
||||
{% if tag.mine %}
|
||||
%{A1:$SCRIPTPATH/change_to_tag {{workspace.index}} {{tag.index}}:}
|
||||
%{F#000000}%{B#FFB52A} {{tag.name}} %{B-}%{F-}
|
||||
%{A}
|
||||
{% elsif tag.urgent %}
|
||||
%{A1:$SCRIPTPATH/change_to_tag {{workspace.index}} {{tag.index}}:}
|
||||
%{B#FF0000}%{F#000000} {{tag.name}} %{F-}%{B-}
|
||||
%{A}
|
||||
{% elsif tag.visible %}
|
||||
%{A1:$SCRIPTPATH/change_to_tag {{workspace.index}} {{tag.index}}:}
|
||||
%{F#000000}%{B#FFFFFF} {{tag.name}} %{B-}%{F-}
|
||||
%{A}
|
||||
{% elsif tag.busy %}
|
||||
%{A1:$SCRIPTPATH/change_to_tag {{workspace.index}} {{tag.index}}:}
|
||||
%{F#FFB52A} {{tag.name}} %{F-}
|
||||
%{A}
|
||||
{% else %}
|
||||
%{A1:$SCRIPTPATH/change_to_tag {{workspace.index}} {{tag.index}}:}
|
||||
%{F#FFFFFF} {{tag.name}} %{F-}
|
||||
%{A}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
%{c}
|
||||
{{ window_title }}
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
(border_width: Some(1),
|
||||
margin: Some(4),
|
||||
default_border_color: Some("#222222"),
|
||||
floating_border_color: Some("#005500"),
|
||||
focused_border_color: Some("#FFB53A"),
|
||||
)
|
||||
@ -1,65 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
##################################################
|
||||
# DISPLAY
|
||||
##################################################
|
||||
# if [[ $JUPCID == "HOME-DESKTOP" ]]; then
|
||||
# xrandr --output DP-4 --primary --mode 2560x1440 --rotate normal --output HDMI-0 --rotate right --right-of DP-4
|
||||
# elif [[ $JUPCID == "HWDEV" ]]; then
|
||||
# xrandr --output HDMI-1 --primary --mode 2560x1440 --rotate normal
|
||||
# fi
|
||||
|
||||
wmname LG3D
|
||||
export _JAVA_AWT_WM_NONREPARETING=1
|
||||
|
||||
##################################################
|
||||
# THEME & POLYBAR
|
||||
##################################################
|
||||
export SCRIPTPATH="$( cd "$(dirname "$0")" || exit ; pwd -P )"
|
||||
|
||||
#down the last running theme
|
||||
if [ -f "/tmp/leftwm-theme-down" ]; then
|
||||
/tmp/leftwm-theme-down
|
||||
rm /tmp/leftwm-theme-down
|
||||
fi
|
||||
ln -s "${SCRIPTPATH}"/down /tmp/leftwm-theme-down
|
||||
|
||||
#boot a polybar for each monitor
|
||||
index=0
|
||||
monitors="$(polybar -m | sed s/:.*//)"
|
||||
leftwm-state -q -n -t "$SCRIPTPATH"/sizes.liquid | sed -r '/^\s*$/d' | while read -r width x y
|
||||
do
|
||||
let indextemp=index+1
|
||||
monitor=$(sed "$indextemp!d" <<<"$monitors")
|
||||
barname="mainbar$index"
|
||||
monitor=$monitor offset=$x width=$width polybar -c "$SCRIPTPATH"/polybar.config $barname &> /dev/null &
|
||||
let index=indextemp
|
||||
done
|
||||
|
||||
#boot picom if it exists
|
||||
if [ -x "$(command -v picom -b)" ]; then
|
||||
picom &> /dev/null &
|
||||
fi
|
||||
|
||||
# set the theme.ron config
|
||||
leftwm-command "LoadTheme $SCRIPTPATH/theme.ron"
|
||||
|
||||
# set the background
|
||||
if [ -x "$(command -v feh)" ]; then
|
||||
~/scripts/random_wallpaper.sh
|
||||
fi
|
||||
|
||||
# start flameshot if exists
|
||||
if [ -x "$(command -v flameshot)" ]; then
|
||||
flameshot &> /dev/null &
|
||||
fi
|
||||
|
||||
|
||||
##################################################
|
||||
# STARTUP APPLICATION
|
||||
##################################################
|
||||
killall nm-applet && nm-applet &
|
||||
killall volumeicon && volumeicon &
|
||||
|
||||
echo "done"
|
||||
@ -21,9 +21,9 @@ return {
|
||||
{
|
||||
'morhetz/gruvbox',
|
||||
config = function()
|
||||
-- vim.g.gruvbox_contrast_dark='soft'
|
||||
-- vim.cmd("set background=dark")
|
||||
-- vim.cmd.colorscheme "gruvbox"
|
||||
vim.g.gruvbox_contrast_dark='soft'
|
||||
vim.cmd("set background=dark")
|
||||
vim.cmd.colorscheme "gruvbox"
|
||||
end
|
||||
},
|
||||
{
|
||||
@ -48,7 +48,7 @@ return {
|
||||
{
|
||||
"tomasr/molokai",
|
||||
config = function()
|
||||
vim.cmd.colorscheme "molokai"
|
||||
-- vim.cmd.colorscheme "molokai"
|
||||
end
|
||||
},
|
||||
}
|
||||
|
||||
@ -2,10 +2,13 @@
|
||||
|
||||
super+Return
|
||||
alacritty
|
||||
super+shift+Return
|
||||
~/scripts/scpad
|
||||
super+shift+p
|
||||
~/scripts/pythonpad
|
||||
#Apps and programs
|
||||
super+e
|
||||
emacs --debug-init
|
||||
#emacsclient -c -a 'emacs'
|
||||
emacsclient -c -a 'emacs'
|
||||
super+b
|
||||
qutebrowser
|
||||
super+f
|
||||
@ -29,146 +32,36 @@ super+s
|
||||
super+shift+s
|
||||
scrot -s -e 'xclip -selection clipboard -t image/png -i $f'
|
||||
super+shift+e
|
||||
rofi drun,run,filebrowser -show
|
||||
rofi -show drun
|
||||
alt+Tab
|
||||
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
|
||||
super+p
|
||||
if (pgrep -c picom); then; killall picom; else; picom; fi
|
||||
super+w
|
||||
~/scripts/random_wallpaper.sh
|
||||
|
||||
##Keyboard layouts
|
||||
#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
|
||||
# reset window manager & SXHKD
|
||||
super+shift+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}
|
||||
#super+{k,j,h,l}
|
||||
# ~/.bscripts/bselect.sh {north,south,west,east}
|
||||
#
|
||||
#super+alt+l
|
||||
# bspc node focused -z right 15 0
|
||||
#super+alt+h
|
||||
# bspc node focused -z left -15 0
|
||||
#super+alt+k
|
||||
# bspc node focused -z top 0 -15
|
||||
#super+alt+j
|
||||
# bspc node focused -z bottom 0 15
|
||||
|
||||
|
||||
|
||||
# lock screen
|
||||
super+shift+l
|
||||
i3lock-fancy
|
||||
|
||||
# resize
|
||||
super+alt+l
|
||||
bspc node focused -z right 15 0
|
||||
super+alt+h
|
||||
bspc node focused -z right -15 0
|
||||
super+alt+k
|
||||
bspc node focused -z bottom 0 -15
|
||||
super+alt+j
|
||||
bspc node focused -z bottom 0 15
|
||||
|
||||
super + shift + f
|
||||
bspc node focused -t "~floating"
|
||||
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
|
||||
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
|
||||
#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
|
||||
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
|
||||
|
||||
@ -6,3 +6,11 @@
|
||||
defaultBranch = master
|
||||
[core]
|
||||
editor = vim
|
||||
[protocol "file"]
|
||||
allow = always
|
||||
[commit]
|
||||
gpgsign = false
|
||||
[tag]
|
||||
gpgsign = false
|
||||
[gpg]
|
||||
format = openpgp
|
||||
|
||||
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,17 +1,8 @@
|
||||
.ssh/*
|
||||
!.ssh/config
|
||||
/.emacs.rational.d/backups/
|
||||
/.emacs.rational.d/var/
|
||||
/.emacs.rational.d/undo/
|
||||
/.config/htop/
|
||||
/.config/qutebrowser/
|
||||
/.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/configstore/
|
||||
/.config/dconf/
|
||||
@ -23,7 +14,5 @@
|
||||
/.config/pulse/
|
||||
/.config/tmuxinator/
|
||||
/.config/vimb/
|
||||
/.emacs.df/.org-id-locations
|
||||
/.emacs.df/bookmarks
|
||||
/.config/Code - OSS/
|
||||
/.config/Electron/
|
||||
|
||||
37
.minttyrc
Normal file
37
.minttyrc
Normal 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
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
|
||||
21
scripts/install_fonts.ps1
Normal file
21
scripts/install_fonts.ps1
Normal 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
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
6
scripts/update_trilium.ps1
Normal file
6
scripts/update_trilium.ps1
Normal 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
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