Compare commits
No commits in common. "945ecdba10f31c344c130233eee32f7cb16a86c4" and "02907dac7b8b310e11d5a7c8698c109f43734949" have entirely different histories.
945ecdba10
...
02907dac7b
3 changed files with 14 additions and 45 deletions
|
@ -25,7 +25,7 @@ in {
|
|||
|
||||
auto-cpufreq.max = {
|
||||
battery = 3; # GHz
|
||||
#// charger = 3.5; # GHz
|
||||
charger = 3.5; # GHz
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -38,70 +38,40 @@ in {
|
|||
# https://wiki.hyprland.org/Configuring/Window-Rules
|
||||
#?? windowrulev2 = RULE, WINDOW
|
||||
windowrulev2 = with config.custom; let
|
||||
# HACK: Attempts to account for hypr-specific scale, gaps, borders, and bar padding
|
||||
### Static geometry rules
|
||||
tr = num: toString (builtins.floor num); # Convert truncated float to string
|
||||
### Hardware-dependent rules
|
||||
# Convert truncated float to string
|
||||
tr = num: toString (builtins.floor num);
|
||||
|
||||
# Bottom center
|
||||
clipboard = rec {
|
||||
x = tr (width / scale / 2 - (toInt w) / 2);
|
||||
y = tr (height
|
||||
/ scale
|
||||
- (toInt h)
|
||||
- gap
|
||||
- padding
|
||||
+ (
|
||||
if ultrawide
|
||||
then - border # Cause unknown
|
||||
else 0
|
||||
));
|
||||
y = tr (height / scale - (toInt h) - gap - border - padding);
|
||||
w = "600";
|
||||
h = tr (height / scale * 0.75); # 75%
|
||||
h = tr (height / scale * 0.5 * scale);
|
||||
};
|
||||
|
||||
# Bottom center
|
||||
dropdown = rec {
|
||||
x = tr (width / scale / 2 - (toInt w) / 2);
|
||||
y = tr (height
|
||||
/ scale
|
||||
- (toInt h)
|
||||
- gap
|
||||
- padding
|
||||
+ (
|
||||
if ultrawide
|
||||
then - border # Cause unknown
|
||||
else 0
|
||||
));
|
||||
w = tr (
|
||||
width
|
||||
y = tr (height / scale - (toInt h) - gap - border - padding);
|
||||
w = tr (width
|
||||
/ scale
|
||||
* (
|
||||
if ultrawide
|
||||
then 0.5 # 50%
|
||||
then 0.5
|
||||
else 1
|
||||
)
|
||||
+ (
|
||||
if ultrawide
|
||||
then - gap / 2 * 2 # Center layout padding between windows
|
||||
else 0
|
||||
)
|
||||
- gap * 2
|
||||
- border * 2
|
||||
);
|
||||
h = tr (height
|
||||
/ scale
|
||||
* (
|
||||
if ultrawide
|
||||
then 0.2 # 20%
|
||||
else 0.3 # 30%
|
||||
));
|
||||
- gap
|
||||
- gap / 2
|
||||
+ 1);
|
||||
h = tr (height / scale * 0.2 * scale);
|
||||
};
|
||||
|
||||
# Top right
|
||||
pip = rec {
|
||||
x = tr (width / scale - (toInt w) - 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
|
||||
};
|
||||
|
||||
|
|
|
@ -197,7 +197,6 @@ in {
|
|||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#cursor
|
||||
cursor = {
|
||||
hide_on_key_press = true;
|
||||
hotspot_padding = 10;
|
||||
min_refresh_rate = 60; # !! Hardware dependent
|
||||
no_break_fs_vrr = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue