Various small updates
This commit is contained in:
parent
40dd4ad1b8
commit
8716ea6df4
|
@ -16,7 +16,8 @@ Checks: "*,
|
||||||
-modernize-use-nodiscard
|
-modernize-use-nodiscard
|
||||||
-cppcoreguidelines-narrowing-conversions
|
-cppcoreguidelines-narrowing-conversions
|
||||||
-cppcoreguidelines-avoid-magic-numbers
|
-cppcoreguidelines-avoid-magic-numbers
|
||||||
-Wsign-compare
|
--Wsign-compare
|
||||||
|
-readability-uppercase-literal-suffix
|
||||||
"
|
"
|
||||||
WarningsAsErrors: ''
|
WarningsAsErrors: ''
|
||||||
HeaderFilterRegex: ''
|
HeaderFilterRegex: ''
|
||||||
|
|
|
@ -70,13 +70,13 @@ awful.rules.rules = create_rules(keys.clientkeys, keys.clientbuttons)
|
||||||
|
|
||||||
-- Define layouts
|
-- Define layouts
|
||||||
awful.layout.layouts = {
|
awful.layout.layouts = {
|
||||||
awful.layout.suit.floating,
|
|
||||||
awful.layout.suit.tile,
|
awful.layout.suit.tile,
|
||||||
|
awful.layout.suit.floating,
|
||||||
awful.layout.suit.fair,
|
awful.layout.suit.fair,
|
||||||
|
awful.layout.suit.fair.horizontal,
|
||||||
awful.layout.suit.tile.left,
|
awful.layout.suit.tile.left,
|
||||||
awful.layout.suit.tile.bottom,
|
awful.layout.suit.tile.bottom,
|
||||||
awful.layout.suit.tile.top,
|
awful.layout.suit.tile.top,
|
||||||
awful.layout.suit.fair.horizontal,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Signal function to execute when a new client appears.
|
-- Signal function to execute when a new client appears.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
declare -i count=2
|
declare -i count=3
|
||||||
declare -i seconds=1
|
declare -i seconds=0.5
|
||||||
|
|
||||||
while ((count)); do
|
while ((count)); do
|
||||||
xrandr >/dev/null
|
xrandr >/dev/null
|
||||||
|
|
15
zsh/.zshrc
15
zsh/.zshrc
|
@ -134,15 +134,15 @@ export PATH=$HOME/.local/bin:$PATH
|
||||||
# >>> mamba initialize >>>
|
# >>> mamba initialize >>>
|
||||||
# !! Contents within this block are managed by 'mamba init' !!
|
# !! Contents within this block are managed by 'mamba init' !!
|
||||||
export MAMBA_EXE="/usr/bin/micromamba";
|
export MAMBA_EXE="/usr/bin/micromamba";
|
||||||
export MAMBA_ROOT_PREFIX="$XDG_DATA_HOME/micromamba";
|
export MAMBA_ROOT_PREFIX="/home/user/.micromamba";
|
||||||
__mamba_setup="$('/usr/bin/micromamba' shell hook --shell zsh --prefix $MAMBA_ROOT_PREFIX 2> /dev/null)"
|
__mamba_setup="$('/usr/bin/micromamba' shell hook --shell zsh --prefix '/home/user/.micromamba' 2> /dev/null)"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
eval "$__mamba_setup"
|
eval "$__mamba_setup"
|
||||||
else
|
else
|
||||||
if [ -f "$MAMBA_ROOT_PREFIX/etc/profile.d/micromamba.sh" ]; then
|
if [ -f "/home/user/.micromamba/etc/profile.d/micromamba.sh" ]; then
|
||||||
. "$MAMBA_ROOT_PREFIX/etc/profile.d/micromamba.sh"
|
. "/home/user/.micromamba/etc/profile.d/micromamba.sh"
|
||||||
else
|
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
|
||||||
fi
|
fi
|
||||||
unset __mamba_setup
|
unset __mamba_setup
|
||||||
|
@ -158,6 +158,10 @@ function xterm_title_preexec () {
|
||||||
print -Pn -- '\e]2;' && print -n -- "${(q)1}\a"
|
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
|
if [[ "$TERM" == (Eterm*|alacritty*|aterm*|gnome*|konsole*|kterm*|putty*|rxvt*|screen*|tmux*|xterm*) ]]; then
|
||||||
add-zsh-hook -Uz precmd xterm_title_precmd
|
add-zsh-hook -Uz precmd xterm_title_precmd
|
||||||
|
@ -168,7 +172,6 @@ fi
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
alias gdb='gdb -q'
|
alias gdb='gdb -q'
|
||||||
alias ll='ls -lhat'
|
alias ll='ls -lhat'
|
||||||
alias o="xdg-open"
|
|
||||||
alias fzf="fzf-tmux"
|
alias fzf="fzf-tmux"
|
||||||
alias clip="xclip -selection clipboard"
|
alias clip="xclip -selection clipboard"
|
||||||
alias compress="tar --use-compress-program=lbzip2 -cvf"
|
alias compress="tar --use-compress-program=lbzip2 -cvf"
|
||||||
|
|
Loading…
Reference in New Issue