many updates mostly around keybinds for gnome

This commit is contained in:
starr-dusT 2022-11-13 00:45:02 -08:00
parent 191e9fdcab
commit aadc6413d7
16 changed files with 130 additions and 27 deletions

View File

@ -6,7 +6,7 @@ echo -e "Starting initial setup for Fedora..."
sudo dnf -y update && sudo dnf install -y ansible sudo dnf -y update && sudo dnf install -y ansible
# Goto playbook and run it # Goto playbook and run it
cd ../.dotfiles/provision cd ~/.dotfiles/provision
ansible-playbook setup.yml -i hosts --ask-become-pass ansible-playbook setup.yml -i hosts --ask-become-pass
# Return to where you were # Return to where you were

View File

@ -4,10 +4,10 @@ set -e
echo -e "Starting update for Fedora..." echo -e "Starting update for Fedora..."
# Goto playbook and run it # Goto playbook and run it
cd ../.dotfiles/provision cd ~/.dotfiles/provision
# Install ansible and run playbook # Install ansible and run playbook
ansible-playbook setup.yml -i hosts --ask-become-pass --tags "$1" ansible-playbook setup.yml -i hosts --ask-become-pass --tags "$1" --skip-tags "once"
# Return to where you were # Return to where you were
cd - cd -

View File

@ -1,4 +1,4 @@
\.git
\provision
.gitignore
readme.md readme.md
.gitignore
.git
provision

View File

@ -7,3 +7,4 @@
- updates - updates
- packages - packages
- services - services
- once

View File

@ -35,8 +35,10 @@
# become: true # become: true
tasks: tasks:
# This import MUST be first
- import_tasks: tasks/system/_main.yml
- import_tasks: tasks/terminal/_main.yml - import_tasks: tasks/terminal/_main.yml
- import_tasks: tasks/development/_main.yml - import_tasks: tasks/development/_main.yml
- import_tasks: tasks/desktop/_main.yml - import_tasks: tasks/desktop/_main.yml
# This import MUST be last - import_tasks: tasks/gaming/_main.yml
- import_tasks: tasks/system/_main.yml

View File

@ -2,3 +2,7 @@
tags: ["configs"] tags: ["configs"]
- import_tasks: packages.yml - import_tasks: packages.yml
tags: ["packages"] tags: ["packages"]
- import_tasks: gnome-settings/keybinds.yml
tags: ["configs"]
- import_tasks: gnome-settings/window-management.yml
tags: ["configs"]

View File

@ -6,11 +6,22 @@
- rhytmbox - rhytmbox
- cheese - cheese
- totem - totem
- gnome-maps
- gnome-characters
- gnome-connections
- libreoffice
- libreoffice-writer
- libreoffice-impress
- libreoffice-calc
- rhythmbox
- gnome-tour
- yelp
state: absent state: absent
when: desktop == "gnome" when: desktop == "gnome"
become: true become: true
- name: Add brave repo - name: Add brave repo
tags: ["once"]
yum_repository: yum_repository:
name: brave name: brave
description: Brave Browser description: Brave Browser

View File

