mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: customize ags more
This commit is contained in:
BIN
home/desktops/hyprland/ags/assets/Lakeside-2-1.jpg
Normal file
BIN
home/desktops/hyprland/ags/assets/Lakeside-2-1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 MiB |
BIN
home/desktops/hyprland/ags/assets/Lakeside-2-10.jpg
Normal file
BIN
home/desktops/hyprland/ags/assets/Lakeside-2-10.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
@@ -267,7 +267,7 @@ export default {
|
||||
}),
|
||||
},
|
||||
|
||||
workspaces: Option(0, {
|
||||
workspaces: Option(10, {
|
||||
category: "Bar",
|
||||
title: "No. workspaces on bar and overview",
|
||||
note: "Set it to 0 to make it dynamic",
|
||||
|
||||
@@ -45,20 +45,10 @@ export async function setupHyprland() {
|
||||
const border_width = options.border.width.value;
|
||||
const radii = options.radii.value;
|
||||
const drop_shadow = options.desktop.drop_shadow.value;
|
||||
const bar_style = options.bar.style.value;
|
||||
const bar_pos = options.bar.position.value;
|
||||
const inactive_border = options.hypr.inactive_border.value;
|
||||
const accent = getColor(options.theme.accent.accent.value);
|
||||
|
||||
const batch = [];
|
||||
|
||||
JSON.parse(await Hyprland.sendMessage("j/monitors")).forEach(({ name }) => {
|
||||
const v = bar_pos === "top" ? `-${wm_gaps},0,0,0` : `0,-${wm_gaps},0,0`;
|
||||
if (bar_style !== "normal") batch.push(`monitor ${name},addreserved,${v}`);
|
||||
else batch.push(`monitor ${name},addreserved,0,0,0,0`);
|
||||
});
|
||||
|
||||
batch.push(
|
||||
sendBatch([
|
||||
`general:border_size ${border_width}`,
|
||||
`general:gaps_out ${wm_gaps}`,
|
||||
`general:gaps_in ${Math.floor(wm_gaps / 2)}`,
|
||||
@@ -66,7 +56,5 @@ export async function setupHyprland() {
|
||||
`general:col.inactive_border ${inactive_border}`,
|
||||
`decoration:rounding ${radii}`,
|
||||
`decoration:drop_shadow ${drop_shadow ? "yes" : "no"}`,
|
||||
);
|
||||
|
||||
sendBatch(batch);
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import Battery from "resource:///com/github/Aylur/ags/service/battery.js";
|
||||
import Notifications from "resource:///com/github/Aylur/ags/service/notifications.js";
|
||||
import options from "../options.js";
|
||||
import icons from "../icons.js";
|
||||
import { reloadScss, scssWatcher } from "./scss.js";
|
||||
import { reloadScss } from "./scss.js";
|
||||
import { wallpaper } from "./wallpaper.js";
|
||||
import { hyprlandInit, setupHyprland } from "./hyprland.js";
|
||||
import { globals } from "./globals.js";
|
||||
@@ -11,15 +11,16 @@ import { showAbout } from "../about/about.js";
|
||||
import Gtk from "gi://Gtk";
|
||||
|
||||
export function init() {
|
||||
console.log("init settings");
|
||||
notificationBlacklist();
|
||||
warnOnLowBattery();
|
||||
globals();
|
||||
tmux();
|
||||
gsettigsColorScheme();
|
||||
gtkFontSettings();
|
||||
scssWatcher();
|
||||
dependandOptions();
|
||||
|
||||
console.log("init scss");
|
||||
reloadScss();
|
||||
hyprlandInit();
|
||||
setupHyprland();
|
||||
|
||||
@@ -8,12 +8,16 @@ export default [
|
||||
Theme({
|
||||
name: "Kitty Dark",
|
||||
icon: "",
|
||||
"desktop.wallpaper.img": WP + "kittybl.jpeg",
|
||||
"desktop.screen_corners": false,
|
||||
"bar.style": "floating",
|
||||
"desktop.wallpaper.img": WP + "Lakeside-2-1.jpg",
|
||||
}),
|
||||
Theme({
|
||||
name: "Kitty Light",
|
||||
icon: "",
|
||||
"desktop.wallpaper.img": WP + "kitty.jpeg",
|
||||
"desktop.screen_corners": false,
|
||||
"bar.style": "floating",
|
||||
"desktop.wallpaper.img": WP + "Lakeside-2-10.jpg",
|
||||
...lightColors,
|
||||
"theme.widget.bg": "$accent",
|
||||
"theme.widget.opacity": 64,
|
||||
|
||||
Reference in New Issue
Block a user