epic polybar config

This commit is contained in:
Ben Kyd
2023-05-16 17:47:39 +01:00
parent 1ce87eae90
commit e0857cc2bd
39 changed files with 2114 additions and 491 deletions

View File

@@ -5,8 +5,8 @@ yay -S neovim-git nvm wezterm ranger ripgrep zsh zsh-vi-mode curl exa
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# WM Deps
yay -S awesome-git i3 ttf-material-design-icons ttf-unifont polybar
yay -S picom-ftlabs-git
yay -S awesome-git i3 betterlockscreen polybar-git eww xss-lock ttf-material-design-icons ttf-unifont polybar
yay -S picom-ftlabs-git dunst
yay -S i3exit arc-icon-theme ttf-twemoji xorg-xbacklight xidlehook sysstat i3blocks mpris-ctl flameshot perl rofi
mkdir -p ~/.local/share/fonts

View File

@@ -1,302 +1,50 @@
[global]
frame_width = 1
frame_color = "#788388"
font = Noto Sans 10
# Allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
# If markup is not allowed, those tags will be stripped out of the
# message.
markup = yes
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# Markup is allowed
format = "%s %p\n%b"
# Sort messages by urgency.
font = DejaVu Sans Mono 10
allow_markup = yes
format = "<b>%s</b>\n%b"
sort = yes
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# The frequency with wich text that is longer than the notification
# window allows bounces back and forth.
# This option conflicts with "word_wrap".
# Set to 0 to disable.
bounce_freq = 5
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
alignment = center
bounce_freq = 0
show_age_threshold = 60
# Split notifications into multiple lines if they don't fit into
# geometry.
word_wrap = no
# Ignore newlines '\n' in notifications.
word_wrap = yes
ignore_newline = no
# The geometry of the window:
# [{width}]x{height}[+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else
# in pixels. If the width is omitted but the height is given
# ("-geometry x2"), the message window expands over the whole screen
# (dmenu-like). If width is 0, the window expands to the longest
# message displayed. A positive x is measured from the left, a
# negative from the right side of the screen. Y is measured from
# the top and down respectevly.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "0x4-25+25"
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = yes
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing windowmanager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 15
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# default 120
idle_threshold = 120
# Which monitor should the notifications be displayed on.
geometry = "200x5-6+30"
transparency = 0
idle_threshold = 120
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a windowmanager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern windowmanagers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = mouse
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
# The height of a single line. If the height is smaller than the
# font height, it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 1
# Padding between text and separator.
# padding = 8
separator_height = 2
padding = 8
# Horizontal padding.
horizontal_padding = 10
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = #263238
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
horizontal_padding = 8
separator_color = "#58585822"
startup_notification = false
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = palemoon
# Align icons left/right/off
icon_position = left
# Paths to default icons.
icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
# Limit icons size.
max_icon_size=128
corner_radius = 6
# https://github.com/knopwob/dunst/issues/26#issuecomment-36159395
#icon_position = left
#icon_folders = /usr/share/icons/elementary/actions/16/
frame_width = 1
frame_color = "#abb2bf66"
[shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
# "mod3" and "mod4" (windows-key).
# Xev might be helpful to find names for keys.
# Close notification.
close = mod1+space
# Close all notifications.
# close_all = ctrl+shift+space
close_all = ctrl+mod1+space
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1".
history = ctrl+mod4+h
# Context menu.
context = ctrl+mod1+c
close = ctrl+space
close_all = ctrl+shift+space
history = ctrl+grave
context = ctrl+shift+period
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#263238"
foreground = "#556064"
timeout = 10
background = "#24273a"
foreground = "#abb2bf"
timeout = 5
[urgency_normal]
background = "#263238"
foreground = "#F9FAF9"
timeout = 10
background = "#24273a"
foreground = "#abb2bf"
timeout = 20
[urgency_critical]
background = "#D62929"
foreground = "#F9FAF9"
background = "#ed8796"
foreground = "#abb2bf"
timeout = 0
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
# Messages can be matched by "appname", "summary", "body", "icon", "category",
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
# "background", "new_icon" and "format".
# Shell-like globbing will get expanded.
#
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format
# to "".
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# format = ""
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
#[Claws Mail]
# appname = claws-mail
# category = email.arrived
# urgency = normal
# background = "#2F899E"
# foreground = "#FFA247"
#
#[mute.sh]
# appname = mute
# category = mute.sound
# script = mute.sh
#
#[JDownloader]
# appname = JDownloader
# category = JD
# background = "#FFA247"
# foreground = "#FFFFFF"
#
#[newsbeuter]
# summary = *Feeds*
# background = "#A8EB41"
# foreground = "#FFFFFF"
#
[irc]
appname = weechat
timeout = 0
background = "#0033bb"
foreground = "#dddddd"
#
[weechat hl]
appname = weechat
category = weechat.HL
background = "#FF5C47"
foreground = "#FFFFFF"
#
[weechat pn]
appname = weechat
category = weechat.PM
background = "#D53B84"
foreground = "#FFFFFF"
#
#[CMUS]
# appname = CMUS
# category = cmus
# background = "#6C4AB7"
# foreground = "#FFE756"
#
#
# background = "#30AB70"
# foreground = "#F67245"
#
# vim: ft=cfg

658
common/.config/eww/eww.scss Executable file
View File

@@ -0,0 +1,658 @@
/** Global *******************************************/
*{
all : unset;
font-family : feather;
font-family : Iosevka;
}
/** Vars *********************************************/
$bg-color : #282c34;
/** Background ***************************************/
.bg {
background-image : url("images/bg.png");
background-color : #474D59;
background-size : 117%;
background-position : center;
background-repeat : no-repeat;
opacity : 1;
}
/** Generic window ***********************************/
.genwin, .genwina, .genwinb, .genwinc, .genwind, .genwine, .genwinf, .genwing, .genwinh {
background-color : $bg-color; //#252933; #2E3440;
}
.genwin {
border-radius : 16px;
}
.genwina {
border-radius : 16px 16px 0 0;
}
.genwinb {
border-radius : 0 16px 16px 16px;
}
.genwinh {
border-radius : 16px 0 0 16px;
}
.genwinc {
border-radius : 16px 16px 0 16px;
}
.genwind {
border-radius : 46px 16px 16px 16px;
}
.genwine {
border-radius : 16px 46px 16px 16px;
}
.genwinf {
border-radius : 16px 16px 16px 46px;
}
.genwing {
border-radius : 16px 16px 46px 16px;
}
/** rxyhn's calendar *********************************/
.cal-holder {
padding : 1rem 1rem .2rem;
font-size : 1em;
font-weight : bold;
}
.cal_title_right, .cal_title_left {
font-size : 32px;
color : #EBCB8B;
}
.cal_title {
margin : 16px 72px 4px 72px;
font-size : 16px;
color : #A3BE8C;
}
.cal {
padding : .8rem .25rem 0rem;
margin-left : 10px;
&.highlight {
padding : 10rem;
}
}
calendar:selected {
color : #88C0D0;
}
calendar.header {
color : #88C0D0;
font-weight : bold;
}
calendar.button {
color : #D46389;
}
calendar.highlight {
color : #D46389;
font-weight : bold;
}
calendar:indeterminate {
color : $bg-color;
}
/** Profile ******************************************/
.face {
background-image : url('images/fox.png');
background-size : 175px;
background-position : 50% 35%;
min-height : 175px;
min-width : 175px;
margin : 40px 0px 0px 2px;
border-radius : 100%;
}
.fullname {
color : #D46389;
font-size : 30px;
font-weight : bold;
}
.username {
color : #8FBCBB;
font-size : 22px;
font-weight : bold;
margin : -15px 0px 0px 0px;
}
/** System ********************************************/
.iconcpu, .iconmem, .iconbright, .iconbat {
font-size : 22px;
font-weight : normal;
}
.iconcpu {
color : #BF616A;
}
.iconmem {
color : #A3BE8C;
}
.iconbright {
color : #EBCB8B;
}
.iconbat {
color : #88C0D0;
}
.cpu_bar, .mem_bar, .bright_bar, .bat_bar, scale trough {
all : unset;
background-color : #3A404C;
border-radius : 16px;
min-height : 12px;
min-width : 170px;
}
.cpu_bar, .mem_bar, .bright_bar, .bat_bar, scale trough highlight {
all : unset;
border-radius : 16px;
}
.cpu_bar scale trough highlight {
background-color : #BF616A;
}
.mem_bar scale trough highlight {
background-color : #A3BE8C;
}
.bright_bar scale trough highlight {
background-color : #EBCB8B;
}
.bat_bar scale trough highlight {
background-color : #88C0D0;
}
/** Clock ********************************************/
.time_hour, .time_min {
color : #81A1C1;
font-size : 45px;
font-weight : bold;
}
.time_hour {
margin : 10px 0px 0px 10px;
}
.time_min {
margin : 0px 0px 10px 0px;
}
.time_mer {
color : #A3BE8C;
font-size : 30px;
font-weight : bold;
margin : 10px 0px 0px 0px;
}
.time_day {
color : #EBCB8B;
font-size : 17px;
font-weight : normal;
margin : 0px 0px -30px 10px;
}
/** Uptime ********************************************/
.icontimer {
color : #B48EAD;
font-size : 50px;
font-weight : normal;
}
/** Music ***************************************/
.album_art {
background-size : cover;
background-position : center;
min-height : 184px;
min-width : 184px;
margin : 20px;
border-radius : 14px;
}
.song {
color : #8FBCBB;
font-size : 18px;
font-weight : bold;
margin : 15px 0px 0px 0px;
}
.artist {
color : #EBCB8B;
font-size : 14px;
font-weight : normal;
margin : 0px 0px 0px 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 : 40px;
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 : 10px;
min-width : 180px;
margin : 0px 10px 0px 0px;
}
/** Weather ***************************************/
.iconweather {
font-family : Iosevka Nerd Font;
font-size : 58px;
font-weight : normal;
margin : 10px 0px 0px 30px;
}
.label_temp {
color : #A6D1DD;
font-size : 54px;
font-weight : bold;
margin : 15px 25px 0px 0px;
}
.label_stat {
color : #BF616A;
font-size : 30px;
font-weight : bold;
margin : 10px 0px 0px 0px;
}
.label_quote {
color : #E5E5E5;
font-size : 18px;
font-weight : normal;
}
/** Applications ***************************************/
.appbox {
margin : 10px 0px 0px 12px;
}
.app_vivaldi, .app_telegram, .app_discord, .app_terminal, .app_obsidian,
.app_files, .app_neovim, .app_code, .app_krita, .app_vbox {
background-repeat : no-repeat;
background-size : 42px;
min-height : 42px;
min-width : 42px;
margin : 0 3px 0 3px;
}
.app_vivaldi {}
.app_telegram {}
.app_discord {}
.app_terminal {}
.app_files {}
.app_obsidian {
}
.app_neovim {
background-size : 36px;
background-position : center;
}
.app_code {}
.app_krita {}
.app_vbox {}
/** Links ***************************************/
.iconweb, .iconmail {
color : #FFFFFF;
font-family : Iosevka Nerd Font;
font-size : 60px;
font-weight : normal;
}
.iconmail {
color : #DF584E;
}
.github {
background-color : #24292E;
border-radius : 16px;
}
.reddit {
background-color : #E46231;
border-radius : 16px;
}
.twitter {
background-color : #61AAD6;
border-radius : 16px;
}
.youtube {
background-color : #DF584E;
border-radius : 16px;
}
.mail {
background-color : #FFFFFF;
border-radius : 16px;
}
.mailbox {
background-color : #E5E5E5;
border-radius : 10px;
margin : 24px 0px 24px 0px;
}
.label_mails {
color : #404040;
font-size : 24px;
font-weight : bold;
margin : 0px 6px 0px 6px;
}
/** Power buttons ***************************************/
.btn_logout, .btn_sleep, .btn_reboot, .btn_poweroff {
font-size : 48px;
font-weight : bold;
}
.btn_logout {
color : #BF616A;
}
.btn_sleep {
color : #A3BE8C;
}
.btn_reboot {
color : #EBCB8B;
}
.btn_poweroff {
color : #88C0D0;
}
/** Home folders ***************************************/
.hddbox {
background-color : #3A404C;
border-radius : 10px;
margin : 15px;
}
.hddicon {
color : #81A1C1;
font-family : Iosevka Nerd Font;
font-size : 70px;
font-weight : normal;
margin : 5px 10px 5px 15px;
}
.hdd_label {
color : #E5E9F0;
font-size : 32px;
font-weight : bold;
margin : 0px 0px 0px 10px;
}
.fs_sep {
color : #2E3440;
font-size : 34px;
font-weight : bold;
}
.iconfolder1, .iconfolder2, .iconfolder3, .iconfolder4, .iconfolder5, .iconfolder6 {
font-family : Iosevka Nerd Font;
font-size : 24px;
font-weight : normal;
margin : 0px 0px 0px 25px;
}
.iconfolder1 {
color : #BF616A;
}
.iconfolder2 {
color : #A3BE8C;
}
.iconfolder3 {
color : #EBCB8B;
}
.iconfolder4 {
color : #81A1C1;
}
.iconfolder5 {
color : #B48EAD;
}
.iconfolder6 {
color : #88C0D0;
}
.label_folder1, .label_folder2, .label_folder3, .label_folder4, .label_folder5, .label_folder6 {
font-size : 22px;
font-weight : normal;
margin : 0px 0px 0px 30px;
}
.label_folder1 {
color : #BF616A;
}
.label_folder2 {
color : #A3BE8C;
}
.label_folder3 {
color : #EBCB8B;
}
.label_folder4 {
color : #81A1C1;
}
.label_folder5 {
color : #B48EAD;
}
.label_folder6 {
color : #88C0D0;
}
/*--|> NeoMusic <|--*/
.art {
background-size : 62%;
background-repeat : no-repeat;
background-position : 100% 50%;
border-radius : 18px 16px 16px 18px;
}
.music_main, .art {
min-width : 396px;
}
.music_main {
border-radius : 16px;
}
.music_main .song {
font-size : 24px;
}
.music_main .artist {
margin : 0 0 32px 0;
font-size : 16px;
}
.music_main .artist {
color : #E5C07b;
}
.music_main .song {
color : #61AFEF;
}
.music_main .btn_next, .music_main .btn_prev {
font-size : 30px;
color : #E5C07b;
}
.music_main .btn_play {
font-size : 40px;
color : #98c379;
}
.music_main .control, .music_main .song, .music_main .artist {
padding : 4px 0 4px 10px;
letter-spacing : 2px;
}
.music_main {
background : linear-gradient(120deg, $bg-color /*#282c34*/ 55%, transparent);
padding : 4px 10px 4px 10px;
}
/*--> NeoProfile <--*/
.avatar{
border-radius : 18px;
background-size : cover;
background-position : 50% 100%;
}
.profile_main {
border-radius : 16px;
}
.profile_main {
background : linear-gradient(-5deg, $bg-color 10%, transparent, $bg-color 75%);
min-width : 246px;
}
.fullname {
margin : 10px 0 0 0;
color : #D46389;
font-size : 28px;
font-weight : bold;
}
.username {
color : #8FBCBB;
font-size : 22px;
font-weight : bold;
margin : -15px 0px 0px 0px;
}
/*--|> NeoClock <|--*/
.uptitle {
color : #EBCB8B;
font-size : 22px;
}
.updays {
color : #81A1C1;
font-size : 28px;
font-weight : bold;
}
.uptime {
color : #61AFEF;
//color : #E5E9F0;
font-size : 24px;
font-weight : bold;
}
.nclock {
margin : 0px 0px 0px 26px;
}
.ntime_hour, .ntime_min {
color : #81A1C1;
font-size : 45px;
font-weight : bold;
}
.ntime_hour {
margin : 0px;
}
.ntime_min {
margin : 0px 0px 0px 2px;
}
.ntime_date {
margin : 6px 0px -6px 0px;
color : #61AFEF;
font-size : 17px;
font-weight : bold;
}
.ntime_mers *:nth-child(1) {
margin : 8px 0px 0px 0px;
}
.ntime_mer {
color : #A3BE8C;
font-size : 16px;
font-weight : bold;
}
.ntime_day {
margin : -8px 0px 0px 0px;
color : #EBCB8B;
font-size : 18px;
font-weight : normal;
}
/*--> Workspaces <--*/
.ws1, .ws2, .ws3, .ws4, .ws5, .ws6, .ws7, .ws8, .ws9, .ws10 {
font-size : 24px;
}
.ws1 {
color : #52E080;
}
.ws2 {
color : #D70040;
}
.ws3 {
color : #117dca;
}
.ws4 {
color : #32a7d9;
}
.ws5 {
color : #23cf5f;
}
.ws6 {
color : #80461b;
}
.ws7 {
color : #f4c430;
}
.ws8 {
color : #DA70D6;
}
.ws9 {
color : #800020;
}
.ws10 {
color : #F5F5F5;
}
.ws_holder {
margin : 24px 0 0 0;
}
/** EOF *************************************************/

435
common/.config/eww/eww.yuck Executable file
View File

@@ -0,0 +1,435 @@
;; **
;; ** Widgets config for EWW
;; ** Created by : @adi1090x
;; ** Modified by : Dusty
;; Profile vars
(defvar IMAGE "images/fox.png")
(defvar NAME "Dustyn Senior")
(defpoll UNAME :interval "5m" "whoami")
;; System vars
(defpoll HOST :interval "5s" "hostname")
(defpoll CPU_USAGE :interval "1s" "~/.config/eww/scripts/sys_info --cpu")
(defpoll MEM_USAGE :interval "1s" "~/.config/eww/scripts/sys_info --mem")
(defpoll BLIGHT :interval "1s" "~/.config/eww/scripts/sys_info --blight")
(defpoll BATTERY :interval "5s" "~/.config/eww/scripts/sys_info --bat")
;; Time vars
(defpoll HOUR :interval "5s" "date +\"%I\"")
(defpoll MIN :interval "5s" "date +\"%M\"")
(defpoll MERA :interval "5s" "date +\"%p\" | cut -b 1")
(defpoll MERB :interval "5s" "date +\"%p\" | cut -b 2")
(defpoll DAY :interval "5s" "date +\"%A\"")
(defpoll DATE :interval "5s" "date +\"%d.%m.%Y\"")
;; Uptime vars
(defpoll UPDAYS :interval "5s" "echo $(($(cat /proc/uptime | cut -d \".\" -f 1) / 60 / 60 / 24))d")
(defpoll UPTIME :interval "5s" "printf %02d:%02d $(($(cat /proc/uptime | cut -d \".\" -f 1) / 60 / 60 % 24)) $(($(cat /proc/uptime | cut -d \".\" -f 1) / 60 % 60))")
;; (defpoll UPHOUR :interval "5s" "uptime -p | awk '{print $2 \" \" $3}' | sed 's/,//g'")
;; (defpoll UPMIN :interval "5s" "uptime -p | awk '{print $4 \" \" $5}'")
;; Music vars
(defpoll SONG :interval "1s" "~/.config/eww/scripts/music_info --song")
(defpoll ARTIST :interval "1s" "~/.config/eww/scripts/music_info --artist")
(defpoll STATUS :interval "1s" "~/.config/eww/scripts/music_info --status")
(defpoll COVER :interval "1s" "~/.config/eww/scripts/music_info --cover")
;; Weather vars
(defpoll ICON :interval "15m" "~/.config/eww/scripts/weather_info --icon")
(defpoll STAT :interval "15m" "~/.config/eww/scripts/weather_info --stat")
(defpoll TEMP :interval "15m" "~/.config/eww/scripts/weather_info --temp")
(defpoll HEX :interval "15m" "~/.config/eww/scripts/weather_info --hex")
(defpoll QUOTE :interval "15m" "~/.config/eww/scripts/weather_info --quote")
(defpoll QUOTE2 :interval "15m" "~/.config/eww/scripts/weather_info --quote2")
;; Apps vars
(defpoll MAILS :interval "5m" "~/.config/eww/scripts/mails")
;; Files vars
(defpoll FREE :interval "5s" "df -h / | awk '{print $4}' | tail -n 1 | sed 's/G/GB/'")
;; Calendar
(defpoll CALDAY :interval "10h" "date '+%d'")
(defpoll CALMONTH :interval "10h" "$(($(date +%m)-1))")
(defpoll CALYEAR :interval "10h" "date '+%Y'")
;; ********************************************************************************
;; background
(defwidget bg []
(box :class "bg"))
;; profile
(defwidget user []
(box :class "genwin" :orientation "v" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "face" :halign "center" :style "background-image: url('${IMAGE}');")
(label :class "fullname" :halign "center" :wrap "true" :limit-width 25 :text NAME)
(label :class "username" :halign "center" :wrap "true" :limit-width 25 :text UNAME)))
;; NeoProfile
(defwidget nuser []
(box :class "genwina" :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "avatar" :vexpand "false" :hexpand "false" :style "background-image: url('${IMAGE}');"
(box :class "profile_main" :orientation "v" :spacing 15 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "fullname" :halign "center" :wrap "true" :limit-width 25 :text NAME)
(label :class "username" :halign "center" :wrap "true" :limit-width 25 :text UNAME)))))
;; system
(defwidget system []
(box :class "genwin" :vexpand "false" :hexpand "false"
(box :orientation "v" :spacing 25 :halign "center" :valign "center" :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "cpu_bar" :orientation "h" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "iconcpu" :text "")
(scale :min 0 :max 100 :value CPU_USAGE :active "false"))
(box :class "mem_bar" :orientation "h" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "iconmem" :text "")
(scale :min 0 :max 100 :value MEM_USAGE :active "false"))
(box :class "bright_bar" :orientation "h" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "iconbright" :text "")
(scale :min 0 :max 100 :value BLIGHT :active "false"))
(box :class "bat_bar" :orientation "h" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "iconbat" :text "")
(scale :min 0 :max 100 :value BATTERY :active "false")))))
;; clock
(defwidget clock []
(box :class "genwin" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "time_hour" :valign "start" :wrap "true" :limit-width 25 :text HOUR)
(label :class "time_min" :valign "end" :wrap "true" :limit-width 25 :text MIN)
(box :orientation "v" :spacing 10 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "time_mer" :halign "end" :wrap "true" :limit-width 25 :text "${MERA}${MERB}")
(label :class "time_day" :halign "end" :wrap "true" :limit-width 25 :text DAY))))
;; NeoClock
(defwidget nclock []
(box :class "genwinc" :orientation "h" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
(box :orientation "v" :class "nclock" :valign "center" :spacing 0 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "uptitle" :halign "center" :wrap "true" :limit-width 25 :text "Uptime")
(label :class "updays" :halign "center" :wrap "true" :limit-width 25 :text "祥 ${UPDAYS}")
(label :class "uptime" :halign "center" :wrap "true" :limit-width 25 :text UPTIME))
(box :orientation "v" :valign "center" :spacing 0 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "ntime_date" :halign "center" :wrap "true" :limit-width 25 :text DATE)
(box :orientation "h" :halign "center" :spacing 8 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "ntime_hour" :valign "start" :wrap "true" :limit-width 25 :text HOUR)
(box :orientation "v" :class "ntime_mers" :spacing 0 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "ntime_mer" :halign "end" :wrap "true" :limit-width 25 :text MERA)
(label :class "ntime_mer" :halign "end" :wrap "true" :limit-width 25 :text MERB))
(label :class "ntime_min" :valign "end" :wrap "true" :limit-width 25 :text MIN))
(label :class "ntime_day" :halign "center" :wrap "true" :limit-width 25 :text DAY))))
;; NeoCalendar (rxyhn's calendar)
(defwidget cal []
(box :class "genwin" :orientation "v" :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "cal_holder" :orientation "v" :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "title_holder" :orientation "h" :space-evenly "false" :halign "center" :vexpand "false" :hexpand "false"
(label :class "cal_title_left" :halign "start" :wrap "true" :text "·")
(label :class "cal_title" :halign "center" :wrap "true" :text "Calendar")
(label :class "cal_title_right" :halign "end" :wrap "true" :text "·"))
(calendar :class "cal" :day CALDAY :month CALMONTH :year CALYEAR))))
;; uptime
(defwidget uptime []
(box :class "genwin"
(box :orientation "h" :halign "center" :spacing 30 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "icontimer" :valign "center" :text "祥")
(box :orientation "v" :valign "center" :spacing 0 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "updays" :halign "center" :wrap "true" :limit-width 25 :text UPDAYS)
(label :class "uptime" :halign "center" :wrap "true" :limit-width 25 :text UPTIME)))))
;; 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('${COVER}');")
(box :orientation "v" :spacing 29 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :halign "center" :class "song" :wrap "true" :limit-width 15 :text SONG)
(label :halign "center" :class "artist" :wrap "true" :limit-width 18 :text ARTIST)
(box :orientation "h" :spacing 15 :halign "center" :space-evenly "true" :vexpand "false" :hexpand "false"
(button :class "btn_prev" :onclick "~/.config/eww/scripts/music_info --prev" "玲")
(button :class "btn_play" :onclick "~/.config/eww/scripts/music_info --toggle" STATUS)
(button :class "btn_next" :onclick "~/.config/eww/scripts/music_info --next" "怜"))
(box :class "music_bar" :halign "center" :vexpand "false" :hexpand "false"
;; (scale :onscroll "mpc -q seek +1" :min 0 :active "true" :max 100 :value CURRENT)
))))
;; Spotify
(defwidget spotify []
(box :class "genwinb" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "art" :vexpand "false" :hexpand "false" :style "background-image: url('${COVER}');"
(box :class "music_main" :orientation "v" :spacing 15 :space-evenly "false" :vexpand "false" :hexpand "false"
(label :halign "start" :class "song" :wrap "false" :limit-width 15 :text SONG)
(label :halign "start" :class "artist" :wrap "false" :limit-width 15 :text ARTIST)
(box :orientation "h" :class "control" :spacing 20 :halign "start" :valign "end" :space-evenly "true" :vexpand "false" :hexpand "false"
(button :class "btn_prev" :onclick "~/.config/eww/scripts/music_info --prev" "玲")
(button :class "btn_play" :onclick "~/.config/eww/scripts/music_info --toggle" STATUS)
(button :class "btn_next" :onclick "~/.config/eww/scripts/music_info --next" "怜"))))))
;; github
(defwidget github []
(box :class "github" :vexpand "false" :hexpand "false"
(button :class "iconweb" :onclick "~/.config/eww/scripts/open_links --gh" "")))
;; reddit
(defwidget reddit []
(box :class "reddit" :vexpand "false" :hexpand "false"
(button :class "iconweb" :onclick "~/.config/eww/scripts/open_links --rd" "樓")))
;; twitter
(defwidget twitter []
(box :class "twitter" :vexpand "false" :hexpand "false"
(button :class "iconweb" :onclick "~/.config/eww/scripts/open_links --tw" "")))
;; youtube
(defwidget youtube []
(box :class "youtube" :vexpand "false" :hexpand "false"
(button :class "iconweb" :onclick "~/.config/eww/scripts/open_links --yt" "")))
;; mail
(defwidget mail []
(box :class "mail"
(box :orientation "h" :halign "center" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "iconmail" :onclick "~/.config/eww/scripts/open_links --mail" "")
(box :class "mailbox" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "label_mails" :onclick "~/.config/eww/scripts/open_links --mail" MAILS)))))
;; weather
(defwidget weather_info []
(box :orientation "h" :vexpand "false" :hexpand "false"
(label :class "iconweather" :halign "start" :style "color: ${HEX};" :text ICON)
(label :class "label_stat" :valign "center" :text STAT)
(label :class "label_temp" :halign "end" :text TEMP)))
(defwidget weather_quotes []
(box :orientation "v" :spacing 15 :halign "center" :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "label_quote" :text QUOTE)
(label :class "label_quote" :text QUOTE2)))
;; apps
(defwidget apps []
(box :class "genwinh" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "appbox" :orientation "v" :spacing 18 :space-evenly "false" :vexpand "false" :hexpand "false"
(button :style "background-image: url('images/icons/vivaldi.svg');" :class "app_vivaldi" :onclick "~/.config/eww/scripts/open_apps --vd")
(button :style "background-image: url('images/icons/telegram.svg');" :class "app_telegram" :onclick "~/.config/eww/scripts/open_apps --tg")
(button :style "background-image: url('images/icons/discord.svg');" :class "app_discord" :onclick "~/.config/eww/scripts/open_apps --dc")
(button :style "background-image: url('images/icons/terminal.svg');" :class "app_terminal" :onclick "~/.config/eww/scripts/open_apps --tr")
(button :style "background-image: url('images/icons/files.svg');" :class "app_files" :onclick "~/.config/eww/scripts/open_apps --fm"))
(box :class "appbox" :orientation "v" :spacing 18 :space-evenly "false" :vexpand "false" :hexpand "false"
(button :style "background-image: url('images/icons/code.svg');" :class "app_code" :onclick "~/.config/eww/scripts/open_apps --cd")
(button :style "background-image: url('images/icons/krita.svg');" :class "app_krita" :onclick "~/.config/eww/scripts/open_apps --kr")
(button :style "background-image: url('images/icons/virtualbox.svg');" :class "app_vbox" :onclick "~/.config/eww/scripts/open_apps --vb")
(button :style "background-image: url('images/icons/obsidian.svg');" :class "app_obsidian" :onclick "~/.config/eww/scripts/open_apps --ob")
(button :style "background-image: url('images/icons/neovim.svg');" :class "app_neovim" :onclick "~/.config/eww/scripts/open_apps --nv"))))
;; power buttons
(defwidget logout []
(box :class "genwind" :vexpand "false" :hexpand "false"
(button :class "btn_logout" :onclick "openbox --exit" "")))
(defwidget sleep []
(box :class "genwine" :vexpand "false" :hexpand "false"
(button :class "btn_sleep" :onclick "systemctl suspend" "")))
(defwidget reboot []
(box :class "genwinf" :vexpand "false" :hexpand "false"
(button :class "btn_reboot" :onclick "systemctl reboot" "")))
(defwidget poweroff []
(box :class "genwing" :vexpand "false" :hexpand "false"
(button :class "btn_poweroff" :onclick "systemctl poweroff" "")))
;; folders
(defwidget folders []
(box :class "genwinb" :orientation "v" :spacing 4 :space-evenly "false" :vexpand "false" :hexpand "false"
(box :class "hddbox" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(box :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "hddicon" :onclick "~/.config/eww/scripts/open_apps --fm" ""))
(label :class "fs_sep" :text "|")
(box :space-evenly "false" :vexpand "false" :hexpand "false"
(label :class "hdd_label" :wrap "true" :limit-width 25 :text FREE)))
(box :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "iconfolder1" :onclick "~/.config/eww/scripts/open_folders --docs" "")
(button :class "label_folder1" :onclick "~/.config/eww/scripts/open_folders --docs" "Documents"))
(box :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "iconfolder2" :onclick "~/.config/eww/scripts/open_folders --dl" "")
(button :class "label_folder2" :onclick "~/.config/eww/scripts/open_folders --dl" "Downloads"))
(box :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "iconfolder3" :onclick "~/.config/eww/scripts/open_folders --music" "")
(button :class "label_folder3" :onclick "~/.config/eww/scripts/open_folders --music" "Music"))
(box :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "iconfolder4" :onclick "~/.config/eww/scripts/open_folders --pics" "")
(button :class "label_folder4" :onclick "~/.config/eww/scripts/open_folders --pics" "Pictures"))
(box :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "iconfolder5" :onclick "~/.config/eww/scripts/open_folders --cfg" "ﮛ")
(button :class "label_folder5" :onclick "~/.config/eww/scripts/open_folders --cfg" "~/.config"))
(box :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "iconfolder6" :onclick "~/.config/eww/scripts/open_folders --local" "ﮛ")
(button :class "label_folder6" :onclick "~/.config/eww/scripts/open_folders --local" "~/.local"))))
;; workspaces
(defwidget workspaces[]
(box :class "genwinb" :orientation "v" :spacing 25 :space-evenly "false" :vexpand "false" :hexpand "false"
(box :orientation "h" :class "ws_holder" :spacing 18 :halign "center" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "ws1" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"1 : \"" "")
(button :class "ws2" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"2 : \"" "")
(button :class "ws3" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"3 : \"" "")
(button :class "ws4" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"4 : 切\"" "切")
(button :class "ws5" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"5 : \"" ""))
(box :orientation "h" :spacing 15 :halign "center" :space-evenly "false" :vexpand "false" :hexpand "false"
(button :class "ws6" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"6 : \"" "")
(button :class "ws7" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"7 : \"" "")
(button :class "ws8" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"8 : \"" "")
(button :class "ws9" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"9 : \"" "")
(button :class "ws10" :halign "center" :wrap "true" :onclick "./launch_eww && i3-msg workspace \"10 : \"" ""))))
;; outers
(defwidget outera[]
(box :style "background:transparent;border-radius:20px;box-shadow:16px 16px 0 0 #282c34;"))
(defwidget outerb[]
(box :style "background:transparent;border-radius:20px;box-shadow:-16px 16px 0 0 #282c34;"))
(defwidget outerc[]
(box :style "background:transparent;border-radius:20px;box-shadow:16px -16px 0 0 #282c34;"))
;; ********************************************************************************
;; background
(defwindow background :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 0 :y 0 :width "1360px" :height "768px")
(bg))
;; profile
(defwindow profile :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 109 :y 109 :width 246 :height 326)
(nuser))
;; system
(defwindow system :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 365 :y 109 :width 246 :height 204)
(system))
;; clock
(defwindow clock :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 365 :y 323 :width 246 :height 102)
(nclock))
;; uptime
(defwindow uptime :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 365 :y 221 :width 206 :height 102)
(uptime))
;; music
(defwindow music :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 109 :y 434 :width 416 :height 224)
(spotify))
;; github
(defwindow github :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 535 :y 567 :width 96 :height 92)
(github))
;; reddit
(defwindow reddit :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 641 :y 567 :width 96 :height 92)
(reddit))
;; twitter
(defwindow twitter :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 747 :y 567 :width 96 :height 92)
(twitter))
;; youtube
(defwindow youtube :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 853 :y 567 :width 96 :height 92)
(youtube))
;; weather
(defwindow weather_info :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 341 :y 10 :width 438 :height 59)
(weather_info))
(defwindow weather_quotes :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 461 :y 679 :width 438 :height 99)
(weather_quotes))
;; apps
(defwindow apps :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 621 :y 109 :width 126 :height 306)
(apps))
;; mail
(defwindow mail :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 747 :y 465 :width 202 :height 92)
(mail))
;; logout
(defwindow logout :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 1032 :y 109 :width 104 :height 102)
(logout))
;; sleep
(defwindow sleep :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 1147 :y 109 :width 104 :height 102)
(sleep))
;; reboot
(defwindow reboot :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 1032 :y 221 :width 104 :height 102)
(reboot))
;; poweroff
(defwindow poweroff :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 1147 :y 221 :width 104 :height 102)
(poweroff))
;; folders
(defwindow folders :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 747 :y 109 :width 202 :height 346)
(folders))
;; workspaces
(defwindow workspaces :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 535 :y 425 :width 202 :height 132)
(workspaces))
;; calendar
(defwindow calendar :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 530 :y 38 :width 270 :height 60)
(cal))
;; calendar outer 1
(defwindow roundeda :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x "630px" :y "7px" :width "32px" :height "32px")
(outera))
;; calendar outer 2
(defwindow roundedb :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x "662px" :y "7px" :width "32px" :height "32px")
(outerb))
;; profile outer 1
(defwindow roundedc :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x "355px" :y "403px" :width "32px" :height "32px")
(outerb))
;; clock outer 1
(defwindow roundedd :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 611 :y 393 :width 32 :height 32)
(outerb))
;; clock outer 2
(defwindow roundede :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 503 :y 425 :width 32 :height 32)
(outerc))
;; apps outer 1
(defwindow roundedf :stacking "fg" :focusable "false" :screen 1
:geometry (geometry :x 715 :y 415 :width 32 :height 32)
(outerc))

BIN
common/.config/eww/images/bg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
common/.config/eww/images/fox.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 KiB

View File

@@ -0,0 +1,8 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg">
<circle cx="8.4665" cy="8.4665" r="7.1436" fill="#f9f9f9" style="paint-order:stroke fill markers"/>
<g transform="matrix(1.1855 0 0 1.1855 -14.244 .37886)" fill-rule="evenodd" stroke-width=".26458">
<path d="m21.068 2.6024c-0.09052 0.010102-0.17861 0.04111-0.26664 0.099217 0.13772 0.17144-0.1403 1.7855 0.20785 2.004l0.2717 0.17053v3.8922l-0.42679 0.31977c-0.32895 0.24647 0.02978 1.6662-0.05651 1.8488 0.09533 0.05818 0.23775 0.12029 0.36237 0.10514 0.03992-0.0049 0.08033-0.01602 0.1204-0.03566l1.7368-0.85162c0.18929-0.09277 0.38033-0.16953 0.38033-0.38033v-5.9043c0-0.2108-0.19104-0.28757-0.38033-0.38033l-1.7368-0.85162c-0.04007-0.01964-0.08048-0.030802-0.1204-0.035657-0.03116-0.00379-0.06181-0.00337-0.09198 0z" fill="#35a0f3" style="paint-order:stroke fill markers"/>
<path d="m15.041 8.0035 5.6511-5.2228c0.25656-0.23712 0.58887-0.15304 0.58887 0.33742v1.7579l-5.2244 3.9957c-0.09136 0.07175-0.32943 0.24313-0.53715 0.04563l-0.52855-0.50252c-0.1387-0.13186-0.05988-0.30961 0.0501-0.41126z" fill="#115fb7" style="paint-order:stroke fill markers"/>
<path d="m15.041 5.6381 5.6511 5.2228c0.25656 0.23712 0.58887 0.15304 0.58887-0.33742v-1.7579l-5.2244-3.9957c-0.09136-0.071751-0.32943-0.24313-0.53715-0.045627l-0.52855 0.50251c-0.1387 0.13187-0.05988 0.30961 0.0501 0.41126z" fill="#1a81da" style="paint-order:stroke fill markers"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,6 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg">
<circle cx="8.4665" cy="8.4665" r="7.1436" fill="#867de0" style="paint-order:stroke fill markers"/>
<g transform="matrix(2.2415 0 0 2.2415 3.7221 -652.3)" fill="#fff" stroke-width=".44648">
<path d="m1.5689 293.37c-0.052606 2.2e-4 -0.4878 0.0126-0.94691 0.35371 0 0-0.48972 0.88082-0.48972 1.9657 0 0 0.28566 0.48973 1.0372 0.51353 0 0 0.12583-0.14963 0.22785-0.27887-0.4319-0.12923-0.59514-0.39788-0.59514-0.39788s0.034015 0.0238 0.09523 0.0578c0.003403 0 0.006787 4e-3 0.013593 7e-3 0.010203 7e-3 0.020408 0.0102 0.03061 0.017 0.08502 0.0476 0.17004 0.085 0.24826 0.11563 0.13943 0.0579 0.30608 0.10883 0.49992 0.14623 0.25506 0.0476 0.55433 0.0646 0.88081 4e-3 0.15984-0.0306 0.32309-0.0748 0.49313-0.14623 0.11903-0.0442 0.25166-0.10882 0.39109-0.20064 0 0-0.17004 0.27546-0.61554 0.4013 0.10202 0.12583 0.22446 0.27205 0.22446 0.27205 0.75158-0.0238 1.0372-0.51353 1.0372-0.51013 0-1.0849-0.48972-1.9657-0.48972-1.9657-0.48632-0.36388-0.95224-0.35368-0.95224-0.35368l-0.047602 0.0544c0.57814 0.17343 0.8468 0.42851 0.8468 0.42851-0.35369-0.19044-0.70056-0.28568-1.0236-0.32309-0.24486-0.0272-0.47952-0.0204-0.68697 7e-3 -0.020405 0-0.037404 4e-3 -0.05781 7e-3 -0.11903 0.0136-0.4081 0.0544-0.77198 0.21425-0.12583 0.0544-0.20065 0.0952-0.20065 0.0952s0.27887-0.26868 0.89101-0.44211l-0.034009-0.0408s-0.0018-3e-5 -0.00531-2e-5zm-0.086511 1.2549c0.19385 0 0.35029 0.16664 0.34689 0.37409 0 0.20745-0.15304 0.37409-0.34689 0.37409-0.19045 0-0.34689-0.16664-0.34689-0.37409s0.15304-0.37409 0.34689-0.37409zm1.2413 0c0.19045 0 0.34689 0.16664 0.34689 0.37409s-0.15304 0.37409-0.34689 0.37409c-0.19045 0-0.34689-0.16664-0.34689-0.37409s0.15304-0.37409 0.34689-0.37409z" fill="#fff" stroke-width=".44648"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,16 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="b">
<stop offset="0"/>
<stop stop-opacity="0" offset="1"/>
</linearGradient>
<linearGradient id="c" x1="32" x2="32" y1="13" y2="9" gradientTransform="scale(.26458)" gradientUnits="userSpaceOnUse" xlink:href="#b"/>
<linearGradient id="a" x1="30" x2="57" y1="44" y2="44" gradientUnits="userSpaceOnUse" xlink:href="#b"/>
</defs>
<circle cx="8.4665" cy="8.4665" r="6.6145" fill="#3578c7" style="paint-order:stroke markers fill"/>
<path transform="scale(.26458)" d="m19.398 14a22 22 0 0 0-9.3984 18 22 22 0 0 0 22 22 22 22 0 0 0 22-22 22 22 0 0 0-9.3711-18z" fill="#fff" stroke-width="3.7796" style="paint-order:stroke markers fill"/>
<path d="m8.4665 1.852a6.6145 6.6145 0 0 0-3.9444 1.3229h7.8976a6.6145 6.6145 0 0 0-3.9532-1.3229z" fill="url(#c)" opacity=".15" style="paint-order:stroke markers fill"/>
<path d="m8.466 4.2332c-0.29211 6.879e-4 -0.38134 0.27599-0.52916 0.52967l-0.30799 0.52812-5.5525 5.167e-4a7.1436 7.1436 0 0 0-0.75343 3.1749 7.1436 7.1436 0 0 0 7.1436 7.1436 7.1436 7.1436 0 0 0 7.1436-7.1436 7.1436 7.1436 0 0 0-1.3999-4.2332h-5.7432z" fill="#5294e2" style="paint-order:stroke markers fill"/>
<rect x="9.2599" y="4.762" width="3.969" height=".529" ry=".265" opacity=".25" style="paint-order:stroke markers fill"/>
<path transform="scale(.26458)" d="m59 32-27 27a27 27 0 0 0 27-27z" fill="url(#a)" opacity=".15" stroke-width="3.7796" style="paint-order:stroke markers fill"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,14 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg">
<circle cx="296.65" cy="5.7567" r="0" enable-background="new" fill="#d5d3cf" stroke-width=".87152"/>
<g stroke-width=".18455">
<path d="m15.093 5.809c-0.31078-0.74779-0.94116-1.5551-1.4349-1.8104a7.431 7.431 0 0 1 0.72435 2.1711l0.0013 0.012027c-0.80869-2.0162-2.1801-2.8291-3.3001-4.5993-0.056658-0.089506-0.11332-0.17919-0.16849-0.27387-0.03156-0.054034-0.05684-0.1028-0.0788-0.14764a1.3016 1.3016 0 0 1-0.10667-0.28328 0.018455 0.018455 0 0 0-0.01624-0.018476 0.025468 0.025468 0 0 0-0.01347 0c-9.59e-4 0-0.0024 0.001743-0.0035 0.001743-0.0011 3.6604e-4 -0.0035 0.001743-0.0051 0.002615l0.0028-0.005229c-1.7966 1.0519-2.4062 2.9993-2.4623 3.9734a3.5779 3.5779 0 0 0-1.9684 0.75868 2.1384 2.1384 0 0 0-0.18455-0.13989 3.316 3.316 0 0 1-0.020116-1.7483 5.2975 5.2975 0 0 0-1.7217 1.3306h-0.00332c-0.28355-0.35847-0.26362-1.5433-0.24738-1.7907a1.2785 1.2785 0 0 0-0.23881 0.12678 5.2089 5.2089 0 0 0-0.69907 0.59887 6.246 6.246 0 0 0-0.66862 0.80223v8.715e-4 -8.715e-4a6.0408 6.0408 0 0 0-0.95964 2.1671l-0.0096 0.047237c-0.013472 0.062924-0.062008 0.37814-0.070313 0.4466 0 0.00523-0.00111 0.010371-0.00166 0.015688a6.8167 6.8167 0 0 0-0.11608 0.98604v0.036865a7.1529 7.1529 0 0 0 14.201 1.2095c0.01199-0.092277 0.02178-0.18363 0.03248-0.27682a7.3556 7.3556 0 0 0-0.46395-3.5929zm-8.2438 5.5988c0.033403 0.01604 0.064777 0.03338 0.099101 0.04872l0.00499 0.0035q-0.052048-0.02494-0.10409-0.05187zm1.6385-4.314m5.8967-0.91057v-0.00697l0.0013 0.00784z" fill="#ff3944"/>
<path d="m11.618 6.6457c0.0155 0.010894 0.02989 0.021788 0.04447 0.032682a3.894 3.894 0 0 0-0.66438-0.86645c-2.2231-2.2234-0.58262-4.821-0.30598-4.953l0.0028-0.004358c-1.7966 1.0519-2.4062 2.9993-2.4622 3.9734 0.083416-0.0061 0.1661-0.012724 0.25136-0.012724a3.6098 3.6098 0 0 1 3.134 1.8302z" fill="#ffcd34"/>
<path d="m8.4881 7.0901c-0.011811 0.1779-0.64039 0.79153-0.86019 0.79153-2.0339 0-2.3641 1.2304-2.3641 1.2304 0.090063 1.0361 0.81202 1.8894 1.6847 2.3408 0.039863 0.02065 0.080279 0.03931 0.1207 0.05761q0.10501 0.04654 0.21002 0.08602a3.1807 3.1807 0 0 0 0.9307 0.17957c3.565 0.1672 4.2555-4.2631 1.6829-5.5486a2.4693 2.4693 0 0 1 1.7246 0.41874 3.6098 3.6098 0 0 0-3.134-1.8302c-0.084893 0-0.16794 0.00697-0.25136 0.012724a3.5779 3.5779 0 0 0-1.9684 0.75868c0.10907 0.092268 0.23217 0.21555 0.49145 0.47115 0.48536 0.47816 1.7301 0.97349 1.7329 1.0316z" fill="#9a46eb"/>
<path d="m5.9303 5.3471c0.057949 0.036865 0.10575 0.069025 0.14764 0.097994a3.316 3.316 0 0 1-0.020116-1.7483 5.2975 5.2975 0 0 0-1.7217 1.3306c0.03488-8.715e-4 1.0724-0.019522 1.5941 0.31964z" fill="#ff9633"/>
<path d="m1.3883 8.6327c0.55199 3.2617 3.5081 5.7521 6.8641 5.8471 3.1059 0.08784 5.0902-1.7152 5.91-3.4742a6.4777 6.4777 0 0 0 0.22257-4.8275v-0.00697c0-0.00523-0.0011-0.00872 0-0.00697l0.0013 0.012027c0.25375 1.6567-0.5889 3.2617-1.9062 4.3471l-0.0041 0.0092c-2.5667 2.0904-5.023 1.2612-5.5202 0.92277q-0.052031-0.024892-0.10407-0.051822c-1.4965-0.71531-2.1148-2.0788-1.9823-3.2481a1.8368 1.8368 0 0 1-1.6943-1.0658 2.6977 2.6977 0 0 1 2.6296-0.10557 3.5618 3.5618 0 0 0 2.6855 0.10557c-0.0027715-0.058131-1.2476-0.55364-1.7329-1.0316-0.25929-0.2556-0.38238-0.37869-0.49145-0.47115a2.1384 2.1384 0 0 0-0.18455-0.13989c-0.042447-0.028935-0.090246-0.06031-0.14764-0.097994-0.52172-0.3392-1.5592-0.32056-1.5936-0.31963h-0.00332c-0.28345-0.35907-0.26351-1.5439-0.24728-1.7913a1.2785 1.2785 0 0 0-0.23881 0.12678 5.2089 5.2089 0 0 0-0.69907 0.59886 6.246 6.246 0 0 0-0.67139 0.80039v8.715e-4 -8.715e-4a6.0408 6.0408 0 0 0-0.95964 2.1671c-0.0035061 0.014554-0.25763 1.1256-0.13232 1.7017z" fill="#ff6333"/>
<path d="m10.998 5.8177a3.894 3.894 0 0 1 0.66438 0.86738c0.0393 0.029719 0.07603 0.059264 0.10722 0.087841 1.6216 1.4948 0.77197 3.6079 0.70867 3.7584 1.3173-1.0853 2.1592-2.6904 1.9062-4.3471-0.80906-2.0171-2.1805-2.83-3.3005-4.6003-0.05666-0.089506-0.11332-0.17919-0.16849-0.27387-0.03156-0.054034-0.05684-0.1028-0.0788-0.14764a1.3016 1.3016 0 0 1-0.10667-0.28328 0.018455 0.018455 0 0 0-0.01624-0.018476 0.025468 0.025468 0 0 0-0.01347 0c-9.59e-4 0-0.0024 0.001743-0.0035 0.001743-0.0011 3.6604e-4 -0.0035 0.001743-0.0051 0.002615-0.27664 0.13121-1.9171 2.7287 0.30635 4.9522z" fill="#ff8619"/>
<path d="m11.768 6.7677c-0.03119-0.028586-0.06791-0.058131-0.10722-0.08785-0.01458-0.010894-0.02898-0.021788-0.04447-0.032682a2.4693 2.4693 0 0 0-1.7246-0.41874c2.5727 1.2863 1.8824 5.7158-1.6829 5.5486a3.1807 3.1807 0 0 1-0.9307-0.17955q-0.10501-0.039306-0.21002-0.08602c-0.040416-0.01848-0.080832-0.03687-0.1207-0.05761l0.00499 0.0035c0.49718 0.33938 2.9528 1.1685 5.5202-0.92277l0.0041-0.0092c0.06404-0.14948 0.91371-2.2631-0.70867-3.7574z" fill="#ffa316"/>
<path d="m5.2638 9.1121s0.33016-1.2304 2.3641-1.2304c0.2198 0 0.84893-0.61362 0.86019-0.79153a3.5618 3.5618 0 0 1-2.6855-0.10556 2.6977 2.6977 0 0 0-2.6296 0.10556 1.8368 1.8368 0 0 0 1.6943 1.0658c-0.13251 1.1695 0.48574 2.5329 1.9823 3.2481 0.033403 0.01604 0.064777 0.03338 0.099101 0.04872-0.87344-0.45122-1.5947-1.3046-1.6847-2.3407z" fill="#ffbb27"/>
</g>
<circle cx="-15.774" cy="13.461" r="0" enable-background="new" fill="#d5d3cf" stroke-width=".87152"/>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@@ -0,0 +1,5 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg">
<path d="m8.3803 1.3234a7.1436 7.1436 0 1 1 0 14.286 7.1436 7.1436 0 0 1 0-14.286z" fill="#f6d32e"/>
<path d="m8.467 2.646a5.82 5.82 0 1 1 0 11.641 5.82 5.82 0 0 1 0-11.641z" fill="#fff" opacity=".15"/>
<path d="M8.404 5.396c-.24.003-.471.108-.54.286-.02.056-.022.073-.008.155.03.17.138.383.265.52.087.094.145.133.228.155.069.018.116.012.192-.023.17-.08.372-.377.424-.629.033-.154-.013-.26-.152-.352a.728.728 0 0 0-.409-.112zm-.74.532c-.017-.01-.295.03-.494.072-.464.098-.793.235-.978.407-.1.093-.132.152-.132.24s.032.147.132.24c.297.277 1.019.476 1.867.515.419.02.916-.012 1.314-.084.765-.137 1.286-.435 1.236-.708-.048-.26-.571-.523-1.27-.64l-.18-.031-.033.092c-.146.398-.416.671-.682.69-.21.015-.416-.12-.593-.386a1.59 1.59 0 0 1-.17-.363c-.004-.02-.012-.04-.018-.044zm3.151.688l-.008.074c-.038.352-.536.657-1.322.81-1.43.278-3.139-.008-3.546-.594l-.04-.058-.01.064c-.017.131-.01.82.01 1.057.011.128.018.235.015.238-.01.01-.256-.097-.324-.142-.23-.153-.336-.383-.376-.815l-.015-.156-.224-.004-.225-.003.01.08c.077.703.328 1.375.704 1.886.582.79 1.51 1.3 2.576 1.418.184.02.562.023.718.006.586-.065 1.056-.28 1.405-.643.424-.44.66-1.018.752-1.841.01-.097.016-.31.015-.61-.002-.501-.008-.547-.079-.694zm1.093.41a.75.75 0 0 0-.692.312c-.064.09-.136.237-.136.28 0 .07.075.142.148.142.068 0 .098-.028.159-.146a.603.603 0 0 1 .249-.274c.296-.15.644.044.7.39.014.078.008.156-.051.715-.076.722-.066.686-.22.778-.199.12-.51.182-1.017.201-.231.01-.233.01-.268.045-.053.053-.05.117.008.175l.044.044h.199c.547 0 .982-.093 1.235-.262a.544.544 0 0 0 .223-.27c.017-.063.144-1.25.144-1.344 0-.1-.035-.235-.089-.343a.793.793 0 0 0-.636-.443zm-5.156.488c.004 0 .094.176.202.39l.196.392-.192.387c-.106.212-.196.388-.2.39a5.234 5.234 0 0 1-.206-.385l-.198-.391.195-.392c.108-.215.2-.391.203-.391zm3.426.007l.2.398.198.397-.194.389a8.469 8.469 0 0 1-.2.388c-.004 0-.096-.176-.203-.392l-.196-.391.198-.395zm-1.711.42c.012 0 .588.936.585.949-.002.007-.133.218-.29.47a8.99 8.99 0 0 1-.295.458c-.01 0-.577-.9-.585-.928-.004-.015.572-.95.585-.949zm1.737 2.137l-.07.059c-.382.318-.872.501-1.467.548a4.085 4.085 0 0 1-1.362-.155 3.677 3.677 0 0 1-.705-.274l-.152-.077-.086.04c-.193.087-.372.232-.426.346a.33.33 0 0 0-.008.253c.104.235.53.455 1.128.583.306.065.507.092.964.129.029.002.215.006.414.007.39.002.603-.01.939-.05 1.411-.175 2.058-.714 1.39-1.158a1.84 1.84 0 0 0-.432-.206l-.127-.044z" fill="#d11616"/>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -0,0 +1,22 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="d" x1="34.601" x2="34.601" y1="50.4" y2="45.086" gradientUnits="userSpaceOnUse">
<stop offset="0"/>
<stop stop-opacity="0" offset="1"/>
</linearGradient>
</defs>
<circle cx="8.4665" cy="8.4665" r="7.1436" fill="#f9f9f9" style="paint-order:stroke fill markers"/>
<g transform="matrix(.69229 0 0 .69229 2.5955 2.9766)">
<path d="m2.57 2.117s-0.982 0-0.982 0.977c0 0-0.053 4.779 0.982 6.838 0.62 1.236 3.927 3.908 3.927 3.908h3.928s3.306-2.672 3.927-3.908c1.035-2.06 0.982-6.838 0.982-6.838 0.139-0.968-0.982-0.977-0.982-0.977 0 1.954-1.964 1.954-1.964 1.954h-7.855s-1.963 0-1.963-1.954z" fill="#5c4e3c"/>
<g transform="matrix(.34395 0 0 .34223 -43.43 -80.23)">
<circle cx="159.87" cy="259.33" r="4" fill="#fff"/>
<path d="m159.74 257.33a3 3 0 0 0-2.874 2.995 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-2.85-2.992 1.5 1.5 0 0 1 1.35 1.492 1.5 1.5 0 0 1-1.5 1.5 1.5 1.5 0 0 1-1.5-1.5 1.5 1.5 0 0 1 1.374-1.495z" opacity=".8"/>
</g>
<g transform="matrix(.34395 0 0 .34223 -49.622 -80.23)">
<circle cx="159.87" cy="259.33" r="4" fill="#fff"/>
<path d="m159.74 257.33a3 3 0 0 0-2.874 2.995 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-2.85-2.992 1.5 1.5 0 0 1 1.35 1.492 1.5 1.5 0 0 1-1.5 1.5 1.5 1.5 0 0 1-1.5-1.5 1.5 1.5 0 0 1 1.374-1.495z" opacity=".8"/>
</g>
<path d="m6.497 13.84s0.575 0.977 1.964 0.977c1.388 0 1.964-0.977 1.964-0.977s-0.491-0.977-1.964-0.977-1.964 0.977-1.964 0.977z" fill="#252525" fill-rule="evenodd"/>
<path transform="matrix(.34395 0 0 .34223 -2.546 -2.432)" d="m34.537 45.086a5.5 5 0 0 1 0.072 0.791 5.5 5 0 0 1-3.117 4.502c0.167 0.01 0.332 0.021 0.508 0.021 4.037 0 5.709-2.855 5.709-2.855s-0.846-1.677-3.172-2.46z" fill="url(#d)" fill-rule="evenodd" opacity=".25"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64px" height="64px"><path fill="#ffeb9b" d="M33.5 10A25.5 25.5 0 1 0 33.5 61A25.5 25.5 0 1 0 33.5 10Z"/><path fill="#b0edcc" d="M11.5,24C25.583,24,37,35.417,37,49.5c0,4.131-0.986,8.03-2.731,11.481 C34.013,60.988,33.758,61,33.5,61C19.417,61,8,49.583,8,35.5c0-4.126,0.986-8.019,2.725-11.467C10.984,24.026,11.239,24,11.5,24z"/><path fill="#fbd" d="M11.977,22.559c0.752-1.273,1.597-2.456,2.522-3.547c7.886-9.299,21.552-11.847,32.404-5.434 c2.184,1.291,4.103,2.857,5.741,4.629c1.026,1.109,1.942,2.299,2.744,3.551c-0.125,0.227-0.233,0.459-0.365,0.684 c-7.165,12.125-22.802,16.146-34.926,8.981c-3.557-2.102-6.412-4.934-8.494-8.192C11.726,23.006,11.846,22.781,11.977,22.559"/><path fill="#7bbeeb" d="M50,46c0-7-6.582-9-11-9c-0.315,0-2.868-0.59-3.5-0.583C27.833,36.5,34.667,45.5,26,44c-5-3-7-7-7-7 c-2-4-7.556-4.817-5,2c3,8,11,15,18,16C40.167,56.167,50,53.563,50,46z"/><path fill="#8d6c9f" d="M33.5,62C18.888,62,7,50.112,7,35.5S18.888,9,33.5,9S60,20.888,60,35.5S48.112,62,33.5,62z M33.5,11 C19.991,11,9,21.991,9,35.5C9,49.01,19.991,60,33.5,60C47.01,60,58,49.01,58,35.5C58,21.991,47.01,11,33.5,11z"/><path fill="#8d6c9f" d="M26 34.5A1.5 2 0 1 0 26 38.5A1.5 2 0 1 0 26 34.5Z" transform="rotate(-60 26 36.501)"/><path fill="#fff8ee" d="M5,3c7,9,18.953,22.861,33,36c1-1,3-3,3-3C28,22,15,10,6,2L5,3z"/><path fill="#8d6c9f" d="M38,40c-0.245,0-0.49-0.09-0.683-0.27C20.238,23.756,7.659,8.048,4.21,3.614 c-0.31-0.398-0.274-0.964,0.083-1.321l1-1C5.667,0.917,6.27,0.901,6.665,1.252c13.053,11.603,24.852,23.065,35.068,34.067 c0.366,0.395,0.355,1.008-0.025,1.388l-3,3C38.512,39.902,38.256,40,38,40z M7.862,5.005c5.024,6.255,15.97,19.281,30.116,32.602 l1.633-1.632C30.257,25.951,19.591,15.546,7.862,5.005z"/><path fill="#ced9ed" d="M27.863,29.057C31.08,32.358,34.474,35.702,38,39c1-1,3-3,3-3 c-3.301-3.555-6.601-6.979-9.837-10.243L27.863,29.057z"/><path fill="#8d6c9f" d="M38 40c-.245 0-.49-.09-.683-.27-3.364-3.146-6.786-6.502-10.17-9.976-.382-.392-.378-1.018.009-1.405l3.3-3.3c.188-.188.419-.295.709-.293.266 0 .521.107.708.296 3.429 3.46 6.746 6.914 9.858 10.267.366.395.355 1.008-.025 1.388l-3 3C38.512 39.902 38.256 40 38 40zM29.27 29.065c2.901 2.959 5.824 5.827 8.708 8.542l1.633-1.632c-2.69-2.884-5.527-5.837-8.451-8.801L29.27 29.065zM17.147 45.126c-.327 0-.647-.16-.839-.455-.826-1.269-1.51-2.628-2.033-4.038-.192-.518.072-1.093.59-1.285.515-.194 1.093.071 1.285.59.472 1.271 1.089 2.498 1.834 3.644.301.463.17 1.082-.293 1.383C17.523 45.074 17.334 45.126 17.147 45.126zM32.286 18.04c-.523 0-.963-.406-.997-.936l-.129-1.996c-.036-.551.382-1.027.934-1.063.566-.034 1.027.383 1.062.934l.129 1.996c.036.551-.382 1.027-.933 1.063C32.329 18.04 32.307 18.04 32.286 18.04zM37.397 18.419c-.069 0-.14-.007-.211-.022-.539-.116-.884-.647-.768-1.188l.419-1.956c.115-.54.644-.885 1.188-.769.539.116.884.647.768 1.188l-.419 1.956C38.273 18.098 37.858 18.419 37.397 18.419zM42.202 20.178c-.159 0-.32-.038-.471-.118-.487-.261-.671-.867-.41-1.354l.943-1.764c.261-.487.866-.67 1.354-.41.487.261.671.867.41 1.354l-.943 1.764C42.904 19.986 42.56 20.178 42.202 20.178zM46.342 23.195c-.25 0-.501-.093-.694-.281-.397-.384-.408-1.017-.025-1.414l1.39-1.439c.384-.397 1.019-.408 1.414-.024.397.384.408 1.017.025 1.414l-1.39 1.439C46.865 23.093 46.604 23.195 46.342 23.195z"/><g><path fill="#8d6c9f" d="M45,48c0,0,0-3-2-4s-4.167-1.042-5-5c2-2,3-3,3-3s4,2,5,5S46.25,47.5,45,48z"/><path fill="#8d6c9f" d="M45,49c-0.197,0-0.393-0.059-0.561-0.172c-0.274-0.186-0.438-0.494-0.439-0.825 c-0.001-0.046-0.062-2.415-1.447-3.108c-0.35-0.175-0.706-0.317-1.058-0.46c-1.729-0.698-3.687-1.489-4.474-5.229 c-0.069-0.331,0.032-0.674,0.271-0.913l3-3c0.306-0.307,0.769-0.38,1.154-0.188c0.179,0.089,4.383,2.224,5.501,5.578 c1.131,3.391,0.35,7.475-1.577,8.245C45.252,48.977,45.126,49,45,49z M46,48h0.01H46z M39.102,39.313 c0.6,2.24,1.683,2.678,3.143,3.268c0.4,0.162,0.805,0.326,1.203,0.525c0.955,0.478,1.553,1.272,1.927,2.085 c0.167-1.058,0.153-2.447-0.322-3.874c-0.597-1.789-2.636-3.325-3.878-4.076L39.102,39.313z"/></g><g><path fill="#8d6c9f" d="M28.044,45.198c-1.19,0-2.515-0.334-3.811-0.995c-3.429-1.747-7.101-7.668-8.107-10.352 c-0.194-0.518,0.068-1.094,0.585-1.288c0.518-0.191,1.093,0.068,1.288,0.585c0.92,2.455,4.332,7.841,7.143,9.273 c1.91,0.972,3.558,0.922,4.345,0.439C29.832,42.649,30,42.367,30,42c0-3.108,2.061-5.232,5.804-5.98 c0.549-0.113,1.069,0.243,1.177,0.784c0.108,0.542-0.243,1.068-0.784,1.177C33.412,38.537,32,39.89,32,42 c0,1.059-0.535,1.994-1.469,2.566C29.841,44.989,28.985,45.198,28.044,45.198z"/></g><g><path fill="#8d6c9f" d="M35.657,55.819c-6.53,0-12.007-2.578-16.694-7.868c-0.366-0.413-0.328-1.045,0.085-1.411 c0.413-0.367,1.045-0.327,1.412,0.085c2.813,3.176,7.469,7.351,15.768,7.188c4.642,0.089,8.197-1.025,10.407-3.197 C48.77,48.518,49,46.12,49,45.188c0-0.553,0.447-1,1-1s1,0.447,1,1c0,2.505-1.08,5.003-2.964,6.854 c-1.813,1.782-5.295,3.883-11.804,3.771C36.04,55.816,35.848,55.819,35.657,55.819z"/></g></svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><description>Created with Sketch (http://www.bohemiancoding.com/sketch)</description><defs><linearGradient x1="22.625" y1="-.173" x2="22.625" y2="211.998" id="A" gradientUnits="userSpaceOnUse"><stop stop-color="#16b0ed" stop-opacity=".8" offset="0%"/><stop stop-color="#0f59b2" stop-opacity=".837" offset="100%"/></linearGradient><linearGradient x1="152.09" y1="-.148" x2="152.09" y2="211.998" id="B" gradientUnits="userSpaceOnUse"><stop stop-color="#7db643" offset="0%"/><stop stop-color="#367533" offset="100%"/></linearGradient><linearGradient x1="87.475" y1="-.137" x2="87.475" y2="212.054" id="C" gradientUnits="userSpaceOnUse"><stop stop-color="#88c649" stop-opacity=".8" offset="0%"/><stop stop-color="#439240" stop-opacity=".84" offset="100%"/></linearGradient></defs><g transform="matrix(.301563 0 0 .301563 5.613197 .052163)" fill-rule="evenodd"><path d="M.027 45.46L45.224-.173v212.17L.027 166.894z" fill="url(#A)"/><path transform="matrix(-1 0 0 1 304 0)" d="M129.337 45.89L175.152-.148l-.93 212.147-45.197-45.104z" fill="url(#B)"/><path d="M45.194-.137l117.506 179.3-32.882 32.88L12.25 33.14z" fill="url(#C)"/><path d="M45.234 83.032l-.062 7.063L8.89 36.532l3.36-3.422z" fill="#000" fill-opacity=".13"/></g></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,13 @@
<svg viewBox="0 0 72 100" width="30" height="30">
<defs>
<linearGradient id="a" x1="82.85" y1="30.41" x2="51.26" y2="105.9" gradientTransform="matrix(1, 0, 0, -1, -22.41, 110.97)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#6c56cc"></stop>
<stop offset="1" stop-color="#9785e5"></stop>
</linearGradient>
</defs>
<polygon points="44.61 0 12.91 17.52 0 45.45 19.57 90.47 47.35 100 52.44 89.8 63 26.39 44.61 0" fill="#34208c"></polygon>
<polygon points="63 26.39 43.44 14.41 16.43 35.7 47.35 100 52.44 89.8 63 26.39" fill="url(#a)"></polygon>
<polygon points="63 26.39 63 26.39 44.61 0 43.44 14.41 63 26.39" fill="#af9ff4"></polygon>
<polygon points="43.44 14.41 44.61 0 12.91 17.52 16.43 35.7 43.44 14.41" fill="#4a37a0"></polygon>
<polygon points="16.43 35.7 19.57 90.47 47.35 100 16.43 35.7" fill="#4a37a0"></polygon>
</svg>

