Compare commits

..

3 Commits

Author SHA1 Message Date
lucas
655b3150dc fix(laptop): fix method for uploading to abyss 2024-09-06 20:28:27 -03:00
Lucas Barbieri
07093650a6 feat: update configs for kvm 2024-09-06 20:28:27 -03:00
Lucas Barbieri
7eaccc0b36 feat(laptop): update bin locations 2024-09-06 20:28:27 -03:00
8 changed files with 86 additions and 90 deletions

View File

@ -6,9 +6,12 @@ setopt inc_append_history share_history
[[ -s /jbx/.autojump/etc/profile.d/autojump.sh ]] && source /jbx/.autojump/etc/profile.d/autojump.sh [[ -s /jbx/.autojump/etc/profile.d/autojump.sh ]] && source /jbx/.autojump/etc/profile.d/autojump.sh
. ~/docs/polyglot/polyglot.sh . ~/docs/polyglot/polyglot.sh
. ~/.cargo/env
export PATH=$PATH:~/go/bin export PATH=$PATH:~/go/bin
export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
export PATH=$PATH:/jbx/.spicetify export PATH=$PATH:~/.spicetify
export PATH=$PATH:~/.local/share/gem/ruby/3.3.0/bin
alias v=nvim alias v=nvim
alias ls="~/scripts/elash.sh" alias ls="~/scripts/elash.sh"
@ -23,23 +26,52 @@ alias reboot="loginctl reboot"
alias poweroff="loginctl poweroff" alias poweroff="loginctl poweroff"
alias hi="loginctl hibernate" alias hi="loginctl hibernate"
alias lg="lazygit" alias lg="lazygit"
alias g="git"
alias cop="wl-copy"
alias kvm="~/scripts/kvm.sh & disown"
alias eix="apk search"
export BAT_THEME="Solarized (dark)" export BAT_THEME="Solarized (dark)"
export EDITOR=nvim export EDITOR=nvim
export LS_COLORS="$(~/.local/bin/vivid generate solarized-dark)" export LS_COLORS="$(~/.local/bin/vivid generate solarized-dark)"
export TERMINAL=alacritty export TERMINAL=alacritty
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock
autoload -U compinit && compinit -u autoload -U compinit && compinit -u
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
zmodload zsh/complist
autoload -Uz history-search-end
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward
bindkey '^[[1;5D' backward-word bindkey '^[[1;5D' backward-word
bindkey '^[[1;5C' forward-word bindkey '^[[1;5C' forward-word
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#344146" ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#344146"
source ~/docs/zsh-autosuggestions/zsh-autosuggestions.zsh source ~/docs/zsh-autosuggestions/zsh-autosuggestions.zsh
source /jbx/docs/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh source ~/docs/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
source ~/docs/zsh-history-substring-search/zsh-history-substring-search.zsh
pst() {
local file
if [[ -p /dev/stdin ]]; then
file=$(mktemp)
cat > "$file"
elif [[ -n $1 ]]; then
file="$1"
else
echo "Usage: pst [file]"
return 1
fi
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
if [[ -p /dev/stdin ]]; then
rm "$file"
fi
}
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
export XDG_CURRENT_DESKTOP="sway" export XDG_CURRENT_DESKTOP="sway"
dbus-run-session sway sway
fi fi

View File

@ -78,9 +78,10 @@ bindsym $mod+Control+Return move scratchpad
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+Control+s scratchpad show bindsym $mod+Control+s scratchpad show
bindsym $mod+Shift+s exec steam --noverifyfiles bindsym $mod+Shift+s exec flatpak run com.valvesoftware.Steam
bindsym $mod+e exec pcmanfm bindsym $mod+e exec pcmanfm
bindsym Home exec ~/.local/bin/way-print.sh p bindsym Home exec ~/.local/bin/way-print.sh p
bindsym $mod+Home exec ~/.local/bin/print-tmp.sh
bindsym Shift+Home exec ~/.local/bin/way-print.sh s bindsym Shift+Home exec ~/.local/bin/way-print.sh s
bindsym Control+Shift+Home exec ~/.local/bin/way-print.sh t bindsym Control+Shift+Home exec ~/.local/bin/way-print.sh t
bindsym Control+Home exec ~/.local/bin/print-window.sh bindsym Control+Home exec ~/.local/bin/print-window.sh

View File

