Add better laptop configs
This commit is contained in:
parent
9ca659dbe7
commit
e3392c682a
5 changed files with 44 additions and 14 deletions
|
@ -10,17 +10,21 @@ if [[ $host_name == "portalo" ]]; then
|
||||||
primary="HDMI-A-0"
|
primary="HDMI-A-0"
|
||||||
secondary="DVI-D-0"
|
secondary="DVI-D-0"
|
||||||
|
|
||||||
bspc query -M --names
|
|
||||||
|
|
||||||
bspc monitor $primary -d web terminal 3 4 5 6 game
|
bspc monitor $primary -d web terminal 3 4 5 6 game
|
||||||
bspc monitor $secondary -d side-view voip messenger
|
bspc monitor $secondary -d side-view voip messenger
|
||||||
|
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
|
||||||
bspc wm -O $primary $secondary
|
bspc wm -O $primary $secondary
|
||||||
|
|
||||||
elif [[ $host_name == *"laptop"* ]]; then
|
elif [[ $host_name == *"laptop"* ]]; then
|
||||||
bspc monitor "eDP-1" -d web terminal 3 4 5 6 7 8 9 10
|
primary="eDP-1"
|
||||||
|
secondary="HDMI-2"
|
||||||
|
|
||||||
|
bspc monitor $primary -d web terminal 3 4 5 6 messenger
|
||||||
|
bspc monitor $secondary -d side-view 9 10
|
||||||
|
|
||||||
|
sleep 0.1
|
||||||
|
bspc wm -O $primary $secondary
|
||||||
else
|
else
|
||||||
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
|
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -11,9 +11,10 @@ export EDITOR='/usr/bin/vim'
|
||||||
|
|
||||||
export GOPATH="$XDG_DATA_HOME/go"
|
export GOPATH="$XDG_DATA_HOME/go"
|
||||||
|
|
||||||
export MAKEFLAGS="-j$(grep -c ^processor /proc/cpuinfo)"
|
export KUBECONFIG="$HOME/.kube/config"
|
||||||
|
|
||||||
export MAILCAPS="$XDG_CONFIG_HOME/mailcap/mailcaprc"
|
export MAILCAPS="$XDG_CONFIG_HOME/mailcap/mailcaprc"
|
||||||
|
export MAKEFLAGS="-j$(grep -c ^processor /proc/cpuinfo)"
|
||||||
export MARKPATH="$XDG_CONFIG_HOME/zsh/jump_marks"
|
export MARKPATH="$XDG_CONFIG_HOME/zsh/jump_marks"
|
||||||
|
|
||||||
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config"
|
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config"
|
||||||
|
|
|
@ -68,16 +68,25 @@
|
||||||
tray-position = none
|
tray-position = none
|
||||||
|
|
||||||
|
|
||||||
[bar/laptop-primary]
|
[bar/laptop-base]
|
||||||
inherit = bar/base
|
inherit = bar/base
|
||||||
|
|
||||||
monitor = eDP-1
|
|
||||||
|
|
||||||
modules-left = bspwm
|
modules-left = bspwm
|
||||||
modules-center =
|
modules-center = mpd
|
||||||
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth check-arch-updates date powermenu
|
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth check-arch-updates date powermenu
|
||||||
|
|
||||||
eth-interface = enp2s0f1
|
eth-interface = enp2s0f1
|
||||||
wlan-interface = wlp3s0
|
wlan-interface = wlp3s0
|
||||||
|
|
||||||
|
[bar/laptop-primary]
|
||||||
|
inherit = bar/laptop-base
|
||||||
|
|
||||||
|
monitor = eDP-1
|
||||||
|
|
||||||
|
[bar/laptop-secondary]
|
||||||
|
inherit = bar/laptop-base
|
||||||
|
|
||||||
|
monitor = HDMI-2
|
||||||
|
tray-position = none
|
||||||
|
|
||||||
; vim: ft=dosini
|
; vim: ft=dosini
|
||||||
|
|
|
@ -12,6 +12,7 @@ if [[ $host_name == "portalo" ]]; then
|
||||||
polybar portalo-secondary &
|
polybar portalo-secondary &
|
||||||
elif [[ $host_name == *"laptop"* ]]; then
|
elif [[ $host_name == *"laptop"* ]]; then
|
||||||
polybar laptop-primary &
|
polybar laptop-primary &
|
||||||
|
polybar laptop-secondary &
|
||||||
else
|
else
|
||||||
polybar laptop-primary & # TODO
|
polybar base &
|
||||||
fi
|
fi
|
||||||
|
|
23
.xprofile
23
.xprofile
|
@ -1,4 +1,4 @@
|
||||||
source $HOME/.config/environment
|
. $HOME/.config/environment
|
||||||
|
|
||||||
xcompmgr -n -f -D3 &
|
xcompmgr -n -f -D3 &
|
||||||
numlockx on
|
numlockx on
|
||||||
|
@ -6,7 +6,6 @@ numlockx on
|
||||||
setxkbmap de
|
setxkbmap de
|
||||||
setxkbmap -option caps:none
|
setxkbmap -option caps:none
|
||||||
|
|
||||||
|
|
||||||
if [ -x "$(command -v gpgconf)" ]
|
if [ -x "$(command -v gpgconf)" ]
|
||||||
then
|
then
|
||||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
@ -14,11 +13,20 @@ then
|
||||||
gpg2 --card-status > /dev/null
|
gpg2 --card-status > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_autostart_on_launch()
|
_autostart_portalo()
|
||||||
{
|
{
|
||||||
xrandr --output DVI-D-0 --left-of HDMI-A-0
|
xrandr --output DVI-D-0 --left-of HDMI-A-0
|
||||||
xrandr --output HDMI-A-0 --mode 2560x1440 --refresh 144
|
xrandr --output HDMI-A-0 --mode 2560x1440 --refresh 144
|
||||||
|
}
|
||||||
|
|
||||||
|
_autostart_laptop()
|
||||||
|
{
|
||||||
|
xrandr --output eDP-1 --auto
|
||||||
|
xrandr --output HDMI-2 --left-of eDP-1 --auto
|
||||||
|
}
|
||||||
|
|
||||||
|
_autostart_defaults()
|
||||||
|
{
|
||||||
dunst &
|
dunst &
|
||||||
ckb-next --background &
|
ckb-next --background &
|
||||||
parcellite &
|
parcellite &
|
||||||
|
@ -67,6 +75,13 @@ _autostart_on_launch()
|
||||||
mopidy &
|
mopidy &
|
||||||
}
|
}
|
||||||
|
|
||||||
_autostart_on_launch &
|
host_name=$(cat /proc/sys/kernel/hostname)
|
||||||
|
if [[ $host_name == "portalo" ]]; then
|
||||||
|
_autostart_portalo &
|
||||||
|
elif [[ $host_name == *"laptop"* ]]; then
|
||||||
|
_autostart_laptop &
|
||||||
|
fi
|
||||||
|
|
||||||
|
_autostart_defaults &
|
||||||
|
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
|
|
Loading…
Reference in a new issue