Skip to content

Instantly share code, notes, and snippets.

@haryp2309
Last active June 26, 2024 00:50
Show Gist options
  • Save haryp2309/c5aa822abaa266504d9b3920dfd37b1d to your computer and use it in GitHub Desktop.
Save haryp2309/c5aa822abaa266504d9b3920dfd37b1d to your computer and use it in GitHub Desktop.
Fedora Workstation Yoga 9i

Fedora Workstation Yoga 9i

Print Screen Keybinding

Run:

gsettings set org.gnome.shell.keybindings show-screenshot-ui "['Print', '<Shift><Super>s']"

Replace system apps with flatpaks

from subprocess import run

db = {
    "gnome-weather": "org.gnome.Weather",
    "gnome-calculator": "org.gnome.Calculator",
    "gnome-contacts": "org.gnome.Contacts",
    "gnome-weather": "org.gnome.Weather",
    "gnome-clocks": "org.gnome.clocks",
    "gnome-maps": "org.gnome.Maps",
    "gnome-calendar": "org.gnome.Calendar",
    "gnome-boxes": "org.gnome.Boxes",
    "gnome-loupe": "org.gnome.Loupe",
    "gnome-connections": "org.gnome.Connections",
    "snapshot": "org.gnome.Snapshot",
    "totem": "com.github.rafostar.Clapper",
    "evince": "org.gnome.Evince",
    "rhythmbox": "io.bassi.Amberol",
    "simple-scan": "org.gnome.SimpleScan",
    "mediawriter": "org.fedoraproject.MediaWriter",
}

for sys_pkg, flat_pkg in db.items():
    answer = input(f"Replace '{sys_pkg}' with '{flat_pkg}'? [Y/n]: ")
    if answer and not answer.lower() == "y":
        print("Skipping...")
        continue
    run(["sudo", "dnf", "autoremove", sys_pkg, "-y"])
    run(["flatpak", "install", "flathub", flat_pkg, "-y"])
    print(f"Replaced '{sys_pkg}' with '{flat_pkg}'")

Apps

VS Code Setup

  1. Install through Flatpak
  2. Set GTK_USE_PORTAL=1 through Flatseal
  3. Add these startup arguments:
    --enable-features=WaylandWindowDecorations 
    --enable-features=UseOzonePlatform 
    --ozone-platform=wayland 
    --unity-launch
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment