some deletions

This commit is contained in:
wt committed 2025-01-20 04:50:00 +07:00
1 parent 3662bfb845
commit 6b5c04b091
21 files changed
+1 -1474

No files matched your search

-75
View File
@@ -1,75 +0,0 @@
/** Global *******************************************/
*{
all: unset;
font-family: feather;
font-family: Iosevka;
}
/** Background ***************************************/
.bg {
// background-image: url("images/bg.png");
background-color: #474D59;
opacity: 1;
}
/** Generic window ***********************************/
.genwin {
background-color: #2E3440;
border-radius: 16px;
}
/** Music ***************************************/
.album_art {
background-size: 240px;
min-height: 240px;
min-width: 240px;
margin: 20px;
border-radius: 14px;
}
.song {
color: #8FBCBB;
font-size : 24px;
font-weight : bold;
margin : 40px 0px 0px 0px;
}
.artist {
color: #EBCB8B;
font-size : 16px;
font-weight : normal;
margin : 0px 0px 15px 0px;
}
.btn_prev, .btn_play, .btn_next {
font-family: Iosevka Nerd Font;
}
.btn_prev {
color: #EBCB8B;
font-size : 32px;
font-weight : normal;
}
.btn_play {
color: #A3BE8C;
font-size : 48px;
font-weight : bold;
}
.btn_next {
color: #EBCB8B;
font-size : 32px;
font-weight : normal;
}
.music_bar scale trough highlight {
all: unset;
background-color: #B48EAD;
border-radius: 8px;
}
.music_bar scale trough {
all: unset;
background-color: #3A404C;
border-radius: 8px;
min-height: 20px;
min-width: 310px;
margin : 10px 0px 0px 0px;
}
-37
View File
@@ -1,37 +0,0 @@
; Music vars
(deflisten music_metadata "scripts/music listen-metadata")
(deflisten music_position "scripts/music listen-position")
(deflisten music_status "scripts/music listen-status")
; Music
(defwidget music []
(box :class "genwin" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "album_art" :vexpand "false" :hexpand "false" :style "background-image: url('${music_metadata.arturl}');")
(box :orientation "v" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :halign "center" :class "song" :wrap "true" :limit-width 20 :text "${music_metadata.title}")
(label :halign "center" :class "artist" :wrap "true" :limit-width 15 :text "${music_metadata.artist}")
(box :orientation "h" :spacing 20 :halign "center" :space-evenly "true" :vexpand "false" :hexpand "false"
(button :class "btn_prev" :onclick "playerctl previous" "")
(button :class "btn_play" :onclick "playerctl play-pause" {"${music_status.status}" == "Playing" ? "" : ""})
(button :class "btn_next" :onclick "playerctl next" "")
)
(box :class "music_bar" :halign "center" :state "progress"
(scale
:onscroll "playerctl position {}"
:onclick "playerctl position {}"
:min 0
:max "${music_metadata.length}"
:active true
:hexpand true
:vexpand true
:value "${music_position.position}"
)
)
)
)
)
; music
(defwindow music :stacking "fg" :focusable "false" :screen 1 :monitor 0
:geometry (geometry :x 100 :y 100 :width 610 :height 280)
(music))
-43
View File
@@ -1,43 +0,0 @@
#!/bin/sh
listen_metadata() {
fmt="\"artist\":\"{{artist}}\",\"title\":\"{{title}}\",\"album\":\"{{album}}\""
fmt="$fmt,\"arturl\":\"{{mpris:artUrl}}\",\"length\":\"{{mpris:length}}\""
fmt="$fmt,\"duration\":\"{{duration(mpris:length)}}\""
playerctl --follow metadata --format "{$fmt}" | while read -r info; do
artist=$(echo -e $info | jq -r ".artist")
title=$(echo -e $info | jq -r ".title")
url=$(echo -e $info | jq -r ".arturl")
# cover=$(cover_art "$url")
# lyrics=$(lyrics_lines "$artist" "$title")
echo $info | jq -cr ". + {\"cover\":\"$cover\",\"lyrics\":\"$lyrics\"}"
done
}
listen_position() {
fmt="{\"position\":\"{{position}}\",\"time\":\"{{duration(position)}}\"}"
playerctl --follow position --format "$fmt"
}
listen_status() {
playerctl --follow status | while read -r playstatus; do
if [[ $playstatus != "Playing" ]]; then
icon=""
else
icon=""
fi
echo "{\"status\":\"$playstatus\",\"icon\":\"$icon\"}"
done
}
case "$1" in
"listen-metadata")
listen_metadata
;;
"listen-position")
listen_position
;;
"listen-status")
listen_status
;;
esac
-9
View File
@@ -1,9 +0,0 @@
#!/bin/sh
if [ ! -f ~/.eww_music ]; then
eww --config ~/dotfiles/eww open music
echo $! > ~/.eww_music
else
eww --config ~/dotfiles/eww close music
rm ~/.eww_music
fi
-48
View File
@@ -1,48 +0,0 @@
/** Global *******************************************/
*{
all: unset;
font-family: feather;
font-family: Iosevka;
}
/** Background ***************************************/
.bg {
// background-image: url("images/bg.png");
background-color: #474D59;
opacity: 1;
}
/** Generic window ***********************************/
.genwin {
background-color: #2E3440;
border-radius: 16px;
padding: 20px;
}
.label_temp {
font-size: 100;
color: white;
background-color: black;
padding: 10;
border-radius: 16;
}
.label_stat {
padding: 10;
border-radius: 16;
font-size: 50;
color: white;
background-color: black;
}
.areabox {
background-color: black;
border-radius: 16;
}
.label_quote {
color: white;
background-color: black;
padding: 10;
border-radius: 16;
}
-32
View File
@@ -1,32 +0,0 @@
; Weather data
(defpoll weatherdata :interval "15m" `wttr/wttr.py`)
(defwidget weather []
(box :class "genwin" :style "background-image: url('${weatherdata.current_condition[0].weatherCode}');background-size: cover;"
(box :orientation "v" :spacing 10 :space-evenly false :vexpand false :hexpand false
(box :orientation "h" :spacing 0 :vexpand false :hexpand false
(label :class "label_temp" :halign "center" :text "${weatherdata.current_condition[0].temp_C}")
)
(box :orientation "v" :spacing 10 :halign "center" :space-evenly false :vexpand false :hexpand false
(label :class "label_stat" :text "${weatherdata.current_condition[0].weatherDesc[0].value}")
(box
:class "areabox"
:orientation "h"
:spacing 10
:space-evenly false
:vexpand false
:hexpand false
:halign "center"
(label :class "label_quote" :text "${weatherdata.nearest_area[0].country[0].value}")
(label :class "label_quote" :text "${weatherdata.nearest_area[0].region[0].value}")
)
)
)
)
)
; Weather window
(defwindow weather :stacking "bg" :focusable true :exclusive true :screen 1 :windowtype "dock"
:geometry (geometry :x 100 :y 100 :width 610 :height 280)
(weather)
)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

