This commit is contained in:
sankalp committed 2024-08-03 22:22:59 +05:45
1 parent 396f5a4b6a
commit 3c4df0816f
3 files changed
+12 -2

No files matched your search

+10 -1
View File
@@ -12,6 +12,7 @@ import { cheatsheet } from "modules/cheatsheet.ts";
import Window from "types/widgets/window";
import { popups } from "modules/popups.ts";
import { start_battery_warning_service } from "services/battery_warning.ts";
import Gtk from "gi://Gtk?version=3.0";
const GLib = imports.gi.GLib;
const range = (length: number, start = 1) => Array.from({ length }, (_, i) => i + start);
@@ -31,7 +32,7 @@ const Windows = () => [
sideright,
cheatsheet,
sideleft,
forMonitors(popups)
forMonitors(popups),
];
App.config({
@@ -56,7 +57,15 @@ Utils.monitorFile(`${GLib.get_home_dir()}/.cache/material/colors.css`, ReloadCSS
forMonitorsAsync(Bar);
ReloadCSS();
function enableAnimations(bool: boolean) {
const settings = Gtk.Settings.get_default()!;
settings.gtk_enable_animations = bool;
}
globalThis.ReloadCSS = ReloadCSS;
globalThis.ReloadColors = ReloadColors;
globalThis.enableAnimations = enableAnimations;
start_battery_warning_service();
+1
View File
@@ -20,6 +20,7 @@ import config from "services/configuration.ts";
import { toggleAppsWindow, toggleMediaWindow } from "./sideleft/main.js";
import { Variable as VariableType } from "types/variable";
const keyboard_layout = Variable("none");
hyprland.connect("keyboard-layout", (hyprland, keyboardname, layoutname) => {
keyboard_layout.setValue(layoutname.trim().toLowerCase().substr(0, 2));
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
get() {
cliphist list
cliphist list | iconv -f $(locale charmap) -t UTF-8 -c
}
copy_by_id() {