After

Width:  |  Height:  |  Size: 884 B

View File

@@ -0,0 +1,20 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="a" x1="135" x2="160" y1="120" y2="160" gradientTransform="matrix(.05623 0 0 .05623 .071601 -.05278)" gradientUnits="userSpaceOnUse">
<stop stop-color="#eff7fc" offset="0"/>
<stop stop-color="#fff" offset="1"/>
</linearGradient>
</defs>
<g transform="matrix(1.1739 0 0 1.1739 -5.5652 -5.5652)" stroke-width=".85185">
<g transform="translate(8,8)" fill="#3db0e3">
<path d="m24 1.0001c12.703 0 23 10.297 23 23 0 12.703-10.297 23-23 23-12.703 0-23-10.297-23-23 0-12.703 10.297-23 23-23z" stroke-width=".85186"/>
</g>
<g transform="matrix(3.5433 0 0 3.5433 27 6.8895)">
<g transform="translate(-5.0801)" stroke-width=".85185">
<path d="m5.582 9.787c-0.219 0-0.181-0.083-0.257-0.291l-0.643-2.116 3.981-2.487 0.465 0.122-0.386 1.058z" fill="#c8daea"/>
<path d="m5.582 9.787c0.169 0 0.243-0.077 0.337-0.169 0.145-0.142 2.024-1.968 2.024-1.968l-1.151-0.279-1.068 0.675-0.142 1.684z" fill="#a7c2d1"/>
<path d="m5.697 8.07 2.719 2.01c0.31 0.171 0.534 0.083 0.612-0.288l1.107-5.216c0.113-0.454-0.173-0.66-0.47-0.526l-6.5 2.507c-0.444 0.178-0.441 0.425-0.081 0.536l1.668 0.521 3.861-2.436c0.182-0.111 0.35-0.051 0.212 0.071z" fill="url(#a)"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,14 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="a" x1="43" x2="49" y1="44" y2="50" gradientTransform="scale(.26458)" gradientUnits="userSpaceOnUse">
<stop offset="0"/>
<stop stop-opacity="0" offset="1"/>
</linearGradient>
</defs>
<g>
<circle cx="8.4665" cy="8.4665" r="7.1436" fill="#72787e" style="paint-order:stroke fill markers"/>
<rect x="5.821" y="9.525" width="4.233" height=".529" ry=".265" fill="#fff" style="paint-order:stroke markers fill"/>
<path d="m4.502 4.725a0.264 0.264 0 0 0-0.262 0.13 0.264 0.264 0 0 0 0.097 0.362l2.842 1.64-2.842 1.641a0.264 0.264 0 0 0-0.097 0.362c0.074 0.127 0.235 0.17 0.362 0.097l3.207-1.852a0.26 0.26 0 0 0 0.127-0.225c0.00201-8e-3 0.00101-0.014999 0.00201-0.022 0-8e-3 0-0.014999-0.00201-0.023a0.26 0.26 0 0 0-0.127-0.224l-3.207-1.853a0.266 0.266 0 0 0-0.1-0.033z" fill="#fff" style="paint-order:stroke markers fill"/>
</g>
<path d="m15.582 9.0235-6.5629 6.5629a7.1437 7.1437 0 0 0 6.5629-6.5629z" fill="url(#a)" opacity=".25" stroke-width=".26458" style="paint-order:stroke fill markers"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,11 @@
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg">
<circle cx="8.4665" cy="8.4665" r="7.1436" fill="#f9f9f9" style="paint-order:stroke fill markers"/>
<g transform="matrix(.68 0 0 .68 2.7093 2.7093)">
<g fill-rule="evenodd" stroke-width=".015243">
<path d="m8.4658 15.671 6.6152-3.7386-0.04503-7.0332-6.5701 3.6002z" fill="#3585f3"/>
<path d="m8.4672 15.686-6.6152-3.7386 0.045025-7.0332 6.5701 3.6002z" fill="#1c69d0"/>
<path d="m1.878 4.9333 6.6205-3.6863 6.5618 3.6878-6.5973 3.6146z" fill="#5997f3"/>
</g>
<path d="m9.4829 5.2897c-0.051527 0.044681-0.14489 0.050032-0.20844 0.011627l-0.70395-0.4256c-0.057483-0.034751-0.071673-0.093824-0.032627-0.13855l0.60212-0.70525-2.1207 1.4692c-0.050056 0.034525-0.12916 0.038571-0.18765 0.00807-0.00344-0.00178-0.00641-0.0032-0.00985-0.00534-0.051323-0.031038-0.069143-0.082186-0.041974-0.12573l0.70895-1.1658-0.93877 0.2713c-0.056427 0.016385-0.12357 0.00653-0.16478-0.02698-0.042914-0.032769-0.053627-0.080369-0.027858-0.12004l0.40426-0.6147-0.86581-0.52345c-0.063261-0.038197-0.07299-0.10597-0.021522-0.15059 0.051705-0.044829 0.1453-0.049788 0.20853-0.011556l0.95538 0.57763c0.052678 0.031851 0.069763 0.085154 0.040742 0.12891l-0.28859 0.43888 0.92318-0.26653c0.05581-0.016515 0.12159-7e-3 0.16307 0.025497 0.042617 0.031702 0.054837 0.07859 0.031405 0.11841l-0.55304 0.9093 2.427-1.6807c0.052868-0.03685 0.13647-0.038571 0.19555-0.00394 0.060188 0.042972 0.073132 0.09461 0.034442 0.13999l-1.1542 1.3504 0.60392 0.36512c0.06332 0.038334 0.072669 0.10582 0.021202 0.15045zm0.70171 0.28666-0.36361-0.21983c-0.06319-0.038203-0.15702-0.033042-0.20849 0.011627-0.051527 0.044681-0.041739 0.1124 0.021451 0.1506l0.36361 0.21983c0.063059 0.038132 0.15695 0.033102 0.20849-0.011627 0.0515-0.044657 0.04162-0.11247-0.02145-0.1506zm0.78297 0.47337-0.38695-0.23394c-0.06306-0.038132-0.15702-0.033042-0.20848 0.011627-0.05154 0.044681-0.04162 0.11247 0.02145 0.1506l0.38695 0.23394c0.06302 0.038096 0.15695 0.033102 0.20848-0.011627 0.0515-0.044657 0.04157-0.1125-0.02145-0.1506z" fill="#fff" stroke-width=".044893"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
height="512"
width="512"
id="svg29"
version="1.1"
viewBox="0 0 512 512">
<metadata
id="metadata33">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs7">
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient3481">
<stop
id="stop2"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient3481-4">
<stop
id="stop2-0"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4-0"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient4218">
<stop
id="stop4214"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4216"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient3481-6">
<stop
id="stop2-03"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4-6"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient4218-4">
<stop
id="stop4214-9"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4216-2"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient3481-2">
<stop
id="stop2-9"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4-2"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient4218-2">
<stop
id="stop4214-2"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4216-7"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient3481-0">
<stop
id="stop2-02"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4-1"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="47"
x2="0"
y1="1"
id="linearGradient4218-5">
<stop
id="stop4214-6"
style="stop-color:#fc5858;stop-opacity:1" />
<stop
id="stop4216-73"
style="stop-color:#fc4444;stop-opacity:1"
offset="1" />
</linearGradient>
</defs>
<path
d="m 251.22214,30.990425 c 121.62964,0 220.22213,98.592495 220.22213,220.222135 0,121.62965 -98.59249,220.22214 -220.22213,220.22214 C 129.59249,471.4347 31,372.84221 31,251.21256 31,129.58292 129.59249,30.990425 251.22214,30.990425 Z"
id="path17"
style="fill:#f64747;fill-opacity:0.99607843;stroke-width:9.57487583" />
<path
id="path25"
style="opacity:0.3;fill:#000000;fill-rule:evenodd;stroke:none;stroke-width:9.57487583"
d="m 130.93872,200.89545 100.12447,176.89582 c 0,0 5.41938,9.46955 19.06358,9.46955 13.63462,0 19.06358,-9.46955 19.06358,-9.46955 0,0 69.59019,-106.58751 97.9797,-163.44312 2.85331,-5.70663 5.92685,-11.48028 7.21946,-17.74225 0.88088,-4.25124 1.30218,-8.80888 0.28724,-13.0314 -1.23516,-5.15129 -3.6193,-10.41747 -7.5067,-14.00805 -4.49062,-4.14592 -10.72386,-6.69283 -16.79433,-7.32478 -6.53007,-0.68939 -13.491,0.88089 -19.34125,3.93528 -4.10762,2.16392 -7.75565,5.62045 -10.05362,9.67062 -2.27882,4.01188 -2.86289,8.87591 -3.12141,13.48143 -0.17235,3.16928 0.45002,6.35772 1.10111,9.45997 0.22022,1.06282 0.58407,2.0969 0.94791,3.11184 0.92877,2.59479 2.19265,5.05553 3.14056,7.64075 0.78514,2.12562 1.87668,4.21295 2.12563,6.47262 0.40214,3.63845 0.30639,7.52585 -1.03409,10.92493 -6.53964,16.54538 -17.78054,32.45883 -32.64075,42.17733 -6.15665,4.02144 -14.03677,5.02681 -21.3807,5.34278 -8.37801,0.35427 -18.02949,-0.3064 -24.82765,-4.0023 -6.79816,-3.6959 -9.99617,-10.11107 -14.25699,-15.76982 -19.5519,-25.94791 -51.51283,-82.78438 -51.51283,-82.78438 0,0 -13.89315,-24.55955 -38.89315,-9.67062 -24.99042,14.89851 -9.71849,38.6825 -9.71849,38.6825 z" />
<path
id="path27"
style="fill:#f9f9f9;fill-rule:evenodd;stroke:none;stroke-width:9.57487583"
d="M 131.36385,189.32057 231.48832,366.2164 c 0,0 5.41938,9.46955 19.06358,9.46955 13.63462,0 19.06357,-9.46955 19.06357,-9.46955 0,0 69.5902,-106.58752 97.9797,-163.44313 2.85332,-5.70662 5.92685,-11.48027 7.21946,-17.74224 0.88089,-4.25125 1.30218,-8.80889 0.28725,-13.03141 -1.23516,-5.15128 -3.61931,-10.41746 -7.50671,-14.00804 -4.49061,-4.14592 -10.72386,-6.69284 -16.79433,-7.32478 -6.53006,-0.68939 -13.491,0.88089 -19.34125,3.93527 -4.10762,2.16393 -7.75565,5.62046 -10.05362,9.67063 -2.27882,4.01187 -2.86288,8.87591 -3.1214,13.48142 -0.17235,3.16929 0.45001,6.35772 1.10111,9.45998 0.22022,1.06281 0.58406,2.0969 0.94791,3.11183 0.92876,2.5948 2.19265,5.05554 3.14056,7.64075 0.78514,2.12563 1.87667,4.21295 2.12562,6.47262 0.40214,3.63845 0.3064,7.52585 -1.03409,10.92493 -6.53964,16.54539 -17.78054,32.45883 -32.64075,42.17733 -6.15664,4.02145 -14.03676,5.02681 -21.38069,5.34278 -8.37802,0.35427 -18.02949,-0.3064 -24.82766,-4.0023 -6.79816,-3.6959 -9.99617,-10.11107 -14.25699,-15.76982 -19.55189,-25.94791 -51.51283,-82.78437 -51.51283,-82.78437 0,0 -13.89314,-24.55956 -38.89314,-9.67063 -24.99043,14.89851 -9.7185,38.6825 -9.7185,38.6825 z" />
<path
id="path17-4"
d="M 31.064453 246.21289 C 31.027392 247.87588 31 249.541 31 251.21289 C 31 372.84254 129.59301 471.43555 251.22266 471.43555 C 372.8523 471.43555 471.44336 372.84254 471.44336 251.21289 C 471.44336 249.541 471.41792 247.87588 471.38086 246.21289 C 468.72175 365.53195 371.18041 461.43555 251.22266 461.43555 C 131.2649 461.43555 33.723569 365.53195 31.064453 246.21289 z "
style="fill:#000000;fill-opacity:1;stroke-width:9.57487583;opacity:0.3" />
<path
id="path17-5"
d="M 251.22266 30.990234 C 129.59301 30.990234 31 129.58325 31 251.21289 C 31 252.88478 31.027392 254.5499 31.064453 256.21289 C 33.723569 136.89384 131.2649 40.990234 251.22266 40.990234 C 371.18041 40.990234 468.72175 136.89384 471.38086 256.21289 C 471.41792 254.5499 471.44336 252.88478 471.44336 251.21289 C 471.44336 129.58325 372.8523 30.990234 251.22266 30.990234 z "
style="fill:#ffffff;fill-opacity:1;stroke-width:9.57487583;opacity:0.3" />
</svg>

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

