Skip to content

Commit

Permalink
fixing nvidia recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
Heus-Sueh committed Aug 9, 2024
1 parent 0da69a4 commit e18690c
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 6 deletions.
56 changes: 56 additions & 0 deletions files/system/etc/skel/hypr/windowrules.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
windowrulev2 = idleinhibit fullscreen, fullscreen:1

windowrule = float, org.kde.polkit-kde-authentication-agent-1
windowrule = float, nm-connection-editor|blueman-manager
windowrule = float, pavucontrol
windowrule = float, eog # Eye of gnome
windowrule = float, rofi
windowrule = float, gnome-system-monitor
windowrule = float, yad

#opacity (transparent) #enable as desired
#first value: focused, second:not focused
windowrulev2 = opacity 0.9 0.6, class:^[Rr]ofi)$
windowrulev2 = opacity 0.9 0.8, class:^(kitty)$
windowrulev2 = opacity 0.9 0.7, class:^(yad)$
windowrulev2 = opacity 0.9 0.7, class:^(Spotify)$
windowrulev2 = opacity 0.9 0.7, class:^(steam)$
windowrulev2 = opacity 1, 1, title:^(Picture-in-Picture)$

# Blur -----------------------------------------------------
# Wlogout
layerrule = blur, logout_dialog

layerrule = blur, class:^(swww)$
layerrule = blur, rofi
#layerrule = blur, (waybar)

layerrule = blur, swaync-control-center
layerrule = blur, swaync-notification-window

# Tweaks to work with blur -----------------------------------

layerrule = unset, rofi
layerrule = ignorezero, rofi

layerrule = ignorezero, swaync-control-center
layerrule = ignorezero, swaync-notification-window

layerrule = ignorealpha 0.5, swaync-control-center
layerrule = ignorealpha 0.5, swaync-notification-window

# Picture-in-a-Picture (PIP) rules: Oddly, some need re-duplication. This is because the window for
# PIP changes after on first launch, and will not inherant the rules...
windowrulev2=opacity 0.95 0.75,title:^(Picture-in-Picture)$ # for opacity: [focus num] [bg num]
# Interestingly, the opacity rule above doesn't need the reduplication?
windowrulev2=pin,title:^(Picture-in-Picture)$
windowrulev2=float, title:^(Picture-in-Picture)$
windowrulev2=size 25% 25%,title:^(Picture-in-Picture)$
windowrulev2=move 72% 7%,title:^(Picture-in-Picture)$

windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$
windowrulev2 = noblur,class:^(xwaylandvideobridge)$

2 changes: 1 addition & 1 deletion recipes/pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ install:
- gvfs-mtp
- gvfs-smb
- file-roller
- udiskie
- imv
- unrar
# Screenshot
Expand Down Expand Up @@ -94,5 +95,4 @@ install:
- kwallet
- pam-kwallet
# Others
- udiskie
remove:
6 changes: 3 additions & 3 deletions recipes/recipe-dx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ modules:
# Files
- type: files
files:
- source: usr
- source: system/usr
destination: /usr
- source: etc
- source: system/etc
destination: /etc
# ---------------------------------------------------------------------------------------------------------------------------
- from-file: rpm-ostree.yml
- from-file: pkgs.yml
- from-file: fonts.yml
- from-file: default-flatpaks.yml
- from-file: dx.yml
Expand Down
34 changes: 34 additions & 0 deletions recipes/recipe-nvidia-dx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# image will be published to ghcr.io/<user>/<name>
name: hyprland-nvidia-dx
# description will be included in the image's metadata
description: This is my personal OS image.

# the base image to build on top of (FROM) and the version tag to use
base-image: ghcr.io/ublue-os/base-nvidia
image-version: 40 # latest is also supported if you want new updates ASAP

# module configuration, executed in order
# you can include multiple instances of the same module
modules:
# Files
- type: files
files:
- source: system/usr
destination: /usr
- source: system/etc
destination: /etc
# ----------------------------------------------------------------------------------------------------------------------------
- from-file: pkgs.yml
- from-file: fonts.yml
- from-file: default-flatpaks.yml
- from-file: dx.yml
# ----------------------------------------------------------------------------------------------------------------------------
# SystemD
- type: systemd
system:
enabled:
- sddm-boot.service
# ----------------------------------------------------------------------------------------------------------------------------
# Signing
- type: signing # this sets up the proper policy & signing files for signed images to work fully
# ----------------------------------------------------------------------------------------------------------------------------
4 changes: 2 additions & 2 deletions recipes/recipe-nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ modules:
# Files
- type: files
files:
- source: usr
- source: system/usr
destination: /usr
- source: etc
- source: system/etc
destination: /etc
# ----------------------------------------------------------------------------------------------------------------------------
- from-file: pkgs.yml
Expand Down

0 comments on commit e18690c

Please sign in to comment.