commit 44d16c324be58acbc5b6df361110d6de2ff610da
parent 2c01a7139b9a1a46dc2d7862b586159f3e113e1c
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Thu, 9 Dec 2021 01:12:19 +0100
That did not last long... (back to Arch!)
Diffstat:
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
@@ -40,5 +40,5 @@ bindkey -M menuselect 'j' vi-down-line-or-history
[ -f "$XDG_CONFIG_HOME/zsh/key-bindings.zsh" ] && source "$XDG_CONFIG_HOME/zsh/key-bindings.zsh"
# Include the highlighting plug-in
-[ -f "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && \
- source "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" 2> /dev/null
+[ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && \
+ source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" 2> /dev/null
diff --git a/.config/zsh/aliases b/.config/zsh/aliases
@@ -30,6 +30,7 @@ alias vw="cd $HOME/Documents/wiki && vim index.md"
alias bvw="firefox $HOME/Documents/wiki/build/html/index.html"
alias c="git --git-dir=$HOME/.local/share/dotfiles --work-tree=$HOME"
alias cv="GIT_DIR=$HOME/.local/share/dotfiles GIT_WORK_TREE=$HOME nvim -c Git -c only"
+alias up="sudo pacman -Syu && yes | sudo pacman -Scc; pkill -RTMIN+4 dwmblocks"
alias autoremove="sudo pacman -Qtdq | sudo pacman -Rns -; yes | sudo pacman -Scc"
alias ca="cal -m -3"
@@ -50,8 +51,6 @@ alias ds="cd $HOME/.local/src && ls"
alias dvw="cd $HOME/Documents/wiki && ls"
alias dw="cd $HOME/Downloads && ls"
-alias up="sudo dnf -y upgrade; pkill -RTMIN+4 dwmblocks"
-
# dotfiles' repository metafiles
c-clean() {
rm $HOME/README.md $HOME/COPYING
diff --git a/.local/bin/configure-monitors b/.local/bin/configure-monitors
@@ -3,28 +3,28 @@
xr="${XDG_CONFIG_HOME:-$HOME/.config}/Xresources"
if [ -n "$(xrandr --query | grep "DP2 connected")" ]; then
- xrandr --output eDP-1 --off --output DP2 --auto
+ xrandr --output eDP1 --off --output DP2 --auto
if grep --quiet "Xft.dpi: 192" "$xr"; then
sed -i "s/^Xft.dpi: 192/! Xft.dpi: 192/g" "$xr"
else
echo "! Xft.dpi: 192" >> "$xr"
fi
-elif [ -n "$(xrandr --query | grep "HDMI-2 connected")" ]; then
- xrandr --output eDP-1 --off --output HDMI-2 --auto
+elif [ -n "$(xrandr --query | grep "HDMI2 connected")" ]; then
+ xrandr --output eDP1 --off --output HDMI2 --auto
if grep --quiet "Xft.dpi: 192" "$xr"; then
sed -i "s/^Xft.dpi: 192/! Xft.dpi: 192/g" "$xr"
else
echo "! Xft.dpi: 192" >> "$xr"
fi
-# elif [ -n "$(xrandr --query | grep "HDMI-2 connected")" ]; then
-# xrandr --output eDP-1 --off --output HDMI-2 --mode 3840x2160
+# elif [ -n "$(xrandr --query | grep "HDMI2 connected")" ]; then
+# xrandr --output eDP1 --off --output HDMI2 --mode 3840x2160
# if grep --quiet "Xft.dpi: 192" "$xr"; then
# sed -i "s/^! Xft.dpi: 192/Xft.dpi: 192/g" "$xr"
# else
# echo "Xft.dpi: 192" >> "$xr"
# fi
else
- xrandr --output eDP-1 --auto --output DP2 --off
+ xrandr --output eDP1 --auto --output DP2 --off
if grep --quiet "Xft.dpi: 192" "$xr"; then
sed -i "s/^! Xft.dpi: 192/Xft.dpi: 192/g" "$xr"
else
diff --git a/.local/bin/dwmblocks/dwmb-backlight b/.local/bin/dwmblocks/dwmb-backlight
@@ -1,3 +1,3 @@
#!/bin/sh
-echo " $(light)%" | sed "s/\.[0-9]*//g"
+echo " $(xbacklight -get)%" | sed "s/\.[0-9]*//g"
diff --git a/.local/bin/dwmblocks/dwmb-updates b/.local/bin/dwmblocks/dwmb-updates
@@ -1,6 +1,7 @@
#!/bin/sh
-UPDATES="$(sudo dnf --quiet check-update | tail -n +2 | wc -l)"
+UPDATES="$(checkupdates | wc -l)"
if [ "0" != "$UPDATES" ]; then
echo " $UPDATES"
+ sudo checkupdates -d >/dev/null 2>&1 &
fi