From 18c61b64fa79592b8419fd66c3b9cd7a3855bc47 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Mon, 16 Sep 2019 20:50:09 -0400 Subject: [PATCH] Better support for the laptop --- i3/desktop.conf | 2 ++ i3/laptop.conf | 10 ++++++++++ i3/shared.conf | 3 --- polybar/config | 2 -- 4 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 i3/laptop.conf diff --git a/i3/desktop.conf b/i3/desktop.conf index 81d47ab..83b67bd 100644 --- a/i3/desktop.conf +++ b/i3/desktop.conf @@ -10,6 +10,8 @@ workspace $ws8 output DVI-D-0 workspace $ws9 output HDMI-0 workspace $ws10 output HDMI-0 +exec --no-startup-id MONITOR=DVI-D-0 polybar aqua + mode "$g13" { bindsym 1 exec --no-startup-id cat ~/.config/g13/overwatch.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/overwatch.lpbm > /tmp/g13-0; mode "default" bindsym 2 exec --no-startup-id cat ~/.config/g13/resolve.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/resolve.lpbm > /tmp/g13-0; mode "default" diff --git a/i3/laptop.conf b/i3/laptop.conf new file mode 100644 index 0000000..4605279 --- /dev/null +++ b/i3/laptop.conf @@ -0,0 +1,10 @@ +exec --no-startup-id MONITOR=LVDS-1 polybar aqua + +# Screen brightness controls +bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness +bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness + +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec amixer set Master 3%+ #increase sound volume +bindsym XF86AudioLowerVolume exec amixer set Master 3%- #decrease sound volume +bindsym XF86AudioMute exec amixer set Master toggle # mute sound \ No newline at end of file diff --git a/i3/shared.conf b/i3/shared.conf index f4ce784..62de67d 100644 --- a/i3/shared.conf +++ b/i3/shared.conf @@ -144,9 +144,6 @@ mode "resize" { bindsym $mod+r mode "resize" -# Start bar -exec --no-startup-id polybar aqua - # Startup scripts exec --no-startup-id sh ~/.config/scripts/connect-nas.sh diff --git a/polybar/config b/polybar/config index 6be8e69..096ea5d 100644 --- a/polybar/config +++ b/polybar/config @@ -6,12 +6,10 @@ pink = #E91E63 pink-light = #FFCDD2 alert = #E91E63 - [bar/aqua] width = 100% height = 22 radius = 0.0 -monitor = ${env:MONITOR:DVI-D-0} fixed-center = true