started working on a screencast icon

This commit is contained in:
2025-03-08 20:54:00 +01:00
parent bd073c6dff
commit dcf4cd7452
6 changed files with 29 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
:spacing 5
:halign 'start'
(hypr_workspaces)
(hyprscreencast)
(hypr_active_window)))

View File

@@ -23,7 +23,8 @@
:space-evenly false
:spacing 5
:halign 'start'
(hypr_workspaces)))
(hypr_workspaces)
(hyprscreencast)))
(defwidget bar1_center []

View File

@@ -8,3 +8,4 @@
@import 'widgets/sysmon.scss';
@import 'widgets/swaync.scss';
@import 'widgets/volume.scss';
@import 'widgets/hyprscreencast.scss';

View File

@@ -8,3 +8,4 @@
(include "widgets/sysmon.yuck")
(include "widgets/swaync.yuck")
(include "widgets/volume.yuck")
(include "widgets/hyprscreencast.yuck")

View File

@@ -0,0 +1,16 @@
.screencast{
/* Colors */
$sc-active: indigo;
$sc-inactive: darkorchid;
$sc-label-active: maroon;
$sc-label-inactive: gainsboro;
background: $sc-inactive;
color: $sc-label-inactive;
&--active{
background: $sc-active;
color: $sc-label-active;
}
}

View File

@@ -0,0 +1,8 @@
(deflisten screencast :initial '{"event":"Screencast","data":{"state":0,"owner":0}}"' "hyprman -f screencast")
(defwidget hyprscreencast []
(box
:class "screencast${screencast.data.state == 1 ? '--active' : ''}"
(label
:padding 3
:text "${screencast.data.state == 1 ? '󰐯': '󱠎'}")))