mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
many updates mostly around keybinds for gnome
This commit is contained in:
parent
191e9fdcab
commit
aadc6413d7
@ -6,7 +6,7 @@ echo -e "Starting initial setup for Fedora..."
|
||||
sudo dnf -y update && sudo dnf install -y ansible
|
||||
|
||||
# Goto playbook and run it
|
||||
cd ../.dotfiles/provision
|
||||
cd ~/.dotfiles/provision
|
||||
ansible-playbook setup.yml -i hosts --ask-become-pass
|
||||
|
||||
# Return to where you were
|
||||
|
@ -4,10 +4,10 @@ set -e
|
||||
echo -e "Starting update for Fedora..."
|
||||
|
||||
# Goto playbook and run it
|
||||
cd ../.dotfiles/provision
|
||||
cd ~/.dotfiles/provision
|
||||
|
||||
# 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
|
||||
cd -
|
||||
|
@ -1,4 +1,4 @@
|
||||
\.git
|
||||
\provision
|
||||
.gitignore
|
||||
readme.md
|
||||
.gitignore
|
||||
.git
|
||||
provision
|
||||
|
@ -6,4 +6,5 @@
|
||||
- configs
|
||||
- updates
|
||||
- packages
|
||||
- services
|
||||
- services
|
||||
- once
|
@ -35,8 +35,10 @@
|
||||
# become: true
|
||||
|
||||
tasks:
|
||||
# This import MUST be first
|
||||
- import_tasks: tasks/system/_main.yml
|
||||
- import_tasks: tasks/terminal/_main.yml
|
||||
- import_tasks: tasks/development/_main.yml
|
||||
- import_tasks: tasks/desktop/_main.yml
|
||||
# This import MUST be last
|
||||
- import_tasks: tasks/system/_main.yml
|
||||
- import_tasks: tasks/gaming/_main.yml
|
||||
|
||||
|
@ -1,4 +1,8 @@
|
||||
- import_tasks: configs.yml
|
||||
tags: ["configs"]
|
||||
- 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"]
|
@ -6,11 +6,22 @@
|
||||
- rhytmbox
|
||||
- cheese
|
||||
- totem
|
||||
- gnome-maps
|
||||
- gnome-characters
|
||||
- gnome-connections
|
||||
- libreoffice
|
||||
- libreoffice-writer
|
||||
- libreoffice-impress
|
||||
- libreoffice-calc
|
||||
- rhythmbox
|
||||
- gnome-tour
|
||||
- yelp
|
||||
state: absent
|
||||
when: desktop == "gnome"
|
||||
become: true
|
||||
|
||||
- name: Add brave repo
|
||||
tags: ["once"]
|
||||
yum_repository:
|
||||
name: brave
|
||||
description: Brave Browser
|
||||
|
33
provision/tasks/desktop/gnome-settings/keybinds.yml
Normal file
33
provision/tasks/desktop/gnome-settings/keybinds.yml
Normal 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"]}
|
10
provision/tasks/desktop/gnome-settings/window-management.yml
Normal file
10
provision/tasks/desktop/gnome-settings/window-management.yml
Normal 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"
|
@ -6,6 +6,12 @@
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install dconf editor
|
||||
dnf:
|
||||
name: dconf-editor
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install gnome extensions manager
|
||||
flatpak:
|
||||
name: com.mattjakeman.ExtensionManager
|
||||
|
@ -1,4 +1,5 @@
|
||||
- name: Add vscode repo
|
||||
tags: ["once"]
|
||||
yum_repository:
|
||||
name: vscode
|
||||
description: Visual Studio Code
|
||||
|
@ -1 +1,2 @@
|
||||
#- import_tasks: vifm.yml
|
||||
- import_tasks: packages.yml
|
||||
tags: ["packages"]
|
@ -1,14 +1,26 @@
|
||||
- name: install the rpmfusion repo packages
|
||||
dnf:
|
||||
name:
|
||||
- http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_version }}.noarch.rpm
|
||||
- http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_version }}.noarch.rpm
|
||||
state: present
|
||||
- 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:
|
||||
name:
|
||||
- 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_major_version }}.noarch.rpm
|
||||
state: present
|
||||
|
||||
- name: Add the flathub flatpak repository remote
|
||||
flatpak_remote:
|
||||
name: flathub
|
||||
state: present
|
||||
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
become: true
|
||||
|
||||
- name: Add the flathub flatpak repository remote
|
||||
flatpak_remote:
|
||||
name: flathub
|
||||
state: present
|
||||
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
become: true
|
@ -1,3 +1,11 @@
|
||||
- name: Install base system packages
|
||||
dnf:
|
||||
name:
|
||||
- "git"
|
||||
- "python-psutil"
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install proprietary nvidia drivers
|
||||
dnf:
|
||||
name: "akmod-nvidia"
|
||||
|
@ -1,5 +1,8 @@
|
||||
- name: Make sure syncthing is enabled
|
||||
ansible.builtin.shell: systemctl enable syncthing@{{ user }}
|
||||
become: true
|
||||
|
||||
- name: Make sure syncthing is started
|
||||
ansible.builtin.shell: systemctl start syncthing@{{ user }}
|
||||
ansible.builtin.shell: systemctl start syncthing@{{ user }}
|
||||
become: true
|
||||
|
||||
|
15
readme.md
15
readme.md
@ -5,13 +5,14 @@ My personal dotfiles repo. Documentation is pretty spotty. Maybe I'll fix that s
|
||||
|
||||
## 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
|
||||
|
||||
```bash
|
||||
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 .
|
||||
bash
|
||||
initial-setup
|
||||
@ -22,3 +23,13 @@ initial-setup
|
||||
```bash
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user