diff --git a/dotfiles/.dunstrc b/dotfiles/.dunstrc index bf8e14ff3a8f51c29a4d5a30297603a2e9300b92..72d9f2a29784bc391cd12f48b1421145b68f6b97 100644 --- a/dotfiles/.dunstrc +++ b/dotfiles/.dunstrc @@ -22,7 +22,7 @@ plain_text = no # %I iconname (without its path) # %p progress value if set ([ 0%] to [100%]) or nothing # Markup is allowed -format = "<b>%s</b>\n%b" +format = "<b>%a</b>\n<i>%s</i>\n%b" # Sort messages by urgency. sort = no @@ -148,7 +148,7 @@ dmenu = /usr/bin/dmenu -p dunst: browser = /usr/bin/firefox -new-tab # Align icons left/right/off -icon_position = off +icon_position = left max_icon_size = 80 # Paths to default icons. diff --git a/dotfiles/.xinitrc b/dotfiles/.xinitrc index 126fc8cfc15723a138aedcc029f7c5fdf50818ba..7ba3aea7fe93cceeae33f8e65ad70b5eab7e07f6 100644 --- a/dotfiles/.xinitrc +++ b/dotfiles/.xinitrc @@ -11,7 +11,5 @@ while true; do sleep 2s done & -while true; do - wmname LG3D - dwm >/dev/null 2>&1 -done +wmname LG3D +dwm >/dev/null 2>&1 diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index f737eb5845152964c69c11f3a9f7a13ac73c4d3e..e83b2adbaffdf7c2ed92a136a6233233b1e01b2a 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -69,12 +69,13 @@ COMPLETION_WAITING_DOTS="true" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(git git-flow-completion sudo docker autojump minikube) +plugins=(git git-flow-completion sudo docker autojump minikube npm) source $ZSH/oh-my-zsh.sh alias ls=lsd alias rcheck="cargo check && fd .rs -F | xargs touch && cargo clippy && cargo test" alias l="lsd -la" +alias lg="lazygit" alias dcd="docker-compose down" alias dcdv="docker-compose down -v" alias dcu="docker-compose up" @@ -88,7 +89,6 @@ alias dpsq="docker ps -aq" alias poop='git push origin "$(git branch | grep "\*" | cut -d " " -f2)"' alias vommit='git commit -sS' alias eat_shit='git pull origin "$(git branch | grep "\*" | cut -d " " -f2)"' -alias big_poop="git push --all" alias cat="bat" # User configuration @@ -134,7 +134,6 @@ compinit autoload -U +X bashcompinit && bashcompinit autoload -U ~/.zfunc/* -complete -o nospace -C /usr/bin/terraform terraform eval "$(pyenv init -)" source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh diff --git a/install.sh b/install.sh index 37a364a008483f187ed2343e3f57dfc1efcaa851..b168d7ed80b57a8c535b95fa5878308db1267e2b 100644 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ function cleanup(){ # shellcheck disable=SC2046 - rm -rf $(find . -name "build_*" -type d) + sudo rm -rf $(sudo find . -name "build_*" -type d) } function build_from_git(){ @@ -56,13 +56,6 @@ function copy_dotfiles(){ git clone https://github.com/bobthecow/git-flow-completion ~/.oh-my-zsh/custom/plugins/git-flow-completion } -# Update local branches. -function update_repo(){ -for remote in $(git branch -r | grep -v '\->'); do - git branch --track "${remote#origin/}" "$remote" -done -} - function main(){ # shellcheck disable=SC2046 sudo pacman -Syu --needed $(cat ./pacman.deps) @@ -74,11 +67,10 @@ function main(){ pikaur -Syu --needed --noconfirm --noedit $(cat ./pikaur.deps) install_python_deps copy_dotfiles - update_repo + pushd dwm || exit + sudo make install + popd || exit echo "######## Installation complete ########" - echo "Now you can build your desktop." - echo "To do so just run \`update_desktop -f\`" - update_desktop -h } trap cleanup EXIT diff --git a/pacman.deps b/pacman.deps index f03a02b2a1975a98fba48dfefe6573c9ea1149f6..8e625dc43dd8043433c1393b1f20453cdad26b6d 100644 --- a/pacman.deps +++ b/pacman.deps @@ -10,6 +10,8 @@ dunst firefox gnome-keyring gobject-introspection +kubectl +lazygit libldac libsecret lsd diff --git a/pikaur.deps b/pikaur.deps index e0d67bcd4c71e06a6e8916873073b38b98f52bcf..ea492b1070c1b92d243b1b2f935df6d11bbef91f 100644 --- a/pikaur.deps +++ b/pikaur.deps @@ -1,8 +1,8 @@ autojump avizo -gotop +lightdm-webkit-theme-aether nerd-fonts-complete paper-icon-theme-git -pulseaudio-modules-bt ttf-symbola ttf-ubraille +visual-studio-code-bin diff --git a/update_desktop.sh b/update_desktop.sh deleted file mode 100644 index f5061f7cdf959f1076c9997d9c2e8b080804a18e..0000000000000000000000000000000000000000 --- a/update_desktop.sh +++ /dev/null @@ -1,114 +0,0 @@ -#!/bin/bash -RED='\033[0;31m' -NC='\033[0m' # No color - -function local_update(){ - rm -fv config.h && make && sudo make clean install -} - -function full_update(){ - apply_branch="apply-$(uuidgen)" - git checkout master - git checkout -b "$apply_branch" - apply_conf="$(mktemp /tmp/custom_patchXXXXX)" - echo "# You can edit this file to manipulate ordering and patches to apply" > "$apply_conf" - git branch -a | grep -Ev '^master$|remotes' | grep 'patch/' | cut -c 3- >> "$apply_conf" - echo "$EDITOR" - if [ -z ${EDITOR+x} ];then - echo -e "${RED}\$EDITOR env is not found${NC}.\nTry this before running script: 'export EDITOR=/bin/vim'" - git checkout master - git branch -D "$apply_branch" - exit 1 - fi - eval "$EDITOR \"$apply_conf\"" - - while IFS= read -r branch;do - echo -e "${RED}$branch${NC}" - if [[ $branch = \#* ]];then - continue - fi - git merge "$branch" --no-edit - done < <(cat "$apply_conf") - - rm -f "$apply_conf" - - local_update || exit 1 - - git checkout master - git branch -D "$apply_branch" -} - -function apply_patch(){ - patch_name="$(basename "$1" | cut -d '.' -f1)" - patch_path="$(readlink -f "$1")" - pushd "{{dwm_dir}}" || exit - git checkout -b "patch/$patch_name" - patch < "$patch_path" - git add . - git commit -m "Patch \"$patch_name\" applied." -} - -function show_help(){ - echo -e "Update your DWM based on your cureent config." - echo -e "Your local config can be found in {{dwm_dir}}\n" - echo "FLAGS:" - echo -e "\t-h, --help\tShow this message." - echo -e "\t-f, --full\tRun full update." - echo -e "\t-l, --local\tRun local update." - echo -e "\t-a, --apply\tApply a patch and create new git branch." -} - -function main(){ - local show_help=0 - local full_update=0 - local local_update=0 - local patch_to_apply="" - - while [[ "$#" -gt 0 ]]; do - case $1 in - -f|--full) full_update=1 ;; - -h|--help) show_help=1 ;; - -l|--local) local_update=1 ;; - -a|--apply) patch_to_apply="$2"; shift ;; - -al)patch_to_apply="$2"; shift; local_update=1;; - -af)patch_to_apply="$2"; shift; full_update=1;; - *) echo "Unknown parameter passed: $1"; exit 1 ;; - esac - shift - done - - if [[ show_help -eq 1 ]];then - pushd "{{dwm_dir}}" || exit - show_help - exit 0 - fi - - if [[ -n "$patch_to_apply" ]];then - apply_patch "$patch_to_apply" - popd || exit - if [[ $((full_update + local_update)) -eq 0 ]];then - exit 0 - fi - fi - - pushd "{{dwm_dir}}" || exit - if [[ full_update -eq 1 ]];then - full_update - exit 0 - fi - - if [[ local_update -eq 1 ]];then - local_update - exit 0 - fi - - show_help - exit 0 -} - -function go_back(){ - popd || exit -} - -trap go_back EXIT -main "$@"