commit de85e406b9add3aa24a4839654fd526cddadff51
parent ae9d2ac2cdddf4494c993cd1569fedbe41b09f52
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Thu, 9 Dec 2021 00:47:13 +0100
Move to Fedora
Diffstat:
6 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/.config/xinitrc b/.config/xinitrc
@@ -1,6 +1,6 @@
/home/oscar/.local/bin/configure-monitors
xrdb ~/.config/Xresources
-xwallpaper --zoom "${XDG_DATA_HOME:-$HOME/.local/share}/dwm/wallpaper.png" &
+feh --bg-scale "${XDG_DATA_HOME:-$HOME/.local/share}/dwm/wallpaper.png" &
xautolock -detectsleep -corners 0-00 -time 5 \
-locker "slock" \
-notify 30 \
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/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && \
- source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" 2> /dev/null
+[ -f "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && \
+ source "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" 2> /dev/null
diff --git a/.config/zsh/aliases b/.config/zsh/aliases
@@ -30,8 +30,6 @@ 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 apt update && sudo apt -y upgrade; pkill -RTMIN+4 dwmblocks"
-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"
@@ -51,6 +49,8 @@ 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 eDP1 --off --output DP2 --auto
+ xrandr --output eDP-1 --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 "HDMI2 connected")" ]; then
- xrandr --output eDP1 --off --output HDMI2 --auto
+elif [ -n "$(xrandr --query | grep "HDMI-2 connected")" ]; then
+ xrandr --output eDP-1 --off --output HDMI-2 --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 "HDMI2 connected")" ]; then
-# xrandr --output eDP1 --off --output HDMI2 --mode 3840x2160
+# elif [ -n "$(xrandr --query | grep "HDMI-2 connected")" ]; then
+# xrandr --output eDP-1 --off --output HDMI-2 --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 eDP1 --auto --output DP2 --off
+ xrandr --output eDP-1 --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 " $(xbacklight -get)%" | sed "s/\.[0-9]*//g"
+echo " $(light)%" | sed "s/\.[0-9]*//g"
diff --git a/.local/bin/dwmblocks/dwmb-updates b/.local/bin/dwmblocks/dwmb-updates
@@ -1,7 +1,6 @@
#!/bin/sh
-UPDATES="$(checkupdates | wc -l)"
+UPDATES="$(sudo dnf --quiet check-update | tail -n +2 | wc -l)"
if [ "0" != "$UPDATES" ]; then
echo " $UPDATES"
- sudo checkupdates -d >/dev/null 2>&1 &
fi