feat: update configs for kvm

This commit is contained in:
Lucas Barbieri 2024-08-30 12:48:36 -03:00 committed by lucas
parent 7eaccc0b36
commit 07093650a6
5 changed files with 52 additions and 15 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/upload
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