48
common/.config/eww/launch_eww Executable file
View File

@@ -0,0 +1,48 @@
#!/bin/bash
## Files and cmd
FILE="$HOME/.cache/eww_launch.xyz"
EWW="/usr/bin/eww"
## Run eww daemon if not running already
if [[ ! `pidof eww` ]]; then
${EWW} daemon
sleep 1
fi
## Open widgets
run_eww() {
${EWW} open-many \
background \
profile \
system \
clock \
music \
github \
reddit \
twitter \
youtube \
apps \
workspaces \
logout \
mail \
sleep \
reboot \
poweroff \
weather_info \
weather_quotes \
roundedc \
roundedd \
roundede \
roundedf \
folders \
}
## Launch or close widgets accordingly
if [[ ! -f "$FILE" ]]; then
touch "$FILE"
run_eww
else
${EWW} close-all
rm "$FILE"
fi

View File

@@ -0,0 +1,28 @@
#!/bin/bash
## Files and cmd
FILE="$HOME/.cache/eww_launch.xyz"
EWW="/usr/bin/eww"
## Run eww daemon if not running already
if [[ ! `pidof eww` ]]; then
${EWW} daemon
sleep 1
fi
## Open widgets
run_eww() {
${EWW} open-many \
roundeda \
roundedb \
calendar
}
## Launch or close widgets accordingly
if [[ ! -f "$FILE" ]]; then
touch "$FILE"
run_eww
else
${EWW} close-all
rm "$FILE"
fi

