Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data:
github_user: {{ $github_user }}
maildir: {{ joinPath (printf "%v" .chezmoi.homeDir) $maildir }}
name: {{ $name }}
email: {{ $email }}
email: {{ $gmail_email }}
bitwarden:
i3rs: 1e298379-8595-4282-9506-b02301736669
google_app_key: 4fe4883c-f664-4a86-9d96-b188012ac263
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ dot_weechat/private_logs
__pycache__
dot_config/pgcli/history
/.python-version
poetry.lock
Brewfile.lock.json
6,165 changes: 0 additions & 6,165 deletions Brewfile.lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM archlinux/archlinux:latest

MAINTAINER Ben Mezger <me@benmezger.nl>
LABEL maintainer="Willian de Souza <hello@williandesouza.com>"

# Update system and install base packages
RUN pacman -Syu --noconfirm
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ifeq ($(IS_LINUX),Linux)
$(SUDO) sed -i '/en_US.UTF-8$$/s/^#//g' $(LOCALE_GEN_CONF)
$(SUDO) locale-gen
$(SUDO) /sbin/sysctl kernel.dmesg_restrict=0
$(SUDO) cp etc /etc
$(SUDO) cp -rT etc/ /etc/
echo "kernel.dmesg_restrict=0" | $(SUDO) tee /etc/sysctl.d/99-dmesg.conf
echo -e "pcm.!default {\n type pulse\n}\n\nctl.!default {\n type pulse\n}" | $(SUDO) tee $(ASOUND_CONF)
else
Expand Down Expand Up @@ -105,7 +105,7 @@ install-pyenv:
if [ ! -d "$(HOME)/.pyenv" ]; then \
curl https://pyenv.run | bash; \
export PATH="$(HOME)/.pyenv/bin:$$PATH"; \
for version in 3.10.2 3.8.12 3.9.9 3.11.0; do \
for version in 3.11.0 3.12.4 3.13.0; do \
CFLAGS="-I/usr/include/openssl" LDFLAGS="-L/usr/lib" pyenv install -s $$version; \
done; \
fi
Expand Down Expand Up @@ -146,7 +146,7 @@ fix-permissions:
mkdir -p "$(HOME)/.gnupg"
chown -R "$(USER)" "$(HOME)/.gnupg/"
chmod 700 "$(HOME)/.gnupg"
chmod 755 "$(HOME)/.ssh"
chmod 700 "$(HOME)/.ssh"
find "$(HOME)/.ssh" -type f -name 'id_*' -exec chmod 600 {} +

# ==============================================================================
Expand Down
11 changes: 11 additions & 0 deletions dot_bin/executable_pomodoro
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ case "$1" in
fi
exit 0
;;
restart)
echo '{"paused": false, "last_mode": "OFF"}' > "$STATE_FILE"
notify-send -a "Pomodoro" "Restarted" "State reset. Following schedule..."
exit 0
;;
skip)
current_mode=$(jq -r '.last_mode // "OFF"' "$STATE_FILE")
jq --arg mode "$current_mode" '.last_mode = $mode' "$STATE_FILE" > "$STATE_FILE.tmp" && mv "$STATE_FILE.tmp" "$STATE_FILE"
notify-send -a "Pomodoro" "Skipped" "Advancing to next slot..."
exit 0
;;
esac

# --- Logic ---
Expand Down
12 changes: 4 additions & 8 deletions dot_config/fish/aliases.fish
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@ alias pip-all="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 p
alias lessf="less +F"
alias at="tmux a -t main"
alias cat="bat"
alias bat="cat"
alias network="sudo bandwhich"
alias vhistory="history | peco"
alias speedtest="curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -"
alias shouldideploytoday="curl -s https://shouldideploy.today/api\?tz\=UTC | jq -r '.message'"
alias at="tmux a -t 0"
alias bw-export='export BW_SESSION=$(bw unlock | grep "export BW" | cut -d"=" -f2 | tr -d "\"")'
alias yz="yazi"

alias i3-brightness-1="xrandr --output eDP-1 --brightness"
alias i3-brightness-2="xrandr --output HDMI-1 --brightness"
alias brightness="sudo vim /sys/class/backlight/intel_backlight/brightness" # Defaul 7500
# X11/i3 aliases removed β€” using Wayland/sway now

alias map="telnet mapscii.me"
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
Expand All @@ -34,10 +30,10 @@ alias blog="cd ~/Documents/codes/personal/blog"

alias resolv-lock='sudo chattr +i /etc/resolv.conf'
alias resolv-unlock='sudo chattr -i /etc/resolv.conf'
alias dnd-on='pkill -xu $EUID -USR1 dunst'
alias dnd-off='pkill -xu $EUID -USR2 dunst'
alias dnd-on='dunstctl set-paused true'
alias dnd-off='dunstctl set-paused false'

alias single-monitor='xrandr --output eDP-1 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --same-as eDP-1'
# single-monitor alias removed β€” using Wayland/sway now

alias ta='tmux new-session -A -D -s main'
function mkv2mov
Expand Down
6 changes: 4 additions & 2 deletions dot_config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ if status is-interactive

export PATH="$HOME/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/.emacs.d/bin:/home/$USER/.local/bin/:.composer/vendor/bin/"

set -U fish_greeting ""
if not set -q fish_greeting
set -U fish_greeting ""
end

source $HOME/.config/fish/aliases.fish
source $HOME/.config/fish/git.fish
source $HOME/.config/fish/exports.fish
source $HOME/.config/fish/fzf-key-bindings.fish
source $HOME/.config/fish/mise.fish
source $HOME/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
test -r '/home/willian/.opam/opam-init/init.fish' && source '/home/willian/.opam/opam-init/init.fish' > /dev/null 2> /dev/null; or true
test -r "$HOME/.opam/opam-init/init.fish" && source "$HOME/.opam/opam-init/init.fish" > /dev/null 2> /dev/null; or true
source /etc/grc.fish

set -g FZF_CTRL_T_COMMAND "command find -L \$dir -type f 2> /dev/null | sed '1d; s#^\./##'"
Expand Down
2 changes: 1 addition & 1 deletion dot_config/fish/exports.fish
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export EDITOR="$HOME/.bin/editor"
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
export ANDROID_HOME=/opt/android-sdk
export DOCKER_HOST=unix:///run/user/1000/docker.sock
export DOCKER_HOST="unix:///run/user/"(id -u)"/docker.sock"
export CHROME_EXECUTABLE=/usr/bin/chromium

# Path
Expand Down
9 changes: 4 additions & 5 deletions dot_config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bindsym $mod+minus scratchpad show
bindsym $mod+Ctrl+l exec --no-startup-id $HOME/.bin/lock

# print screen
bindsym Print exec flameshot gui
bindsym Print exec grim -g "$(slurp)" - | wl-copy

# resize window (you can also use the mouse for that)
mode "resize" {
Expand All @@ -128,9 +128,9 @@ mode "resize" {
bindsym $mod+r mode "resize"

# pulse
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle

bindsym $mod+Shift+x exec ~/.bin/lock

Expand Down Expand Up @@ -185,7 +185,6 @@ exec nm-applet
exec dunst
exec blueman-applet
exec easyeffects --gapplication-service
exec flameshot
exec kanshi
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway

Expand Down
1 change: 1 addition & 0 deletions dot_zlogin
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Kept for compatibility β€” some tools/shells still source .zlogin on login.
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
Expand Down
Loading