Initial i3 configuration

This is derived from my Awesome configuration. Still a lot to do from
a WM perspective. The organization is a bit different and I am giving
it up on the per-display systemd units as it does not really work due
to the fact we only have one user DBus and one environment.
This commit is contained in:
Vincent Bernat 2021-07-03 14:13:56 +02:00
parent d3af9e4890
commit d85a504c53
95 changed files with 383 additions and 3116 deletions

View file

@ -9,8 +9,8 @@ name="$4"
# Load the given keymap
xkb() {
xkbcomp -i ${device} -w 0 -I$HOME/.config/awesome/xkb \
$HOME/.config/awesome/xkb/$1.xkb ${DISPLAY}
xkbcomp -i ${device} -w 0 -I$HOME/.config/i3/dotfiles/xkb \
$HOME/.config/i3/dotfiles/xkb/$1.xkb ${DISPLAY}
}
case $event in
@ -30,7 +30,7 @@ case "$event,$use,$(uname -n),$name" in
done
;;
*,XISlaveKeyboard,zoro,"AT Translated Set 2 keyboard")
xkb x1
xkb x1gen2
;;
*,XISlaveKeyboard,*,"ThinkPad Extra Buttons")
xkb thinkpad-extra

View file

@ -33,15 +33,12 @@ xrandr --dpi $dpi
# Build xsettingsd
{
cat ~/.config/awesome/xsettingsd
cat ~/.config/i3/xsettingsd
echo Xft/DPI $(( $dpi*1024 ))
echo Xft/RGBA \"$( [ $dpi -gt 144 ] && echo none || echo rgb )\"
echo Gdk/WindowScalingFactor $(( $dpi/96 ))
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
} > ~/.xsettingsd
# Signal xsettingsd
systemctl --user reload xsettingsd@$(systemd-escape -- "$DISPLAY").service
# Also use xrdb for very old stuff (you know, LibreOffice)
echo Xft.dpi: $dpi | xrdb -merge

View file

@ -40,7 +40,7 @@ case "$1" in
# First, pause any music player
playerctl -a pause
# Then, lock screen
i3lock -n -e -i $HOME/.cache/awesome/current-wallpaper-${display}.png -t -f
i3lock -n -e -i $HOME/.cache/i3/current-wallpaper.png -t -f
echo "lock: unlock screen"
;;
esac