1
0

Compare commits

..

2 Commits

Author SHA1 Message Date
fc87272a43 updated for newest changes 2024-02-28 19:06:49 -07:00
2f4b65e84b made more current 2023-12-18 12:47:55 -07:00
17 changed files with 179 additions and 146 deletions

View File

@@ -2,6 +2,8 @@
set -e set -e
test -n "$DEBUG" && set -x
if test -z "$1"; then if test -z "$1"; then
printf "Usage: %s machine\n" "$0" 1>&2 printf "Usage: %s machine\n" "$0" 1>&2
exit 64 # sysexits.h(3) EX_USAGE exit 64 # sysexits.h(3) EX_USAGE
@@ -18,10 +20,16 @@ esac
for item in "$MACHINE"/config/* for item in "$MACHINE"/config/*
do do
inst_path="$(printf "%s\n" "$item" | sed "s/$MACHINE\/config\///g")" name="$(printf "%s\n" "$item" | sed "s;$MACHINE/config/;;g")"
echo $name
printf "Creating symlink from %s to %s\n" "$PWD/$item" "$XDG_CONFIG_HOME/$inst_path" 1>&2 printf "Creating symlink from %s to %s\n" \
ln -sf "$PWD/$item" "$XDG_CONFIG_HOME/$inst_path" "$PWD/$item" "$XDG_CONFIG_HOME/$name" 1>&2
if test -n "$DEBUG"; then continue; fi
rm "$XDG_CONFIG_HOME/$name" || true
ln -s "$PWD/$item" "$XDG_CONFIG_HOME/$name"
done done
ln -sf "$PWD/$MACHINE/functions" "$HOME/.functions" ln -sf "$PWD/$MACHINE/functions" "$HOME/.functions"

View File

@@ -0,0 +1,22 @@
# -*- conf -*-
# Everforest
[colors]
background=272e33
foreground=d3c6aa
regular0=343f44
regular1=e67e80
regular2=a7c080
regular3=dbbc7f
regular4=7fbbb3
regular5=d699b6
regular6=83c092
regular7=859289
bright0=3d484d
bright1=e67e80
bright2=a7c080
bright3=dbbc7f
bright4=7fbbb3
bright5=d699b6
bright6=83c092
bright7=9da9a0

View File

@@ -0,0 +1,34 @@
dpi-aware=yes
font=Ubuntu Mono:size=22
pad=6x6
[cursor]
blink=yes
style=underline
underline-thickness=3px
[mouse]
hide-when-typing=yes
[scrollback]
indicator-position=none
[colors] # Everforest Dark Hard
background=272e33
foreground=d3c6aa
regular0=343f44
regular1=e67e80
regular2=a7c080
regular3=dbbc7f
regular4=7fbbb3
regular5=d699b6
regular6=83c092
regular7=859289
bright0=3d484d
bright1=e67e80
bright2=a7c080
bright3=dbbc7f
bright4=7fbbb3
bright5=d699b6
bright6=83c092
bright7=9da9a0

View File

@@ -1,7 +1,7 @@
[user] [user]
name = emma name = emma
email = emma@tebibyte.media email = emma@tebibyte.media
signingkey = 6D661C738815E7DD signingkey = 06FA419A1698C270
[init] [init]
defaultBranch = main defaultBranch = main
[core] [core]

View File

@@ -1,70 +0,0 @@
# vim:ft=kitty
## name: Everforest Dark Hard
## author: Sainnhe Park
## license: MIT
## upstream: https://github.com/ewal/kitty-everforest/blob/master/themes/everforest_dark_hard.conf
## blurb: A green based color scheme designed to be warm and soft
foreground #d3c6aa
background #272e33
selection_foreground #9da9a0
selection_background #4c3743
cursor #d3c6aa
cursor_text_color #2e383c
url_color #7fbbb3
active_border_color #a7c080
inactive_border_color #4f5b58
bell_border_color #e69875
visual_bell_color none
wayland_titlebar_color system
macos_titlebar_color system
active_tab_background #272e33
active_tab_foreground #d3c6aa
inactive_tab_background #374145
inactive_tab_foreground #9da9a0
tab_bar_background #2e383c
tab_bar_margin_color none
mark1_foreground #272e33
mark1_background #7fbbb3
mark2_foreground #272e33
mark2_background #d3c6aa
mark3_foreground #272e33
mark3_background #d699b6
#: black
color0 #343f44
color8 #3d484d
#: red
color1 #e67e80
color9 #e67e80
#: green
color2 #a7c080
color10 #a7c080
#: yellow
color3 #dbbc7f
color11 #dbbc7f
#: blue
color4 #7fbbb3
color12 #7fbbb3
#: magenta
color5 #d699b6
color13 #d699b6
#: cyan
color6 #83c092
color14 #83c092
#: white
color7 #859289
color15 #9da9a0

View File

@@ -1,18 +0,0 @@
font_family Ubuntu Mono
bold_font auto
italic_font auto
bold_italic_font auto
cursor_shape underline
cursor_underline_thickness 1
cursor_blink_interval -1
enable_audio_bell no
tab_bar_style separator
window_padding_width 5
# BEGIN_KITTY_THEME
# Everforest Dark Hard
include current-theme.conf
# END_KITTY_THEME

View File

@@ -2,6 +2,7 @@
border=no border=no
osc=no osc=no
save-position-on-quit save-position-on-quit
volume=50
# subs # subs
embeddedfonts=no embeddedfonts=no
@@ -17,7 +18,7 @@ hwdec=auto
profile=gpu-hq profile=gpu-hq
# scale=ewa_lanczossharp # scale=ewa_lanczossharp
# cscale=ewa_lanczossoft # cscale=ewa_lanczossoft
video-sync=display-resample # video-sync=display-resample
linear-downscaling=no linear-downscaling=no
framedrop=no framedrop=no

View File

@@ -6,6 +6,21 @@ set ruler
set colorcolumn=80 set colorcolumn=80
set nowrap set nowrap
set tabstop=2 set tabstop=2
set shiftwidth=2
set noexpandtab
" Override ftplugins so nvim respects noexpandtab
augroup GlobalOverrides
autocmd!
autocmd FileType * setlocal noexpandtab tabstop=2 shiftwidth=2
augroup END
" Run rust-analyzer(1) for singular Rust files
augroup RustOverrides
autocmd!
autocmd FileType rust RustStartStandaloneServerForBuffer
augroup END
call plug#begin('~/.config/nvim/plugged') call plug#begin('~/.config/nvim/plugged')
@@ -14,18 +29,17 @@ Plug 'neovim/nvim-lspconfig'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'lervag/vimtex' Plug 'lervag/vimtex'
Plug 'ap/vim-css-color' Plug 'ap/vim-css-color'
Plug 'rust-lang/rust.vim'
Plug 'kyazdani42/nvim-web-devicons' Plug 'kyazdani42/nvim-web-devicons'
Plug 'simrat39/rust-tools.nvim' Plug 'simrat39/rust-tools.nvim'
Plug 'sheerun/vim-polyglot'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'onsails/lspkind-nvim'
Plug 'editorconfig/editorconfig-vim' Plug 'editorconfig/editorconfig-vim'
Plug 'williamboman/mason.nvim', { 'do': ':MasonUpdate' } Plug 'williamboman/mason.nvim', { 'do': ':MasonUpdate' }
Plug 'williamboman/mason-lspconfig.nvim' Plug 'williamboman/mason-lspconfig.nvim'
Plug 'lukas-reineke/indent-blankline.nvim'
call plug#end() call plug#end()
lua require("ibl").setup()
lua require("mason").setup() lua require("mason").setup()
> >

View File

@@ -38,9 +38,7 @@ CHOST="x86_64-pc-linux-gnu"
#-- Compiler and Linker Flags #-- Compiler and Linker Flags
#CPPFLAGS="" #CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ #CFLAGS=""
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection -fuse-ld=mold"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS="-flto=auto" LTOFLAGS="-flto=auto"

View File

@@ -18,7 +18,7 @@ BottomUp
RemoveMake RemoveMake
SudoLoop = true SudoLoop = true
#UseAsk #UseAsk
#SaveChanges SaveChanges
CombinedUpgrade CombinedUpgrade
CleanAfter CleanAfter
#UpgradeMenu #UpgradeMenu

View File

@@ -30,25 +30,25 @@ bar {
} }
exec /usr/lib/xdg-desktop-portal -r & exec /usr/lib/xdg-desktop-portal -r &
exec /usr/lib/xdg-desktop-portal-kde; exec /usr/lib/xdg-desktop-portal-kde
exec /usr/lib/xdg-desktop-portal-wlr
exec /usr/lib/polkit-kde-authentication-agent-1 exec /usr/lib/polkit-kde-authentication-agent-1
exec wl-paste -t text --watch clipman store exec wl-paste -t text --watch clipman store
exec wl-paste -p -t text --watch clipman store -P --histpath="$XDG_DATA_DIR/clipman-primary.json" exec wl-paste -p -t text --watch clipman store -P --histpath="$XDG_DATA_HOME/clipman-primary.json"
exec pipewire & exec pipewire &
exec libinput-gestures
exec mako exec mako
exec swayflashy exec swayflashy
exec autotiling-rs
# swayidle timeout 30 "makoctl set-mode away" resume "makoctl set-mode default" # swayidle timeout 30 "makoctl set-mode away" resume "makoctl set-mode default"
exec eval (ssh-agent -c) exec eval (ssh-agent -c)
# set wallpaper # set wallpaper
exec wal -i $XDG_PICTURES_DIR/wallpapers/73085922_p0.jpg
exec swaybg -i $XDG_PICTURES_DIR/wallpapers/73085922_p0.jpg exec swaybg -i $XDG_PICTURES_DIR/wallpapers/73085922_p0.jpg
# set pactl to adjust volume in pipewire-pulse # set pactl to adjust volume in pipewire-pulse
@@ -62,10 +62,6 @@ bindsym XF86AudioPause exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioPrev exec playerctl previous
# increase and decrease screen brightness
bindsym XF86MonBrightnessUp exec light -T 1.25
bindsym XF86MonBrightnessDown exec light -T 0.75
# screenshot with grim # screenshot with grim
bindsym $mod+Print mode "screenshot"; exec killall swayflashy bindsym $mod+Print mode "screenshot"; exec killall swayflashy
@@ -104,10 +100,10 @@ bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle bindsym $mod+space focus mode_toggle
# lock screen # lock screen
bindsym --release $mod+escape exec swaylock-blur bindsym --release $mod+escape exec swaylock --screenshots --effect-blur 7x7
# tools # tools
bindsym $mod+t exec kitty bindsym $mod+t exec foot
bindsym $mod+d exec fuzzel bindsym $mod+d exec fuzzel
bindsym $mod+w exec clipman pick --tool=CUSTOM --tool-args="fuzzel -d -w 60" bindsym $mod+w exec clipman pick --tool=CUSTOM --tool-args="fuzzel -d -w 60"
@@ -123,7 +119,6 @@ bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right bindsym $mod+Shift+l move right
# workspaces # workspaces
set $ws1 "1" set $ws1 "1"

View File

@@ -1,5 +1,3 @@
@import "/home/emma/.cache/wal/colors-waybar.css";
/* /*
******************************************** ********************************************
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░* *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*

View File

@@ -1,4 +0,0 @@
gtk_dark=true
show=run
run-always_parse_args=true
term=kitty

View File

@@ -2,16 +2,17 @@
bmv() { bmv() {
if test -z "$1"; then if test -z "$1"; then
printf "Usage: %s [files pattern]...\n" "$0" 1>&2 printf "Usage: %s pattern pattern1 [pattern2]\n" "$0" 1>&2
return 64 # sysexits.h(3) EX_USAGE return 64 # sysexits.h(3) EX_USAGE
fi fi
while test -n "$2"; do for file in $1; do
for file in $1; do newfile="$(printf '%s\n' "$file" | sed "s;$2;$3;g")"
mv "$file" "$(printf "%s" "$file" | sed "s/\$2//g")"
done
shift 2 if [ "$file" != "$newfile" ]
then
mv "$file" "$newfile"
fi
done done
} }
@@ -23,6 +24,16 @@ myip() {
curl icanhazip.com curl icanhazip.com
} }
honse() {
if test -z "$2"; then
printf "Usage: %s season episode\n" "$0"
return 64 # syexits.h(3) EX_USAGE
else
mpv "https://ypdl.gdn/files/YP-1S-$1x$2.mkv"
fi
}
#TODO: Really needs fixed
paclean() { paclean() {
for package in `pacman -Qtq`; do for package in `pacman -Qtq`; do
pacman -Qi "$package" pacman -Qi "$package"
@@ -41,35 +52,33 @@ paclean() {
su -c "pacman -Rns $packages" su -c "pacman -Rns $packages"
} }
sc() { sc() {
if test -z "$1"; then if test -z "$1"; then
printf "Usage: %s URI...\n" "$0" 1>&2 printf "Usage: %s URI\n" "$0" 1>&2
return 64 # sysexits.h(3) EX_USAGE return 64 # sysexits.h(3) EX_USAGE
fi fi
while "$1"; do scdl --original-name --debug -l "$1" >> log 2>&1
scdl --original-name --debug -l "$1" >> log 2>&1
done
} }
up() { # updates everything on the system up() { # updates everything on the system
command -v apk >/dev/null && su -c 'apk update' command -v apk >/dev/null && su -c 'apk update'
command -v cargo-install-update >/dev/null && cargo install-update --all --git command -v cargo-install-update >/dev/null && cargo install-update --all --git
command -v kiss >/dev/null && su -c 'kiss u' && su -c 'kiss U' command -v kiss >/dev/null && su -c 'kiss u' && su -c 'kiss U'
command -v nvim >/dev/null && nvim +PlugUpdate -c x -c x command -v nvim >/dev/null && nvim +PlugUpdate -c x -c x
if command -v paru >/dev/null; then paru if command -v paru >/dev/null; then paru
elif command -v pacman >/dev/null; then su -c 'pacman -Syyu'; fi elif command -v pacman >/dev/null; then su -c 'pacman -Syyu'; fi
command -v rustup >/dev/null && rustup update
CWD="$PWD" CWD="$PWD"
command -v git >/dev/null && \ command -v git >/dev/null && \
for dir in $HOME/.local/src/git/*/*/*/ for dir in $HOME/.local/src/git/*/*/*/
do do
printf '%s\n' "$dir" printf '%s\n' "$dir"
cd "$dir" cd "$dir"
git pull --all git pull --all
done done
cd "$CWD" cd "$CWD"
} }

View File

@@ -2,12 +2,21 @@
## system ## system
BROWSER=firefox; export BROWSER BROWSER=firefox; export BROWSER
CC=cc; export CC
EDITOR=nvim; export EDITOR EDITOR=nvim; export EDITOR
LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH
PAGER=less; export PAGER PAGER=less; export PAGER
PATH="$HOME/.local/bin:$HOME/.local/games:$PATH"; export PATH PATH="$HOME/.local/bin:$HOME/.local/games:$PATH"; export PATH
### compilation
CC=cc; export CC
CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection -fuse-ld=mold"
export CFLAGS
LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH
RUSTFLAGS="-Clink-arg=-fuse-ld=mold -Copt-level=z -Ccodegen-units=1 \
-Cpanic=abort -Clto=y -Cstrip=symbols -Ctarget-cpu=native -Cembed-bitcode=yes"
export RUSTFLAGS
## XDG ## XDG
XDG_CACHE_HOME="$HOME/.var/cache"; export XDG_CACHE_HOME XDG_CACHE_HOME="$HOME/.var/cache"; export XDG_CACHE_HOME
XDG_CONFIG_HOME="$HOME/.local/etc"; export XDG_CONFIG_HOME XDG_CONFIG_HOME="$HOME/.local/etc"; export XDG_CONFIG_HOME
@@ -42,10 +51,15 @@ QT_QPA_PLATFORMTHEME=qt5ct; export QT_QPA_PLATFORMTHEME
GTK_IM_MODULE=ibus; export GTK_IM_MODULE GTK_IM_MODULE=ibus; export GTK_IM_MODULE
QT_IM_MODULE=ibus; export QT_IM_MODULE QT_IM_MODULE=ibus; export QT_IM_MODULE
XMODIFIERS=@im=ibus; export XMODIFIERS XMODIFIERS=@im=ibus; export XMODIFIERS
YTPICK="fuzzel --dmenu -w 80"; export YTPICK
YT_PL_DIR="$XDG_DATA_HOME/yt"; export YT_PL_DIR
PLAYER=mpv; export PLAYER
# aliases # aliases
alias ffmpreg='ffmpeg'
alias tar='bsdtar'
alias vi='ovi'
alias weather="curl 'wttr.in/?0'" alias weather="curl 'wttr.in/?0'"
alias vi="busybox vi"
# zsh configuration settings # zsh configuration settings
case "$SHELL" in case "$SHELL" in

28
noire-carnation/zshenv Normal file
View File

@@ -0,0 +1,28 @@
HISTFILE="$XDG_DATA_HOME/zsh/histfile"
HISTSIZE=999999999
SAVEHIST="$HISTSIZE"
# Key (zshmisc(1)):
#
# '%F{$color}$x%f': Change foreground color of $x to $color
# '%B$x%b': Make $x bold
# '%n': $USER
# '%M': $HOST
# '%1~': $PWD, but shows '~' if at $HOME
# '%(?.#.%?)':
# '%n(x.true.false)' evaluates ternary expression for condition x, where n
# is an integer, by default '0':
# '?': If the last commands exit status was 0, true
# '#': Prints literal '#' to the prompt
# '[%?]': Prints the last exit status with literal brackets surrounding it
ERR='[%f%F{green}%?%f%F{blue}]%f'
ERR_LINE="%(?.#.$ERR)"
LINE1='%F{blue}╭%f %B%F{blue}%n%f@%F{magenta}%M%f%b'
LINE2='%F{blue}│%f %F{green}%B%0~%b%f'
LINE3="%F{blue}╰─$ERR_LINE%f "
PS1="$(printf "%s\n%s\n%s" "$LINE1" "$LINE2" "$LINE3")"; export PS1
GPG_TTY="$(tty)"; export GPG_TTY

View File

@@ -19,4 +19,8 @@ done
bindkey -a 'k' history-substring-search-up bindkey -a 'k' history-substring-search-up
bindkey -a 'j' history-substring-search-down bindkey -a 'j' history-substring-search-down
# aliases
alias weather="curl 'wttr.in/?0'"
alias vi="busybox vi"
alias tar="bsdtar"
alias which="$HOME/.local/bin/which" alias which="$HOME/.local/bin/which"