@ -1,4 +1,5 @@
output { output {
LVDS-1 pos 0 0
} }
default_border pixel 2 default_border pixel 2
@ -11,11 +12,10 @@ no_focus [window_role="pop-up"]
gaps inner 10 gaps inner 10
mouse_warping none mouse_warping none
input "2362:9523:Gaming_Mouse" { input "2:14:ETPS/2_Elantech_Touchpad" {
accel_profile flat accel_profile adaptive
dwt enabled dwt enabled
middle_emulation enabled middle_emulation enabled
pointer_accel 0.5
} }
input "1:1:AT_Translated_Set_2_keyboard" { input "1:1:AT_Translated_Set_2_keyboard" {
@ -24,8 +24,10 @@ input "1:1:AT_Translated_Set_2_keyboard" {
xkb_options ctrl:nocaps xkb_options ctrl:nocaps
} }
input "1356:2508:Wireless_Controller_Touchpad" { input "1241:6185:LogoTech_Gaming_Keyboard" {
map_to_output DISABLED xkb_layout br
xkb_variant abnt2
xkb_options ctrl:nocaps
} }
# vim: ts=2 sts=2 sw=2 ft=swayconfig # vim: ts=2 sts=2 sw=2 ft=swayconfig

View File

@ -1,16 +1,17 @@
set $gnome-schema org.gnome.desktop.interface set $gnome-schema org.gnome.desktop.interface
exec_always { exec_always {
# gsettings set $gnome-schema gtk-theme 'Gruvbox-Dark-BL-LB' gsettings set $gnome-schema gtk-theme 'NumixSolarizedDarkCyan'
# gsettings set $gnome-schema icon-theme 'Nordzy-green-dark' gsettings set $gnome-schema icon-theme 'Numix-Circle'
# gsettings set $gnome-schema cursor-theme 'oreo_white_cursors' gsettings set $gnome-schema cursor-theme 'Simp1e'
gsettings set $gnome-schema font-name 'CartographCF Nerd Font 11' gsettings set $gnome-schema font-name 'Lilex Nerd Font Mono 14'
} }
exec { exec {
waybar & waybar &
autotiling & autotiling &
gammastep -t 4500:3500 -l -23.5475:-46.63611 -b 1.0:0.6 & gammastep -t 4500:3500 -l -23.5475:-46.63611 &
dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway DISPLAY
rm -rf ~/tmp/* rm -rf ~/tmp/*
~/scripts/swww.sh ~/scripts/swww.sh
otd-daemon otd-daemon

View File

@ -7,6 +7,7 @@ for_window [class="Steam"] move to workspace 8
for_window [class="Spotify"] move to workspace 4 for_window [class="Spotify"] move to workspace 4
for_window [class="steam"] move to workspace 8 for_window [class="steam"] move to workspace 8
for_window [class=".*jetbrains.*"] move to workspace 5 for_window [class=".*jetbrains.*"] move to workspace 5
for_window [class="jetbrains-idea"] move to workspace 5
for_window [app_id="lutris"] move to workspace 7 for_window [app_id="lutris"] move to workspace 7
for_window [class="heroic"] move to workspace 7 for_window [class="heroic"] move to workspace 7
for_window [class="explorer.exe"] move to workspace 9 for_window [class="explorer.exe"] move to workspace 9

View File

@ -7,10 +7,10 @@ set-option -sa terminal-overrides ",xterm-kitty:RGB"
set-option -ga terminal-overrides ",xterm-256color:Tc" set-option -ga terminal-overrides ",xterm-256color:Tc"
unbind C-o unbind C-o
bind C-o display-popup -E "~/.cargo/bin/tms" bind C-o display-popup -E "tms"
unbind C-j unbind C-j
bind C-j display-popup -E "~/.cargo/bin/tms switch" bind C-j display-popup -E "tms switch"
unbind % unbind %
bind | split-window -h bind | split-window -h

View File

@ -24,7 +24,8 @@
], ],
"sway/window": { "sway/window": {
"format": "{}" "format": "{}",
"max-length": 30
}, },
"sway/workspaces": { "sway/workspaces": {

View File

@ -1,87 +1,45 @@
# zathurarc-dark # zathurarc-dark
# set notification-error-bg "#073642" # base01 # seem not work set notification-error-bg "#586e75" # base01 # seem not work
# set notification-error-fg "#dc322f" # red
# set notification-warning-bg "#073642" # base01
# set notification-warning-fg "#dc322f" # red
# set notification-bg "#073642" # base01
# set notification-fg "#b58900" # yellow
#
# set completion-group-bg "#002b36" # base03
# set completion-group-fg "#839496" # base0
# set completion-bg "#073642" # base02
# set completion-fg "#93a1a1" # base1
# set completion-highlight-bg "#586e75" # base01
# set completion-highlight-fg "#eee8d5" # base2
#
# # Define the color in index mode
# set index-bg "#073642" # base02
# set index-fg "#93a1a1" # base1
# set index-active-bg "#586e75" # base01
# set index-active-fg "#eee8d5" # base2
#
# set inputbar-bg "#073642" # base01
# set inputbar-fg "#93a1a1" # base2
#
# set statusbar-bg "#073642" # base02
# set statusbar-fg "#93a1a1" # base1
#
# set highlight-color "#657b83" # base00 # hightlight match when search keyword(vim's /)
# set highlight-active-color "#268bd2" # blue
#
# set default-bg "#073642" # base02
# set default-fg "#93a1a1" # base1
# # set render-loading true
# # set render-loading-fg "#073642" # base02
# # set render-loading-bg "#073642" # base02
#
# # Recolor book content's color
# set recolor true
# set recolor-lightcolor "#073642" # base02
# set recolor-darkcolor "#93a1a1" # base1
# # set recolor-keephue true # keep original color
#
# zathurarc-light
set notification-error-bg "#eee8d5" # base2 # seem not work
set notification-error-fg "#dc322f" # red set notification-error-fg "#dc322f" # red
set notification-warning-bg "#eee8d5" # base2 set notification-warning-bg "#586e75" # base01
set notification-warning-fg "#dc322f" # red set notification-warning-fg "#dc322f" # red
set notification-bg "#eee8d5" # base2 set notification-bg "#586e75" # base01
set notification-fg "#268bd2" # blue set notification-fg "#b58900" # yellow
set completion-bg "#fdf6e3" # base3 set completion-group-bg "#002b36" # base03
set completion-fg "#657b83" # base00 set completion-group-fg "#839496" # base0
set completion-group-bg "#eee8d5" # base2 set completion-bg "#073642" # base02
set completion-group-fg "#586e75" # base01 set completion-fg "#93a1a1" # base1
set completion-highlight-bg "#93a1a1" # base1 set completion-highlight-bg "#586e75" # base01
set completion-highlight-fg "#073642" # base02 set completion-highlight-fg "#eee8d5" # base2
# Define the color in index mode # Define the color in index mode
set index-bg "#fdf6e3" # base3 set index-bg "#073642" # base02
set index-fg "#657b83" # base00 set index-fg "#93a1a1" # base1
set index-active-bg "#eee8d5" # base2 set index-active-bg "#586e75" # base01
set index-active-fg "#586e75" # base01 set index-active-fg "#eee8d5" # base2
set inputbar-bg "#93a1a1" # base1 set inputbar-bg "#586e75" # base01
set inputbar-fg "#073642" # base02 set inputbar-fg "#eee8d5" # base2
set statusbar-bg "#fdf6e3" # base3 set statusbar-bg "#073642" # base02
set statusbar-fg "#657b83" # base00 set statusbar-fg "#93a1a1" # base1
set highlight-color "#839496" # base0 # hightlight match when search keyword(vim's /) set highlight-color "#657b83" # base00 # hightlight match when search keyword(vim's /)
set highlight-active-color "#cb4616" # orange set highlight-active-color "#268bd2" # blue
set default-bg "#fdf6e3" # base3 set default-bg "#073642" # base02
set default-fg "#657b83" # base00 set default-fg "#93a1a1" # base1
set render-loading true # set render-loading true
# set render-loading-fg "#fdf6e3" # base3 # set render-loading-fg "#073642" # base02
# set render-loading-bg "#fdf6e3" # base3 # set render-loading-bg "#073642" # base02
# Recolor book content's color # Recolor book content's color
# verbose set recolor true
# verbose set recolor-lightcolor "#073642" # base02
set recolor-lightcolor "#fdf6e3" # base3 set recolor-darkcolor "#93a1a1" # base1
set recolor-darkcolor "#657b83" # base00 # set recolor-keephue true # keep original color
set recolor "true"
# set recolor-keephue true # keep original color # set recolor-keephue true # keep original color
set statusbar-h-padding 0 set statusbar-h-padding 0
set statusbar-v-padding 0 set statusbar-v-padding 0