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