From 6a50246091abab533f0f6d750b8408c52bb5b88d Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Tue, 16 Aug 2022 20:01:59 +0800 Subject: [PATCH 1/2] Updated bash profile. --- .bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 5112cad..724a2d4 100644 --- a/.bash_profile +++ b/.bash_profile @@ -17,7 +17,7 @@ export _JAVA_AWT_WM_NONREPARENTING=1 if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then if [[ ! -z "$IS_LAPTOP" ]]; then - exec startx + exec dbus-run-session sway else exec start-sway.sh fi From 4c7feb15ea1d7cfad08015f62ea64995b15f9c4a Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Tue, 16 Aug 2022 20:06:12 +0800 Subject: [PATCH 2/2] Add keyboard config for laptop. --- .config/sway/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/sway/config b/.config/sway/config index 6b618fa..7e9b415 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -91,6 +91,11 @@ exec swayidle -w \ # input 1133:50503:Logitech_USB_Receiver accel_profile flat input 1133:16500:Logitech_G304 accel_profile flat + input 1:1:AT_Translated_Set_2_keyboard { + xkb_layout "us" + xkb_variant "colemak" + xkb_options "caps:ctrl_modifier,altwin:swap_alt_win" + } # You can get the names of your inputs by running: swaymsg -t get_inputs # Read `man 5 sway-input` for more information about this section.