View File

@@ -0,0 +1,7 @@
#!/bin/python
import imaplib
obj = imaplib.IMAP4_SSL('imap.gmail.com',993)
obj.login('MAIL','PASSWORD') # write your email and password
obj.select()
print(len(obj.search(None, 'UnSeen')[1][0].split()))

View File

@@ -0,0 +1,111 @@
#!/bin/bash
## Get data
# STATUS="$(mpc status)"
# COVER="/tmp/.music_cover.jpg"
# MUSIC_DIR="$HOME/Music"
# DATA = `dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata`
# Playing, Paused or Stopped
# album = `dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata | sed -n '/album/{n;p}' | cut -d '"' -f 2 | head -n 1`
## Get status
get_status() {
status=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus'|egrep -A 1 "string"|cut -b 26-|cut -d '"' -f 1|egrep -v ^$`
if [[ "$(pidof spotify || echo 1)" != "1" ]]; then
if [[ "$status" == "Playing" ]]; then
echo ""
else
echo "喇"
fi
else
echo ""
fi
}
## Get song
get_song() {
title=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata | sed -n '/title/{n;p}' | cut -d '"' -f 2`
if [[ "$(pidof spotify || echo 1)" != "1" ]]; then
echo "$title"
else
echo "Offline"
fi
}
## Get artist
get_artist() {
artist=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata | sed -n '/artist/{n;n;p}' | cut -d '"' -f 2`
if [[ "$(pidof spotify || echo 1)" != "1" ]]; then
echo "$artist"
else
echo "Offline"
fi
}
## Get time
get_time() {
time=`mpc status | grep "%)" | awk '{print $4}' | tr -d '(%)'`
if [[ -z "$time" ]]; then
echo "0"
else
echo "$time"
fi
}
get_ctime() {
ctime=`mpc status | grep "#" | awk '{print $3}' | sed 's|/.*||g'`
if [[ -z "$ctime" ]]; then
echo "0:00"
else
echo "$ctime"
fi
}
get_ttime() {
ttime=`mpc -f %time% current`
if [[ -z "$ttime" ]]; then
echo "0:00"
else
echo "$ttime"
fi
}
## Get cover
get_cover() {
art=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata | sed -n '/artUrl/{n;p}' | cut -d '"' -f 2`
if [[ "$(pidof spotify || echo 1)" != "1" ]]; then
echo "$art"
else
echo "images/spotify.jpg"
fi
}
# Toggle
toggle() {
if [[ "$(pidof spotify || echo 1)" != "1" ]]; then
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
fi
}
## Execute accordingly
if [[ "$1" == "--song" ]]; then
get_song
elif [[ "$1" == "--artist" ]]; then
get_artist
elif [[ "$1" == "--status" ]]; then
get_status
elif [[ "$1" == "--time" ]]; then
get_time
elif [[ "$1" == "--ctime" ]]; then
get_ctime
elif [[ "$1" == "--ttime" ]]; then
get_ttime
elif [[ "$1" == "--cover" ]]; then
get_cover
elif [[ "$1" == "--toggle" ]]; then
toggle
elif [[ "$1" == "--next" ]]; then
{ dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next; get_cover; }
elif [[ "$1" == "--prev" ]]; then
{ dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous; get_cover; }
fi

View File

@@ -0,0 +1,34 @@
#!/bin/bash
## Open Applications
FILE="$HOME/.cache/eww_launch.xyz"
EWW="/usr/bin/eww"
if [[ "$1" == "--vd" ]]; then
${EWW} close-all && rm -rf "$FILE" && vivaldi-stable &
elif [[ "$1" == "--tg" ]]; then
${EWW} close-all && rm -rf "$FILE" && telegram-desktop &
elif [[ "$1" == "--dc" ]]; then
${EWW} close-all && rm -rf "$FILE" && discord &
elif [[ "$1" == "--tr" ]]; then
${EWW} close-all && rm -rf "$FILE" && urxvt &
elif [[ "$1" == "--fm" ]]; then
${EWW} close-all && rm -rf "$FILE" && thunar ~ &
elif [[ "$1" == "--nv" ]]; then
${EWW} close-all && rm -rf "$FILE" && urxvt -e sh -c "nvim" &
elif [[ "$1" == "--cd" ]]; then
${EWW} close-all && rm -rf "$FILE" && code &
elif [[ "$1" == "--kr" ]]; then
${EWW} close-all && rm -rf "$FILE" && krita &
elif [[ "$1" == "--vb" ]]; then
${EWW} close-all && rm -rf "$FILE" && virtualbox &
fi

View File

@@ -0,0 +1,25 @@
#!/bin/bash
## Open folders in thunar
FILE="$HOME/.cache/eww_launch.xyz"
EWW="/usr/bin/eww"
if [[ "$1" == "--dl" ]]; then
${EWW} close-all && rm -rf "$FILE" && thunar ~/Downloads &
elif [[ "$1" == "--docs" ]]; then
${EWW} close-all && rm -rf "$FILE" && thunar ~/Documents &
elif [[ "$1" == "--music" ]]; then
${EWW} close-all && rm -rf "$FILE" && thunar ~/Music &
elif [[ "$1" == "--pics" ]]; then
${EWW} close-all && rm -rf "$FILE" && thunar ~/Pictures &
elif [[ "$1" == "--cfg" ]]; then
${EWW} close-all && rm -rf "$FILE" && thunar ~/.config &
elif [[ "$1" == "--local" ]]; then
${EWW} close-all && rm -rf "$FILE" && thunar ~/.local/share &
fi

View File

@@ -0,0 +1,23 @@
#!/bin/bash
## Open links in firefox
FILE="$HOME/.cache/eww_launch.xyz"
EWW="/usr/bin/eww"
cmd="xdg-open"
if [[ "$1" == "--mail" ]]; then
${EWW} close-all && rm -rf "$FILE" && $cmd "https://mail.google.com"
elif [[ "$1" == "--gh" ]]; then
${EWW} close-all && rm -rf "$FILE" && $cmd "https://github.com"
elif [[ "$1" == "--rd" ]]; then
${EWW} close-all && rm -rf "$FILE" && $cmd "https://reddit.com"
elif [[ "$1" == "--tw" ]]; then
${EWW} close-all && rm -rf "$FILE" && $cmd "https://twitter.com"
elif [[ "$1" == "--yt" ]]; then
${EWW} close-all && rm -rf "$FILE" && $cmd "https://youtube.com"
fi

View File

@@ -0,0 +1,78 @@
#!/bin/bash
## Files and Data
PREV_TOTAL=0
PREV_IDLE=0
cpuFile="/tmp/.cpu_usage"
## Get CPU usage
get_cpu() {
if [[ -f "${cpuFile}" ]]; then
fileCont=$(cat "${cpuFile}")
PREV_TOTAL=$(echo "${fileCont}" | head -n 1)
PREV_IDLE=$(echo "${fileCont}" | tail -n 1)
fi
CPU=(`cat /proc/stat | grep '^cpu '`) # Get the total CPU statistics.
unset CPU[0] # Discard the "cpu" prefix.
IDLE=${CPU[4]} # Get the idle CPU time.
# Calculate the total CPU time.
TOTAL=0
for VALUE in "${CPU[@]:0:4}"; do
let "TOTAL=$TOTAL+$VALUE"
done
if [[ "${PREV_TOTAL}" != "" ]] && [[ "${PREV_IDLE}" != "" ]]; then
# Calculate the CPU usage since we last checked.
let "DIFF_IDLE=$IDLE-$PREV_IDLE"
let "DIFF_TOTAL=$TOTAL-$PREV_TOTAL"
let "DIFF_USAGE=(1000*($DIFF_TOTAL-$DIFF_IDLE)/$DIFF_TOTAL+5)/10"
echo "${DIFF_USAGE}"
else
echo "?"
fi
# Remember the total and idle CPU times for the next check.
echo "${TOTAL}" > "${cpuFile}"
echo "${IDLE}" >> "${cpuFile}"
}
## Get Used memory
get_mem() {
printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')
}
## Get Brightness
get_blight() {
CARD=`ls /sys/class/backlight | head -n 1`
if [[ "$CARD" == *"intel_"* ]]; then
BNESS=`xbacklight -get`
LIGHT=${BNESS%.*}
else
BNESS=`blight -d $CARD get brightness`
PERC="$(($BNESS*100/255))"
LIGHT=${PERC%.*}
fi
echo "$LIGHT"
}
## Get Battery
get_battery() {
BAT=`ls /sys/class/power_supply | grep BAT | head -n 1`
cat /sys/class/power_supply/${BAT}/capacity
}
## Execute accordingly
if [[ "$1" == "--cpu" ]]; then
get_cpu
elif [[ "$1" == "--mem" ]]; then
get_mem
elif [[ "$1" == "--blight" ]]; then
get_blight
elif [[ "$1" == "--bat" ]]; then
get_battery
fi

View File

@@ -0,0 +1,147 @@
#!/bin/bash
## Collect data
cache_dir="$HOME/.cache/eww/weather"
cache_weather_stat=${cache_dir}/weather-stat
cache_weather_degree=${cache_dir}/weather-degree
cache_weather_quote=${cache_dir}/weather-quote
cache_weather_hex=${cache_dir}/weather-hex
cache_weather_icon=${cache_dir}/weather-icon
## Weather data
KEY="API_KEY"
ID="CITY_ID"
UNIT="metric" # Available options : 'metric' or 'imperial'
## Make cache dir
if [[ ! -d "$cache_dir" ]]; then
mkdir -p ${cache_dir}
fi
## Get data
get_weather_data() {
weather=`curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID=$KEY&id=$ID&units=$UNIT"`
echo ${weather}
if [ ! -z "$weather" ]; then
weather_temp=`echo "$weather" | jq ".main.temp" | cut -d "." -f 1`
weather_icon_code=`echo "$weather" | jq -r ".weather[].icon" | head -1`
weather_description=`echo "$weather" | jq -r ".weather[].description" | head -1 | sed -e "s/\b\(.\)/\u\1/g"`
#Big long if statement of doom
if [ "$weather_icon_code" == "50d" ]; then
weather_icon=" "
weather_quote="Forecast says it's misty \nMake sure you don't get lost on your way..."
weather_hex="#84afdb"
elif [ "$weather_icon_code" == "50n" ]; then
weather_icon=" "
weather_quote="Forecast says it's a misty night \nDon't go anywhere tonight or you might get lost..."
weather_hex="#84afdb"
elif [ "$weather_icon_code" == "01d" ]; then
weather_icon=" "
weather_quote="It's a sunny day, gonna be fun! \nDon't go wandering all by yourself though..."
weather_hex="#ffd86b"
elif [ "$weather_icon_code" == "01n" ]; then
weather_icon=" "
weather_quote="It's a clear night \nYou might want to take a evening stroll to relax..."
weather_hex="#fcdcf6"
elif [ "$weather_icon_code" == "02d" ]; then
weather_icon=" "
weather_quote="It's cloudy, sort of gloomy \nYou'd better get a book to read..."
weather_hex="#adadff"
elif [ "$weather_icon_code" == "02n" ]; then
weather_icon=" "
weather_quote="It's a cloudy night \nHow about some hot chocolate and a warm bed?"
weather_hex="#adadff"
elif [ "$weather_icon_code" == "03d" ]; then
weather_icon=" "
weather_quote="It's cloudy, sort of gloomy \nYou'd better get a book to read..."
weather_hex="#adadff"
elif [ "$weather_icon_code" == "03n" ]; then
weather_icon=" "
weather_quote="It's a cloudy night \nHow about some hot chocolate and a warm bed?"
weather_hex="#adadff"
elif [ "$weather_icon_code" == "04d" ]; then
weather_icon=" "
weather_quote="It's cloudy, sort of gloomy \nYou'd better get a book to read..."
weather_hex="#adadff"
elif [ "$weather_icon_code" == "04n" ]; then
weather_icon=" "
weather_quote="It's a cloudy night \nHow about some hot chocolate and a warm bed?"
weather_hex="#adadff"
elif [ "$weather_icon_code" == "09d" ]; then
weather_icon=" "
weather_quote="It's rainy, it's a great day! \nGet some ramen and watch as the rain falls..."
weather_hex="#6b95ff"
elif [ "$weather_icon_code" == "09n" ]; then
weather_icon=" "
weather_quote=" It's gonna rain tonight it seems \nMake sure your clothes aren't still outside..."
weather_hex="#6b95ff"
elif [ "$weather_icon_code" == "10d" ]; then
weather_icon=" "
weather_quote="It's rainy, it's a great day! \nGet some ramen and watch as the rain falls..."
weather_hex="#6b95ff"
elif [ "$weather_icon_code" == "10n" ]; then
weather_icon=" "
weather_quote=" It's gonna rain tonight it seems \nMake sure your clothes aren't still outside..."
weather_hex="#6b95ff"
elif [ "$weather_icon_code" == "11d" ]; then
weather_icon=""
weather_quote="There's storm for forecast today \nMake sure you don't get blown away..."
weather_hex="#ffeb57"
elif [ "$weather_icon_code" == "11n" ]; then
weather_icon=""
weather_quote="There's gonna be storms tonight \nMake sure you're warm in bed and the windows are shut..."
weather_hex="#ffeb57"
elif [ "$weather_icon_code" == "13d" ]; then
weather_icon=" "
weather_quote="It's gonna snow today \nYou'd better wear thick clothes and make a snowman as well!"
weather_hex="#e3e6fc"
elif [ "$weather_icon_code" == "13n" ]; then
weather_icon=" "
weather_quote="It's gonna snow tonight \nMake sure you get up early tomorrow to see the sights..."
weather_hex="#e3e6fc"
elif [ "$weather_icon_code" == "40d" ]; then
weather_icon=" "
weather_quote="Forecast says it's misty \nMake sure you don't get lost on your way..."
weather_hex="#84afdb"
elif [ "$weather_icon_code" == "40n" ]; then
weather_icon=" "
weather_quote="Forecast says it's a misty night \nDon't go anywhere tonight or you might get lost..."
weather_hex="#84afdb"
else
weather_icon=" "
weather_quote="Sort of odd, I don't know what to forecast \nMake sure you have a good time!"
weather_hex="#adadff"
fi
echo "$weather_icon" > ${cache_weather_icon}
echo "$weather_description" > ${cache_weather_stat}
echo "$weather_temp""°C" > ${cache_weather_degree}
echo -e "$weather_quote" > ${cache_weather_quote}
echo "$weather_hex" > ${cache_weather_hex}
else
echo "Weather Unavailable" > ${cache_weather_stat}
echo " " > ${cache_weather_icon}
echo -e "Ah well, no weather huh? \nEven if there's no weather, it's gonna be a great day!" > ${cache_weather_quote}
echo "-" > ${cache_weather_degree}
echo "#adadff" > ${tcache_weather_hex}
fi
}
## Execute
if [[ "$1" == "--getdata" ]]; then
get_weather_data
elif [[ "$1" == "--icon" ]]; then
cat ${cache_weather_icon}
elif [[ "$1" == "--temp" ]]; then
cat ${cache_weather_degree}
elif [[ "$1" == "--hex" ]]; then
cat ${cache_weather_hex}
elif [[ "$1" == "--stat" ]]; then
cat ${cache_weather_stat}
elif [[ "$1" == "--quote" ]]; then
cat ${cache_weather_quote} | head -n1
elif [[ "$1" == "--quote2" ]]; then
cat ${cache_weather_quote} | tail -n1
fi

