Last active
April 1, 2023 10:43
-
-
Save saedx1/9cf08890a2b7c5f93488514702c1cf31 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export XDG_CONFIG_HOME="$HOME/.config" | |
| export XDG_DATA_HOME="$HOME/.local/share" | |
| export XDG_CACHE_HOME="$HOME/.cache" | |
| export XINITRC="${XDG_CONFIG_HOME}/x11/xinitrc" | |
| export ZDOTDIR="${XDG_CONFIG_HOME}/zsh" | |
| export HISTFILE="${XDG_DATA_HOME}/history" | |
| export DOTNET_ROOT=$HOME/.dotnet | |
| export PATH=$HOME/scripts:$PATH | |
| export PATH=$HOME/.local/bin:$PATH | |
| export PATH=$DOTNET_ROOT:$PATH | |
| export EDITOR="nvim" | |
| export TERMINAL="st" | |
| export BROWSER="google-chrome-stable" | |
| export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix -H' | |
| export AWS_PAGER= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| screenshot_and_copy | |
| super + {Up,Down} | |
| pulseaudio-ctl {up,down} | |
| super + space | |
| $TERMINAL | |
| super + s | |
| sleep_pc | |
| super + n ; super + n | |
| $BROWSER | |
| super + n ; super + j | |
| $BROWSER $(xclip -o) | |
| super + r | |
| restart_status_bar | |
| super + c | |
| code | |
| super + o | |
| mons && $HOME/.fehbg | |
| Meta_L | |
| language_switch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # xinitrc runs automatically when you run startx. | |
| # There are some small but important commands that need to be run when we start | |
| # the graphical environment. There is a link to this file in ~/.xprofile | |
| # because that file is run automatically if someone uses a display manager | |
| # (login screen) and so they are needed there. To prevent doubling up commands, | |
| # I source them here with the line below. | |
| if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then | |
| . "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" | |
| else | |
| . "$HOME/.xprofile" | |
| fi | |
| # init keyring | |
| #eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh) | |
| # export keyring | |
| #export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK | |
| ... | |
| dwm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| xrandr --output DVI-I-1-1 --mode 1920x1080 --left-of DP-2 --output eDP-1 --off | |
| ### Keyboard ### | |
| xset r rate 300 50 & # Speed xrate up | |
| numlockx & | |
| echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode | |
| sxhkd & | |
| ### UI ### | |
| dunst -mon 1 -font "Calibri 18" & | |
| picom --corner-radius 10 & | |
| $HOME/.fehbg | |
| activate_status_bar & | |
| ### Time ### | |
| sudo ntpd -gq & | |
| ### Audio ### | |
| pulseaudio --daemonize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################ | |
| # █▀▀ █▀█ █▀▄▀█ █▀█ █░░ █▀▀ ▀█▀ █ █▀█ █▄░█ # | |
| # █▄▄ █▄█ █░▀░█ █▀▀ █▄▄ ██▄ ░█░ █ █▄█ █░▀█ # | |
| ############################################ | |
| setopt autocd | |
| zstyle :compinstall filename '/home/saedx1/.config/zsh/.zshrc' | |
| autoload -Uz bashcompinit; bashcompinit | |
| autoload -Uz compinit; compinit | |
| complete -C 'aws_completer' aws | |
| source /usr/share/fzf/key-bindings.zsh | |
| source /usr/share/fzf/completion.zsh | |
| WORDCHARS='~!#$%^&*(){}[]<>?.+;-' | |
| zstyle ':completion:*' completer _complete | |
| zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*' | |
| ############################# | |
| # █▀█ █▀█ █▀█ █▀▄▀█ █▀█ ▀█▀ # | |
| # █▀▀ █▀▄ █▄█ █░▀░█ █▀▀ ░█░ # | |
| ############################# | |
| autoload -U colors && colors | |
| setopt PROMPT_SUBST | |
| # unsetopt PROMPT_SP | |
| PROMPT='%n@%m %~ %{$fg[yellow]%}▶%{$reset_color%} ' | |
| export LC_ALL=en_US.UTF-8 | |
| ########################### | |
| # ▄▀█ █░░ █ ▄▀█ █▀ █▀▀ █▀ # | |
| # █▀█ █▄▄ █ █▀█ ▄█ ██▄ ▄█ # | |
| ########################### | |
| alias cat="bat" | |
| alias k="kubectl" | |
| alias ll="ls -l" | |
| alias n="nvim" | |
| alias tf='terraform' | |
| alias tfa='tf apply' | |
| alias tfd='tf destroy' | |
| alias tfv='tf validate' | |
| alias tfr='tf refresh' | |
| alias gsu='git status' | |
| alias ga='git add -u' | |
| alias gco='git commit' | |
| alias gcd='git switch develop' | |
| alias gpu='git push' | |
| alias gpuu='git push -u origin $(git branch --show-current)' | |
| alias gpl='git pull' | |
| alias gd='git diff' | |
| alias gffp='git flow feature publish' | |
| alias gffs='git flow feature start' | |
| alias gfff='git flow feature finish' | |
| ########################### | |
| # █░█ █ █▀ ▀█▀ █▀█ █▀█ █▄█# | |
| # █▀█ █ ▄█ ░█░ █▄█ █▀▄ ░█░# | |
| ########################### | |
| export HISTSIZE=10000 | |
| export SAVEHIST=1000000 | |
| export HISTFILESIZE=1000000000 | |
| export HISTTIMEFORMAT="[%F %T] " | |
| setopt INC_APPEND_HISTORY | |
| setopt EXTENDED_HISTORY | |
| ############################## | |
| # █░█ █▀▀ █░░ █▀█ █▀▀ █▀█ █▀ # | |
| # █▀█ ██▄ █▄▄ █▀▀ ██▄ █▀▄ ▄█ # | |
| ############################## | |
| func restart_adb() { | |
| sudo udevadm control --reload-rules | |
| sudo killall udevd | |
| adb kill-server | |
| } | |
| func sync_time() { | |
| sudo ntpdate pool.ntp.org | |
| } | |
| func delete_tag() { | |
| git tag -d $1 | |
| git push --delete origin $1 | |
| } | |
| func restart_card() { | |
| sudo ifconfig $1 0.0.0.0 | |
| sudo sv restart NetworkManager | |
| } | |
| func write_progress() { | |
| watch -d grep -e Dirty: -e Writeback: /proc/meminfo | |
| } | |
| find_and_open() { | |
| filename=$(fzf) | |
| if [ -n "$filename" ] | |
| then | |
| [ -d "$filename" ] && cd "$filename" || code "$filename" | |
| fi | |
| } | |
| listening_ports() { | |
| netstat -tulpn | grep LISTEN | |
| } | |
| clip() { | |
| cat $1 | xclip -selection clipboard | |
| } | |
| ####################################### | |
| # █▀ █░█ █▀▀ █░░ █░░ █▄▀ █▀▀ █▄█ █▀ # | |
| # ▄█ █▀█ ██▄ █▄▄ █▄▄ █░█ ██▄ ░█░ ▄█ # | |
| ####################################### | |
| bindkey '^[[1;5D' backward-word | |
| bindkey '^[[1;5C' forward-word | |
| bindkey '^H' backward-kill-word | |
| bindkey '^[[M' kill-word | |
| bindkey "^[[A" history-beginning-search-backward | |
| bindkey "^[[B" history-beginning-search-forward | |
| bindkey "^[[H" beginning-of-line | |
| bindkey "^[[4~" end-of-line | |
| bindkey "^[[P" delete-char-or-list | |
| bindkey -s "^f" 'find_and_open\n' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/profile | |
| # Set our umask | |
| umask 022 | |
| # Append "$1" to $PATH when not already in. | |
| # This function API is accessible to scripts in /etc/profile.d | |
| append_path () { | |
| case ":$PATH:" in | |
| *:"$1":*) | |
| ;; | |
| *) | |
| PATH="${PATH:+$PATH:}$1" | |
| esac | |
| } | |
| # Append our default paths | |
| append_path '/usr/local/sbin' | |
| append_path '/usr/local/bin' | |
| append_path '/usr/bin' | |
| # Force PATH to be environment | |
| export PATH | |
| # Load profiles from /etc/profile.d | |
| if test -d /etc/profile.d/; then | |
| for profile in /etc/profile.d/*.sh; do | |
| test -r "$profile" && . "$profile" | |
| done | |
| unset profile | |
| fi | |
| # Unload our profile API functions | |
| unset -f append_path | |
| # Source global bash config, when interactive but not posix or sh mode | |
| if test "$BASH" &&\ | |
| test "$PS1" &&\ | |
| test -z "$POSIXLY_CORRECT" &&\ | |
| test "${0#-}" != sh &&\ | |
| test -r /etc/bash.bashrc | |
| then | |
| . /etc/bash.bashrc | |
| fi | |
| # Termcap is outdated, old, and crusty, kill it. | |
| unset TERMCAP | |
| # Man is much better than us at figuring this out | |
| unset MANPATH | |
| source $HOME/.config/profile/env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment