From be256a40e199194b69ae24b055822f0aed971d3c Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Wed, 17 Jun 2020 21:29:54 +0100 Subject: Set keyboard layout to GB when starting x-server --- .config/xinitrc | 6 ++++++ .config/xprofile | 3 +++ .local/bin/.gitignore | 2 -- .local/bin/remaps | 3 +++ .xprofile | 1 + 5 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .config/xprofile delete mode 100644 .local/bin/.gitignore create mode 100755 .local/bin/remaps create mode 120000 .xprofile diff --git a/.config/xinitrc b/.config/xinitrc index cbdfffd..c5f12cb 100644 --- a/.config/xinitrc +++ b/.config/xinitrc @@ -1,4 +1,10 @@ #!/bin/sh +# xinitrc runs when you run starx + +# Source xprofile as that contains commands that need run whenever we startx. +# Commands are kept in xprofile as that will run automatically if a display manager is used when logging in. +. ~/.xprofile + exec ~/.local/bin/dwm diff --git a/.config/xprofile b/.config/xprofile new file mode 100644 index 0000000..18bcf24 --- /dev/null +++ b/.config/xprofile @@ -0,0 +1,3 @@ +#!/bin/sh + +remaps & # Sets correct keyboard layout and remaps some keys to make life easier in dwm. diff --git a/.local/bin/.gitignore b/.local/bin/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/.local/bin/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/.local/bin/remaps b/.local/bin/remaps new file mode 100755 index 0000000..0e81ee9 --- /dev/null +++ b/.local/bin/remaps @@ -0,0 +1,3 @@ +#!/bin/sh + +setxkbmap -layout gb diff --git a/.xprofile b/.xprofile new file mode 120000 index 0000000..c000896 --- /dev/null +++ b/.xprofile @@ -0,0 +1 @@ +.config/xprofile \ No newline at end of file -- cgit v1.2.3-13-gbd6f