Compare commits

...

5 commits

6 changed files with 108 additions and 16 deletions

View file

@ -6,7 +6,7 @@ swaylock_flags:
- line-uses-inside - line-uses-inside
swaylock_options: swaylock_options:
image: '{{ swaylock_image | default("/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png") }}' image: '{{ swaylock_image | default("~/medias/images/wallpapers/lockscreen.png") }}'
scaling: '{{ swaylock_image_scale | default("fit") }}' scaling: '{{ swaylock_image_scale | default("fit") }}'
color: '000000' color: '000000'
indicator-radius: 70 indicator-radius: 70

View file

@ -1,19 +1,19 @@
--- ---
sway_workspaces: sway_workspaces:
1: '1: ' 1: '1: '
2: '2: ' 2: '2: 󰇮'
3: '3: ' 3: '3: 󰈹'
4: '4: ' 4: '4: 󰍦'
5: '5: ' 5: '5: '
6: '6: ' 6: '6: 󰈙'
7: '7: ' 7: '7: '
8: '8' 8: '8: '
9: '9' 9: '9: '
0: '10' 0: '10: '
sway_rules: sway_rules:
- verb: 'assign' - verb: 'assign'
query: '[app_id="^Firefox$"]' query: '[app_id="^[Ff]irefox$"]'
action: 3 action: 3
- verb: 'assign' - verb: 'assign'
query: '[app_id="KeePassXC$"]' query: '[app_id="KeePassXC$"]'

View file

@ -9,22 +9,22 @@
- name: Merge Sway output variable - name: Merge Sway output variable
ansible.builtin.set_fact: ansible.builtin.set_fact:
sway_outputs: '{{ local_sway_outputs | sway_outputs: '{{ sway_outputs |
community.general.lists_mergeby(sway_outputs, "id") }}' community.general.lists_mergeby(local_sway_outputs, "id") }}'
when: local_sway_outputs is defined when: local_sway_outputs is defined
- name: Merge Sway input variable - name: Merge Sway input variable
ansible.builtin.set_fact: ansible.builtin.set_fact:
sway_inputs: '{{ local_sway_inputs | sway_inputs: '{{ sway_inputs |
community.general.lists_mergeby( sway_inputs, "name" ) }}' community.general.lists_mergeby( local_sway_inputs, "name" ) }}'
when: local_sway_inputs is defined when: local_sway_inputs is defined
- name: Merge Kanshi profiles variable - name: Merge Kanshi profiles variable
ansible.builtin.set_fact: ansible.builtin.set_fact:
kanshi_profiles: '{{ local_kanshi_profiles | kanshi_profiles: '{{ kanshi_profiles |
community.general.lists_mergeby(kanshi_profiles, "profile") }}' community.general.lists_mergeby(local_kanshi_profiles, "profile") }}'
when: local_kanshi_profiles is defined when: local_kanshi_profiles is defined
- name: Install CLI stuff - name: Install CLI stuff
hosts: all hosts: all
tasks: tasks:

View file

@ -0,0 +1,9 @@
---
kanshi_profiles:
- profile: 'home'
screens:
- id: 'iiyama_27_4k_h'
position: '0,0'
- id: 'iiyama_27_4k_v'
position: '1920,0'
transform: 270

6
vars/mrmeeseeks/sway.yml Normal file
View file

@ -0,0 +1,6 @@
---
local_sway_outputs:
- id: 'bg'
name: '*'
options:
bg: '~/medias/images/wallpapers/desktop.jpg center #000000'

View file

@ -0,0 +1,77 @@
---
waybar_options:
layer: "top"
spacing: 6
disable-toolptips: true
modules-left:
- sway/workspaces
- sway/mode
modules-center: []
modules-right:
- network
- custom/sep
# - temperature
- memory
- cpu
- custom/sep
- pulseaudio
- custom/sep
- clock
- custom/sep
- tray
sway/mode:
format: '<span style="italic">{}</span>'
custom/sep:
format: "|"
tooltip: false
sway/workspace:
disable-scroll: true
idle_inhibitor:
format: "{icon}"
format-icons:
activated:
deactivated:
clock:
tooltip: false
timezone: "Europe/Paris"
format-alt: "{:%Y-%m-%d}"
temperature:
thermal-zone: "{{ cpu_thermal_zone | default(6) }}"
critical-threshold: 80
format: "{temperatureC}°C  "
cpu:
format: "{usage}% {icon}"
tooltip: false
states:
warning: 70
critical: 90
format-icons:
-
network:
tooltip: false
format-wifi: "{essid} ({signalStrength}%)  "
format-ethernet: "{ifname}: {ipaddr}/{cidr} 󰈀 "
format-linked: "{ifname} (No IP) 󰈀 "
format-disconnected: "Disconnected ⚠ "
format-alt: "{ifname}: {ipaddr}/{cidr}"
pulseaudio:
tooltip: false
format: "{format_source} {volume}% {icon} "
format-bluetooth: "{volume}% {icon}"
format-muted: "{format_source} 󰝟 "
format-source: "{volume}%  "
format-source-muted: " "
format-icons:
headphones: 󰋋
handsfree: 󰋎
headset: 󰋎
phone:
portable:
car:
default:
memory:
interval: 30
states:
warning: 70
critical: 90
format: "{used:0.1f}G/{total:0.1f}G "