First commit

This commit is contained in:
Yorick Barbanneau 2022-11-17 22:49:38 +01:00
commit c2387aff03
14 changed files with 433 additions and 0 deletions

View file

@ -0,0 +1,12 @@
" Press ? for help
.. (up a dir)
</code/ansible/roles/sway/
defaults/main/
keybindings.yml
output.yml
theme.yml
workspaces.yml
files/
tasks/
templates/

8
defaults/main/input.yml Normal file
View file

@ -0,0 +1,8 @@
---
sway_inputs:
- name: '*'
options:
- option: 'xkb_layout'
value: 'us'
- option: 'xkb_variant'
value: 'altgr-intl'

View file

@ -0,0 +1,113 @@
---
sway_keybindings:
- mode: 'normal'
bindings:
- bindsym: '$mod+Return'
action: 'exec $term'
- bindsym: '$mod+Shift+q'
action: 'kill'
- bindsym: '$mod+d'
action: 'exec $menu'
- bindsym: '$mod+Shift+c'
action: 'reload'
- bindsym: '$mod+Shift+e'
action: >-
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+$left'
action: 'focus left'
- bindsym: '$mod+$down'
action: 'focus down'
- bindsym: '$mod+$up'
action: 'focus up'
- bindsym: '$mod+$right'
action: 'focus right'
# Focus
- bindsym: '$mod+$left'
action: 'focus left'
- bindsym: '$mod+$down'
action: 'focus down'
- bindsym: '$mod+$up'
action: 'focus up'
- bindsym: '$mod+$right'
action: 'focus right'
# Use regular direction bindsym
- bindsym: '$mod+Left'
action: 'focus left'
- bindsym: '$mod+Down'
action: 'focus down'
- bindsym: '$mod+Up'
action: 'focus up'
- bindsym: '$mod+Right'
action: 'focus right'
# move the focused window with the same, but add Shift
- bindsym: '$mod+Shift+$left'
action: 'move left'
- bindsym: '$mod+Shift+$down'
action: 'move down'
- bindsym: '$mod+Shift+$up'
action: 'move up'
- bindsym: '$mod+Shift+$right'
action: 'move right'
- bindsym: '$mod+Shift+Left'
action: 'move left'
- bindsym: '$mod+Shift+Down'
action: 'move down'
- bindsym: '$mod+Shift+Up'
action: 'move up'
- bindsym: '$mod+Shift+Right'
action: 'move right'
# split
- bindsym: '$mod+b'
action: 'splith'
- bindsym: '$mod+v'
action: 'splitv'
# layout
- bindsym: '$mod+s'
action: 'layout stacking'
- bindsym: '$mod+w'
action: 'layout tabbed'
- bindsym: '$mod+e'
action: layout toggle split
# Fullscreen
- bindsym: '$mod+f'
action: 'fullscreen'
# Toggle floating mode
- bindsym: '$mod+Shift+space'
action: 'floating toggle'
# Swap focus between the tiling area and the floating area
- bindsym: '$mod+space'
action: 'focus mode_toggle'
# move focus to the parent container
- bindsym: '$mod+a'
action: 'focus parent'
# Scratchpad
- bindsym: '$mod+Shift+p'
action: 'move scratchpad'
- bindsym: '$mod+p'
action: 'scratchpad show'
- mode: 'resize'
bindings:
- bindsym: '$left'
action: 'resize shrink width 10 px or 10 ppt'
- bindsym: '$down'
action: 'resize grow height 10 px or 10 ppt'
- bindsym: '$up'
action: 'resize shrink height 10 px or 10 ppt'
- bindsym: '$right'
action: 'resize grow width 10 px or 10 ppt'
- bindsym: 'Return'
action: 'mode "default"'
- bindsym: Escape
action: 'mode "default"'

7
defaults/main/output.yml Normal file
View file

@ -0,0 +1,7 @@
---
sway_outputs:
- id: 'all'
name: '*'
options:
- option: 'bg'
value: '/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill'

40
defaults/main/theme.yml Normal file
View file

@ -0,0 +1,40 @@
---
sway_theme_parameters:
default_orientation: 'auto'
workspace_layout: 'default'
gaps: 'inner 3'
smart_gaps: 'on'
smart_borders: 'on'
font: 'pango:FuraCode Nerd Font Mono 10'
default_border: 'pixel 1'
default_floating_border: 'pixel 1'
title_align: 'center'
sway_theme_colors:
focused:
border: '#4c7899'
backgound: '#385579'
text: '#ffffff'
indicator: '#2efef4'
child_border: '#285577'
focused_inactive:
border: '#333333'
backgound: '#5f676a'
text: '#ffffff'
indicator: '#484e50'
child_border: '#5f676a'
focused_tab_title:
border: '#2f343a'
backgound: '5f676a'
text: '#ffffff'
unfocused:
border: '#333333'
backgound: '#222222'
text: '#888888'
indicator: '#292d2e'
child_border: '#222222'
urgent:
border: '#2f343a'
backgound: '#900000'
text: '#cccccc'
indicator: '#900000'
child_border: '#900000'

View file

@ -0,0 +1,12 @@
---
sway_workspaces:
1: '1'
2: '2'
3: '3'
4: '4'
5: '5'
6: '6'
7: '7'
8: '8'
9: '9'
0: '0'