Compare commits

..

1 Commits

18 changed files with 80 additions and 230 deletions

View File

@ -5,7 +5,7 @@ style = "Block"
unfocused_hollow = false unfocused_hollow = false
[font] [font]
size = 7.0 size = 11.0
[font.bold] [font.bold]
family = "JetBrainsMono Nerd Font" family = "JetBrainsMono Nerd Font"

View File

@ -1,23 +1,4 @@
[colors.bright] import = [
black = "0x747c84" "~/.config/alacritty/catppucin-mocha.toml",
blue = "0xae95c7" "~/.config/alacritty/config.toml"
cyan = "0x95aec7" ]
green = "0x95c7ae"
magenta = "0xc795ae"
red = "0xc7ae95"
white = "0xf3f4f5"
yellow = "0xaec795"
[colors.normal]
black = "0x1c2023"
blue = "0xae95c7"
cyan = "0x95aec7"
green = "0x95c7ae"
magenta = "0xc795ae"
red = "0xc7ae95"
white = "0xc7ccd1"
yellow = "0xaec795"
[colors.primary]
background = "0x141322"
foreground = "0xf09db9"

View File

@ -1,27 +0,0 @@
colors:
# Default colors
primary:
background: '0x1c2023'
foreground: '0xe07c9f'
# Normal colors
normal:
black: '0x1c2023'
red: '0xc7ae95'
green: '0x95c7ae'
yellow: '0xaec795'
blue: '0xae95c7'
magenta: '0xc795ae'
cyan: '0x95aec7'
white: '0xc7ccd1'
# Bright colors
bright:
black: '0x747c84'
red: '0xc7ae95'
green: '0x95c7ae'
yellow: '0xaec795'
blue: '0xae95c7'
magenta: '0xc795ae'
cyan: '0x95aec7'
white: '0xf3f4f5'

View File

@ -1,17 +1,17 @@
[global] [global]
frame_color = "#f09db9" frame_color = "#89b4fa"
separator_color= frame separator_color= frame
[urgency_low] [urgency_low]
background = "#141322" background = "#1e1e2e"
foreground = "#f09db9" foreground = "#cdd6f4"
[urgency_normal] [urgency_normal]
background = "#141322" background = "#1e1e2e"
foreground = "#f09db9" foreground = "#cdd6f4"
[urgency_critical] [urgency_critical]
background = "#141322" background = "#1e1e2e"
foreground = "#f09db9" foreground = "#cdd6f4"
frame_color = "#c7ae95" frame_color = "#fab387"

View File

@ -3,7 +3,7 @@ gtk-application-prefer-dark-theme=1
gtk-cursor-theme-name=Oxygen 19 Pink Blossom gtk-cursor-theme-name=Oxygen 19 Pink Blossom
gtk-key-theme-name=Emacs gtk-key-theme-name=Emacs
gtk-theme-name=Marwaita-s-Dark-Pink gtk-theme-name=Adwaita
gtk-icon-theme-name=Adwaita gtk-icon-theme-name=Adwaita
gtk-font-name=Cantarell 11 gtk-font-name=Cantarell 11
gtk-cursor-theme-size=0 gtk-cursor-theme-size=0
@ -16,4 +16,3 @@ gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1 gtk-xft-antialias=1
gtk-xft-hinting=1 gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb

View File

@ -23,6 +23,5 @@
"nvim-treesitter": { "branch": "master", "commit": "245da4eb2e52d14b034bbbedec9671e997ede764" }, "nvim-treesitter": { "branch": "master", "commit": "245da4eb2e52d14b034bbbedec9671e997ede764" },
"nvim-web-devicons": { "branch": "master", "commit": "b77921fdc44833c994fdb389d658ccbce5490c16" }, "nvim-web-devicons": { "branch": "master", "commit": "b77921fdc44833c994fdb389d658ccbce5490c16" },
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"telescope.nvim": { "branch": "master", "commit": "349660c0d35da06459ee8589af77de2086b652ce" }, "telescope.nvim": { "branch": "master", "commit": "349660c0d35da06459ee8589af77de2086b652ce" }
"transparent.nvim": { "branch": "main", "commit": "8a2749a2fa74f97fe6557f61b89ac7fd873f3c21" }
} }

