Split hardware configs to different file
I'm going to be testing wlgreet in sway mode
This commit is contained in:
parent
4a935eb99b
commit
35bd0f42ea
54
sway/config
54
sway/config
|
@ -1,55 +1,7 @@
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
|
|
||||||
################################################################################
|
# Hardware configuration
|
||||||
# Keyboard
|
include $HOME/.dotfiles/sway/devices
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# I use a Dvorak keyboard, like a weirdo
|
|
||||||
input * xkb_layout "us"
|
|
||||||
input * xkb_variant "dvorak"
|
|
||||||
|
|
||||||
# Key repeat values
|
|
||||||
input * repeat_delay 300
|
|
||||||
input * repeat_rate 30
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Mouse
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# TrackPoint acceleration
|
|
||||||
input 1133:49291:Logitech_G502_HERO_SE accel_profile flat
|
|
||||||
input 1133:49291:Logitech_G502_HERO_SE pointer_accel -0.966
|
|
||||||
|
|
||||||
# When using a 2-button mouse, simulate button 3 with simultaneous press
|
|
||||||
input * middle_emulation enable
|
|
||||||
|
|
||||||
# Hide cursor after 5 seconds
|
|
||||||
seat seat0 hide_cursor 5000
|
|
||||||
|
|
||||||
# Move cursor to center of container when switching
|
|
||||||
mouse_warping container
|
|
||||||
|
|
||||||
# Disable mouse as trigger to wake from idle
|
|
||||||
#seat * idle_wake keyboard switch
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Touchscreen
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# Map touchscreen to output
|
|
||||||
input 1386:20615:Wacom_Pen_and_multitouch_sensor_Pen map_to_output eDP-1
|
|
||||||
input 1386:20615:Wacom_Pen_and_multitouch_sensor_Finger map_to_output eDP-1
|
|
||||||
#
|
|
||||||
# bindswitch [lib|tablet]:[on|off|toggle]
|
|
||||||
bindswitch --reload tablet:on exec ${HOME}/scripts/thinkpad/tablet_mode.sh on ; busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
|
||||||
bindswitch --reload tablet:off exec ${HOME}/scripts/thinkpad/tablet_mode.sh off; busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Lid switch
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# Restore display configuration on reload
|
|
||||||
bindswitch --reload lid:on /home/jpm/scripts/sway/displays.pl detached
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Appearance
|
# Appearance
|
||||||
|
@ -73,7 +25,7 @@ font pango:Anonymous Pro 12
|
||||||
|
|
||||||
# Start Waybar with IPC functionality (requires waybar>=0.9.9, wlroots>=0.15)
|
# Start Waybar with IPC functionality (requires waybar>=0.9.9, wlroots>=0.15)
|
||||||
bar bar-1 {
|
bar bar-1 {
|
||||||
swaybar_command /usr/bin/waybar -c $HOME/.config/waybar/config
|
swaybar_command $HOME/.dotfiles/nix/bin/waybar -c $HOME/.config/waybar/config
|
||||||
mode hide
|
mode hide
|
||||||
hidden_state hide
|
hidden_state hide
|
||||||
position bottom
|
position bottom
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
################################################################################
|
||||||
|
# Keyboard
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# I use a Dvorak keyboard, like a weirdo
|
||||||
|
input * xkb_layout "us"
|
||||||
|
input * xkb_variant "dvorak"
|
||||||
|
|
||||||
|
# Key repeat values
|
||||||
|
input * repeat_delay 300
|
||||||
|
input * repeat_rate 30
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Mouse
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# TrackPoint acceleration
|
||||||
|
input 1133:49291:Logitech_G502_HERO_SE accel_profile flat
|
||||||
|
input 1133:49291:Logitech_G502_HERO_SE pointer_accel -0.966
|
||||||
|
|
||||||
|
# When using a 2-button mouse, simulate button 3 with simultaneous press
|
||||||
|
input * middle_emulation enable
|
||||||
|
|
||||||
|
# Hide cursor after 5 seconds
|
||||||
|
seat seat0 hide_cursor 5000
|
||||||
|
|
||||||
|
# Move cursor to center of container when switching
|
||||||
|
mouse_warping container
|
||||||
|
|
||||||
|
# Disable mouse as trigger to wake from idle
|
||||||
|
#seat * idle_wake keyboard switch
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Touchscreen
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# Map touchscreen to output
|
||||||
|
input 1386:20615:Wacom_Pen_and_multitouch_sensor_Pen map_to_output eDP-1
|
||||||
|
input 1386:20615:Wacom_Pen_and_multitouch_sensor_Finger map_to_output eDP-1
|
||||||
|
#
|
||||||
|
# bindswitch [lib|tablet]:[on|off|toggle]
|
||||||
|
bindswitch --reload tablet:on exec ${HOME}/scripts/thinkpad/tablet_mode.sh on ; busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
||||||
|
bindswitch --reload tablet:off exec ${HOME}/scripts/thinkpad/tablet_mode.sh off ; busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Lid switch
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# Restore display configuration on reload
|
||||||
|
bindswitch --reload lid:on /home/jpm/scripts/sway/displays.pl detached
|
Loading…
Reference in New Issue