update
This commit is contained in:
1 parent
396f5a4b6a
commit
3c4df0816f
3 files changed
+12
-2
No files matched your search
+10
-1
@@ -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();
|
||||
|
||||
@@ -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,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
get() {
|
||||
cliphist list
|
||||
cliphist list | iconv -f $(locale charmap) -t UTF-8 -c
|
||||
}
|
||||
|
||||
copy_by_id() {
|
||||
|
||||
Reference in new issue
Block a user