6 Commits

Author SHA1 Message Date
opal 2231bc79b8 stoof 2026-06-12 14:45:59 -07:00
opal 18af1b323d added history alias 2026-04-27 13:58:42 -07:00
opal 098a789fbd volume 2026-04-23 18:20:17 -07:00
opal 6b25249862 reee 2026-04-07 19:45:10 -07:00
opal 246166b23c Merge branch 'master' of git.opal.sh:opal/opalfiles 2026-04-06 10:06:18 -07:00
opal 27faf4b7ee changes 2026-04-06 10:06:15 -07:00
7 changed files with 68 additions and 83 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
TERM = "xterm-256color" TERM = "xterm-256color"
[font] [font]
size = 16 size = 18
[font.normal] [font.normal]
family = "VictorMono Nerd Font" family = "VictorMono Nerd Font"
+22 -22
View File
@@ -1,31 +1,31 @@
[colors.primary] [colors.primary]
background = '#10140f' background = '#f9f9ff'
foreground = '#e0e4db' foreground = '#191c20'
[colors.selection] [colors.selection]
text = '#e0e4db' text = '#191c20'
background = '#1b5e20' background = '#d4e3ff'
[colors.cursor] [colors.cursor]
text = '#10140f' text = '#f9f9ff'
cursor = '#4caf50' cursor = '#3b608f'
[colors.normal] [colors.normal]
black = '#10140f' black = '#111318'
red = '#c96a4c' red = '#872844'
green = '#4daf4c' green = '#196b24'
yellow = '#dacb52' yellow = '#aba314'
blue = '#35a639' blue = '#396296'
magenta = '#005103' magenta = '#cde2fd'
cyan = '#4caf50' cyan = '#3b608f'
white = '#abb7ab' white = '#262628'
[colors.bright] [colors.bright]
black = '#717b71' black = '#757779'
red = '#eca088' red = '#b34d6b'
green = '#80d27e' green = '#379d45'
yellow = '#fff39a' yellow = '#b9b221'
blue = '#63c067' blue = '#4471ad'
magenta = '#89e38d' magenta = '#cde2fd'
cyan = '#b6f4b9' cyan = '#839bb9'
white = '#f6fdf6' white = '#d1d3d6'
+1 -1
View File
@@ -100,7 +100,7 @@
;;(setq org-startup-folded t) ;;(setq org-startup-folded t)
(setq org-indent-indentation-per-level 2) (setq org-indent-indentation-per-level 2)
(setq org-hide-emphasis-markers t) (setq org-hide-emphasis-markers t)
(setq org-agenda-files (directory-files-recursively "~/Sync/org/agenda/" "\\.org$")) (setq org-agenda-files (directory-files-recursively "~/sync/org/agenda/" "\\.org$"))
(setq org-agenda-todo-ignore-scheduled 'future) (setq org-agenda-todo-ignore-scheduled 'future)
(require 'org-habit) (require 'org-habit)
+2 -2
View File
@@ -390,8 +390,8 @@ binds {
// The allow-when-locked=true property makes them work even when the session is locked. // The allow-when-locked=true property makes them work even when the session is locked.
// Using spawn-sh allows to pass multiple arguments together with the command. // Using spawn-sh allows to pass multiple arguments together with the command.
// "-l 1.0" limits the volume to 100%. // "-l 1.0" limits the volume to 100%.
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; } XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+ -l 1.0"; }
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; } XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02-"; }
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; } XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; } XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
+2
View File
@@ -5,3 +5,5 @@ SAVEHIST=10000
# Options to make history nicer # Options to make history nicer
setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE
export GTK_THEME=Yaru-dark
+37 -57
View File
@@ -21,6 +21,19 @@ SAVEHIST=10000
# Options to make history nicer # Options to make history nicer
setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE
# Auto capitalize
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
export CODE_DIR="$HOME/code"
#######################################################
# KEYBINDS
#######################################################
autoload -U select-word-style
select-word-style bash
bindkey '^[[1;3D' backward-word # Alt+Left
bindkey '^[[1;3C' forward-word # Alt+Right
####################################################### #######################################################
# PROMPT # PROMPT
@@ -43,33 +56,22 @@ PROMPT='%F{cyan}[%n@%m %F{yellow}%~%f%F{green}${vcs_info_msg_0_}%f%F{cyan}]%f
# Remove right side prompt (like time) # Remove right side prompt (like time)
unset RPROMPT unset RPROMPT
#######################################################
# GOPASS
#######################################################
# Gopass aliases
alias gpi='gopass insert --multiline'
alias gpl='gopass ls'
alias gps='gopass show'
alias gpsclip='gopass show --clip'
alias gpe='gopass edit'
####################################################### #######################################################
# ALIAS # ALIAS
####################################################### #######################################################
alias dot='cd ~/code/opalfiles' alias dot='cd $CODE_DIR/opalfiles'
alias ans='cd ~/code/ansible' alias ans='cd $CODE_DIR/ansible'
alias v='nvim' alias v='nvim'
alias vim='nvim' alias vim='nvim'
alias vi='nvim' alias vi='nvim'
# DNF # Package Manager
alias din='sudo dnf install' alias pin='sudo pacman -S'
alias dre='sudo dnf remove' alias pre='sudo pacman -R'
alias dup='sudo dnf update' alias pup='sudo pacman -Syu'
alias dse='dnf search' alias pse='pacman -Ss'
# alias to show the date # alias to show the date
alias da='date "+%Y-%m-%d %A %T %Z"' alias da='date "+%Y-%m-%d %A %T %Z"'
@@ -128,57 +130,26 @@ alias gcom='git commit -m'
alias h='history 1' alias h='history 1'
alias pkg='nvim ~/Code/arch-ansible/roles/packages/tasks/main.yml' alias pkg='nvim $CODE_DIR/arch-ansible/roles/packages/tasks/main.yml'
alias pkg-aur='nvim ~/Code/arch-ansible/scripts/aur-pkg-install.sh' alias pkg-aur='nvim $CODE_DIR/arch-ansible/scripts/aur-pkg-install.sh'
#######################################################
# FUNCTIONS
#######################################################
# Reset all USB devices after suspend/hibernate if they vanish
usbreset() {
echo "Re-authorizing all USB devices..."
for d in /sys/bus/usb/devices/*/authorized; do
if [[ -w $d ]]; then
echo 0 | sudo tee "$d" >/dev/null
echo 1 | sudo tee "$d" >/dev/null
fi
done
echo "Done. Check with lsusb."
}
#######################################################
# KEYBINDS
#######################################################
autoload -U select-word-style
select-word-style bash
bindkey '^[[1;3D' backward-word # Alt+Left
bindkey '^[[1;3C' forward-word # Alt+Right
#######################################################
# WORK
#######################################################
# Wireguard # Wireguard
alias wgup='nmcli connection up wg0' alias wgup='nmcli connection up wg0'
alias wgdown='nmcli connection down wg0' alias wgdown='nmcli connection down wg0'
keys() alias history='history 0'
{
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval ry_ecdsa)"
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval id_rsa)"
}
keys #######################################################
# FUNCTIONS
#######################################################
apply() { apply() {
(cd ~/Code/arch-ansible && ansible-playbook -i inventory/hosts.yml site.yml -K "$@") (cd $CODE_DIR/arch-ansible && ansible-playbook -i inventory/hosts.yml site.yml -K "$@")
} }
apply-aur() { apply-aur() {
(cd ~/Code/arch-ansible/scripts && bash aur-pkg-install.sh) (cd $CODE_DIR/arch-ansible/scripts && bash aur-pkg-install.sh)
} }
shred-dir() { shred-dir() {
@@ -195,3 +166,12 @@ shred-dir() {
rm -rf "$dir" rm -rf "$dir"
echo "Done." echo "Done."
} }
keys()
{
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval ry_ecdsa)"
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval id_rsa)"
}
keys
+3
View File
@@ -8,6 +8,7 @@
.local/share/mpd .local/share/mpd
.config/ncmpcpp/lyrics/ .config/ncmpcpp/lyrics/
.config/zsh/.zsh_history .config/zsh/.zsh_history
.config/zsh/.zcompcache
.config/niri/dms/ .config/niri/dms/
.config/gtk-3.0/ .config/gtk-3.0/
.config/gtk-4.0/ .config/gtk-4.0/
@@ -19,3 +20,5 @@ flycheck-packages.el
*.log *.log
.config/zsh/.zcompdump .config/zsh/.zcompdump
.local/bin/claude .local/bin/claude
.config/systemd/user/default.target.wants/
.config/nvim/lua/