mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
updates with initial long term install
This commit is contained in:
parent
9625846dca
commit
f4d2da2fec
4
.local/bin/pac-desc
Executable file
4
.local/bin/pac-desc
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
# Search for package and return description
|
||||
dnf search "$1" | cut -d ':' -f 2- | sed -n 2p
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -1,3 +0,0 @@
|
||||
{
|
||||
"jest.jestCommandLine": "npm run test --"
|
||||
}
|
@ -1,30 +1,18 @@
|
||||
- name: Block for gnome configs
|
||||
block:
|
||||
- name: Remove pre-installed gnome software
|
||||
dnf:
|
||||
name:
|
||||
- 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
|
||||
baseurl: https://brave-browser-rpm-release.s3.brave.com/x86_64/
|
||||
gpgkey: https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
||||
- name: Remove pre-installed gnome software
|
||||
dnf:
|
||||
name:
|
||||
- rhytmbox
|
||||
- cheese
|
||||
- totem
|
||||
- gnome-maps
|
||||
- gnome-characters
|
||||
- gnome-connections
|
||||
- libreoffice
|
||||
- libreoffice-writer
|
||||
- libreoffice-impress
|
||||
- libreoffice-calc
|
||||
- rhythmbox
|
||||
- gnome-tour
|
||||
- yelp
|
||||
state: absent
|
||||
become: true
|
17
provision/tasks/desktop/gnome-settings/_custom-bind.yml
Normal file
17
provision/tasks/desktop/gnome-settings/_custom-bind.yml
Normal file
@ -0,0 +1,17 @@
|
||||
- name: Set custom gnome binding {{ index }}
|
||||
dconf:
|
||||
key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom{{ index }}/binding"
|
||||
value: "{{ item.bind }}"
|
||||
state: present
|
||||
|
||||
- name: Set custom gnome command {{ index }}
|
||||
dconf:
|
||||
key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom{{ index }}/command"
|
||||
value: "{{ item.command }}"
|
||||
state: present
|
||||
|
||||
- name: Set custom gnome name {{ index }}
|
||||
dconf:
|
||||
key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom{{ index }}/name"
|
||||
value: "{{ index }}"
|
||||
state: present
|
@ -2,13 +2,10 @@
|
||||
include_role:
|
||||
name: ansible-role-customize-gnome
|
||||
vars:
|
||||
# For now extensions aren't enabled (https://github.com/PeterMosmans/ansible-role-customize-gnome/issues/25)
|
||||
gnome_extensions:
|
||||
- id: 779
|
||||
enable: yes
|
||||
- id: 4362
|
||||
enable: yes
|
||||
- id: 1460
|
||||
enable: yes
|
||||
- id: 7
|
||||
enable: yes
|
||||
- id: 779 # https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator
|
||||
- id: 4362 # https://github.com/Noobsai/fullscreen-avoider
|
||||
- id: 1460 # https://github.com/corecoding/Vitals
|
||||
- id: 7 # https://gitlab.gnome.org/GNOME/gnome-shell-extensions
|
||||
gnome_user: "{{ user }}"
|
||||
|
@ -1,79 +1,62 @@
|
||||
- name: Unset particular default gnome keybinds
|
||||
dconf:
|
||||
key: "{{ item }}"
|
||||
value: [""]
|
||||
state: present
|
||||
loop:
|
||||
- "/org/gnome/shell/keybindings/switch-to-application-1"
|
||||
- "/org/gnome/shell/keybindings/switch-to-application-2"
|
||||
- "/org/gnome/shell/keybindings/switch-to-application-3"
|
||||
- "/org/gnome/shell/keybindings/switch-to-application-4"
|
||||
- "/org/gnome/shell/keybindings/switch-to-application-5"
|
||||
- "/org/gnome/desktop/wm/keybindings/switch-input-source"
|
||||
- "/org/gnome/desktop/wm/keybindings/switch-input-source-backwards"
|
||||
- "/org/gnome/settings-daemon/plugins/media-keys/screensaver"
|
||||
- "/org/gnome/desktop/wm/keybindings/switch-applications"
|
||||
- "/org/gnome/desktop/wm/keybindings/switch-applications-backward"
|
||||
- "/org/gnome/desktop/wm/keybindings/switch-windows"
|
||||
- "/org/gnome/desktop/wm/keybindings/switch-windows-backward"
|
||||
|
||||
- name: Change existing gnome 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/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: [""]}
|
||||
|
||||
loop:
|
||||
- {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><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'" }
|
||||
- name: Set custom gnome keybinds
|
||||
include_tasks: _custom-bind.yml
|
||||
loop:
|
||||
- {command: "'gnome-terminal'", bind: "'<Super>Return'"}
|
||||
- {command: "'firefox'", bind: "'<Super><Shift>B'"}
|
||||
- {command: "'code'", bind: "'<Super><Shift>V'"}
|
||||
loop_control:
|
||||
index_var: index
|
||||
|
||||
- { 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
|
||||
# Gnome requires an array of strings with the custom keybinds
|
||||
# this must match the number of keybinds defined above...
|
||||
- name: Set custom-keybinds array
|
||||
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/']"
|
||||
'/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/']"
|
@ -1,48 +1,19 @@
|
||||
- name: Block for gnome packages
|
||||
block:
|
||||
- name: Install gnome tweaks
|
||||
dnf:
|
||||
name: gnome-tweak-tool
|
||||
state: present
|
||||
become: true
|
||||
- name: Install desktop dnf packages
|
||||
dnf:
|
||||
name:
|
||||
- gnome-tweaks # Customize advanced GNOME 3 options
|
||||
- dconf-editor # Configuration editor for dconf
|
||||
- keepassxc # Cross-platform password manager
|
||||
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
|
||||
state: present
|
||||
when: desktop == "gnome"
|
||||
|
||||
- name: Install discord
|
||||
- name: Install desktop flatpaks
|
||||
flatpak:
|
||||
name: com.discordapp.Discord
|
||||
state: present
|
||||
|
||||
- name: Install brave
|
||||
dnf:
|
||||
name: brave-browser
|
||||
name:
|
||||
- com.mattjakeman.ExtensionManager # Browse, install, and manage GNOME Shell Extensions
|
||||
- com.discordapp.Discord # Voice, video and text communication service
|
||||
- org.gimp.GIMP # Create images and edit photographs
|
||||
- org.inkscape.Inkscape # Vector Graphics Editor
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install keepassxc
|
||||
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
|
@ -1,4 +1,6 @@
|
||||
- name: Install vscode
|
||||
- name: Install development dnf packages
|
||||
dnf:
|
||||
name: code
|
||||
become: true
|
||||
name:
|
||||
- code # Visual Studio Code. Code editing. Redefined.
|
||||
state: present
|
||||
become: true
|
||||
|
@ -1,14 +1,8 @@
|
||||
- name: Install steam
|
||||
- name: Install gaming dnf packages
|
||||
dnf:
|
||||
name: steam
|
||||
name:
|
||||
- steam # Launcher for the Steam software distribution service
|
||||
- lutris # Video game preservation platform
|
||||
- gamemode # Optimize system performance for games on demand
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install lutris
|
||||
dnf:
|
||||
name: lutris
|
||||
become: true
|
||||
|
||||
- name: Install gamemode
|
||||
dnf:
|
||||
name: gamemode
|
||||
become: true
|
@ -3,6 +3,4 @@
|
||||
- import_tasks: packages.yml
|
||||
tags: ["packages"]
|
||||
- import_tasks: services.yml
|
||||
tags: ["services"]
|
||||
- import_tasks: updates.yml
|
||||
tags: ["updates"]
|
||||
tags: ["services"]
|
@ -1,4 +1,4 @@
|
||||
- name: Install rpm fusion repo (free and non-free)
|
||||
- name: Setup rpm-fusion and flathub
|
||||
tags: ["once"]
|
||||
block:
|
||||
- name: Importing (free) key
|
||||
@ -22,5 +22,5 @@
|
||||
flatpak_remote:
|
||||
name: flathub
|
||||
state: present
|
||||
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
|
||||
become: true
|
||||
|
@ -1,37 +1,18 @@
|
||||
- name: Install base system packages
|
||||
- name: Install system dnf packages
|
||||
dnf:
|
||||
name:
|
||||
- git
|
||||
- python-psutil
|
||||
- git # Fast Version Control System
|
||||
- python-psutil # Cross-platform library for retrieving information on running processes
|
||||
- syncthing # Continuous File Synchronization
|
||||
- flatpak # Application deployment framework for desktop apps
|
||||
- pipewire-codec-aptx # PipeWire Bluetooth aptX codec plugin
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install proprietary nvidia drivers
|
||||
dnf:
|
||||
name: akmod-nvidia
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install syncthing
|
||||
dnf:
|
||||
name: syncthing
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install flatpak
|
||||
dnf:
|
||||
name: flatpak
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install flatseal app
|
||||
- name: Install system flatpaks
|
||||
flatpak:
|
||||
name: com.github.tchx84.Flatseal
|
||||
name:
|
||||
- com.github.tchx84.Flatseal # Manage Flatpak permissions
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install pipewire-codec-aptx for bluetooth audio
|
||||
dnf:
|
||||
name: pipewire-codec-aptx
|
||||
state: present
|
||||
become: true
|
||||
|
@ -1,5 +0,0 @@
|
||||
- name: upgrade system packages
|
||||
dnf:
|
||||
name: "*"
|
||||
state: latest # noqa 403
|
||||
become: true
|
@ -1,5 +1 @@
|
||||
user: tstarr
|
||||
bin_dir: /usr/local/bin
|
||||
desktop: gnome # valid values: gnome
|
||||
gpu: nvidia # valid values: nvidia
|
||||
#dotfiles_repo_url: https://brpaz:{{ github_token }}@github.com/brpaz/dotfiles.git
|
||||
user: tstarr
|
13
readme.md
13
readme.md
@ -9,6 +9,10 @@ The dotfiles are managed with stow and otherwise Ansible sets everything up. The
|
||||
|
||||
### initial setup
|
||||
|
||||
- Install latest Fedora Workstation
|
||||
- If using nvidia setup with [this](https://copr.fedorainfracloud.org/coprs/t0xic0der/nvidia-auto-installer-for-fedora/)
|
||||
- Setup zen-like kernel with [this](https://copr.fedorainfracloud.org/coprs/sentry/kernel-fsync/) from [Nobara](https://nobaraproject.org/)
|
||||
- Run the following commands:
|
||||
```bash
|
||||
sudo dnf install -y git stow
|
||||
git clone https://github.com/starr-dusT/dotfiles ~/.dotfiles
|
||||
@ -24,15 +28,8 @@ initial-setup
|
||||
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
|
||||
|
||||
- Change syncthing to user .service file rather than ansible
|
||||
- manage gnome extensions with ansible
|
||||
- add wireguard
|
||||
- remove things that require xOrg (and replace)
|
||||
- add https://github.com/digint/btrbk
|
Loading…
x
Reference in New Issue
Block a user