From 58b54e1316d74791d28ed8b6ff34bf4f1b17a9e8 Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Fri, 12 Nov 2021 09:19:11 -0800 Subject: [PATCH] Add partial window reposition --- dotfiles_github/README.md | 12 +++++++++++- dotfiles_github/window_reposition.sh | 13 +++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 dotfiles_github/window_reposition.sh diff --git a/dotfiles_github/README.md b/dotfiles_github/README.md index e91be8ee..a2218dfc 100644 --- a/dotfiles_github/README.md +++ b/dotfiles_github/README.md @@ -10,7 +10,17 @@ ssh-add ~/.ssh/id_rsa 5. Place the dotfiles where they need to be with `chmod +x install_dotfiles.sh && ./install_dotfiles.sh` # Other Stuff +## Autostart +1. Set Spotify, PulseEffects, and Ferdi to start automatically. +2. `chmod +x window_reposition.sh` +3. Run the window_reposition script at startup. + ## Tiling and corner-snapping Using GNOME, disable all extensions. Install [Tiling Assistant](https://extensions.gnome.org/extension/3733/tiling-assistant/) -Set Windows and Screen Edges gaps to 12px. \ No newline at end of file +Set Windows and Screen Edges gaps to 12px. + +## Virtualization +Install `libvirt`. +`nano /etc/default/grub` and add `amd_iommu=on iommu=pt` to the `GRUB_CMDLINE_LINUX_DEFAULT` variable. +`sudo grub-mkconfig -o /boot/grub/grub.cfg` to update the bootloader. \ No newline at end of file diff --git a/dotfiles_github/window_reposition.sh b/dotfiles_github/window_reposition.sh new file mode 100644 index 00000000..013268af --- /dev/null +++ b/dotfiles_github/window_reposition.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +#[Ferdi] +WINDOW_ID=$(xdotool search --onlyvisible --name ferdi) +xdotool windowsize $WINDOW_ID 1262 1383 +xdotool windowmove $WINDOW_ID 6406 45 + +#[PulseEffects] +WINDOW_ID=$(xdotool search --onlyvisible --name pulseeffects) +xdotool windowsize $WINDOW_ID 1320 760 +xdotool windowmove $WINDOW_ID 5100 703 + +xdotool key XF86AudioPlay \ No newline at end of file