Update a couple of things

684251ff6748d4b39f0f8066f0f79a0bfa7afdcb
Alexis Sellier committed ago 1 parent 742dfc6d
.xinitrc +2 -0
7 7
xset -dpms                           # Keep screen on at all times
8 8
xset s off                           #
9 9
xset m 7/5 0                         # Pointer settings
10 10
setxkbmap -option compose:ralt       # Set compose key to R-Alt
11 11
12 +
. ~/bin/toggle-displays
13 +
12 14
[ -f ~/.profile ]   && . ~/.profile
13 15
[ -f ~/.synaptics ] && . ~/.synaptics
14 16
15 17
if [ -f ~/.Xmodmap ]; then
16 18
  xmodmap ~/.Xmodmap;
.xmobarrc +1 -1
22 22
          , Run Battery    [ "--template", "⌁ <left>%" ] 100
23 23
          , Run StdinReader
24 24
          ]
25 25
     , sepChar = "%"
26 26
     , alignSep = "}{"
27 -
     , template = "%StdinReader%  }{ %book% ┊ %brightness% ┊ %battery% ┊ %wlp58s0wi% ┊ %seedbox% ┊ %dropbox% ┊ %multicpu% · %memory% · %disku% · %dynnetwork% ┊ <fc=#aaaaaa>%date%</fc> "
27 +
     , template = "%StdinReader%  }{ %book%   %brightness%   %battery%   %wlp58s0wi%   %seedbox%   %dropbox%   %multicpu% · %memory% · %disku% · %dynnetwork%   <fc=#aaaaaa>%date%</fc> "
28 28
}
bin/toggle-displays +2 -2
2 2
3 3
internal=eDP1
4 4
external=DP1
5 5
6 6
if xrandr | grep "$external disconnected"; then
7 -
  xrandr --output "$external" --off --output "$internal" --auto
7 +
  xrandr --output "$external" --off --output "$internal" --auto --primary
8 8
else
9 -
  xrandr --output "$internal" --off --output "$external" --auto
9 +
  xrandr --output "$internal" --off --output "$external" --auto --primary
10 10
fi