View File

@@ -47,9 +47,9 @@ exec --no-startup-id alternating_layouts.py
font xft:DejaVu Sans Mono 12
bindsym $mod+Return exec wezterm
bindsym $mod+e exec --no-startup-id $HOME/.config/eww/launch_eww
bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id rofi -show drun
bindsym $mod+z exec --no-startup-id morc_menu
bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
bindsym Print exec flameshot gui
@@ -70,13 +70,12 @@ focus_follows_mouse yes
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
bindsym $mod+b workspace back_and_forth
#bindsym $mod+b workspace back_and_forth
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
bindsym $mod+q split toggle
bindsym $mod+f fullscreen toggle
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+Shift+s sticky toggle
@@ -131,7 +130,7 @@ bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
# resize focused window
bindsym $mod+Shift+h resize shrink width 5 px or 5 pp9t
bindsym $mod+Shift+h resize shrink width 5 px or 5 ppt
bindsym $mod+Shift+j resize grow height 5 px or 5 ppt
bindsym $mod+Shift+k resize shrink height 5 px or 5 ppt
bindsym $mod+Shift+l resize grow width 5 px or 5 ppt
@@ -182,16 +181,17 @@ bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# Set shut down, restart and locking features
# to set a lock screen run betterlockscreen -u path/to/image
exec_always --no-startup-id xss-lock -- betterlockscreen -l blur --display 0 | while read line; do echo "[$(date '+%D %H:%m:%S')] MESSAGE: ${line}" >> ~/.cache/lock_logs.log; done
bindsym $mod+0 mode "$mode_system"
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
set $mode_system (l)ock, (e)xit, (s)uspend, (r)eboot, (Shift+s)hutdown
mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
bindsym l exec --no-startup-id loginctl lock-session, mode "default"
bindsym s exec --no-startup-id loginctl lock-session && systemctl suspend, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
@@ -203,17 +203,19 @@ exec --no-startup-id nitrogen --restore
exec --no-startup-id nm-applet
exec --no-startup-id xfce4-power-manager
exec --no-startup-id clipit
exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer 600 'blurlock' ''
exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer 600 'loginctl lock-session' ''
exec_always --no-startup-id ff-theme-util
exec_always --no-startup-id fix_xcursor
exec --no-startup-id volumeicon
exec --no-startup-id mpris-proxy
exec --no-startup-id pa-applet
exec_always killall -q dunst ; dunst -config ~/.config/dunst/dunstrc
exec_always killall -q picom ; picom -b --config $HOME/.config/picom.conf
exec_always killall -q polybar; $HOME/.config/polybar/launch.sh
# hide/unhide i3status bar
bindsym $mod+m bar mode toggle
bindsym $mod+b bar mode toggle
gaps inner 10
gaps outer -1
@@ -230,24 +232,24 @@ for_window [class="^.*"] border pixel 0
bindsym $mod+Shift+n gaps inner all set 0; gaps outer all set 0
bindsym $mod+n gaps inner all set 7; gaps outer all set -1
bar {
status_command SCRIPT_DIR=~/.config/i3blocks/scripts i3blocks -c ~/.config/i3blocks/config
position bottom
separator_symbol "│"
#bar {
#status_command SCRIPT_DIR=~/.config/i3blocks/scripts i3blocks -c ~/.config/i3blocks/config
#position bottom
#separator_symbol "│"
tray_output primary
tray_padding 4
#tray_output primary
#tray_padding 4
font pango:DejaVu Sans Mono Nerd Font 12
#font pango:DejaVu Sans Mono Nerd Font 12
colors {
background $base
statusline $text
separator $rosewater
# border bg text
focused_workspace $pink $pink $base
inactive_workspace $surface0 $surface0 $overlay0
urgent_workspace $red $red $base
}
}
#colors {
#background $base
#statusline $text
#separator $rosewater
## border bg text
#focused_workspace $pink $pink $base
#inactive_workspace $surface0 $surface0 $overlay0
#urgent_workspace $red $red $base
#}
#}

