forked from Shinonome/dots-hyprland
ags: sync
This commit is contained in:
@@ -17,6 +17,6 @@ if [[ "$(pidof wf-recorder)" == "" ]]; then
|
||||
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" & disown
|
||||
fi
|
||||
else
|
||||
/usr/bin/kill --signal SIGINT wf-recorder
|
||||
kill --signal SIGINT wf-recorder
|
||||
notify-send "Recording Stopped" "Stopped" -a 'record-script.sh'
|
||||
fi
|
||||
|
||||
@@ -4,10 +4,7 @@
|
||||
$black: black;
|
||||
$white: white;
|
||||
$bar_ws_width: 1.774rem;
|
||||
$bar_subgroup_bg: mix($surfaceVariant, $primary, 89%);
|
||||
@if $darkmode ==true {
|
||||
$bar_subgroup_bg: $surfaceVariant;
|
||||
}
|
||||
|
||||
@mixin bar-group-rounding {
|
||||
@include small-rounding;
|
||||
|
||||
@@ -15,12 +15,12 @@ const dummyOccupiedWs = Box({ className: 'bar-ws bar-ws-occupied' }); // Not sho
|
||||
// Font size = workspace id
|
||||
const WorkspaceContents = (count = 10) => {
|
||||
return DrawingArea({
|
||||
css: `transition: 90ms cubic-bezier(0.1, 1, 0, 1);`,
|
||||
properties: [
|
||||
['initialized', false],
|
||||
['workspaceMask', 0],
|
||||
['updateMask', (self) => {
|
||||
if (self._initialized) return; // We only need this to run once
|
||||
console.log('update dayo')
|
||||
const workspaces = Hyprland.workspaces;
|
||||
let workspaceMask = 0;
|
||||
for (let i = 0; i < workspaces.length; i++) {
|
||||
@@ -39,9 +39,7 @@ const WorkspaceContents = (count = 10) => {
|
||||
else self._workspaceMask &= ~(1 << parseInt(name));
|
||||
}]
|
||||
],
|
||||
css: `transition: 90ms cubic-bezier(0.1, 1, 0, 1);`,
|
||||
setup: (area) => {
|
||||
area
|
||||
setup: (area) => area
|
||||
.hook(Hyprland.active.workspace, (area) =>
|
||||
area.setCss(`font-size: ${Hyprland.active.workspace.id}px;`)
|
||||
)
|
||||
@@ -133,8 +131,8 @@ const WorkspaceContents = (count = 10) => {
|
||||
cr.setSourceRGBA(activefg.red, activefg.green, activefg.blue, activefg.alpha);
|
||||
cr.arc(activeWsCenterX, activeWsCenterY, indicatorRadius * 0.2, 0, 2 * Math.PI);
|
||||
cr.fill();
|
||||
}));
|
||||
},
|
||||
}))
|
||||
,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user