From 2c1000af45c00d6b094ce2056b50f54905bb0651 Mon Sep 17 00:00:00 2001 From: Daniel_I_Am Date: Mon, 27 Dec 2021 16:30:47 +0100 Subject: [PATCH] Add laptop specific i3 configs --- templates/i3/i3 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/i3/i3 b/templates/i3/i3 index 40060d9..3c46555 100644 --- a/templates/i3/i3 +++ b/templates/i3/i3 @@ -19,6 +19,11 @@ set $drawingTabletStylus "HUION Huion Tablet Pen stylus" set $drawingTabletPad "HUION Huion Tablet Pad pad" {% endif %} +{% if device == "laptop" %} +# Import the GTK theming from Gnome +exec_always --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings +{% endif %} + set $alt Mod1 set $mod Mod4 @@ -73,6 +78,12 @@ exec --no-startup-id noisetorch -i -s alsa_input.pci-0000_00_1f.3.analog-stereo # screen before suspend. Use loginctl lock-session to lock your screen. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork --color=000000 +{% if device == "laptop" %} +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet +{% endif %} + # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status