update before arch install

This commit is contained in:
starr-dusT 2022-11-17 22:04:23 -08:00
parent aadc6413d7
commit 9625846dca
13 changed files with 119 additions and 12 deletions

View File

@ -15,3 +15,7 @@ export PATH
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Name[en_US]=Xmodmap
Comment[en_US]=xmodmap ~/.xmodmap
Exec=/usr/bin/xmodmap ~/.xmodmap
Icon=application-default-icon
X-GNOME-Autostart-enabled=true
Type=Application

View File

@ -5,6 +5,9 @@ echo -e "Starting initial setup for Fedora..."
# Install ansible and run playbook
sudo dnf -y update && sudo dnf install -y ansible
# Install ansible extensions
ansible-galaxy install -r ~/.dotfiles/provision/requirements.yml
# Goto playbook and run it
cd ~/.dotfiles/provision
ansible-playbook setup.yml -i hosts --ask-become-pass

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"jest.jestCommandLine": "npm run test --"
}

5
.xmodmap Normal file
View File

@ -0,0 +1,5 @@
keycode 66 = Mode_switch
keysym h = h H Left
keysym l = l L Right
keysym k = k K Up
keysym j = j J Down

View File

@ -0,0 +1,2 @@
# Ansible Galaxy Roles
- src: https://github.com/starr-dusT/ansible-role-customize-gnome

View File

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

View File

@ -0,0 +1,14 @@
- name: Install gnome extensions
include_role:
name: ansible-role-customize-gnome
vars:
gnome_extensions:
- id: 779
enable: yes
- id: 4362
enable: yes
- id: 1460
enable: yes
- id: 7
enable: yes
gnome_user: "{{ user }}"

View File

@ -1,4 +1,4 @@
- name: Change gnome specific keybinds
- name: Change existing gnome keybinds
dconf:
key: "{{ item.key }}"
value: "{{ item.value }}"
@ -11,6 +11,12 @@
- {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/settings-daemon/plugins/media-keys/screensaver", value: [""]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-applications", value: [""]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-applications-backward", value: [""]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-windows", value: [""]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-windows-backward", 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"]}
@ -24,10 +30,50 @@
- {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/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"]}
- {key: "/org/gnome/desktop/wm/keybindings/maximize-horizontally", value: ["<Super><Shift>H"]}
- {key: "/org/gnome/desktop/wm/keybindings/maximize-vertically", value: ["<Super><Shift>V"]}
- {key: "/org/gnome/desktop/wm/keybindings/move-to-center", value: ["<Super>C"]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-windows", value: ["<Super>Tab"]}
- {key: "/org/gnome/desktop/wm/keybindings/switch-windows-backward", value: ["<Super><Shift>Tab"]}
- {key: "/org/gnome/settings-daemon/plugins/media-keys/screensaver", value: ["<Super><Shift>L"]}
- name: Create custom gnome keybinds
dconf:
key: "{{ item.key }}"
value: "{{ item.value }}"
state: present
with_items:
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding', value: "'<Super>Return'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command', value: "'gnome-terminal'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name', value: "'Open Gnome Terminal'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/binding', value: "'<Super><Shift>B'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/command', value: "'brave-browser'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/name', value: "'Open Web Browser'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/binding', value: "'<Super><Shift>V'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/command', value: "'code'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/name', value: "'Open VSCode'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/binding', value: "'<Super>U'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/command', value: "'xdotool mousemove 1280 720'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/name', value: "'Focus Monitor Left'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/binding', value: "'<Super>I'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/command', value: "'xdotool mousemove 3840 720'" }
- { key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/name', value: "'Focus Monitor Right'" }
- name: Set custom gnome keybinds
dconf:
key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings
value: "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/',
'/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/',
'/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/',
'/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/',
'/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/']"

View File

@ -33,4 +33,16 @@
dnf:
name: keepassxc
state: present
become: true
- name: Install xdotool
dnf:
name: xdotool
state: present
become: true
- name: Install xmodmap
dnf:
name: xmodmap
state: present
become: true

View File

View File

@ -1,26 +1,26 @@
- name: Install base system packages
dnf:
name:
- "git"
- "python-psutil"
- git
- python-psutil
state: present
become: true
- name: Install proprietary nvidia drivers
dnf:
name: "akmod-nvidia"
name: akmod-nvidia
state: present
become: true
- name: Install syncthing
dnf:
name: "syncthing"
name: syncthing
state: present
become: true
- name: Install flatpak
dnf:
name: "flatpak"
name: flatpak
state: present
become: true
@ -28,4 +28,10 @@
flatpak:
name: com.github.tchx84.Flatseal
state: present
become: true
become: true
- name: Install pipewire-codec-aptx for bluetooth audio
dnf:
name: pipewire-codec-aptx
state: present
become: true

View File

@ -32,4 +32,7 @@ Random notes about things to change on a new system:
## TODO
- Add sxhkd for non-gnome keybinds
- Change syncthing to user .service file rather than ansible
- manage gnome extensions with ansible
- add wireguard
- remove things that require xOrg (and replace)