View File

@@ -21,7 +21,7 @@ color=#f4dbd6
[cpu_usage]
label=
command=$SCRIPT_DIR/cpu_usage/cpu_usage
interval=10
interval=1
#color=#8bd5ca
#T_WARN=50
#T_CRIT=80
@@ -42,14 +42,14 @@ color=#eed49f
[baterkos]
label=
command=$SCRIPT_DIR/battery/battery
interval=10
interval=3
color=#b7bdf8
[volume]
label=󰕾
command=$SCRIPT_DIR/volume/volume
#label=VOL
interval=5
interval=1
signal=10
markup=pango
color=#f5bde6

View File

@@ -24,6 +24,7 @@ rounded-corners-exclude = [
"class_g = 'i3-frame'",
"class_g = 'Polybar'",
"class_g = 'i3bar'",
"class_g = 'Dunst'",
];
round-borders = 20;
@@ -32,6 +33,7 @@ round-borders-exclude = [
"class_g = 'i3-frame'",
"class_g = 'Polybar'",
"class_g = 'i3bar'",
"class_g = 'Dunst'",
];
#################################

View File

@@ -1,24 +1,40 @@
[colors]
; background = #1e222a
background = #1A1826
; foreground = #c8ccd4
foreground = #C3BAC6
;-------------------------
; Catppuccin Macchiato Palette
; Maintainer: justTOBBI
;--------------------------
[colors]
base = #24273a
mantle = #1e2030
crust = #181926
text = #cad3f5
subtext0 = #a5adcb
subtext1 = #b8c0e0
surface0 = #363a4f
surface1 = #494d64
surface2 = #5b6078
overlay0 = #6e738d
overlay1 = #8087a2
overlay2 = #939ab7
blue = #8aadf4
lavender = #b7bdf8
sapphire = #7dc4e4
sky = #91d7e3
teal = #8bd5ca
green = #a6da95
yellow = #eed49f
peach = #f5a97f
maroon = #ee99a0
red = #ed8796
mauve = #c6a0f6
pink = #f5bde6
flamingo = #f0c6c6
rosewater = #f4dbd6
transparent = #FF00000
color0 = #282c34
color1 = #e06c75
color2 = #98c379
color3 = #e5c07b
color4 = #61afef
color5 = #c678dd
color6 = #56b6c2
color7 = #abb2bf
color8 = #545862
color9 = #e06c75
color10 = #98c379
color11 = #e5c07b
color12 = #61afef
color13 = #c678dd
color14 = #56b6c2
color15 = #c8ccd4
dark-light = #272A2B
active-light = #313435

