init
This commit is contained in:
Executable
+63
@@ -0,0 +1,63 @@
|
||||
* {
|
||||
all: unset;
|
||||
background: transparent;
|
||||
font-family: "JetBrainsMono Nerd Font";
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
$bg: #111111;
|
||||
$bg1: #111111;
|
||||
$bg2: #26233a;
|
||||
$fg: #ebbcba;
|
||||
$fgdim: #6e6a86;
|
||||
$accent: #9ccfd8;
|
||||
$border: #ebbcba;
|
||||
|
||||
.container {
|
||||
background-color: $bg1;
|
||||
border: 1px solid $border;
|
||||
color: $fg;
|
||||
border-radius: 10px;
|
||||
padding: 6px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.button-label, .label {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: $fg;
|
||||
}
|
||||
|
||||
.completelytrans {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.calendar-label {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: $fg;
|
||||
}
|
||||
|
||||
window {
|
||||
all: unset;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
calendar, calendar.view, calendar.header {
|
||||
all: unset;
|
||||
background-color: $bg;
|
||||
color: $fgdim;
|
||||
font-size: 18px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
calendar:indeterminate {
|
||||
color: #665c54;
|
||||
}
|
||||
|
||||
calendar:selected {
|
||||
background-color: $bg2;
|
||||
border: 1px solid $accent;
|
||||
color: $fg;
|
||||
border-radius: 4px;
|
||||
}
|
||||
Executable
+58
@@ -0,0 +1,58 @@
|
||||
(include "eww_widgets.yuck")
|
||||
|
||||
(defwindow calendar
|
||||
:monitor 'HDMI-A-1'
|
||||
:stacking "fg"
|
||||
:geometry (geometry :x "1600" :y "810" :width "320" :height "250" :anchor "top right")
|
||||
(calendar))
|
||||
|
||||
(defwindow year
|
||||
:monitor 'HDMI-A-1'
|
||||
:stacking "bg"
|
||||
:geometry (geometry :x "15" :y "15" :width "100" :height "100" :anchor "top right")
|
||||
(year))
|
||||
|
||||
(defwindow month
|
||||
:monitor 'HDMI-A-1'
|
||||
:stacking "bg"
|
||||
:geometry (geometry :x "15" :y "125" :width "100" :height "100" :anchor "top right")
|
||||
(month))
|
||||
|
||||
(defwindow day
|
||||
:monitor 'HDMI-A-1'
|
||||
:stacking "bg"
|
||||
:geometry (geometry :x "15" :y "235" :width "100" :height "100" :anchor "top right")
|
||||
(day))
|
||||
|
||||
(defwindow daytype
|
||||
:monitor 'HDMI-A-1'
|
||||
:stacking "bg"
|
||||
:geometry (geometry :x "1805" :y "345" :width "100" :height "100" :achor "top right")
|
||||
(daytype))
|
||||
|
||||
(defwindow gif1
|
||||
:monitor 'HDMI-A-1'
|
||||
:windowtype "dock"
|
||||
:stacking "bg"
|
||||
:namespace "eww"
|
||||
:geometry (geometry
|
||||
:x "30px"
|
||||
:y "30px"
|
||||
:width "70px"
|
||||
:height "70px"
|
||||
:anchor "bottom right")
|
||||
(gif1))
|
||||
|
||||
(defwindow gif2
|
||||
:monitor 'HDMI-A-1'
|
||||
:windowtype "dock"
|
||||
:stacking "bg"
|
||||
:namespace "eww"
|
||||
:geometry (geometry
|
||||
:x "30px"
|
||||
:y "250px"
|
||||
:width "70px"
|
||||
:height "70px"
|
||||
:anchor "bottom right")
|
||||
(gif2))
|
||||
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
(defpoll DAY :interval "1s" '~/.config/eww/scripts/day_format.sh')
|
||||
(defpoll MONTH :interval "1s" '~/.config/eww/scripts/month_format.sh')
|
||||
(defpoll YEAR :interval "1s" '~/.config/eww/scripts/year_format.sh')
|
||||
(defpoll DAYTYPE :interval "1s" '~/.config/eww/scripts/daytype.sh')
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
(include "eww_vars.yuck")
|
||||
|
||||
(defwidget day []
|
||||
(box :height "100" :width "100" :halign "center" :valign "center" :class "container"
|
||||
(label :class "label" :text DAY)))
|
||||
(defwidget month []
|
||||
(box :height "100" :width "100" :halign "center" :valign "center" :class "container"
|
||||
(label :class "label" :text MONTH)))
|
||||
(defwidget year []
|
||||
(box :height "100" :width "100" :halign "center" :valign "center" :class "container"
|
||||
(label :class "label" :text YEAR)))
|
||||
(defwidget daytype []
|
||||
(box :height "100" :width "100" :halign "center" :valign "center" :class "container"
|
||||
(label :class "label" :text DAYTYPE)))
|
||||
(defwidget gif1 []
|
||||
(box :halign "center" :valign "center" :class "container"
|
||||
(image :path 'images/gif1.gif')))
|
||||
|
||||
(defwidget gif2 []
|
||||
(box :halign "center" :valign "center" :class "container"
|
||||
(image :path 'images/gif2.gif')))
|
||||
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 165 KiB |
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!bash
|
||||
cal -m
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
day_of_month=$(date +"%d")
|
||||
day_of_month=$(echo $day_of_month | sed 's/^0*//')
|
||||
if [[ $day_of_month -ge 11 && $day_of_month -le 13 ]]; then
|
||||
suffix="th"
|
||||
else
|
||||
case $((day_of_month % 10)) in
|
||||
1) suffix="st" ;;
|
||||
2) suffix="nd" ;;
|
||||
3) suffix="rd" ;;
|
||||
*) suffix="th" ;;
|
||||
esac
|
||||
fi
|
||||
echo "${day_of_month}${suffix}"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
day_type=$(date +"%a")
|
||||
echo "$day_type"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
month=$(date +"%b")
|
||||
echo "$month"
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Reload/Open eww
|
||||
eww kill
|
||||
eww daemon
|
||||
|
||||
eww open year
|
||||
eww open month
|
||||
eww open day
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
year=$(date +"%Y")
|
||||
echo "$year"
|
||||
Reference in New Issue
Block a user