Skip to content

Instantly share code, notes, and snippets.

View sanoojes's full-sized avatar

Sanooj Es sanoojes

View GitHub Profile
@sanoojes
sanoojes / TransperentWindowControl.tsx
Created September 24, 2024 09:18
Window control fix
import React from 'react';
import { setWindowControlsHeight } from '@/utils/windowControlUtils';
import {
calculateBrowserZoom,
calculateInverseBrowserZoom,
calculateScaledPx,
} from '@/utils/zoomUtils';
import { useLucidStore } from '@/store/useLucidStore';
const TransparentWindowControl = React.memo(() => {
@import url('https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap');
:root {
/* Border */
--border-thickness: 1px;
--border-radius-sm: 0.5rem;
--border-radius-md: 0.5rem;
--border-radius-lg: 0.5rem;
--default-border: var(--border-thickness) solid var(--spice-border);
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
# See https://wiki.hyprland.org/Configuring/Workspaces/
workspace=eDP-1,1,1,1,1,1,1,1,1
# See https://wiki.hyprland.org/Configuring/Input/
input {
kb_layout=us
kb_variant=