Compare commits
6 Commits
8abb7853fc
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2231bc79b8 | |||
| 18af1b323d | |||
| 098a789fbd | |||
| 6b25249862 | |||
| 246166b23c | |||
| 27faf4b7ee |
@@ -2,7 +2,7 @@
|
||||
TERM = "xterm-256color"
|
||||
|
||||
[font]
|
||||
size = 16
|
||||
size = 18
|
||||
|
||||
[font.normal]
|
||||
family = "VictorMono Nerd Font"
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
[colors.primary]
|
||||
background = '#10140f'
|
||||
foreground = '#e0e4db'
|
||||
background = '#f9f9ff'
|
||||
foreground = '#191c20'
|
||||
|
||||
[colors.selection]
|
||||
text = '#e0e4db'
|
||||
background = '#1b5e20'
|
||||
text = '#191c20'
|
||||
background = '#d4e3ff'
|
||||
|
||||
[colors.cursor]
|
||||
text = '#10140f'
|
||||
cursor = '#4caf50'
|
||||
text = '#f9f9ff'
|
||||
cursor = '#3b608f'
|
||||
|
||||
[colors.normal]
|
||||
black = '#10140f'
|
||||
red = '#c96a4c'
|
||||
green = '#4daf4c'
|
||||
yellow = '#dacb52'
|
||||
blue = '#35a639'
|
||||
magenta = '#005103'
|
||||
cyan = '#4caf50'
|
||||
white = '#abb7ab'
|
||||
black = '#111318'
|
||||
red = '#872844'
|
||||
green = '#196b24'
|
||||
yellow = '#aba314'
|
||||
blue = '#396296'
|
||||
magenta = '#cde2fd'
|
||||
cyan = '#3b608f'
|
||||
white = '#262628'
|
||||
|
||||
[colors.bright]
|
||||
black = '#717b71'
|
||||
red = '#eca088'
|
||||
green = '#80d27e'
|
||||
yellow = '#fff39a'
|
||||
blue = '#63c067'
|
||||
magenta = '#89e38d'
|
||||
cyan = '#b6f4b9'
|
||||
white = '#f6fdf6'
|
||||
black = '#757779'
|
||||
red = '#b34d6b'
|
||||
green = '#379d45'
|
||||
yellow = '#b9b221'
|
||||
blue = '#4471ad'
|
||||
magenta = '#cde2fd'
|
||||
cyan = '#839bb9'
|
||||
white = '#d1d3d6'
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
;;(setq org-startup-folded t)
|
||||
(setq org-indent-indentation-per-level 2)
|
||||
(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)
|
||||
|
||||
(require 'org-habit)
|
||||
|
||||
@@ -390,8 +390,8 @@ binds {
|
||||
// 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.
|
||||
// "-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"; }
|
||||
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
|
||||
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.02-"; }
|
||||
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"; }
|
||||
|
||||
|
||||
@@ -5,3 +5,5 @@ SAVEHIST=10000
|
||||
|
||||
# Options to make history nicer
|
||||
setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE
|
||||
|
||||
export GTK_THEME=Yaru-dark
|
||||
|
||||
+37
-57
@@ -21,6 +21,19 @@ SAVEHIST=10000
|
||||
# Options to make history nicer
|
||||
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
|
||||
@@ -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)
|
||||
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 dot='cd ~/code/opalfiles'
|
||||
alias ans='cd ~/code/ansible'
|
||||
alias dot='cd $CODE_DIR/opalfiles'
|
||||
alias ans='cd $CODE_DIR/ansible'
|
||||
|
||||
alias v='nvim'
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
|
||||
# DNF
|
||||
alias din='sudo dnf install'
|
||||
alias dre='sudo dnf remove'
|
||||
alias dup='sudo dnf update'
|
||||
alias dse='dnf search'
|
||||
# Package Manager
|
||||
alias pin='sudo pacman -S'
|
||||
alias pre='sudo pacman -R'
|
||||
alias pup='sudo pacman -Syu'
|
||||
alias pse='pacman -Ss'
|
||||
|
||||
# alias to show the date
|
||||
alias da='date "+%Y-%m-%d %A %T %Z"'
|
||||
@@ -128,57 +130,26 @@ alias gcom='git commit -m'
|
||||
|
||||
alias h='history 1'
|
||||
|
||||
alias pkg='nvim ~/Code/arch-ansible/roles/packages/tasks/main.yml'
|
||||
alias pkg-aur='nvim ~/Code/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
|
||||
#######################################################
|
||||
alias pkg='nvim $CODE_DIR/arch-ansible/roles/packages/tasks/main.yml'
|
||||
alias pkg-aur='nvim $CODE_DIR/arch-ansible/scripts/aur-pkg-install.sh'
|
||||
|
||||
# Wireguard
|
||||
alias wgup='nmcli connection up wg0'
|
||||
alias wgdown='nmcli connection down wg0'
|
||||
|
||||
keys()
|
||||
{
|
||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval ry_ecdsa)"
|
||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval id_rsa)"
|
||||
}
|
||||
alias history='history 0'
|
||||
|
||||
keys
|
||||
#######################################################
|
||||
# FUNCTIONS
|
||||
#######################################################
|
||||
|
||||
|
||||
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() {
|
||||
(cd ~/Code/arch-ansible/scripts && bash aur-pkg-install.sh)
|
||||
(cd $CODE_DIR/arch-ansible/scripts && bash aur-pkg-install.sh)
|
||||
}
|
||||
|
||||
shred-dir() {
|
||||
@@ -195,3 +166,12 @@ shred-dir() {
|
||||
rm -rf "$dir"
|
||||
echo "Done."
|
||||
}
|
||||
|
||||
keys()
|
||||
{
|
||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval ry_ecdsa)"
|
||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval id_rsa)"
|
||||
}
|
||||
|
||||
keys
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
.local/share/mpd
|
||||
.config/ncmpcpp/lyrics/
|
||||
.config/zsh/.zsh_history
|
||||
.config/zsh/.zcompcache
|
||||
.config/niri/dms/
|
||||
.config/gtk-3.0/
|
||||
.config/gtk-4.0/
|
||||
@@ -19,3 +20,5 @@ flycheck-packages.el
|
||||
*.log
|
||||
.config/zsh/.zcompdump
|
||||
.local/bin/claude
|
||||
.config/systemd/user/default.target.wants/
|
||||
.config/nvim/lua/
|
||||
|
||||
Reference in New Issue
Block a user