View File

@ -159,14 +159,6 @@ local plugins = {
"rktjmp/fwatch.nvim", "rktjmp/fwatch.nvim",
lazy = true, lazy = true,
}, },
-- transparent
{
"xiyaowong/transparent.nvim",
config = function()
vim.cmd("TransparentEnable")
end
},
} }
require("lazy").setup(plugins, require "plugins.configs.lazy") require("lazy").setup(plugins, require "plugins.configs.lazy")

View File

@ -19,8 +19,7 @@ set $wallpapers_path $HOME/Wallpapers
### Output configuration ### Output configuration
# #
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) output * bg `find $wallpapers_path/$(cat $HOME/theme) -type f | grep -v "gitkeep" | shuf -n 1` fill
output * bg `find $wallpapers_path/$([ -z "$DARK_MODE" ] && echo "light" || echo "dark") -type f | grep -v "gitkeep" | shuf -n 1` fill
# VNC External Monitor # VNC External Monitor
output HEADLESS-1 { output HEADLESS-1 {
@ -62,7 +61,7 @@ exec swayidle -w \
# #
bindsym $mod+Shift+n exec swaylock-corrupter bindsym $mod+Shift+n exec swaylock-corrupter
# Start a terminal # Start a terminal
bindsym $mod+Return exec $term bindsym $mod+Shift+Return exec $term
# Kill focused window # Kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@ -231,3 +230,4 @@ exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec "systemctl --user import-environment {,WAYLAND_}DISPLAY SWAYSOCK; systemctl --user start sway-session.target" exec "systemctl --user import-environment {,WAYLAND_}DISPLAY SWAYSOCK; systemctl --user start sway-session.target"
exec swaymsg -t subscribe '["shutdown"]' && systemctl --user stop sway-session.target exec swaymsg -t subscribe '["shutdown"]' && systemctl --user stop sway-session.target
exec emacs-keys-everywhere

View File

@ -30,8 +30,7 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(custom-safe-themes )
'("bdbb37a5b43210930749d2bebe2ce092dd4abe0597249b883eef00a9814e0013" default)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.

View File

@ -63,7 +63,6 @@
(do-frame-config) (do-frame-config)
(add-hook 'after-make-frame-functions 'disable-scroll-bars)) (add-hook 'after-make-frame-functions 'disable-scroll-bars))
#+END_SRC #+END_SRC
#+END_SRC
** System path (macos) ** System path (macos)
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package exec-path-from-shell (use-package exec-path-from-shell
@ -84,37 +83,38 @@
#+END_SRC #+END_SRC
** Font ** Font
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(let ((font "JetBrains Mono-10:style=Regular")) (let ((font "JetBrains Mono-12:style=Regular"))
(set-face-attribute 'default nil :font font) (set-face-attribute 'default nil :font font)
(set-frame-font font nil t)) (set-frame-font font nil t))
#+END_SRC #+END_SRC
** Catppuccin and theme notify watcher
** Doom-modeline && Doom-themes
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package doom-themes (use-package catppuccin-theme
:ensure t :ensure t)
:config (require 'filenotify)
;; Global settings (defaults)
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
doom-themes-enable-italic t) ; if nil, italics is universally disabled
(load-theme 'doom-laserwave t)
;; Enable flashing mode-line on errors (setq *theme-file* "~/theme")
(doom-themes-visual-bell-config) (defun set-system-theme ()
;; Enable custom neotree theme (all-the-icons must be installed!) (let ((theme
(doom-themes-neotree-config) (with-temp-buffer
;; or for treemacs users (insert-file-contents *theme-file*)
(setq doom-themes-treemacs-theme "doom-atom") ; use "doom-colors" for less minimal icon theme (buffer-string)))
(doom-themes-treemacs-config) (current-flavor catppuccin-flavor))
;; Corrects (and improves) org-mode's native fontification. (setq catppuccin-flavor (if (string-prefix-p "dark" theme) 'mocha 'latte))
(doom-themes-org-config)) (if (not (eq catppuccin-flavor current-flavor))
(catppuccin-reload))))
(set-system-theme)
(file-notify-add-watch *theme-file* '(change)
#'(lambda (event) (set-system-theme)))
#+END_SRC
** Doom-modeline
#+BEGIN_SRC emacs-lisp
(use-package doom-modeline (use-package doom-modeline
:ensure t :ensure t
:config :config
(doom-modeline-mode 1)) (doom-modeline-mode 1))
#+END_SRC #+END_SRC
** Icons ** Icons
must run ~(all-the-icons-install-fonts)~ and ~(nerd-fonts-install-fonts)~ must run ~(all-the-icons-install-fonts)~ and ~(nerd-fonts-install-fonts)~
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -233,6 +233,18 @@ must run ~(all-the-icons-install-fonts)~ and ~(nerd-fonts-install-fonts)~
(use-package auto-complete :ensure t) (use-package auto-complete :ensure t)
(ac-config-default) (ac-config-default)
#+END_SRC #+END_SRC
*** Copilot
#+BEGIN_SRC emacs-lisp
(use-package copilot
:straight (:host github :repo "copilot-emacs/copilot.el" :files ("dist" "*.el"))
:ensure t
:config
(setq copilot-indent-offset-warning-disable t))
(define-key copilot-completion-map (kbd "C-c c") 'copilot-accept-completion)
(define-key copilot-completion-map (kbd "C-c c") 'copilot-accept-completion)
(add-hook 'prog-mode-hook 'copilot-mode)
#+END_SRC
** Company mode ** Company mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package company (use-package company
@ -254,12 +266,12 @@ must run ~(all-the-icons-install-fonts)~ and ~(nerd-fonts-install-fonts)~
:hook ((python-ts-mode . lsp) ;; pip install python-lsp-server pyls-black pyls-isort pyls-mypy :hook ((python-ts-mode . lsp) ;; pip install python-lsp-server pyls-black pyls-isort pyls-mypy
(elixir-mode . lsp) (elixir-mode . lsp)
(rust-mode . lsp) (rust-mode . lsp)
(go-ts-mode . lsp) (go-ts-mode . lsp)
(java-mode . lsp) (java-mode . lsp)
(php-mode . lsp) (php-mode . lsp)
(c-ts-mode . lsp) (c-mode . lsp)
(typescript-ts-mode . lsp) (typescript-ts-mode . lsp)
(tsx-ts-mode . lsp) (tsx-ts-mode . lsp)
(lsp-mode . lsp-enable-which-key-integration)) (lsp-mode . lsp-enable-which-key-integration))
:config (progn :config (progn
(lsp-register-custom-settings (lsp-register-custom-settings

View File

@ -1,17 +1,27 @@
exec ~/.screenlayout/screenlayout.sh & #!/bin/sh
exec ~/scripts/statusbar.sh &
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources export _JAVA_AWT_WM_NONREPARENTING=1
export SBCL_HOME=/usr/lib/sbcl
export _QWT_TOOLKT=MToolkit
exec ~/.screenlayout/run.sh &
exec wmname compiz &
exec emacs-keys-everywhere &
exec picom -b --vsync --backend glx &
#exec xmodmap ~/.xmodmap &
exec xinput set-prop 10 "Coordinate Transformation Matrix" 1.2 0 0 0 1.2 0 0 0 1.8 &
exec xsetroot -cursor_name left_ptr & exec xsetroot -cursor_name left_ptr &
exec xset s off & exec xset s off &
exec xset b off & exec xset b off &
exec xset -dpms & exec xset -dpms &
exec picom -b & exec feh --bg-fill --randomize ~/Wallpapers &
exec dunst & exec sleep 1s && dunst &
exec feh --bg-center --randomize ~/Wallpapers & exec systemd start --user display.target &
while type dwm >/dev/null; do dwm 2>/tmp/dwm.log && continue || break ; done /usr/local/bin/stumpwm

BIN
Wallpapers/.DS_Store vendored Normal file

Binary file not shown.

0
Wallpapers/.gitkeep Normal file
View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

View File

@ -1,4 +1,3 @@
eval "$(zoxide init --cmd z zsh)" eval "$(zoxide init --cmd z zsh)"
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
@ -7,3 +6,9 @@ fi
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
. /opt/asdf-vm/asdf.sh . /opt/asdf-vm/asdf.sh
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
export PATH=$PATH:/home/lizzy/.pyenv/shims

View File

@ -1,16 +0,0 @@
export PATH=$PATH:/home/lizzy/.cargo/bin
eval "$(zoxide init --cmd z zsh)"
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye > /dev/null
. /opt/asdf-vm/asdf.sh
alias cd="z"
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

View File

@ -1,104 +0,0 @@
#!/bin/sh
usbmon() {
usb1=$(lsblk -la | awk '/sdc1/ { print $1 }')
usb1mounted=$(lsblk -la | awk '/sdc1/ { print $7 }')
if [ "$usb1" ]; then
if [ -z "$usb1mounted" ]; then
echo " |"
else
echo "$usb1 |"
fi
fi
}
battery() {
percentage=$(acpi -b | awk '{ print $4; }' | tr -d "%" | tr -d ",")
state=$(acpi -b | awk '{ print $3; }' | tr -d ",")
if [ $state = "Discharging" ]; then
if [ $percentage -gt 75 ]; then
state=""
elif [ $percentage -gt 50 ]; then
state=""
elif [ $percentage -gt 25 ]; then
state=""
else
state=""
fi
elif [ $state = "Full" ]; then
state=""
elif [ $state = "Charging" ]; then
state=""
fi
echo "$state $percentage %"
}
fsmon() {
ROOTPART=$(df -h | awk '/\/$/ { print $3}')
HOMEPART=$(df -h | awk '/\/home/ { print $3}')
SWAPPART=$(cat /proc/swaps | awk '/\// { print $4 }')
echo "$ROOTPART$HOMEPART$SWAPPART"
}
ram() {
mem=$(free -h | awk '/Mem:/ { print $3 }' | cut -f1 -d 'i')
echo"$mem"
}
cpu() {
read -r cpu a b c previdle rest < /proc/stat
prevtotal=$((a+b+c+previdle))
sleep 0.5
read -r cpu a b c idle rest < /proc/stat
total=$((a+b+c+idle))
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
echo"$cpu"%
}
network() {
conntype=$(ip route | awk '/default/ { print substr($5,1,1) }')
if [ -z "$conntype" ]; then
echo " down"
elif [ "$conntype" = "e" ]; then
echo " up"
elif [ "$conntype" = "w" ]; then
echo " up"
fi
}
volume_pa() {
muted=$(pactl list sinks | awk '/Mute:/ { print $2 }')
vol=$(pactl list sinks | grep Volume: | awk 'FNR == 1 { print $5 }' | cut -f1 -d '%')
if [ "$muted" = "yes" ]; then
echo " muted"
else
if [ "$vol" -ge 65 ]; then
echo "$vol%"
elif [ "$vol" -ge 40 ]; then
echo "$vol%"
elif [ "$vol" -ge 0 ]; then
echo "$vol%"
fi
fi
}
clock() {
dte=$(date +"%D")
time=$(date +"%H:%M")
echo "$dte$time"
}
main() {
while true; do
dwm -s " $(usbmon) $(ram) | $(cpu) | $(battery) | $(network) | $(volume_pa) | $(clock)"
sleep 1
done
}
main