<commit_before>define :gsettings, value:nil do
  schema, key = params[:name].split(/\//,2)
  value = params[:value]

  execute "gsettings set #{schema} #{key} #{value}" do
    command "gsettings set #{schema} #{key} \"#{value}\""
    not_if "gsettings get #{schema} #{key} | grep -F \"#{value}\""
  end
end

gsettings 'org.gnome.desktop.input-sources/xkb-options' do
  value "['ctrl:nocaps']"<commit_msg>コメントを追加<commit_after>define :gsettings, value:nil do
  schema, key = params[:name].split(/\//,2)
  value = params[:value]

  execute "gsettings set #{schema} #{key} #{value}" do
    command "gsettings set #{schema} #{key} \"#{value}\""
    not_if "gsettings get #{schema} #{key} | grep -F \"#{value}\""
  end
end

# CapsLockをCtrlにする
gsettings 'org.gnome.desktop.input-sources/xkb-options' do
  value "['ctrl:nocaps']"
{'fraction_non_alphanumeric': 0.19853836784409257, 'fraction_numerical': 0.00243605359317905, 'mean_word_length': 4.372549019607843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4126677', 'n_tokens_mistral': 301, 'n_tokens_neox': 297, 'n_words': 74}