1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_i3wm.git synced 2024-08-16 10:09:53 +02:00

continu changing sway stuff

This commit is contained in:
L3D 2024-07-17 21:47:59 +02:00
parent 83b8c4a117
commit b36d99d26a
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 37 additions and 8 deletions

View file

@ -6,6 +6,15 @@ sway__user_list:
sway__dynamic_names: true sway__dynamic_names: true
# sway behavior and favorites
sway__logo_key: 'Mod4'
sway__term: 'foot'
sway__reload: '$mod+Shift+r'
swaywm__term_pkgs:
- foot
- foot-terminfo
- foot-themes
# version check for this role? # version check for this role?
submodules_versioncheck: true submodules_versioncheck: true

View file

@ -19,7 +19,16 @@
state: "present" state: "present"
become: true become: true
with_items: with_items:
- "sway" - 'sway'
- 'sway-backgrounds'
- 'swaylock'
- 'sway-notification-center'
- 'swaybg'
- 'swayidle'
- 'swayimg'
- 'wdisplays'
- 'wlsunset'
- 'waybar'
- name: Ensure font-awesome is installed - name: Ensure font-awesome is installed
ansible.builtin.apt: ansible.builtin.apt:
@ -27,6 +36,13 @@
state: "present" state: "present"
become: true become: true
with_items: with_items:
- "fonts-font-awesome" - 'fonts-font-awesome'
- "virtualenv" - 'virtualenv'
when: sway__dynamic_names | bool when: sway__dynamic_names | bool
- name: Ensure terminal Packages are installed
ansible.builtin.apt:
name: "{{ item }}"
state: "present"
become: true
with_items: "{{ swaywm__term_pkgs }}"

View file

@ -6,15 +6,19 @@
### Variables ### Variables
# #
# Logo key. Use Mod1 for Alt. # Logo key.
set $mod Mod4 # Use Mod4 for WIN or Mod1 for Alt.
set $mod {{ sway__logo_key }}
# Home row direction keys, like vim # Home row direction keys, like vim
set $left h set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
# Your preferred terminal emulator # Your preferred terminal emulator
set $term foot set $term {{ sway__term }}
# Your preferred application launcher # Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened # Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on. # on the original workspace that the command was run on.
@ -89,10 +93,10 @@ input type:keyboard {
floating_modifier $mod normal floating_modifier $mod normal
# Reload the configuration file # Reload the configuration file
bindsym $mod+Shift+c reload bindsym {{ sway__reload }} reload
# Exit sway (logs you out of your Wayland session) # Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' --button-dismiss 'Reload and Continue' 'swaymsg reload' --button-no-terminal 'Yes, exit sway' 'swaymsg exit'
# #
# Moving around: # Moving around:
# #