Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
chore(mazurek): do a LOT of things
Browse files Browse the repository at this point in the history
  • Loading branch information
sneexy-boi committed Feb 28, 2024
1 parent bc881b1 commit 68c2fac
Show file tree
Hide file tree
Showing 30 changed files with 1,645 additions and 84 deletions.
2 changes: 1 addition & 1 deletion config/common/sneexy/mazurek/files.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
type: files
files:
- sneexy/usr: /usr
- sneexy/mazurek/usr: /usr
73 changes: 0 additions & 73 deletions config/common/sneexy/mazurek/rpm-ostree.yml

This file was deleted.

90 changes: 90 additions & 0 deletions config/common/sneexy/mazurek/system.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
type: rpm-ostree
repos:
# swayfx
- https://copr.fedorainfracloud.org/coprs/swayfx/swayfx/repo/fedora-%OS_VERSION%/swayfx-swayfx-fedora-%OS_VERSION%.repo

# swayland
- https://copr.fedorainfracloud.org/coprs/sneexy/swayland/repo/fedora-%OS_VERSION%/sneexy-swayland-fedora-%OS_VERSION%.repo

# swaync
- https://copr.fedorainfracloud.org/coprs/erikreider/SwayNotificationCenter/repo/fedora-%OS_VERSION%/erikreider-SwayNotificationCenter-fedora-%OS_VERSION%.repo

# wezterm
- https://copr.fedorainfracloud.org/coprs/wezfurlong/wezterm-nightly/repo/fedora-%OS_VERSION%/wezfurlong-wezterm-nightly-fedora-%OS_VERSION%.repo
install:
# display manager
- sddm
- sddm-themes

# environment
- xorg-x11-server-Xwayland
- polkit
- lxpolkit
- xdg-user-dirs
- dbus-tools
- dbus-daemon
- wl-clipboard
- gnome-keyring
- pavucontrol
- playerctl
- qt5-qtwayland
- qt6-qtwayland
- vulkan-validation-layers
- vulkan-tools
- google-noto-emoji-fonts
- gnome-disk-utility

# sound
- wireplumber
- pipewire
- pamixer

# networking
- network-manager-applet
- NetworkManager-openvpn
- NetworkManager-openconnect
- bluez
- bluez-tools
- blueman

# sway utilities
- wofi
- swaync
- sway-audio-idle-inhibit

# file manager
- thunar
- thunar-archive-plugin
- thunar-volman
- xarchiver
- imv
- p7zip
- unrar-free

# screenshot
- slurp
- grim

# display
- wlr-randr
- wlsunset
- grimshot
- light
- swaylock
- swayidle
- kanshi

# terminals
- kitty
- wezterm
- contour-terminal
- qt5-qtgraphicaleffects

# theme and GUI
- bibata-cursor-themes
- qt5ct
- qt6ct
- gnome-themes-extra
- gnome-icon-theme
- papirus-icon-theme
- plasma-breeze
8 changes: 8 additions & 0 deletions config/common/sneexy/mazurek/user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: rpm-ostree
repo:
install:
- waydroid
- mpv
remove:
- firefox # default firefox removed in favor of flatpak
- firefox-langpacks # langpacks needs to also be removed to prevent dependency problems
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Sets the display server to wayland instead of xorg
[General]
DisplayServer=wayland
2 changes: 2 additions & 0 deletions config/files/sneexy/mazurek/usr/etc/sddm.conf.d/20-theme.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Theme]
Current=corners
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Resolve]
DNS=9.9.9.9 9.9.9.11 9.9.9.10 208.67.222.222 94.140.14.14 192.168.51.1 1.1.1.1 2620:fe::fe 2620:fe::11 2620:fe::10 2620:119:35::35 2a10:50c0::ad1:ff 2606:4700:4700::64 fd7b:d0bd:7a6e::1
Domains=~.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Resolve]
FallbackDNS=127.0.0.1 ::1
10 changes: 10 additions & 0 deletions config/files/sneexy/mazurek/usr/etc/systemd/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Call user's suspend target after system suspend
After=suspend.target
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl --user --machine=%i@ start --wait suspend.target
[Install]
WantedBy=suspend.target
136 changes: 136 additions & 0 deletions config/files/sneexy/mazurek/usr/etc/tlp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# ------------------------------------------------------------------------------
# /etc/tlp.conf - TLP user configuration (version 1.4)
# See full explanation: https://linrunner.de/tlp/settings
#
# Settings are read in the following order:
#
# 1. Intrinsic defaults
# 2. /etc/tlp.d/*.conf - Drop-in customization snippets
# 3. /etc/tlp.conf - User configuration (this file)
#
# Notes:
# - In case of identical parameters, the last occurence has precedence
# - This also means, parameters enabled here will override anything else
# - However you may append values to a parameter already defined as intrinsic
# default or in a previously read file: use PARAMETER+="add values"
# - IMPORTANT: all parameters here are disabled; remove the leading '#' if you
# like to enable a feature without default or have a value different from the
# default
# - Default *: intrinsic default that is effective when the parameter is missing
# or disabled by a leading '#'; use PARAM="" to disable an intrinsic default
# - Default <none>: do nothing or use kernel/hardware defaults
# -
# ------------------------------------------------------------------------------
# tlp - Parameters for power saving
#
# Settings based on Framework's guidance: https://knowledgebase.frame.work/en_us/optimizing-fedora-battery-life-r1baXZh

