Compare commits

...

4 Commits

@ -18,9 +18,12 @@
- composer - composer
- cups - cups
- curl - curl
- dbus-broker
- dia - dia
- evince - evince
- fcitx5 - fcitx5
- file-roller
- firmware-linux
- flameshot - flameshot
- foot - foot
- git - git
@ -29,9 +32,11 @@
- inkscape - inkscape
- isort - isort
- libreoffice - libreoffice
- lightdm
- lxpolkit - lxpolkit
- mesa-utils - mesa-utils
- mesa-utils-bin - mesa-utils-bin
- meson
- network-manager-gnome - network-manager-gnome
- network-manager-config-connectivity-debian - network-manager-config-connectivity-debian
- nextcloud-desktop - nextcloud-desktop
@ -40,9 +45,13 @@
- npm - npm
- pass - pass
- pavucontrol - pavucontrol
- pipewire
- pipewire-audio - pipewire-audio
- pipx - pipx
- plocate - plocate
- plymouth
- plymouth-themes
- plymouth-label
- pkexec - pkexec
- puppet-lint - puppet-lint
- python3-deepdiff - python3-deepdiff
@ -51,6 +60,7 @@
- qt5ct - qt5ct
- rsync - rsync
- scdaemon - scdaemon
- shfmt
- simple-scan - simple-scan
- sway - sway
- sway-backgrounds - sway-backgrounds
@ -62,17 +72,18 @@
- tsocks - tsocks
- unzip - unzip
- waybar - waybar
- waypipe
- wdisplays - wdisplays
- wget - wget
- wl-clipboard - wl-clipboard
- wlr-randr - wlr-randr
- wofi - wofi
- xdg-desktop-portal - xdg-desktop-portal
- xdg-desktop-portal-gtk
- xdg-desktop-portal-wlr - xdg-desktop-portal-wlr
- xwayland - xwayland
- yapf3 - yapf3
- yq - yq
- zathura
- zsh - zsh
state: latest state: latest
update_cache: true update_cache: true

@ -14,18 +14,19 @@
path: '{{key_path}}' path: '{{key_path}}'
register: key register: key
- name: Get key - name: Get key
become: true
ansible.builtin.command: ansible.builtin.command:
chdir: /tmp chdir: /tmp
cmd: wget -O ./keyring.gpg '{{ key_url }}' cmd: wget -O '{{ key_path }}' '{{ key_url }}'
creates: /tmp/keyring.gpg
when: not key.stat.exists
- name: Dearmor key
ansible.builtin.command:
chdir: /tmp
cmd: gpg --dearmor -o {{ key_path }} ./keyring.gpg
creates: '{{key_path}}' creates: '{{key_path}}'
become: true
when: not key.stat.exists when: not key.stat.exists
# - name: Dearmor key
# ansible.builtin.command:
# chdir: /tmp
# cmd: gpg --dearmor -o {{ key_path }} ./keyring.gpg
# creates: '{{key_path}}'
# become: true
# when: not key.stat.exists
- name: install repo - name: install repo
become: true become: true
ansible.builtin.template: ansible.builtin.template:
@ -38,7 +39,7 @@
autoclean: true autoclean: true
autoremove: true autoremove: true
install_recommends: true install_recommends: true
pkg: [firefox-mozilla-build] pkg: [firefox]
state: latest state: latest
update_cache: true update_cache: true
- name: Get host app - name: Get host app

@ -0,0 +1,32 @@
---
- name: Set up uwsm
vars:
uid: "{{ lookup('env','USER') }}"
hosts: localhost
connection: local
become: false
tasks:
- name: Get source code
ansible.builtin.command:
chdir: /home/{{ uid }}/sources
cmd: git clone https://github.com/Vladimir-csp/uwsm.git
creates: /home/{{ uid }}/sources/uwsm
- name: Build uwsm from source code
ansible.builtin.command:
chdir: /home/{{ uid }}/sources/uwsm
cmd: meson setup --wipe --prefix=/usr/local build -Duuctl=enabled -Duwsm-app=enabled
creates: /home/{{ uid }}/sources/uwsm/build
- name: Install uwsm
become: true
ansible.builtin.command:
chdir: /home/{{ uid }}/sources/uwsm
cmd: meson install -C build
creates: /usr/local/bin/uwsm
- name: Install uwsm config
become: true
ansible.builtin.template:
src: ../templates/sway_desktop.j2
dest: /usr/share/wayland-sessions/swa.desktop
owner: 'root'
group: 'root'
mode: '0640'

@ -3,6 +3,7 @@
- import_playbook: playbooks/env.yaml - import_playbook: playbooks/env.yaml
- import_playbook: playbooks/firefox.yaml - import_playbook: playbooks/firefox.yaml
- import_playbook: playbooks/fonts.yaml - import_playbook: playbooks/fonts.yaml
- import_playbook: playbooks/kubectl.yaml
- import_playbook: playbooks/mattermost.yaml - import_playbook: playbooks/mattermost.yaml
- import_playbook: playbooks/network.yaml - import_playbook: playbooks/network.yaml
- import_playbook: playbooks/pass.yaml - import_playbook: playbooks/pass.yaml
@ -12,7 +13,8 @@
- import_playbook: playbooks/ssh.yaml - import_playbook: playbooks/ssh.yaml
- import_playbook: playbooks/sunet.yaml - import_playbook: playbooks/sunet.yaml
- import_playbook: playbooks/sway.yaml - import_playbook: playbooks/sway.yaml
#- import_playbook: playbooks/zoom.yaml - import_playbook: playbooks/uwsm.yaml
- import_playbook: playbooks/zoom.yaml
- import_playbook: playbooks/zsh.yaml - import_playbook: playbooks/zsh.yaml
# needs pass # needs pass
- import_playbook: playbooks/nvim.yaml - import_playbook: playbooks/nvim.yaml

@ -14,12 +14,8 @@ set $term footclient
# on the original workspace that the command was run on. # on the original workspace that the command was run on.
set $menu wofi -S drun | xargs swaymsg exec -- set $menu wofi -S drun | xargs swaymsg exec --
# Dbus stuff
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# Autostart # Autostart
exec exec uwsm finalize SWAYSOCK I3SOCK XCURSOR_SIZE XCURSOR_THEME
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id autotiling exec --no-startup-id autotiling
exec --no-startup-id lxpolkit exec --no-startup-id lxpolkit
@ -179,9 +175,6 @@ input type:keyboard {
# Show the next scratchpad window or hide the focused scratchpad window. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
# Flameshot
for_window [app_id="flameshot"] border pixel 0, floating enable, fullscreen disable, move absolute position 0 0
# #
# Resizing containers: # Resizing containers:
# #
@ -238,16 +231,16 @@ mode $screenshot_mode {
# Status Bar: # Status Bar:
# Read `man 5 sway-bar` for more information about this section. # Read `man 5 sway-bar` for more information about this section.
bar { # bar {
position top # position top
swaybar_command waybar # swaybar_command waybar
colors { # colors {
statusline #ffffff # statusline #ffffff
background #5c5c5c # background #5c5c5c
active_workspace #5c5c5c00 #5c5c5c00 #323232 # active_workspace #5c5c5c00 #5c5c5c00 #323232
} # }
} # }
include /etc/sway/config.d/* include /etc/sway/config.d/*

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Sway (with UWSM)
Comment=Sway
Exec=uwsm start -N "Sway" -D sway -C "Sway" sway
DesktopNames=sway
Type=Application
Loading…
Cancel
Save