better uname checks
This commit is contained in:
parent
cc3bbf0fa2
commit
736d178241
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# MONITORS #
|
||||
if [ "$(uname -n)" = 'arch-desktop' ]; then
|
||||
if [[ "$(uname -n)" == *'desktop'* ]]; then
|
||||
bspc monitor HDMI-0 -d 1 2 3 4 5
|
||||
bspc monitor HDMI-1 -d 6 7 8 9 10
|
||||
else
|
||||
|
|
4
.xinitrc
4
.xinitrc
|
@ -37,11 +37,11 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|||
fi
|
||||
|
||||
# Automatic brightness controll
|
||||
[[ $(uname -n) == "arch-laptop" ]] && clight &
|
||||
[[ $(uname -n) == *"laptop"* ]] && clight &
|
||||
|
||||
# Set cursor
|
||||
xsetroot -cursor_name left_ptr
|
||||
|
||||
[[ $(uname -n) == "arch-desktop" ]] && xrandr --output HDMI-0 --primary --output HDMI-1 --left-of HDMI-0
|
||||
[[ $(uname -n) == *"desktop"* ]] && xrandr --output HDMI-0 --primary --output HDMI-1 --left-of HDMI-0
|
||||
|
||||
exec bspwm
|
||||
|
|
Loading…
Reference in a new issue