# Select a CPU frequency scaling governor.
# Intel processor with intel_pstate driver:
# performance, powersave(*).
# Intel processor with intel_cpufreq driver (aka intel_pstate passive mode):
# conservative, ondemand, userspace, powersave, performance, schedutil(*).
# Intel and other processor brands with acpi-cpufreq driver:
# conservative, ondemand(*), userspace, powersave, performance, schedutil(*).
# Use tlp-stat -p to show the active driver and available governors.
# Important:
# Governors marked (*) above are power efficient for *almost all* workloads
# and therefore kernel and most distributions have chosen them as defaults.
# You should have done your research about advantages/disadvantages *before*
# changing the governor.
# Default: <none>

CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave

# Set Intel CPU energy/performance policies HWP.EPP and EPB:
# performance, balance_performance, default, balance_power, power.
# Values are given in order of increasing power saving.
# Notes:
# - HWP.EPP: requires kernel 4.10, intel_pstate scaling driver and Intel Core i
# 6th gen. or newer CPU
# - EPB: requires kernel 5.2 or module msr and x86_energy_perf_policy from
# linux-tools, intel_pstate or intel_cpufreq scaling driver and Intel Core i
# 2nd gen. or newer CPU
# - When HWP.EPP is available, EPB is not set
# Default: balance_performance (AC), balance_power (BAT)

CPU_ENERGY_PERF_POLICY_ON_AC=performance
CPU_ENERGY_PERF_POLICY_ON_BAT=power

# Set Intel CPU P-state performance: 0..100 (%).
# Limit the max/min P-state to control the power dissipation of the CPU.
# Values are stated as a percentage of the available performance.
# Requires intel_pstate or intel_cpufreq driver and Intel Core i 2nd gen. or
# newer CPU.
# Default: <none>

CPU_MIN_PERF_ON_AC=0
CPU_MAX_PERF_ON_AC=100
CPU_MIN_PERF_ON_BAT=0
CPU_MAX_PERF_ON_BAT=70

# Set the CPU "turbo boost" (Intel) or "turbo core" (AMD) feature:
# 0=disable, 1=allow.
# Note: a value of 1 does *not* activate boosting, it just allows it.
# Default: <none>

CPU_BOOST_ON_AC=1
CPU_BOOST_ON_BAT=0

# Set the Intel CPU HWP dynamic boost feature:
# 0=disable, 1=enable.
# Requires intel_pstate scaling driver in 'active' mode and Intel Core i
# 6th gen. or newer CPU.
# Default: <none>

CPU_HWP_DYN_BOOST_ON_AC=1
CPU_HWP_DYN_BOOST_ON_BAT=0

# Select platform profile:
# performance, balanced, low-power.
# Controls system operating characteristics around power/performance levels,
# thermal and fan speed. Values are given in order of increasing power saving.
# Note: check the output of tlp-stat -p to determine availability on your
# hardware and additional profiles such as: balanced-performance, quiet, cool.
# Default: <none>

PLATFORM_PROFILE_ON_AC=performance
PLATFORM_PROFILE_ON_BAT=low-power

# Set the min/max/turbo frequency for the Intel GPU.
# Possible values depend on your hardware. For available frequencies see
# the output of tlp-stat -g.
# Default: <none>

INTEL_GPU_MIN_FREQ_ON_AC=100
INTEL_GPU_MIN_FREQ_ON_BAT=100
INTEL_GPU_MAX_FREQ_ON_AC=1300
INTEL_GPU_MAX_FREQ_ON_BAT=800
INTEL_GPU_BOOST_FREQ_ON_AC=1300
INTEL_GPU_BOOST_FREQ_ON_BAT=1100

# Wi-Fi power saving mode: on=enable, off=disable.
# Default: off (AC), on (BAT)

#WIFI_PWR_ON_AC=off
WIFI_PWR_ON_BAT=off

# PCIe Active State Power Management (ASPM):
# default(*), performance, powersave, powersupersave.
# (*) keeps BIOS ASPM defaults (recommended)
# Default: <none>

#PCIE_ASPM_ON_AC=default
PCIE_ASPM_ON_BAT=powersupersave

# Exclude PCIe devices assigned to the listed drivers from Runtime PM.
# Note: this preserves the kernel driver default, to force a certain state
# use RUNTIME_PM_ENABLE/DISABLE instead.
# Separate multiple drivers with spaces.
# Default: "mei_me nouveau radeon", use "" to disable completely.

RUNTIME_PM_DRIVER_DENYLIST=""

# Make sure USB_AUTOSUSPEND is disabled because it is super annoying to use your computer with a not-functioning mouse and keyboard
USB_AUTOSUSPEND=0
38 changes: 38 additions & 0 deletions config/files/sneexy/mazurek/usr/share/sddm/themes/corners/Main.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Window 2.15

import "./components"

Rectangle {
id: root

height: Screen.height
width: Screen.width

Image {
anchors { fill: parent }

source: config.BgSource
fillMode: Image.PreserveAspectCrop
clip: true
}

Item {
anchors {
fill: parent
margins: config.Padding
}

DateTimePanel {
anchors {
top: parent.top
right: parent.right
}
}

LoginPanel {
anchors { fill: parent }
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 68c2fac

Please sign in to comment.