@ -0,0 +1,33 @@
- name: Change gnome specific keybinds
dconf:
key: "{{ item.key }}"
value: "{{ item.value }}"
state: present
with_items:
- {key: "/org/gnome/shell/keybindings/switch-to-application-1", value: [""]}
- {key: "/org/gnome/shell/keybindings/switch-to-application-2", value: [""]}
- {key: "/org/gnome/shell/keybindings/switch-to-application-3", value: [""]}
- {key: "/org/gnome/shell/keybindings/switch-to-application-4", value: [""]}
- {key: "/org/gnome/shell/keybindings/switch-to-application-5", value: [""]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-input-source", value: [""]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-input-source-backwards", value: [""]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-to-workspace-1", value: ["<Super>1"]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-to-workspace-2", value: ["<Super>2"]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-to-workspace-3", value: ["<Super>3"]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-to-workspace-4", value: ["<Super>4"]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-to-workspace-5", value: ["<Super>5"]}
- {key: "/org/gnome/desktop/wm/keybindings/move-to-workspace-1", value: ["<Super><Shift>1"]}
- {key: "/org/gnome/desktop/wm/keybindings/move-to-workspace-2", value: ["<Super><Shift>2"]}
- {key: "/org/gnome/desktop/wm/keybindings/move-to-workspace-3", value: ["<Super><Shift>3"]}
- {key: "/org/gnome/desktop/wm/keybindings/move-to-workspace-4", value: ["<Super><Shift>4"]}
- {key: "/org/gnome/desktop/wm/keybindings/move-to-workspace-5", value: ["<Super><Shift>5"]}
- {key: "/org/gnome/desktop/wm/keybindings/minimize", value: ["<Super><Space>"]}
- {key: "/org/gnome/desktop/wm/keybindings/toggle-fullscreen", value: ["<Super>F"]}
- {key: "/org/gnome/desktop/wm/keybindings/close", value: ["<Super>Q"]}
# - {key: "/org/gnome/desktop/wm/keybindings/maximize-horizontally", value: ["<Super>H"]}
# - {key: "/org/gnome/desktop/wm/keybindings/maximize-vertically", value: ["<Super>V"]}
# - {key: "/org/gnome/desktop/wm/keybindings/move-to-center", value: ["<Super>C"]}

View File

@ -0,0 +1,10 @@
- name: Set Static workspaces
dconf:
key: "/org/gnome/mutter/dynamic-workspaces"
value: "false"
- name: Set Number of workspaces
dconf:
key: "/org/gnome/desktop/wm/preferences/num-workspaces"
value: "5"

View File

@ -6,6 +6,12 @@
state: present state: present
become: true become: true
- name: Install dconf editor
dnf:
name: dconf-editor
state: present
become: true
- name: Install gnome extensions manager - name: Install gnome extensions manager
flatpak: flatpak:
name: com.mattjakeman.ExtensionManager name: com.mattjakeman.ExtensionManager

View File

@ -1,4 +1,5 @@
- name: Add vscode repo - name: Add vscode repo
tags: ["once"]
yum_repository: yum_repository:
name: vscode name: vscode
description: Visual Studio Code description: Visual Studio Code

View File

@ -1 +1,2 @@
#- import_tasks: vifm.yml - import_tasks: packages.yml
tags: ["packages"]

View File

@ -1,12 +1,24 @@
- name: install the rpmfusion repo packages - name: Install rpm fusion repo (free and non-free)
tags: ["once"]
block:
- name: Importing (free) key
ansible.builtin.rpm_key:
state: present
key: https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-2020
- name: Importing (non-free) key
ansible.builtin.rpm_key:
state: present
key: https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020
- name: install the rpmfusion repo packages
dnf: dnf:
name: name:
- http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_version }}.noarch.rpm - http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm
- http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_version }}.noarch.rpm - http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm
state: present state: present
become: true
- name: Add the flathub flatpak repository remote - name: Add the flathub flatpak repository remote
flatpak_remote: flatpak_remote:
name: flathub name: flathub
state: present state: present

View File

@ -1,3 +1,11 @@
- name: Install base system packages
dnf:
name:
- "git"
- "python-psutil"
state: present
become: true
- name: Install proprietary nvidia drivers - name: Install proprietary nvidia drivers
dnf: dnf:
name: "akmod-nvidia" name: "akmod-nvidia"

View File

@ -1,5 +1,8 @@
- name: Make sure syncthing is enabled - name: Make sure syncthing is enabled
ansible.builtin.shell: systemctl enable syncthing@{{ user }} ansible.builtin.shell: systemctl enable syncthing@{{ user }}
become: true
- name: Make sure syncthing is started - name: Make sure syncthing is started
ansible.builtin.shell: systemctl start syncthing@{{ user }} ansible.builtin.shell: systemctl start syncthing@{{ user }}
become: true

View File

@ -5,13 +5,14 @@ My personal dotfiles repo. Documentation is pretty spotty. Maybe I'll fix that s
## usage ## usage
The dotfiles are managed with stow and otherwise Ansible sets everything up. The Anisible scripts are built for Fedora. The dotfiles are managed with stow and otherwise Ansible sets everything up. The Anisible scripts are built for Fedora Workstation.
### initial setup ### initial setup
```bash ```bash
sudo dnf install -y git stow sudo dnf install -y git stow
https://github.com/starr-dusT/dotfiles ~/.dotfiles git clone https://github.com/starr-dusT/dotfiles ~/.dotfiles
rm ~/.bashrc
cd ~/.dotfiles && stow . cd ~/.dotfiles && stow .
bash bash
initial-setup initial-setup
@ -22,3 +23,13 @@ initial-setup
```bash ```bash
update {tags to update seperated with commas} update {tags to update seperated with commas}
``` ```
## random notes
Random notes about things to change on a new system:
- Brave browser plays better in Gnome with hardware acceleration turned off
## TODO
- Add sxhkd for non-gnome keybinds