Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
OrBin committed Dec 23, 2023
2 parents 163d17d + 80582a2 commit 78033b1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 287 deletions.
271 changes: 0 additions & 271 deletions configuration/plasma-org.kde.plasma.desktop-appletsrc

This file was deleted.

7 changes: 3 additions & 4 deletions tasks/basic-consumer-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
- us.zoom.Zoom

- name: Install Slack
snap:
name: slack
classic: yes
become: yes
community.general.flatpak:
name:
- com.slack.Slack
when: computer_type == "work"
21 changes: 9 additions & 12 deletions tasks/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@

- name: Configure Gnome (gsettings)
shell: |
gsettings set org.gnome.system.locale region 'en_IL.UTF-8'
# Keyboard layouts
gsettings set org.gnome.desktop.input-sources mru-sources "[('xkb', 'us'), ('xkb', 'il')]"
gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'il')]"
Expand All @@ -107,11 +109,12 @@
gsettings set org.freedesktop.ibus.general.hotkey triggers "['<Alt>Shift_L', '<Alt>Shift_R', '<Alt>Shift']"
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Alt>Shift_L', '<Alt>Shift_R', 'XF86Keyboard']"
gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Alt>Shift_L', '<Alt>Shift_R', '<Shift>XF86Keyboard']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']"
# Lock shortcut
gsettings set org.gnome.settings-daemon.plugins.media-keys screensaver "['<Super>l', '<Super>Escape']"
gsettings set org.gnome.shell favorite-apps "['google-chrome.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Terminal.desktop', 'com.spotify.Client.desktop']"
gsettings set org.gnome.shell favorite-apps '{{ favorite_apps.work if computer_type == "work" else favorite_apps.personal | tojson }}'
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
gsettings set org.gnome.desktop.interface clock-format "24h"
Expand Down Expand Up @@ -203,28 +206,22 @@
loop: "{{ cura_configuration }}"
when: find_cura_config_dir.matched > 0

- name: Add missing Slack desktop entry
copy:
src: "/var/lib/snapd/desktop/applications/slack_slack.desktop"
dest: "{{ ansible_user_dir }}/.local/share/applications/slack_slack.desktop"
when: computer_type == "work"

- name: Set autostart directory
set_fact:
autostart_dir: "/etc/xdg/autostart"
when: configure_gnome

- name: Add Slack to autostart (startup/boot)
copy:
src: "/var/lib/snapd/desktop/applications/slack_slack.desktop"
dest: "{{ autostart_dir }}/slack_slack.desktop"
src: "/var/lib/flatpak/app/com.slack.Slack/current/active/export/share/applications/com.slack.Slack.desktop"
dest: "{{ autostart_dir }}/"
when: computer_type == "work" and configure_gnome
become: "{{ configure_gnome }}"

- name: Add Telegram Desktop to autostart (startup/boot)
copy:
src: "/var/lib/flatpak/app/org.telegram.desktop/current/active/export/share/applications/org.telegram.desktop.desktop"
dest: "{{ autostart_dir }}/telegram-desktop_telegram-desktop.desktop"
dest: "{{ autostart_dir }}/"
register: telegram_autostart_desktop_entry
when: configure_gnome
become: "{{ configure_gnome }}"
Expand All @@ -234,8 +231,8 @@
path: "{{ telegram_autostart_desktop_entry.dest }}"
after: "\nExec="
before: "\n"
regexp: "telegram-desktop -- "
replace: "telegram-desktop -startintray -- "
regexp: "org.telegram.desktop -- "
replace: "org.telegram.desktop -startintray -- "
when: configure_gnome
become: "{{ configure_gnome }}"

Expand Down
13 changes: 13 additions & 0 deletions vars/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ wallpapers_s3_base_url: "https://or-public-wallpapers-2.s3.eu-central-1.amazonaw
wallpaper_by_computer_type:
personal: "alexander_stream_estuary_side_stones_improved.jpg"
work: "carmel_forest_improved.jpg"
favorite_apps:
personal:
- google-chrome.desktop
- org.gnome.Nautilus.desktop
- org.gnome.Terminal.desktop
- com.spotify.Client.desktop
work:
- google-chrome.desktop
- org.gnome.Nautilus.desktop
- org.gnome.Terminal.desktop
- com.spotify.Client.desktop
- lens-desktop.desktop
- com.slack.Slack.desktop

# Used by geerlingguy.docker:
docker_compose_version: v2.12.2
Expand Down

0 comments on commit 78033b1

Please sign in to comment.