diff --git a/.clang-tidy b/.clang-tidy index f143fe9..ee1d88a 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -16,7 +16,8 @@ Checks: "*, -modernize-use-nodiscard -cppcoreguidelines-narrowing-conversions -cppcoreguidelines-avoid-magic-numbers - -Wsign-compare + --Wsign-compare + -readability-uppercase-literal-suffix " WarningsAsErrors: '' HeaderFilterRegex: '' diff --git a/awesome/rc.lua b/awesome/rc.lua index edce233..af957ec 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -70,13 +70,13 @@ awful.rules.rules = create_rules(keys.clientkeys, keys.clientbuttons) -- Define layouts awful.layout.layouts = { - awful.layout.suit.floating, awful.layout.suit.tile, + awful.layout.suit.floating, awful.layout.suit.fair, + awful.layout.suit.fair.horizontal, awful.layout.suit.tile.left, awful.layout.suit.tile.bottom, awful.layout.suit.tile.top, - awful.layout.suit.fair.horizontal, } -- Signal function to execute when a new client appears. diff --git a/awesome/scripts/setup_display.sh b/awesome/scripts/setup_display.sh index ee03420..8c1b6a1 100755 --- a/awesome/scripts/setup_display.sh +++ b/awesome/scripts/setup_display.sh @@ -1,5 +1,5 @@ -declare -i count=2 -declare -i seconds=1 +declare -i count=3 +declare -i seconds=0.5 while ((count)); do xrandr >/dev/null diff --git a/zsh/.zshrc b/zsh/.zshrc index b9be572..1ee5b66 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -134,15 +134,15 @@ export PATH=$HOME/.local/bin:$PATH # >>> mamba initialize >>> # !! Contents within this block are managed by 'mamba init' !! export MAMBA_EXE="/usr/bin/micromamba"; -export MAMBA_ROOT_PREFIX="$XDG_DATA_HOME/micromamba"; -__mamba_setup="$('/usr/bin/micromamba' shell hook --shell zsh --prefix $MAMBA_ROOT_PREFIX 2> /dev/null)" +export MAMBA_ROOT_PREFIX="/home/user/.micromamba"; +__mamba_setup="$('/usr/bin/micromamba' shell hook --shell zsh --prefix '/home/user/.micromamba' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__mamba_setup" else - if [ -f "$MAMBA_ROOT_PREFIX/etc/profile.d/micromamba.sh" ]; then - . "$MAMBA_ROOT_PREFIX/etc/profile.d/micromamba.sh" + if [ -f "/home/user/.micromamba/etc/profile.d/micromamba.sh" ]; then + . "/home/user/.micromamba/etc/profile.d/micromamba.sh" else - export PATH="$MAMBA_ROOT_PREFIX/bin:$PATH" # extra space after export prevents interference from conda init + export PATH="/home/user/.micromamba/bin:$PATH" # extra space after export prevents interference from conda init fi fi unset __mamba_setup @@ -158,6 +158,10 @@ function xterm_title_preexec () { print -Pn -- '\e]2;' && print -n -- "${(q)1}\a" } +function o () { + xdg-open "$1" &! +} + if [[ "$TERM" == (Eterm*|alacritty*|aterm*|gnome*|konsole*|kterm*|putty*|rxvt*|screen*|tmux*|xterm*) ]]; then add-zsh-hook -Uz precmd xterm_title_precmd @@ -168,7 +172,6 @@ fi alias ls="ls --color=auto" alias gdb='gdb -q' alias ll='ls -lhat' -alias o="xdg-open" alias fzf="fzf-tmux" alias clip="xclip -selection clipboard" alias compress="tar --use-compress-program=lbzip2 -cvf"