Add laptop specific i3 configs

This commit is contained in:
Daniel_I_Am 2021-12-27 16:30:47 +01:00
parent 9438616aed
commit 2c1000af45
No known key found for this signature in database
GPG Key ID: FC83834B306E8F14

View File

@ -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