mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: more improvements
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import App from "resource:///com/github/Aylur/ags/app.js";
|
import App from "resource:///com/github/Aylur/ags/app.js";
|
||||||
import Hyprland from "resource:///com/github/Aylur/ags/service/hyprland.js";
|
import Hyprland from "resource:///com/github/Aylur/ags/service/hyprland.js";
|
||||||
import options from "../options.js";
|
import options from "../options.js";
|
||||||
import { readFile, writeFile } from "resource:///com/github/Aylur/ags/utils.js";
|
import * as Utils from "resource:///com/github/Aylur/ags/utils.js";
|
||||||
|
|
||||||
const noIgnorealpha = ["verification", "powermenu", "lockscreen"];
|
const noIgnorealpha = ["verification", "powermenu", "lockscreen"];
|
||||||
|
|
||||||
@@ -39,6 +39,15 @@ export function hyprlandInit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function setupHyprland() {
|
export async function setupHyprland() {
|
||||||
|
/*Hyprland.event("activewindowv2", async (addr) => {
|
||||||
|
const client = Hyprland.getClient(addr);
|
||||||
|
if (!client.pinned || !client.floating) return;
|
||||||
|
const x = client.at[0];
|
||||||
|
console.log(
|
||||||
|
await Utils.execAsync(`hyprctl dispatch moveactive exact ${x} 80`),
|
||||||
|
);
|
||||||
|
});*/
|
||||||
|
|
||||||
const wm_gaps = Math.floor(
|
const wm_gaps = Math.floor(
|
||||||
options.hypr.wm_gaps_multiplier.value * options.spacing.value,
|
options.hypr.wm_gaps_multiplier.value * options.spacing.value,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import { showAbout } from "../about/about.js";
|
|||||||
import Gtk from "gi://Gtk";
|
import Gtk from "gi://Gtk";
|
||||||
|
|
||||||
export function init() {
|
export function init() {
|
||||||
console.log("init settings");
|
|
||||||
notificationBlacklist();
|
notificationBlacklist();
|
||||||
warnOnLowBattery();
|
warnOnLowBattery();
|
||||||
globals();
|
globals();
|
||||||
@@ -21,7 +20,6 @@ export function init() {
|
|||||||
gtkFontSettings();
|
gtkFontSettings();
|
||||||
dependandOptions();
|
dependandOptions();
|
||||||
|
|
||||||
console.log("init scss");
|
|
||||||
reloadScss();
|
reloadScss();
|
||||||
hyprlandInit();
|
hyprlandInit();
|
||||||
setupHyprland();
|
setupHyprland();
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ export default [
|
|||||||
name: "Latte",
|
name: "Latte",
|
||||||
icon: "",
|
icon: "",
|
||||||
"desktop.screen_corners": false,
|
"desktop.screen_corners": false,
|
||||||
"bar.style": "floating",
|
"desktop.clock.enable": false,
|
||||||
|
"bar.style": "separated",
|
||||||
|
"bar.separators": false,
|
||||||
"desktop.wallpaper.img": WP + "Lakeside-2-1.jpg",
|
"desktop.wallpaper.img": WP + "Lakeside-2-1.jpg",
|
||||||
...darkColors,
|
...darkColors,
|
||||||
}),
|
}),
|
||||||
@@ -17,7 +19,9 @@ export default [
|
|||||||
name: "Frappe",
|
name: "Frappe",
|
||||||
icon: "",
|
icon: "",
|
||||||
"desktop.screen_corners": false,
|
"desktop.screen_corners": false,
|
||||||
"bar.style": "floating",
|
"desktop.clock.enable": false,
|
||||||
|
"bar.style": "separated",
|
||||||
|
"bar.separators": false,
|
||||||
"desktop.wallpaper.img": WP + "Lakeside-2-10.jpg",
|
"desktop.wallpaper.img": WP + "Lakeside-2-10.jpg",
|
||||||
...lightColors,
|
...lightColors,
|
||||||
"theme.widget.bg": "$accent",
|
"theme.widget.bg": "$accent",
|
||||||
|
|||||||
@@ -34,13 +34,6 @@
|
|||||||
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
||||||
];
|
];
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 16;
|
|
||||||
gaps_out = 16;
|
|
||||||
border_size = 1;
|
|
||||||
|
|
||||||
"col.active_border" = "rgba(0DB7D4FF)";
|
|
||||||
"col.inactive_border" = "rgba(31313600)";
|
|
||||||
|
|
||||||
layout = "master";
|
layout = "master";
|
||||||
resize_on_border = true;
|
resize_on_border = true;
|
||||||
};
|
};
|
||||||
@@ -62,13 +55,27 @@
|
|||||||
];
|
];
|
||||||
monitor = [
|
monitor = [
|
||||||
"DP-1,highrr,0x0,1,bitdepth,10"
|
"DP-1,highrr,0x0,1,bitdepth,10"
|
||||||
"DP-1,addreserved,200,0,0,0"
|
"DP-1,addreserved,250,0,0,0"
|
||||||
"DP-3,highrr,3840x400,1,bitdepth,10"
|
"DP-3,highrr,3840x400,1,bitdepth,10"
|
||||||
];
|
];
|
||||||
workspace = [
|
workspace = [
|
||||||
"special:calc,border:false,gapsout:200,on-created-empty:[noanim;silent] kitty -e qalc"
|
"special:calc,border:false,gapsout:200,on-created-empty:[noanim;silent] kitty -e qalc"
|
||||||
];
|
];
|
||||||
windowrulev2 = [
|
windowrulev2 = let
|
||||||
|
firefoxPip = "class:^(firefox)$,title:^(Picture-in-Picture)$";
|
||||||
|
firefoxPipInitial = "class:^(firefox)$,title:^(Firefox)$";
|
||||||
|
in [
|
||||||
|
"keepaspectratio,${firefoxPip}"
|
||||||
|
"nofocus,${firefoxPip}"
|
||||||
|
"noborder,${firefoxPip}"
|
||||||
|
"float,${firefoxPip}"
|
||||||
|
"float,${firefoxPipInitial}"
|
||||||
|
"pin,${firefoxPip}"
|
||||||
|
"pin,${firefoxPipInitial}"
|
||||||
|
"fakefullscreen,${firefoxPip}"
|
||||||
|
"fakefullscreen,${firefoxPipInitial}"
|
||||||
|
"move 22 72,${firefoxPip}"
|
||||||
|
"move 22 72,${firefoxPipInitial}"
|
||||||
# Games
|
# Games
|
||||||
## AC2
|
## AC2
|
||||||
"monitor DP-3,class:^(steam_app_805550)$"
|
"monitor DP-3,class:^(steam_app_805550)$"
|
||||||
@@ -98,8 +105,7 @@
|
|||||||
];
|
];
|
||||||
decoration = {
|
decoration = {
|
||||||
drop_shadow = "yes";
|
drop_shadow = "yes";
|
||||||
shadow_range = 8;
|
shadow_range = 16;
|
||||||
shadow_render_power = 2;
|
|
||||||
"col.shadow" = "rgba(00000044)";
|
"col.shadow" = "rgba(00000044)";
|
||||||
|
|
||||||
dim_inactive = false;
|
dim_inactive = false;
|
||||||
@@ -128,6 +134,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.kdeconnect = {
|
||||||
|
enable = true;
|
||||||
|
indicator = true;
|
||||||
|
};
|
||||||
programs.ags = {
|
programs.ags = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configDir = ./ags;
|
configDir = ./ags;
|
||||||
@@ -143,7 +153,7 @@
|
|||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${pkgs.ags}/bin/ags";
|
ExecStart = "${pkgs.ags}/bin/ags";
|
||||||
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
||||||
Restart = "on-failure";
|
Restart = "always";
|
||||||
KillMode = "mixed";
|
KillMode = "mixed";
|
||||||
Environment = "PATH=/run/current-system/sw/bin/:${with pkgs;
|
Environment = "PATH=/run/current-system/sw/bin/:${with pkgs;
|
||||||
lib.makeBinPath [
|
lib.makeBinPath [
|
||||||
@@ -173,7 +183,6 @@
|
|||||||
System = pkgs.System;
|
System = pkgs.System;
|
||||||
UserNotifications = pkgs.UserNotifications;
|
UserNotifications = pkgs.UserNotifications;
|
||||||
})
|
})
|
||||||
libsForQt5.konsole
|
|
||||||
# fonts
|
# fonts
|
||||||
noto-fonts
|
noto-fonts
|
||||||
# essentials
|
# essentials
|
||||||
|
|||||||
@@ -90,7 +90,10 @@
|
|||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
extraPortals = [
|
||||||
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
pkgs.xdg-desktop-portal-kde
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
@@ -147,6 +150,7 @@
|
|||||||
services.getty.loginOptions = "-p -f -- \\u"; # preserve environment
|
services.getty.loginOptions = "-p -f -- \\u"; # preserve environment
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
programs.kdeconnect.enable = true;
|
||||||
security.sudo.configFile = ''
|
security.sudo.configFile = ''
|
||||||
Defaults env_reset,pwfeedback,passprompt=" "
|
Defaults env_reset,pwfeedback,passprompt=" "
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user