mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
11
This commit is contained in:
parent
499aeaed3a
commit
acf3abc0d1
@ -11,9 +11,9 @@ export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
|
|||||||
unsetopt PROMPT_SP
|
unsetopt PROMPT_SP
|
||||||
|
|
||||||
# Default programs:
|
# Default programs:
|
||||||
export EDITOR="nvim"
|
export EDITOR="micro"
|
||||||
export TERMINAL="st"
|
export TERMINAL="kitty"
|
||||||
export BROWSER="brave"
|
export BROWSER="librewolf"
|
||||||
|
|
||||||
# ~/ Clean-up:
|
# ~/ Clean-up:
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
|||||||
@ -13,5 +13,7 @@ if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
|
|||||||
else
|
else
|
||||||
. "$HOME/.xprofile"
|
. "$HOME/.xprofile"
|
||||||
fi
|
fi
|
||||||
|
picom &
|
||||||
ssh-agent dwm
|
export $TERMINAL = kitty
|
||||||
|
export $EDITOR = micro
|
||||||
|
dwm >>/home/gabriwarx/dwm.log
|
||||||
|
|||||||
@ -1,77 +1,104 @@
|
|||||||
# Luke's config for the Zoomer Shell
|
source ~/.config/zsh/zsh-snap/znap.zsh
|
||||||
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH="/home/gabriwarx/.oh-my-zsh"
|
||||||
|
|
||||||
# Enable colors and change prompt:
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
autoload -U colors && colors # Load colors
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
setopt autocd # Automatically cd into typed directory.
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
stty stop undef # Disable ctrl-s to freeze terminal.
|
ZSH_THEME="fox"
|
||||||
setopt interactive_comments
|
|
||||||
|
|
||||||
# History in cache directory:
|
# Set list of themes to pick from when loading at random
|
||||||
HISTSIZE=10000000
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
SAVEHIST=10000000
|
# a theme from this variable instead of looking in $ZSH/themes/
|
||||||
HISTFILE=~/.cache/zsh/history
|
# If set to an empty array, this variable will have no effect.
|
||||||
|
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||||
|
|
||||||
# Load aliases and shortcuts if existent.
|
# Uncomment the following line to use case-sensitive completion.
|
||||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
|
# CASE_SENSITIVE="true"
|
||||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc"
|
|
||||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
|
|
||||||
|
|
||||||
# Basic auto/tab complete:
|
# Uncomment the following line to use hyphen-insensitive completion.
|
||||||
autoload -U compinit
|
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||||
zstyle ':completion:*' menu select
|
# HYPHEN_INSENSITIVE="true"
|
||||||
zmodload zsh/complist
|
|
||||||
compinit
|
|
||||||
_comp_options+=(globdots) # Include hidden files.
|
|
||||||
|
|
||||||
# vi mode
|
# Uncomment one of the following lines to change the auto-update behavior
|
||||||
bindkey -v
|
# zstyle ':omz:update' mode disabled # disable automatic updates
|
||||||
export KEYTIMEOUT=1
|
# zstyle ':omz:update' mode auto # update automatically without asking
|
||||||
|
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||||
|
|
||||||
# Use vim keys in tab complete menu:
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
bindkey -M menuselect 'h' vi-backward-char
|
# zstyle ':omz:update' frequency 13
|
||||||
bindkey -M menuselect 'k' vi-up-line-or-history
|
|
||||||
bindkey -M menuselect 'l' vi-forward-char
|
|
||||||
bindkey -M menuselect 'j' vi-down-line-or-history
|
|
||||||
bindkey -v '^?' backward-delete-char
|
|
||||||
|
|
||||||
# Change cursor shape for different vi modes.
|
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||||
function zle-keymap-select () {
|
# DISABLE_MAGIC_FUNCTIONS="true"
|
||||||
case $KEYMAP in
|
|
||||||
vicmd) echo -ne '\e[1 q';; # block
|
|
||||||
viins|main) echo -ne '\e[5 q';; # beam
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
zle -N zle-keymap-select
|
|
||||||
zle-line-init() {
|
|
||||||
zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
|
|
||||||
echo -ne "\e[5 q"
|
|
||||||
}
|
|
||||||
zle -N zle-line-init
|
|
||||||
echo -ne '\e[5 q' # Use beam shape cursor on startup.
|
|
||||||
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
|
|
||||||
|
|
||||||
# Use lf to switch directories and bind it to ctrl-o
|
# Uncomment the following line to disable colors in ls.
|
||||||
lfcd () {
|
# DISABLE_LS_COLORS="true"
|
||||||
tmp="$(mktemp)"
|
|
||||||
lf -last-dir-path="$tmp" "$@"
|
|
||||||
if [ -f "$tmp" ]; then
|
|
||||||
dir="$(cat "$tmp")"
|
|
||||||
rm -f "$tmp" >/dev/null
|
|
||||||
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
bindkey -s '^o' 'lfcd\n'
|
|
||||||
|
|
||||||
bindkey -s '^a' 'bc -lq\n'
|
# Uncomment the following line to disable auto-setting terminal title.
|
||||||
|
# DISABLE_AUTO_TITLE="true"
|
||||||
|
|
||||||
bindkey -s '^f' 'cd "$(dirname "$(fzf)")"\n'
|
# Uncomment the following line to enable command auto-correction.
|
||||||
|
# ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
bindkey '^[[P' delete-char
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
|
# You can also set it to another string to have that shown instead of the default red dots.
|
||||||
|
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
||||||
|
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
|
||||||
|
# COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
# Edit line in vim with ctrl-e:
|
# Uncomment the following line if you want to disable marking untracked files
|
||||||
autoload edit-command-line; zle -N edit-command-line
|
# under VCS as dirty. This makes repository status check for large repositories
|
||||||
bindkey '^e' edit-command-line
|
# much, much faster.
|
||||||
|
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|
||||||
# Load syntax highlighting; should be last.
|
# Uncomment the following line if you want to change the command execution time
|
||||||
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
# stamp shown in the history command output.
|
||||||
|
# You can set one of the optional three formats:
|
||||||
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||||
|
# or set a custom format using the strftime function format specifications,
|
||||||
|
# see 'man strftime' for details.
|
||||||
|
# HIST_STAMPS="mm/dd/yyyy"
|
||||||
|
|
||||||
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
|
||||||
|
# Which plugins would you like to load?
|
||||||
|
# Standard plugins can be found in $ZSH/plugins/
|
||||||
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
|
plugins=(git)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
|
||||||
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
|
# You may need to manually set your language environment
|
||||||
|
# export LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
# Preferred editor for local and remote sessions
|
||||||
|
# if [[ -n $SSH_CONNECTION ]]; then
|
||||||
|
# export EDITOR='vim'
|
||||||
|
# else
|
||||||
|
# export EDITOR='mvim'
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# Compilation flags
|
||||||
|
# export ARCHFLAGS="-arch x86_64"
|
||||||
|
|
||||||
|
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||||
|
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||||
|
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||||
|
# For a full list of active aliases, run `alias`.
|
||||||
|
#
|
||||||
|
# Example aliases
|
||||||
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
znap source marlonrichert/zsh-autocomplete
|
||||||
|
|
||||||
|
cal -3
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
# usually the pdf of a compiled document. I find this useful especially
|
# usually the pdf of a compiled document. I find this useful especially
|
||||||
# running from vim.
|
# running from vim.
|
||||||
|
|
||||||
basename="${1%.*}"
|
basename="$(echo "${*}" | sed 's/\.[^\/.]*$//')"
|
||||||
|
|
||||||
case "${*}" in
|
case "${*}" in
|
||||||
*.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;;
|
*.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;;
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
3) notify-send "🔋 Battery module" "🔋: discharging
|
3) notify-send "🔋 Battery module" "🔋: discharging
|
||||||
🛑: not charging
|
🛑: not charging
|
||||||
♻: stagnant charge
|
♻️: stagnant charge
|
||||||
🔌: charging
|
🔌: charging
|
||||||
⚡: charged
|
⚡: charged
|
||||||
❗: battery very low!
|
❗: battery very low!
|
||||||
|
|||||||
@ -6,7 +6,8 @@ case $BLOCK_BUTTON in
|
|||||||
3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total.
|
3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total.
|
||||||
- Click to show memory hogs.
|
- Click to show memory hogs.
|
||||||
- Middle click to open htop." ;;
|
- Middle click to open htop." ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) "$TERMINAL" "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}'
|
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}'
|
||||||
|
'
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
# Usage:
|
# Usage:
|
||||||
# price <url> <Name of currency> <icon> <Price to show in>
|
# price <url> <Name of currency> <icon> <Price to show in>
|
||||||
# price bat "Basic Attention Token" 🦁
|
# price bat "Basic Attention Token" 🦁
|
||||||
|
|
||||||
# When the name of the currency is multi-word, put it in quotes.
|
# When the name of the currency is multi-word, put it in quotes.
|
||||||
|
|
||||||
[ -z "$3" ] && exit 1
|
[ -z "$3" ] && exit 1
|
||||||
@ -26,7 +27,7 @@ updateprice() { temp="$(mktemp)"
|
|||||||
updateprice "$1"
|
updateprice "$1"
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid "$TERMINAL" -e less -Srf "$chartfile" ;;
|
1) setsid "kitty" -e less -Srf "$chartfile" ;;
|
||||||
2) notify-send -u low "$3 Updating..." "Updating $2 price..."
|
2) notify-send -u low "$3 Updating..." "Updating $2 price..."
|
||||||
updateprice "$1" && notify-send "$3 Update complete." "$2 price is now
|
updateprice "$1" && notify-send "$3 Update complete." "$2 price is now
|
||||||
\$$(cat "$pricefile")" ;;
|
\$$(cat "$pricefile")" ;;
|
||||||
@ -48,3 +49,4 @@ case "$currency" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
printf "$3$symb%0.2f$after" "$(cat "$pricefile")"
|
printf "$3$symb%0.2f$after" "$(cat "$pricefile")"
|
||||||
|
)"
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
thiemeyer_road_to_samarkand.jpg
|
|
||||||
1
.local/share/bg
Normal file
1
.local/share/bg
Normal file
@ -0,0 +1 @@
|
|||||||
|
wallpaper.pngd_to_samarkand.jpg
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 394 KiB |
Loading…
x
Reference in New Issue
Block a user