瀏覽代碼

Merge branch 'master' of git.thengo.net:ka/ansible-role-home

pull/1/head
父節點
當前提交
5875e41fc2
共有 3 個文件被更改,包括 16 次插入3 次删除
  1. +1
    -0
      tasks/git.yaml
  2. +8
    -0
      templates/git/gitconfig.j2
  3. +7
    -3
      templates/i3/i3.config.j2

+ 1
- 0
tasks/git.yaml 查看文件

@@ -6,3 +6,4 @@
dest: ~/.gitconfig
when:
- git_user_email is defined
- git_user_name is defined

+ 8
- 0
templates/git/gitconfig.j2 查看文件

@@ -1,5 +1,13 @@
[user]
{% if git_user_email is defined %}
email = {{git_user_email}}
{% endif %}
{% if git_user_name is defined %}
name = {{git_user_name}}
{% endif %}
[init]
defaultBranch = main
{% if github_username is defined %}
[github]
user = {{github_username}}
{% endif %}

+ 7
- 3
templates/i3/i3.config.j2 查看文件

@@ -47,11 +47,13 @@ bindsym XF86HomePage exec {{default_browser}}
bindsym XF86Calculator exec {{calculator_command}}

## Special modes
bindsym $mod+less mode timer
bindsym $mod+t mode timer
bindsym $mod+s mode session
bindsym $mod+c mode clipboard
bindcode $mod+49 mode "remote"

## Activity
bindsym $mod+less exec "~/bin/timer select_activity"

## Applications
bindsym $mod+Return exec "{{default_terminal}}"
@@ -118,7 +120,6 @@ bindsym $mod+KP_Add exec {{points_up_command}}
# $mod+l
# $mod+n
# $mod+o
# $mod+t
# $mod+u
# $mod+adiaeresis
# $mod+odiaeresis
@@ -167,7 +168,10 @@ bindsym $mod+KP_Add exec {{points_up_command}}

# Special modes
bindcode $plexmod+49 mode "session"
bindsym $plexmod+less mode timer

# activity
bindsym $plexmod+less exec "~/bin/timer select_activity"

{% endmacro %}
{{ overall() }}