mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
first commit
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
font_family Fira Code Regular
|
||||
disable_ligatures cursor
|
||||
enable_audio_bell no
|
||||
bell_on_tab no
|
||||
# background_opacity 0.8
|
||||
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Catppuccin Kitty Mocha
|
||||
## author: Catppuccin Org
|
||||
## license: MIT
|
||||
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf
|
||||
## blurb: Soothing pastel theme for the high-spirited!
|
||||
|
||||
|
||||
|
||||
# The basic colors
|
||||
foreground #CDD6F4
|
||||
background #1E1E2E
|
||||
selection_foreground #1E1E2E
|
||||
selection_background #F5E0DC
|
||||
|
||||
# Cursor colors
|
||||
cursor #F5E0DC
|
||||
cursor_text_color #1E1E2E
|
||||
|
||||
# URL underline color when hovering with mouse
|
||||
url_color #F5E0DC
|
||||
|
||||
# Kitty window border colors
|
||||
active_border_color #B4BEFE
|
||||
inactive_border_color #6C7086
|
||||
bell_border_color #F9E2AF
|
||||
|
||||
# OS Window titlebar colors
|
||||
wayland_titlebar_color system
|
||||
macos_titlebar_color system
|
||||
|
||||
# Tab bar colors
|
||||
active_tab_foreground #11111B
|
||||
active_tab_background #CBA6F7
|
||||
inactive_tab_foreground #CDD6F4
|
||||
inactive_tab_background #181825
|
||||
tab_bar_background #11111B
|
||||
|
||||
# Colors for marks (marked text in the terminal)
|
||||
mark1_foreground #1E1E2E
|
||||
mark1_background #B4BEFE
|
||||
mark2_foreground #1E1E2E
|
||||
mark2_background #CBA6F7
|
||||
mark3_foreground #1E1E2E
|
||||
mark3_background #74C7EC
|
||||
|
||||
# The 16 terminal colors
|
||||
|
||||
# black
|
||||
color0 #45475A
|
||||
color8 #585B70
|
||||
|
||||
# red
|
||||
color1 #F38BA8
|
||||
color9 #F38BA8
|
||||
|
||||
# green
|
||||
color2 #A6E3A1
|
||||
color10 #A6E3A1
|
||||
|
||||
# yellow
|
||||
color3 #F9E2AF
|
||||
color11 #F9E2AF
|
||||
|
||||
# blue
|
||||
color4 #89B4FA
|
||||
color12 #89B4FA
|
||||
|
||||
# magenta
|
||||
color5 #F5C2E7
|
||||
color13 #F5C2E7
|
||||
|
||||
# cyan
|
||||
color6 #94E2D5
|
||||
color14 #94E2D5
|
||||
|
||||
# white
|
||||
color7 #BAC2DE
|
||||
color15 #A6ADC8
|
||||
4
playbooks/roles/desktop/meta/main.yml
Normal file
4
playbooks/roles/desktop/meta/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: info
|
||||
- role: system
|
||||
26
playbooks/roles/desktop/tasks/config.yml
Normal file
26
playbooks/roles/desktop/tasks/config.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
- name: "Copy templates : {{ context }}"
|
||||
tags:
|
||||
- config
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ home }}/{{ item.path | regex_replace('\\.j2$', '') }}"
|
||||
mode: "{{ item.mode }}"
|
||||
with_community.general.filetree:
|
||||
- ../templates/{{ context }}
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
when: item.state == 'file'
|
||||
|
||||
- name: "Copy config : {{ context }}"
|
||||
tags:
|
||||
- config
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ home }}/{{ item.path }}"
|
||||
mode: "{{ item.mode }}"
|
||||
with_community.general.filetree:
|
||||
- ../files/{{ context }}
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
when: item.state == 'file'
|
||||
33
playbooks/roles/desktop/tasks/install.yml
Normal file
33
playbooks/roles/desktop/tasks/install.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: "Unload vars : {{ context }}"
|
||||
ansible.builtin.include_vars: ../vars/empty.yml
|
||||
tags:
|
||||
- install
|
||||
|
||||
- name: "Load vars : {{ context }}"
|
||||
ansible.builtin.include_vars: "{{ item }}"
|
||||
tags:
|
||||
- install
|
||||
with_first_found:
|
||||
- files:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
- default.yml
|
||||
paths: ../vars/{{ context }}
|
||||
skip: true
|
||||
|
||||
- name: "Install dependencies : {{ context }}"
|
||||
tags:
|
||||
- install
|
||||
when: desktop_pkgs
|
||||
ansible.builtin.package:
|
||||
name: "{{ desktop_pkgs }}"
|
||||
|
||||
- name: "Install casks : {{ context }}"
|
||||
tags:
|
||||
- install
|
||||
when: desktop_casks
|
||||
community.general.homebrew_cask:
|
||||
name: "{{ desktop_casks }}"
|
||||
state: installed
|
||||
16
playbooks/roles/desktop/tasks/main.yml
Normal file
16
playbooks/roles/desktop/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Install context dependencies
|
||||
ansible.builtin.include_tasks: install.yml
|
||||
loop: "{{ contexts }}"
|
||||
loop_control:
|
||||
loop_var: context
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Configure contexts
|
||||
ansible.builtin.include_tasks: config.yml
|
||||
loop: "{{ contexts }}"
|
||||
loop_control:
|
||||
loop_var: context
|
||||
tags:
|
||||
- config
|
||||
12
playbooks/roles/desktop/vars/default/default.yml
Normal file
12
playbooks/roles/desktop/vars/default/default.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
_desktop_casks:
|
||||
- 1password
|
||||
- 1password-cli
|
||||
- kitty
|
||||
- font-fira-code
|
||||
- font-fira-mono-nerd-font
|
||||
- obsidian
|
||||
- rectangle
|
||||
- spotify
|
||||
- vlc
|
||||
- localsend
|
||||
4
playbooks/roles/desktop/vars/empty.yml
Normal file
4
playbooks/roles/desktop/vars/empty.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
desktop_pkgs: []
|
||||
desktop_casks: []
|
||||
desktop_flatpaks: []
|
||||
6
playbooks/roles/desktop/vars/personal/Darwin.yml
Normal file
6
playbooks/roles/desktop/vars/personal/Darwin.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
desktop_casks:
|
||||
- jellyfin-media-player
|
||||
- signal
|
||||
- firefox
|
||||
- tea
|
||||
5
playbooks/roles/desktop/vars/zeronorth/Darwin.yml
Normal file
5
playbooks/roles/desktop/vars/zeronorth/Darwin.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
desktop_casks:
|
||||
- slack
|
||||
- notion
|
||||
- aws-vpn-client
|
||||
Reference in New Issue
Block a user