* Added support for HiDPI devices * Only affects devices with a DPI >= 192 * Most screen objects are doubled in size * Updated .conkyrc * Vertical offset now set to 24 or 48 (to match URxvt) * Removed extra line after network adapters * Updated .xinitrc * Removed dunst logic since `cbatticon` no longer sends notifications * Update .Xresources for all programs before `xrdb -merge` * Update hostname after `connect-to-network` * URxvt windows are now based on a 16:9 ratio (instead of 4:3) * Removed * .update_wallpaper (integrated with .xinitrc) * .urxvt_default_res (integrated with .update_dpi_settings) * Fixes issue #45
16 lines
340 B
Bash
Executable file
16 lines
340 B
Bash
Executable file
#!/bin/bash
|
|
|
|
IP="$(ip a show scope global \
|
|
| grep inet \
|
|
| head -1 \
|
|
| sed -r 's#.*inet ([0-9]+.[0-9]+.[0-9]+.[0-9]+.)/.*#\1#')"
|
|
HOSTNAME="$(dig +noall +answer +short -x "$IP" \
|
|
| head -1 \
|
|
| sed 's/\.$//')"
|
|
|
|
# Set hostname and renew DHCP lease
|
|
sudo hostnamectl set-hostname "${HOSTNAME}"
|
|
sudo dhclient -r
|
|
sleep 1
|
|
sudo dhclient
|
|
|