1
1
Fork 0

Compare commits

..

No commits in common. "945ecdba10f31c344c130233eee32f7cb16a86c4" and "02907dac7b8b310e11d5a7c8698c109f43734949" have entirely different histories.

3 changed files with 14 additions and 45 deletions

View file

@ -25,7 +25,7 @@ in {
auto-cpufreq.max = { auto-cpufreq.max = {
battery = 3; # GHz battery = 3; # GHz
#// charger = 3.5; # GHz charger = 3.5; # GHz
}; };
}; };
}; };

View file

@ -38,70 +38,40 @@ in {
# https://wiki.hyprland.org/Configuring/Window-Rules # https://wiki.hyprland.org/Configuring/Window-Rules
#?? windowrulev2 = RULE, WINDOW #?? windowrulev2 = RULE, WINDOW
windowrulev2 = with config.custom; let windowrulev2 = with config.custom; let
# HACK: Attempts to account for hypr-specific scale, gaps, borders, and bar padding ### Hardware-dependent rules
### Static geometry rules # Convert truncated float to string
tr = num: toString (builtins.floor num); # Convert truncated float to string tr = num: toString (builtins.floor num);
# Bottom center # Bottom center
clipboard = rec { clipboard = rec {
x = tr (width / scale / 2 - (toInt w) / 2); x = tr (width / scale / 2 - (toInt w) / 2);
y = tr (height y = tr (height / scale - (toInt h) - gap - border - padding);
/ scale
- (toInt h)
- gap
- padding
+ (
if ultrawide
then - border # Cause unknown
else 0
));
w = "600"; w = "600";
h = tr (height / scale * 0.75); # 75% h = tr (height / scale * 0.5 * scale);
}; };
# Bottom center # Bottom center
dropdown = rec { dropdown = rec {
x = tr (width / scale / 2 - (toInt w) / 2); x = tr (width / scale / 2 - (toInt w) / 2);
y = tr (height y = tr (height / scale - (toInt h) - gap - border - padding);
/ scale w = tr (width
- (toInt h)
- gap
- padding
+ (
if ultrawide
then - border # Cause unknown
else 0
));
w = tr (
width
/ scale / scale
* ( * (
if ultrawide if ultrawide
then 0.5 # 50% then 0.5
else 1 else 1
) )
+ ( - gap
if ultrawide - gap / 2
then - gap / 2 * 2 # Center layout padding between windows + 1);
else 0 h = tr (height / scale * 0.2 * scale);
)
- gap * 2
- border * 2
);
h = tr (height
/ scale
* (
if ultrawide
then 0.2 # 20%
else 0.3 # 30%
));
}; };
# Top right # Top right
pip = rec { pip = rec {
x = tr (width / scale - (toInt w) - gap - border); x = tr (width / scale - (toInt w) - gap - border);
y = tr (gap + border); y = tr (gap + border);
w = tr (width / scale * 0.25 - gap - gap / 2 - border * 2); # 25% w = tr (width / scale * 0.25 - gap - gap + 1);
h = tr ((toInt w) * 9 / 16); # 16:9 aspect ratio h = tr ((toInt w) * 9 / 16); # 16:9 aspect ratio
}; };

View file

@ -197,7 +197,6 @@ in {
# https://wiki.hyprland.org/Configuring/Variables/#cursor # https://wiki.hyprland.org/Configuring/Variables/#cursor
cursor = { cursor = {
hide_on_key_press = true;
hotspot_padding = 10; hotspot_padding = 10;
min_refresh_rate = 60; # !! Hardware dependent min_refresh_rate = 60; # !! Hardware dependent
no_break_fs_vrr = true; no_break_fs_vrr = true;