From 904353d492243171638591cca43a0b72796beea6 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 18 May 2023 14:45:51 +0100 Subject: [PATCH 1/2] Add Compose to Menu key --- roles/home-gui/files/gnome-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index 3cf648b..be46b63 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -21,7 +21,7 @@ set_favorites_bar set_keyboard_and_language () { gsettings set org.gnome.desktop.input-sources show-all-sources true - gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:ralt_switch', 'lv5:rctrl_switch']" + gsettings set org.gnome.desktop.input-sources xkb-options "['compose:menu', 'lv3:ralt_switch', 'lv5:rctrl_switch']" gsettings set org.gnome.desktop.wm.keybindings switch-applications "['Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-windows "['Tab']" From 95bcec6fa5a6a4789570f01f3f8a2e10373d9bd7 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 18 May 2023 20:34:13 +0100 Subject: [PATCH 2/2] Add .clang-format function --- roles/home-cli/files/profile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 835ea38..f51274a 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -420,6 +420,20 @@ tlscheck () { fi } +myclangformat () { +cat << __EOF__ +--- +BasedOnStyle: WebKit + +BreakBeforeBraces: Stroustrup +ColumnLimit: 100 +ContinuationIndentWidth: 2 +Cpp11BracedListStyle: true +FixNamespaceComments: true +... +__EOF__ +} + if [ -r "$XDG_CONFIG_HOME/profile.local" ] then . "$XDG_CONFIG_HOME/profile.local"