View File

@@ -1,10 +1,4 @@
# font-0 = CaskaydiaCove Nerd Font:style=Regular:pixelsize=11:antialias=true;2.5
font-0 = DejaVu Sans Mono Nerd Font:style=Bold:pixelsize=14;3
font-1 = DejaVu Sans Mono Nerd Font:size=14;4
font-2 = Material Design Icons:style=Regular:size=12;3
font-6 = unifont:fontformat=truetype:size=11;3
font-4 = DejaVu Sans Mono Nerd Font:size=14
font-5 = DejaVu Sans Mono:size=11
font-3 = Weather Icons:size=12;1
font-7 = Material Icons:size=12;0
# font-4 = Material Design Icons:style=Regular:pixelsize=11:antialias=true;2.5
font-0 = "DejaVuSM Nerd Font:style=Regular:size=14;3"
font-1 = "DejaVuSM Nerd Font:style=Bold:size=14;3"
font-2 = "DejaVuSM Nerd Font:style=Oblique:size=14;3"
font-3 = "DejaVuSM Nerd Font:style=Bold Oblique:size=14;5"

View File

@@ -7,8 +7,8 @@ width = 100%
height = 30
bottom = true
background = ${colors.background}
foreground = ${colors.foreground}
background = ${colors.base}
foreground = ${colors.text}
padding-right = 1
padding-left = 1
@@ -20,9 +20,9 @@ border-top-color = ${colors.background}
border-bottom-color = ${colors.background}
modules-left = round-left i3 round-right empty-space spotify
modules-center = round-left time round-right
modules-right = empty-space round-left network round-right empty-space round-left backlight colored-empty-space audio round-right empty-space round-left cpu temperature colored-empty-space memory round-right empty-space round-left battery round-right
modules-left = i3 empty-space title
modules-center = time
modules-right = empty-space spotify empty-space wired-network network speedtest empty-space backlight colored-empty-space audio empty-space cpu temperature colored-empty-space memory empty-space battery
cursor-click = pointer
cursor-scroll = ns-resize

View File

@@ -4,10 +4,26 @@ pin-workspaces = true
enable-click = true
show-urgent = true
format-background = #1E1E2E
format = " <label-state> <label-mode> "
label-active-foreground = ${colors.foreground}
label-urgent-foreground = ${colors.foreground}
label-focused-background = ${colors.pink}
label-focused-foreground = ${colors.base}
label-mode-background = ${colors.pink}
label-mode-foreground = ${colors.base}
label-urgent-foreground = ${colors.red}
# =======================================
[module/title]
type = internal/xwindow
format = <label>
label = %title%
label-maxlen = 50
label-padding = 1
label-foreground = ${colors.rosewater}
# =======================================
[module/empty-space]
type = custom/text
@@ -18,76 +34,58 @@ content = " "
[module/colored-empty-space]
type = custom/text
content = " "
content-background = #1e1e2e
# =======================================
[module/round-left]
type = custom/text
content = %{T3}%{T-}
content-foreground = #1E1E2E
# =======================================
[module/round-right]
type = custom/text
content = %{T3}%{T-}
content-foreground = #1E1E2E
# =======================================
[module/time]
type = internal/date
interval = 60
interval = 1
time = %H:%M:%S
date = %A, %d %b %y
format = <label>
format-background = #1E1E2E
format-foreground = #cba6f7
format-foreground = ${colors.pink}
format-prefix = " "
date = %H:%M
time-alt = %a, %b %d%{F-}
label = %{A3:st -e tty-clock -cbt -C 4:} %date%%time% %{A}
label = %{A3:st -e tty-clock -cbt -C 4:} %date% %time% %{A}
# =======================================
[module/audio]
type = internal/pulseaudio
format-volume = %{A3:pavucontrol-qt:} <ramp-volume> <label-volume> %{A}
label-muted = %{A3:pavucontrol-qt:} 0% %{A}
label-muted = %{A3:pavucontrol-qt:} 󰖁 0% %{A}
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
label-volume-foreground = #89DCEB
format-volume-background = #1e1e2e
format-volume-foreground = #89DCEB
format-muted-foreground = #F28FAD
format-muted-background = #1e1e2e
ramp-volume-2 =
label-volume-foreground = ${colors.peach}
format-volume-foreground = ${colors.peach}
format-muted-foreground = ${colors.red}
format-muted-padding = 1
# =======================================
[module/cpu]
type = internal/cpu
type = custom/script
exec = $HOME/.config/polybar/scripts/cpu.sh
interval = 0.5
format-prefix ="  "
format = <label>
label = %{A1:st -e btop:} %percentage%% %{A}
format-background = #1e1e2e
format-foreground = #F8BD96
format-prefix-foreground = #F8BD96
tail = true
format = <label>
label = "%output% "
format-prefix = " "
format-prefix-foreground = ${colors.sapphire}
format-foreground = ${colors.sapphire}
# =======================================
[module/temperature]
type = internal/temperature
type = custom/script
exec = sensors | grep 'Package id 0:\|Tdie' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '[0-9]*.[0-9]*°C' -o
interval = 0.5
hwmon-path = /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon4/temp1_input
label = " %temperature-c%"
format = <label>
format-background = #1e1e2e
format-foreground = #F8BD96
format-prefix = " "
format-prefix-foreground = ${colors.sapphire}
format-foreground = ${colors.sapphire}
# =======================================
@@ -96,28 +94,48 @@ type = custom/script
exec = free -m | sed -n 's/^Mem:\s\+[0-9]\+\s\+\([0-9]\+\)\s.\+/\1/p'
interval = 0.5
format = <label>
format-prefix = " "
label = %{A1:st -e btop:} %output% MB %{A}
# label-padding = 1
format-prefix-foreground = #F8BD96
format-label-foreground = #F8BD96
format-background = #1e1e2e
format-foreground = #F8BD96
format-prefix = "󰍛 "
label = %output% MB
format-prefix-foreground = ${colors.maroon}
format-label-foreground = ${colors.maroon}
format-foreground = ${colors.maroon}
# =======================================
[module/network]
type = internal/network
interface = wlp9s0
interface-type = wireless
interval = 1
format-connected = <label-connected>
label-connected = %{A1:nm-connection-editor:} 直 %{A} %essid%
label-connected-foreground = #B5E8E0
label-connected-background = #1e1e2e
format-connected = <label-connected>
label-connected = %{A1:nm-connection-editor:} 直 %{A} %essid%
;label-connected-foreground = #B5E8E0
;label-connected-background = #1e1e2e
label-disconnected = %{A1:nm-connection-editor:} 睊 %{A}
label-disconnected-background = #1e1e2e
label-disconnected-foreground = #F28FAD
;label-disconnected-background = #1e1e2e
;label-disconnected-foreground = #F28FAD
# =======================================
[module/wired-network]
type = internal/network
interface-type = wired
interval = 1
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-connected = "  "
label-disconnected = "  "
label-connected-foreground = #B5E8E0
;label-disconnected-foreground = #F28FAD
;format-connected-background = #1e1e2e
;format-disconnected-background = 1e1e2e
# =======================================
[module/speedtest]
type = custom/script
click-left = "~/.config/polybar/polybar-speedtest"
format-prefix =
# =======================================
@@ -134,7 +152,7 @@ label-charging = %percentage% %
format-charging-foreground = ${colors.color4}
format-charging-background = #1e1e2e
format-discharging = <ramp-capacity> <label-discharging>
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
format-discharging-foreground = ${colors.color4}
format-discharging-background = #1e1e2e
@@ -168,64 +186,19 @@ animation-charging-framerate = 750
format-charging-padding = 1
format-discharging-padding = 1
# =======================================
[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
interval = 2
# 1: left click -> play/pause
# 3: right click -> open ncmpcpp
# 4: scroll up -> next song
# 5: scroll down -> prev song
label-song = %{A1:mpc toggle:}%{A3:st -e ncmpcpp:}%{A4:mpc next:}%{A5:mpc prev:} %artist% - %title% %{A}%{A}%{A}%{A}
format-playing = " <label-song>"
format-paused = " <label-song>"
format-stopped = ""
format-playing-foreground = #989cff
format-paused-foreground = ${colors.foreground}
# ========================================
[module/spotify]
type = custom/script
interval = 1
format-prefix = " "
format-prefix-foreground = #ABE9B3
;format-foreground = #ABE9B3
format-prefix = "󰓇 "
format-prefix-foreground = ${colors.green}
format-foreground = ${colors.green}
format = <label>
exec = python ~/.config/polybar/spotify-status.py -f '{song} | {artist}'
;format-underline = #ABE9B3
;control players (optional)
click-left = playerctl --player=spotify play-pause
click-right = playerctl --player=spotify next
click-middle = playerctl --player=spotify previous
# ========================================
[module/wired-network]
type = internal/network
interface = enp0s31f6
interface-type = wired
interval = 1
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-connected = "  "
label-disconnected = "  "
label-connected-foreground = #B5E8E0
label-disconnected-foreground = #F28FAD
format-connected-background = #1e1e2e
format-disconnected-background = 1e1e2e
# ========================================
[module/speedtest]
type = custom/script
click-left = "~/.config/polybar/polybar-speedtest"
format-prefix =
format-prefix-foreground = {colors.foreground}
click-left = playerctl --player=spotify play-pause
click-right = playerctl --player=spotify next
click-middle = playerctl --player=spotify previous
# ========================================
@@ -236,31 +209,8 @@ use-actual-brightness = true
enable-scroll = false
format =" <ramp> <label>"
label = "%percentage%%"
ramp-foreground = #89DCEB
label-foreground = #89DCEB
format-background = #1e1e2e
; only applies if <ramp> is used
ramp-0 = "  "
ramp-1 = "  "
# =========================================
[module/weather]
type = custom/script
exec = sudo sh ~/.config/polybar/openweathermap-simple
interval = 600
format-background = #1e1e2e
format-foreground = #cba6f7
# =========================================
[module/update]
type = custom/script
exec = sh ~/.config/polybar/pacman-aurhelper.sh
format = <label>
format-prefix = "ﮮ "
interval = 600
format-background = #1e1e2e
format-foreground = #cba6f7
click-left = exec alacritty -e sudo pacman -Syu

View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Define array
ramp_arr=(▁ ▂ ▃ ▄ ▅ ▆ ▇ █)
sar -P ALL 1 1 | grep -E 'Average:\s+[0-9]+' | while read -r line ; do
val=$(echo $line | awk '{cpu_usage=$3} END {printf "%0.2f", cpu_usage}')
idx=`echo "scale=4; $val/14.3" | bc`
intidx=$( printf "%.0f" $idx )
printf "${ramp_arr[$intidx]}"
done
echo