Compare commits

...

2 Commits

Author SHA1 Message Date
90b3817755 moved the screencast icon 2025-03-08 20:57:18 +01:00
dcf4cd7452 started working on a screencast icon 2025-03-08 20:54:00 +01:00
6 changed files with 28 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
:space-evenly false
:spacing 5
(media)
(hyprscreencast)
(sysmon)))
(defwidget bar0_right []

View File

@@ -41,4 +41,5 @@
:spacing 5
:halign 'end'
(media)
(hyprscreencast)
(datetime)))

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 ? '󰐯': '󱠎'}")))