Starting a sway config.
This commit is contained in:
parent
f0b917cba9
commit
079cabb547
BIN
ansible/roles/sway/files/bliss.jpg
Normal file
BIN
ansible/roles/sway/files/bliss.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 638 KiB |
26
ansible/roles/sway/files/config
Normal file
26
ansible/roles/sway/files/config
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Default config for sway
|
||||||
|
#
|
||||||
|
# Copy this to ~/.config/sway/config and edit it to your liking.
|
||||||
|
#
|
||||||
|
# Read `man 5 sway` for a complete reference.
|
||||||
|
|
||||||
|
### Variables
|
||||||
|
#
|
||||||
|
# Logo key. Use Mod1 for Alt.
|
||||||
|
set $mod Mod4
|
||||||
|
# set $mod Mod1
|
||||||
|
# Home row direction keys, like vim
|
||||||
|
set $left h
|
||||||
|
set $down j
|
||||||
|
set $up k
|
||||||
|
set $right l
|
||||||
|
# Your preferred terminal emulator
|
||||||
|
set $term alacritty
|
||||||
|
# Your preferred application launcher
|
||||||
|
# Note: it's recommended that you pass the final command to sway
|
||||||
|
# set $menu dmenu_path | dmenu | xargs swaymsg exec
|
||||||
|
set $menu /usr/local/bin/wofi --show drun --gtk-dark
|
||||||
|
|
||||||
|
bindsym $mod+grave exec $term
|
||||||
|
|
||||||
|
include ~/.config/sway/config.d/*.conf
|
2
ansible/roles/sway/files/electron-flags.conf
Normal file
2
ansible/roles/sway/files/electron-flags.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
--enable-features=UseOzonePlatform
|
||||||
|
--ozone-platform=wayland
|
@ -7,6 +7,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
|
|
||||||
if [[ ! -v XDG_RUNTIME_DIR ]]; then
|
if [[ ! -v XDG_RUNTIME_DIR ]]; then
|
||||||
export XDG_RUNTIME_DIR=$(mktemp -d)
|
export XDG_RUNTIME_DIR=$(mktemp -d)
|
||||||
|
chmod 0700 "$XDG_RUNTIME_DIR"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sway |& tee $HOME/.config/swaylog
|
exec sway -d &> $HOME/.config/swaylog
|
||||||
|
@ -5,4 +5,4 @@ set -euo pipefail
|
|||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
sway |& tee $HOME/.config/swaylog
|
exec sway -d &> $HOME/.config/swaylog
|
||||||
|
2
ansible/roles/sway/files/mako_config
Normal file
2
ansible/roles/sway/files/mako_config
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
BIN
ansible/roles/sway/files/spaceglenda300.jpg
Normal file
BIN
ansible/roles/sway/files/spaceglenda300.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 639 KiB |
7
ansible/roles/sway/files/xdg-desktop-portal-wlr-config
Normal file
7
ansible/roles/sway/files/xdg-desktop-portal-wlr-config
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# [screencast]
|
||||||
|
# output_name=HDMI-A-1
|
||||||
|
# max_fps=30
|
||||||
|
# exec_before=disable_notifications.sh
|
||||||
|
# exec_after=enable_notifications.sh
|
||||||
|
# chooser_type=simple
|
||||||
|
# chooser_cmd=slurp -f %o -or
|
@ -1,26 +1,53 @@
|
|||||||
- include_role:
|
- include_role:
|
||||||
name: per_user
|
name: per_user
|
||||||
|
|
||||||
# - name: Create directories
|
- name: Create directories
|
||||||
# file:
|
file:
|
||||||
# name: "{{ account_homedir.stdout }}/{{ item }}"
|
name: "{{ account_homedir.stdout }}/{{ item }}"
|
||||||
# state: directory
|
state: directory
|
||||||
# mode: 0700
|
mode: 0700
|
||||||
# owner: "{{ account_name.stdout }}"
|
owner: "{{ account_name.stdout }}"
|
||||||
# group: "{{ group_name.stdout }}"
|
group: "{{ group_name.stdout }}"
|
||||||
# loop:
|
loop:
|
||||||
# - ".config/foo"
|
- ".config/sway"
|
||||||
|
- ".config/sway/config.d"
|
||||||
|
- ".config/waybar"
|
||||||
|
- ".config/xdg-desktop-portal-wlr"
|
||||||
|
- ".config/mako"
|
||||||
|
|
||||||
# - name: Copy files
|
- name: Copy files
|
||||||
# copy:
|
copy:
|
||||||
# src: "files/{{ item.src }}"
|
src: "files/{{ item.src }}"
|
||||||
# dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
||||||
# mode: 0600
|
mode: 0600
|
||||||
# owner: "{{ account_name.stdout }}"
|
owner: "{{ account_name.stdout }}"
|
||||||
# group: "{{ group_name.stdout }}"
|
group: "{{ group_name.stdout }}"
|
||||||
# loop:
|
loop:
|
||||||
# - src: foo.conf
|
- src: config
|
||||||
# dest: .config/foo/foo.conf
|
dest: .config/sway/config
|
||||||
|
- src: bliss.jpg
|
||||||
|
dest: .config/sway/bliss.jpg
|
||||||
|
- src: spaceglenda300.jpg
|
||||||
|
dest: .config/sway/spaceglenda300.jpg
|
||||||
|
- src: waybar_config.json
|
||||||
|
dest: .config/waybar/config
|
||||||
|
- src: style.css
|
||||||
|
dest: .config/waybar/style.css
|
||||||
|
- src: xdg-desktop-portal-wlr-config
|
||||||
|
dest: .config/xdg-desktop-portal-wlr/config
|
||||||
|
- src: electron-flags.conf
|
||||||
|
dest: .config/electron-flags.conf
|
||||||
|
- src: mako_config
|
||||||
|
dest: .config/mako/config
|
||||||
|
|
||||||
|
- name: Configure dotfiles (conf directory)
|
||||||
|
copy:
|
||||||
|
src: "files/{{ item }}.conf"
|
||||||
|
dest: "{{ account_homedir.stdout }}/.config/sway/config.d/{{ item }}.conf"
|
||||||
|
mode: 0600
|
||||||
|
owner: "{{ account_name.stdout }}"
|
||||||
|
group: "{{ group_name.stdout }}"
|
||||||
|
loop: "{{ sway_conf_files }}"
|
||||||
|
|
||||||
- import_tasks: tasks/peruser_freebsd.yaml
|
- import_tasks: tasks/peruser_freebsd.yaml
|
||||||
when: 'os_flavor == "freebsd"'
|
when: 'os_flavor == "freebsd"'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user