Merge branch 'main' of ssh://code.smolnet.org:22022/micke/datta

main
Micke Nordin 11 months ago
commit 4a32106ab5
No known key found for this signature in database
GPG Key ID: F53C4CC83EDAB3BE

@ -19,6 +19,7 @@
- curl - curl
- dia - dia
- fcitx5 - fcitx5
- flameshot
- foot - foot
- git - git
- grimshot - grimshot

@ -18,6 +18,10 @@
value: /usr/local/share/:/usr/share/ value: /usr/local/share/:/usr/share/
- key: _JAVA_AWT_WM_NONREPARENTING - key: _JAVA_AWT_WM_NONREPARENTING
value: 1 value: 1
- key: MOZ_ENABLE_WAYLAND
value: 1
- key: SAL_USE_VCLPLUGIN
value: gtk3
hosts: localhost hosts: localhost
connection: local connection: local
become: false become: false

@ -4,7 +4,8 @@
vars: vars:
uid: "{{ lookup('env','USER') }}" uid: "{{ lookup('env','USER') }}"
gitops: git+ssh://git@gitops.sunet.se gitops: git+ssh://git@gitops.sunet.se
github: git+ssh://git@github.com/SUNET github: git+ssh://git@github.com/SUNET
helm_version: 3.13.3
platform: git+ssh://git@platform.sunet.se:22022/Drive platform: git+ssh://git@platform.sunet.se:22022/Drive
commands: commands:
- get_drive_customers - get_drive_customers
@ -71,3 +72,32 @@
src: ../templates/tsocks.conf.j2 src: ../templates/tsocks.conf.j2
dest: /etc/tsocks.conf dest: /etc/tsocks.conf
become: true become: true
- name: Have helm allready installed
stat:
path: /usr/local/bin/helm
register: have_helm
- name: Get helm
ansible.builtin.command:
chdir: /tmp
cmd: wget https://get.helm.sh/helm-v{{ helm_version }}-linux-amd64.tar.gz
creates: /tmp/helm-v{{ helm_version }}-linux-amd64.tar.gz
when: not have_helm.stat.exists
- name: Unpack helm
ansible.builtin.command:
chdir: /tmp
cmd: tar xfv helm-v{{ helm_version }}-linux-amd64.tar.gz
creates: /tmp/linux-amd64/helm
when: not have_helm.stat.exists
- name: Install helm
ansible.builtin.command:
chdir: /tmp
cmd: mv /tmp/linux-amd64/helm /usr/local/bin
creates: /usr/local/bin/helm
become: true
when: not have_helm.stat.exists
- name: cleanup helm
ansible.builtin.command:
chdir: /tmp
cmd: rm -rf /tmp/helm-v{{ helm_version }}-linux-amd64.tar.gz /tmp/linux-amd64
when: not have_helm.stat.exists

@ -16,6 +16,10 @@
ansible.builtin.file: ansible.builtin.file:
dest: /home/{{ uid }}/.config/sway dest: /home/{{ uid }}/.config/sway
state: directory state: directory
- name: Create xdg dir
ansible.builtin.file:
dest: /home/{{ uid }}/.config/xdg-desktop-portal
state: directory
- name: Install sway config - name: Install sway config
ansible.builtin.template: ansible.builtin.template:
src: ../templates/sway_config.j2 src: ../templates/sway_config.j2
@ -24,6 +28,14 @@
group: '{{ uid }}' group: '{{ uid }}'
mode: '0640' mode: '0640'
notify: Reload sway notify: Reload sway
- name: Install sway config
ansible.builtin.template:
src: ../templates/sway-portals.conf.j2
dest: /home/{{ uid }}/.config/xdg-desktop-portal/sway-portals.conf
owner: '{{ uid }}'
group: '{{ uid }}'
mode: '0640'
notify: Reload sway
- name: Create waybar dir - name: Create waybar dir
ansible.builtin.file: ansible.builtin.file:
dest: /home/{{ uid }}/.config/waybar dest: /home/{{ uid }}/.config/waybar

@ -0,0 +1,6 @@
[preferred]
# use xdg-desktop-portal-gtk for every portal interface
default=gtk
# except for the xdg-desktop-portal-wlr supplied interfaces
org.freedesktop.impl.portal.Screencast=wlr
org.freedesktop.impl.portal.Screenshot=wlr

@ -14,6 +14,11 @@ 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 --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id autotiling exec --no-startup-id autotiling
@ -174,6 +179,9 @@ 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:
# #

@ -117,6 +117,8 @@ unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi fi
# Completions
source <(kubectl completion zsh)
h=( $(get_drive_servers) ) 2>/dev/null h=( $(get_drive_servers) ) 2>/dev/null
if [[ $#h -gt 0 ]]; then if [[ $#h -gt 0 ]]; then
zstyle ':completion:*:ssh:*' hosts $h zstyle ':completion:*:ssh:*' hosts $h

Loading…
Cancel
Save