File diff suppressed because it is too large. Load diff
-67
View File
@@ -1,67 +0,0 @@
#!/usr/bin/python
import json
import requests
from datetime import datetime
WEATHER_CODES = {
'113': 'images/113.jpg',
'116': 'images/116.jpeg',
'119': 'images/119.jpeg',
'122': 'images/119.jpeg',
'143': 'images/143.jpg',
'176': 'images/176.jpeg',
'179': 'images/rain.jpeg',
'182': 'images/rain.jpeg',
'185': 'images/rain.jpeg',
'200': 'images/storm.jpeg',
'227': 'images/snow.jpeg',
'230': 'images/cold.jpeg',
'248': 'images/143.jpg',
'260': 'images/143.jpg',
'263': 'images/176.jpeg',
'266': 'images/176.jpeg',
'281': 'images/rain.jpeg',
'284': 'images/rain.jpeg',
'293': 'images/176.jpeg',
'296': 'images/176.jpeg',
'299': 'images/rain.jpeg',
'302': 'images/rain.jpeg',
'305': 'images/rain.jpeg',
'308': 'images/rain.jpeg',
'311': 'images/rain.jpeg',
'314': 'images/rain.jpeg',
'317': 'images/rain.jpeg',
'320': 'images/snow.jpeg',
'323': 'images/snow.jpeg',
'326': 'images/snow.jpeg',
'329': 'images/cold.jpeg',
'332': 'images/cold.jpeg',
'335': 'images/cold.jpeg',
'338': 'images/cold.jpeg',
'350': 'images/rain.jpeg',
'353': 'images/176.jpeg',
'356': 'images/rain.jpeg',
'359': 'images/rain.jpeg',
'362': 'images/rain.jpeg',
'365': 'images/rain.jpeg',
'368': 'images/snow.jpeg',
'371': 'images/cold.jpeg',
'374': 'images/rain.jpeg',
'377': 'images/rain.jpeg',
'386': 'images/storm.jpeg',
'389': 'images/bigstorm.jpeg',
'392': 'images/storm.jpeg',
'395': 'images/cold.jpeg'
}
data = {}
weather = requests.get("https://wttr.in/Tomsk+Russia?format=j1").json()
# data['text'] = WEATHER_CODES[weather['current_condition'][0]['weatherCode']] + \
# " "+weather['current_condition'][0]['FeelsLikeC']+"°"
weather['current_condition'][0]['weatherCode'] = WEATHER_CODES[weather['current_condition'][0]['weatherCode']]
print(json.dumps(weather))
-16
View File
@@ -1,16 +0,0 @@
{
"preset": "rainbow",
"mode": "rgb",
"light_dark": "dark",
"lightness": 0.65,
"color_align": {
"mode": "horizontal",
"custom_colors": [],
"fore_back": null
},
"backend": "neofetch",
"args": null,
"distro": null,
"pride_month_shown": [],
"pride_month_disable": false
}
+1 -1
View File
@@ -2,7 +2,7 @@
#---- backgroung configuration ----------------------------------------------------------------------------------------------------------------------
background {
monitor = # show on all monitors
path = /home/tola/Pictures/wallpaper/apple-waves1.png
path = /home/tola/Pictures/wallpaper/river_to_castle_theme_blue.png
color = rgba(25, 20, 20, 1.0) # color
blur_passes = 4 # 0 disables blurring
blur_size = 2 # blur size