added files

This commit is contained in:
TriMill 2023-03-15 20:28:53 -04:00
parent 2e712bca89
commit 4a52b61657
4 changed files with 200 additions and 5 deletions

View File

@ -46,10 +46,10 @@ exec_always {
} }
# swaymsg -t get_outputs # swaymsg -t get_outputs
output eDP-1 resolution 3840x2400 position 2133,0 #output eDP-1 resolution 3840x2400 position 2133,0
output DP-1 resolution 2560x1440 position 0,0 scale 1.2 #output DP-1 resolution 2560x1440 position 0,0 scale 1.2
#output eDP-1 resolution 3840x2400 position 1920,0 output eDP-1 resolution 3840x2400 position 1920,0
#output DP-1 resolution 1920x1080 position 0,0 output DP-1 resolution 1920x1080 position 0,0
input "type:keyboard" { input "type:keyboard" {
xkb_layout us xkb_layout us
@ -63,7 +63,7 @@ exec swayidle -w \
before-sleep 'swaylock -f -c 14171d' before-sleep 'swaylock -f -c 14171d'
floating_modifier $mod normal floating_modifier $mod normal
gaps inner 16 gaps inner 12
default_border pixel 2 default_border pixel 2
default_floating_border pixel 2 default_floating_border pixel 2
@ -175,4 +175,10 @@ bar {
swaybar_command waybar swaybar_command waybar
} }
# SwayFX
corner_radius 6
shadows on
shadow_blur_radius 8
shadow_color #14171db0
include /etc/sway/config.d/* include /etc/sway/config.d/*

46
.config/wofi/style.css Normal file
View File

@ -0,0 +1,46 @@
* {
border-radius: 4px;
font-family: monospace;
}
#input {
margin: 2px;
background-color: #14171d;
color: #c7c6c3;
}
#inner-box {
background-color: #14171d;
}
#outer-box {
padding: 2px;
background-color: #4d4754;
}
#scroll {
margin: 2px;
}
#text {
padding: 2px;
color: #c7c6c3;
}
#entry {
border-radius: 0px;
}
#entry:nth-child(even){
background-color: #2c2b3b;
}
#entry:selected {
border-radius: 2px;
background-color: #789ebf;
}
#text:selected {
background: transparent;
color: #14171d;
}

21
.zshenv Executable file
View File

@ -0,0 +1,21 @@
#!/bin/zsh
export PATH="$PATH:$HOME/.local/scripts:$HOME/.local/share/gem/ruby/3.0.0/bin/:$HOME/.cargo/bin"
export QT_QPA_PLATFORM=wayland-egl
export MOZ_ENABLE_WAYLAND=1
export EDITOR=/bin/nvim
export VISUAL=/bin/nvim
export BROWSER=/bin/librewolf
export FILE=/bin/thunar
export PAGER=/bin/less
export GNUPGHOME="$HOME/.config/gnupg"
export CARGO_HOME="$HOME/.local/share/cargo"
export RUSTUP_HOME="$HOME/.local/share/rustup"
export MIX_HOME="$HOME/.local/share/mix"
if [ "$(tty)" = "/dev/tty1" ]; then
exec sway
fi

122
.zshrc Executable file
View File

@ -0,0 +1,122 @@
#!/bin/zsh
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.histfile
setopt extendedglob
bindkey -e
tabs 4
autoload -U compinit
compinit
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "^[[A" up-line-or-beginning-search
bindkey "^[[B" down-line-or-beginning-search
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
autoload -U colors && colors
setopt promptsubst
man() {
env \
LESS_TERMCAP_md=$'\e[1;36m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[1;92m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[1;35m' \
man "$@"
}
[ $NOEXIT ] && alias exit="echo Exiting is disabled"
#
# Plugins
#
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
#
# Prompt
#
function prompt_char {
if [ $UID -eq 0 ]; then echo "#"; else echo "$"; fi
}
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
PROMPT='%(!.%F{9}.%F{10})%n: %F{15}%c%F{12}$(git_prompt_info)%F{12}$(prompt_char)%F{15} '
PROMPT2='%_%F{12}:%F{15} '
ZSH_THEME_GIT_PROMPT_PREFIX="%F{13} ["
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
RPROMPT='[%(?.%F{10}.%F{9})%?%F{15}]'
#
# Aliases
#
alias ..="cd .."
alias ~="cd ~"
# Confirm before copy
alias cp="cp -i"
alias grep=rg
# add color
alias ccat='highlight --out-format=ansi'
# shorten commands
LSARGS='-hN --color=auto --group-directories-first'
alias ls="ls $LSARGS"
alias ll="ls -l $LSARGS"
alias lla="ls -lA $LSARGS"
alias mkd='mkdir -pv'
# shortcuts
alias ..='cd ..'
# pacman tools
alias sp='sudo pacman'
# shorten python
alias py='python'
# restart shell without open/close
alias reloadsh='exec $SHELL'
# print the time in different formats
alias timestamp='date +"%Y-%m-%dT%H.%M.%S"'
# git commands
alias git-pullall="ls | xargs -I{} git -C {} pull"
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# youtube-dl
alias ytdl="youtube-dl -f bestvideo+bestaudio"
alias ytdl-a="youtube-dl --extract-audio --audio-format=mp3"
# ssh tunneling
alias ssht="ssh -D 1080"
alias irc="ssh -t apiaceae tmux attach -t weechat"
alias firefox=librewolf
#
# Todo
#
todomsg=$(todo)
[ "$todomsg" != "" ] && printf "TODO: \n%s\n" "$todomsg"
return 0