dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

dock (358B)


      1 #!/bin/sh -e
      2 
      3 # switch to the external display
      4 xrandr | grep 'DP-2 connected' || { >&2 notify-send 'HDMI-1 disconnected'; exit 1; }
      5 xrandr --output DP-2 --auto --output eDP-1 --off
      6 
      7 # update dpi
      8 xrdb "$HOME/etc/x11/xresources"
      9 echo "*dpi: 96" | xrdb -merge
     10 
     11 doas sysctl machdep.lidaction=0
     12 
     13 xwallpaper --zoom /home/anon/usr/img/wal/full/wallhaven-6km8o6.jpg