fresh init
This commit is contained in:
1 parent
8dae19c21c
commit
6d648648d6
26 files changed
+1859
No files matched your search
+27
@@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#By: S4NKALP https://github.com/S4NKALP
|
||||||
|
|
||||||
|
FILE="$HOME/.cache/eww.music_player"
|
||||||
|
ewwcfg="$HOME/.config/bspwm/widgets/MusicPlayer"
|
||||||
|
EWW=`which eww`
|
||||||
|
|
||||||
|
if [[ ! `pidof eww` ]]; then
|
||||||
|
${EWW} -c $HOME/.config/bspwm/widgets/MusicPlayer daemon &
|
||||||
|
sleep 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
launch_eww() {
|
||||||
|
${EWW} --config "$ewwcfg" open music
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
## Launch or close widgets accordingly
|
||||||
|
if [[ ! -f "$FILE" ]]; then
|
||||||
|
touch "$FILE"
|
||||||
|
launch_eww
|
||||||
|
else
|
||||||
|
${EWW} --config "$ewwcfg" close music
|
||||||
|
rm "$FILE"
|
||||||
|
fi
|
||||||
|
|
||||||
@@ -0,0 +1,245 @@
|
|||||||
|
*
|
||||||
|
{
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* tooltip */
|
||||||
|
tooltip
|
||||||
|
{
|
||||||
|
background-color: #161320;
|
||||||
|
font-family: UbuntuMono Nerd Font;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* power */
|
||||||
|
|
||||||
|
|
||||||
|
.lock-btn
|
||||||
|
{
|
||||||
|
color: #D9E0EE;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lock-btn:hover
|
||||||
|
{
|
||||||
|
color: #F28FAD;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.power-btn
|
||||||
|
{
|
||||||
|
color: #D9E0EE;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.power-btn:hover
|
||||||
|
{
|
||||||
|
color: #F28FAD;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.restart-btn
|
||||||
|
{
|
||||||
|
color: #D9E0EE;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.restart-btn:hover
|
||||||
|
{
|
||||||
|
color: #F28FAD;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logout-btn
|
||||||
|
{
|
||||||
|
color: #D9E0EE;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logout-btn:hover
|
||||||
|
{
|
||||||
|
color: #F28FAD;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.powermenu
|
||||||
|
{
|
||||||
|
background-color: #1D1F28;
|
||||||
|
border-radius: 8px;
|
||||||
|
//border: 2px solid #2f354b;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* launcher */
|
||||||
|
|
||||||
|
.launchermenu
|
||||||
|
{
|
||||||
|
background-color: #1D1F28;
|
||||||
|
border-radius: 8px;
|
||||||
|
//border: 2px solid #2f354b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.launcher-icon
|
||||||
|
{
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-left: 0px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.face {
|
||||||
|
background-size: 130px;
|
||||||
|
min-height: 130px;
|
||||||
|
min-width: 130px;
|
||||||
|
margin: 13px 0px 11px 0px;
|
||||||
|
border-radius: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.launcher-pfp-label
|
||||||
|
{
|
||||||
|
font-family: Inconsolata Semi Condensed Medium;
|
||||||
|
font-size: 20px;
|
||||||
|
margin-left: 0px;
|
||||||
|
margin-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.launcher-pfp-label2
|
||||||
|
{
|
||||||
|
font-family: Inconsolata Semi Condensed Medium;
|
||||||
|
font-size: 25px;
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.launcher-btn
|
||||||
|
{
|
||||||
|
color: #D9E0EE;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 18px;
|
||||||
|
margin: 20px 0px 20px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.launcher-btn:hover
|
||||||
|
{
|
||||||
|
color: #F28FAD;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 18px;
|
||||||
|
margin: 20px 0px 20px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Calendar */
|
||||||
|
|
||||||
|
.cal-box {
|
||||||
|
background-color: #1D1F28;
|
||||||
|
border-radius: 8px;
|
||||||
|
//border: 2px solid #2f354b;
|
||||||
|
font-family: JetBrainsMonoMedium Nerd Font;
|
||||||
|
font-size: .9em;
|
||||||
|
|
||||||
|
.cal-inner-box {
|
||||||
|
padding: 1rem 1rem .2rem;
|
||||||
|
|
||||||
|
.cal {
|
||||||
|
&.highlight {
|
||||||
|
padding: 10rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
padding: .8rem .25rem 0rem;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
calendar:selected {
|
||||||
|
color: #C574DD;
|
||||||
|
}
|
||||||
|
|
||||||
|
calendar.header {
|
||||||
|
color: #D9E0EE;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
calendar.button {
|
||||||
|
color: #C574DD;
|
||||||
|
}
|
||||||
|
|
||||||
|
calendar.highlight {
|
||||||
|
color: #C574DD;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
calendar:indeterminate {
|
||||||
|
color: #8C8C8C;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Music player */
|
||||||
|
|
||||||
|
.music-player{
|
||||||
|
background-color: #1D1F28;
|
||||||
|
padding: 0 1.5rem 1rem 1.5rem;
|
||||||
|
border-radius: 12px;
|
||||||
|
margin: .5rem;
|
||||||
|
}
|
||||||
|
.album_art {
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
border-radius: 12px;
|
||||||
|
margin: 2rem 1rem 1.5rem 1rem;
|
||||||
|
padding: 7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artist {
|
||||||
|
font-family: Cartograph CF;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #FDFDFD;
|
||||||
|
font-size : 13px;
|
||||||
|
}
|
||||||
|
.song{
|
||||||
|
font-family: Cartograph CF;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 15px;
|
||||||
|
color: #FDFDFD;
|
||||||
|
margin-top: -5px;
|
||||||
|
}
|
||||||
|
.btn_prev, .btn_play, .btn_next {
|
||||||
|
font-family: JetBrainsMono Nerd Font;
|
||||||
|
}
|
||||||
|
.btn_prev {
|
||||||
|
color: #FDFDFD;
|
||||||
|
font-size : 2.6em;
|
||||||
|
}
|
||||||
|
.btn_play {
|
||||||
|
color: #FDFDFD;
|
||||||
|
font-size : 2.6em;
|
||||||
|
font-weight : bold;
|
||||||
|
}
|
||||||
|
.btn_next {
|
||||||
|
color: #FDFDFD;
|
||||||
|
font-size : 2.6em;
|
||||||
|
}
|
||||||
|
.metric-player scale trough highlight {
|
||||||
|
all: unset;
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: #C574DD;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-player scale trough {
|
||||||
|
all: unset;
|
||||||
|
background-color: #1D1F28;
|
||||||
|
border:2px solid #454545;
|
||||||
|
border-radius: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-player scale trough {
|
||||||
|
min-width: 200px;
|
||||||
|
min-height: 10px;
|
||||||
|
margin: .5rem 1rem 0 1rem;
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
(defvar eww "/usr/bin/eww -c $HOME/.config/bspwm/widgets/MusicPlayer")
|
||||||
|
|
||||||
|
;; Music Variables
|
||||||
|
(defpoll art :interval "0s" "../../scripts/MediaControl coverloc")
|
||||||
|
(defpoll title :interval "0s" "../../scripts/MediaControl title")
|
||||||
|
(defpoll artist :interval "0s" "../../scripts/MediaControl artist")
|
||||||
|
(defpoll playpause :interval "0s" "../../scripts/MediaControl statusicon")
|
||||||
|
(defpoll songtime :interval "0s" "../../scripts/MediaControl percent")
|
||||||
|
|
||||||
|
|
||||||
|
;; Music Widgets
|
||||||
|
(defwidget music []
|
||||||
|
(box :class "music-player"
|
||||||
|
:orientation "v"
|
||||||
|
:space-evenly "false"
|
||||||
|
:halign "center"
|
||||||
|
(box :class "album_art"
|
||||||
|
:style "background-image: url('${art}');")
|
||||||
|
(box :orientation "v"
|
||||||
|
:space-evenly "false"
|
||||||
|
:halign "center"
|
||||||
|
:spacing 10
|
||||||
|
(label :class "artist"
|
||||||
|
:limit-width 15
|
||||||
|
:text artist)
|
||||||
|
(label :class "song"
|
||||||
|
:limit-width 20
|
||||||
|
:text title)
|
||||||
|
(box :orientation "h"
|
||||||
|
:space-evenly "false"
|
||||||
|
:halign "center"
|
||||||
|
:spacing 30
|
||||||
|
(button :class "btn_prev" :onclick "../../scriptsMediaControl --previous" "ﭣ")
|
||||||
|
(button :class "btn_play" :onclick "../../scripts/MediaControl --toggle" playpause)
|
||||||
|
(button :class "btn_next" :onclick "../../scripts/MediaControl --next" "ﭡ"))
|
||||||
|
(box :orientation "h"
|
||||||
|
:class "metric-player"
|
||||||
|
:space-evenly "false"
|
||||||
|
(scale :min 0
|
||||||
|
:max 101
|
||||||
|
:active "false"
|
||||||
|
:value {songtime != "" ? "${songtime}" : "0"}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
;; Music Player ;;
|
||||||
|
(defwindow music
|
||||||
|
:geometry (geometry :x "-150px"
|
||||||
|
:y "-610px"
|
||||||
|
:width "18%"
|
||||||
|
:height "30%"
|
||||||
|
:anchor "bottom right")
|
||||||
|
(music))
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
.line {
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
$bg: #101415;
|
||||||
|
$bgSecondary: #131718;
|
||||||
|
$bgSecondaryAlt: #151a1c;
|
||||||
|
$fg: #C5C8C9;
|
||||||
|
$fgDim: #9fa0a0;
|
||||||
|
$watermelon: #ff4757;
|
||||||
|
|
||||||
|
// Aliases
|
||||||
|
$background: $bg;
|
||||||
|
$backgroundSecondary: $bgSecondary;
|
||||||
|
$backgroundSecondaryAlt: $bgSecondaryAlt;
|
||||||
|
$foreground: $fg;
|
||||||
|
$foregroundDim: $fgDim;
|
||||||
|
|
||||||
|
$red: #ee6a70;
|
||||||
|
$blue: #7ba5dd;
|
||||||
|
$blue-desaturated: #6791c9;
|
||||||
|
$magenta: #cb92f2;
|
||||||
|
$green: #96d6b0;
|
||||||
|
$yellow: #ffb29b;
|
||||||
|
$accent: $blue;
|
||||||
|
$javacafeMagenta: #d7c1ed;
|
||||||
|
$javacafeBlue: #bac8ef;
|
||||||
|
$javacafeCyan: #c7e5d6;
|
||||||
|
|
||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
color: $fg;
|
||||||
|
font-family: "Cartograph CF";
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
background-color: $bgSecondaryAlt;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-family: "DM Sans";
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lock-screen {
|
||||||
|
background-color: #0B0F10;
|
||||||
|
border-radius: 6px;
|
||||||
|
|
||||||
|
.lock-inner {
|
||||||
|
margin-top: 1em;
|
||||||
|
.lock-pfp {
|
||||||
|
background-image: url("../../assets/profile.png");
|
||||||
|
background-size: 100%;
|
||||||
|
border-radius: 100%;
|
||||||
|
|
||||||
|
margin: 2rem 5rem 0rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lock-text {
|
||||||
|
margin: 2.5rem 1rem;
|
||||||
|
padding: 1rem;
|
||||||
|
|
||||||
|
.lock-username {
|
||||||
|
color: $fg;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lock-hostname {
|
||||||
|
color: #6e7071;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: italic;
|
||||||
|
font-family: "Cartograph CF";
|
||||||
|
// margin-bottom: -6rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
(defvar eww "/usr/bin/eww -c $HOME/.config/bspwm/widgets/lockscreen")
|
||||||
|
|
||||||
|
|
||||||
|
(defpoll username :interval "12h"
|
||||||
|
"whoami")
|
||||||
|
(defpoll hostname :interval "12h"
|
||||||
|
"hostname")
|
||||||
|
|
||||||
|
(defwidget lock-screen []
|
||||||
|
(box :class "lock-screen" :orientation "h" :space-evenly "true"
|
||||||
|
(box :class "lock-inner" :orientation "v" :space-evenly "true"
|
||||||
|
(box :class "lock-pfp")
|
||||||
|
(box :class "lock-text" :orientation "v" :space-evenly "false"
|
||||||
|
(box :class "lock-username" "${username}")
|
||||||
|
(box :class "lock-hostname" "@${hostname}")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(defwindow lock-screen
|
||||||
|
:geometry (geometry :x "-150px"
|
||||||
|
:y "5px"
|
||||||
|
:width "255px"
|
||||||
|
:height "270px"
|
||||||
|
:anchor "center")
|
||||||
|
(lock-screen))
|
||||||
+86
@@ -0,0 +1,86 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
LOCK_FILE="$HOME/.cache/eww-lock.lock"
|
||||||
|
|
||||||
|
hide_unhide_windows() {
|
||||||
|
while bspc node any.hidden.window -g hidden=off; do false; done && while bspc node 'any.!hidden.window' -g hidden=on; do :; done
|
||||||
|
}
|
||||||
|
|
||||||
|
lock() {
|
||||||
|
|
||||||
|
# Wait for eww to finish load widget
|
||||||
|
sleep 0.5
|
||||||
|
|
||||||
|
i3lock -n -c 00000000 -t -e --pass-media-keys --pass-power-keys --pass-volume-keys --indicator \
|
||||||
|
--radius 64 --modif-size=9 --modif-pos="w/2:h/2-15" \
|
||||||
|
\
|
||||||
|
--time-str="" \
|
||||||
|
--time-pos="w/2:h/2+35" \
|
||||||
|
--time-color=e5e9f0 \
|
||||||
|
--time-size=14 \
|
||||||
|
--time-font="Sarasa Mono CL Nerd Font" \
|
||||||
|
\
|
||||||
|
--verif-text="" \
|
||||||
|
--verif-color=7ba5dd \
|
||||||
|
--verif-size=10 \
|
||||||
|
--verif-font="Sarasa Mono CL Nerd Font" \
|
||||||
|
\
|
||||||
|
--wrong-text="" \
|
||||||
|
--wrong-color=bf616a \
|
||||||
|
--wrong-size=10 \
|
||||||
|
--wrong-font="Sarasa Mono CL Nerd Font" \
|
||||||
|
\
|
||||||
|
--greeter-text="" \
|
||||||
|
--greeter-color=8fbcbb \
|
||||||
|
--greeter-size=60 \
|
||||||
|
--greeter-font="Sarasa Mono CL Nerd Font" \
|
||||||
|
--greeter-pos="w/2-22:h/2+285" \
|
||||||
|
\
|
||||||
|
--ring-color=81a1c1 \
|
||||||
|
--ringver-color=88c0d0 \
|
||||||
|
--ringwrong-color=bf616a \
|
||||||
|
--ring-width=5 \
|
||||||
|
\
|
||||||
|
--insidever-color=2e3440A8 \
|
||||||
|
--insidewrong-color=2e3440A8 \
|
||||||
|
--inside-color=2e344000 \
|
||||||
|
--ind-pos="w/2-150:h/2-45" \
|
||||||
|
\
|
||||||
|
--noinput-text="" \
|
||||||
|
\
|
||||||
|
--line-uses-inside --keyhl-color=7ba5dd --bshl-color=ee6a70 --separator-color=7ba5dd \
|
||||||
|
--pointer=default
|
||||||
|
}
|
||||||
|
|
||||||
|
run() {
|
||||||
|
$HOME/.config/bspwm/scripts/toggle-polybar
|
||||||
|
hide_unhide_windows
|
||||||
|
eww -c ~/.config/bspwm/widgets/lockscreen open lock-screen
|
||||||
|
lock
|
||||||
|
}
|
||||||
|
|
||||||
|
status=$(playerctl -p %any status || true)
|
||||||
|
if [ "$status" == "Playing" ]; then
|
||||||
|
playerctl pause
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f "$LOCK_FILE" ]]; then
|
||||||
|
if pgrep -x rofi; then
|
||||||
|
killall rofi
|
||||||
|
fi
|
||||||
|
|
||||||
|
touch "$LOCK_FILE"
|
||||||
|
run
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm "$LOCK_FILE"
|
||||||
|
|
||||||
|
# hsetroot -solid "#192022"
|
||||||
|
killall eww
|
||||||
|
sleep 0.2 && hide_unhide_windows
|
||||||
|
$HOME/.config/bspwm/scripts/toggle-polybar
|
||||||
|
|
||||||
|
status2=$(playerctl -p %any status || true)
|
||||||
|
if [ "$status2" == "Paused" ]; then
|
||||||
|
playerctl play
|
||||||
|
fi
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
.notification {
|
||||||
|
font-family: "DM Sans", "Sarasa Mono CL Nerd Font";
|
||||||
|
background-color: $darker-background;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
|
||||||
|
// box-shadow: 4px 3px 8px 1px rgba(0, 0, 0, 0.55);
|
||||||
|
|
||||||
|
.notification-title {
|
||||||
|
// background-color: $background-secondary;
|
||||||
|
background-color: inherit;
|
||||||
|
padding: .95em 0em .75em;
|
||||||
|
font-size: 14px;
|
||||||
|
|
||||||
|
border-radius: 10px 10px 0px 0px;
|
||||||
|
|
||||||
|
.notification-title-text {
|
||||||
|
margin: 0em 0em 0em 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-close {
|
||||||
|
margin: 0em 1em 0em 0em;
|
||||||
|
color: $red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-body {
|
||||||
|
padding: .05em 0em .9em;
|
||||||
|
font-size: 14px;
|
||||||
|
border-radius: 0px 0px 10px 10px;
|
||||||
|
|
||||||
|
.notification-image {
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
border-radius: 8px;
|
||||||
|
min-height: 64px;
|
||||||
|
min-width: 64px;
|
||||||
|
margin-left: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content {
|
||||||
|
margin: .5em 1em 1em;
|
||||||
|
|
||||||
|
.notification-summary {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: .25em 0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-message {
|
||||||
|
font-size: 12px;
|
||||||
|
color: $foreground-secondary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-screenshot-opt, .notification-opt {
|
||||||
|
margin: 0em 1em 1em;
|
||||||
|
border-radius: inherit;
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: $lighter-background;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: .5em;
|
||||||
|
margin: 0em .5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cc-button {
|
||||||
|
font-family: "DM Sans";
|
||||||
|
margin: 1em .5;
|
||||||
|
|
||||||
|
.cc-button-btn {
|
||||||
|
font-family: "Material Icons";
|
||||||
|
padding: .5em;
|
||||||
|
margin: .5em;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 18px;
|
||||||
|
|
||||||
|
.sep-column {
|
||||||
|
font-size: 24px;
|
||||||
|
color: $foreground-tertiary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cc-button-title {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-btn {
|
||||||
|
font-size: 24px;
|
||||||
|
margin: .4em .5em .4em 0em;
|
||||||
|
padding: .0em .6em;
|
||||||
|
background-color: $lighter-background;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
(defwidget notification [title summary body icon ?LC ?reveal_close_icon]
|
||||||
|
(box :class "notification" :orientation "v" :space-evenly "false"
|
||||||
|
(box :class "notification-title"
|
||||||
|
(label :class "notification-title-text" :halign "start" :text title)
|
||||||
|
(revealer :reveal {reveal_close_icon ?: false}
|
||||||
|
(box :halign "end"
|
||||||
|
(button :class "notification-close"
|
||||||
|
:onclick {LC ?: "echo 'Hello, world!'"}
|
||||||
|
"")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
(box :class "notification-body" :space-evenly "false" :orientation "v"
|
||||||
|
(box :space-evenly "false" :orientation "h"
|
||||||
|
(box :class "notification-image" :orientation "h" :valign "center" :style "background-image: url('${icon}')")
|
||||||
|
(box
|
||||||
|
(box :class "notification-content" :orientation "v" :space-evenly "true"
|
||||||
|
(label :class "notification-summary" :halign "start" :valign "start"
|
||||||
|
:limit-width 15
|
||||||
|
:text summary)
|
||||||
|
(label :class "notification-message" :halign "start" :valign "start"
|
||||||
|
:limit-width 45 :wrap true :tooltip body
|
||||||
|
:xalign 0
|
||||||
|
:text body)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
(defwidget cc_button [?title ?icon ?is_active ?has_arrow_if_active ?onclick ?disabled ?tooltip]
|
||||||
|
(box :orientation "v" :space-evenly "false" :class "cc-button" :tooltip {tooltip ?: "Disabled"}
|
||||||
|
(box :orientation "h" :class "cc-button-btn" :style {disabled == true ? "background-color: #101415;" : (is_active == true ? "background-color: #1C2325;" : "background-color: #151a1c;")}
|
||||||
|
(box
|
||||||
|
:orientation "h"
|
||||||
|
:style {disabled == true ? "" : (is_active == true ? "background-color: #96D6B0; margin: 0em .75em 0em .25em; border-radius: 6px;" : "")})
|
||||||
|
(button
|
||||||
|
:class "cc-button-icon"
|
||||||
|
:style {disabled == true ? "color: #6e7071;" : ""}
|
||||||
|
:onclick {onclick ?: "echo 'debugger'"}
|
||||||
|
{icon ?: ""})
|
||||||
|
(box
|
||||||
|
:class "sep-column"
|
||||||
|
:style "min-height: calc(16px + 8px);")
|
||||||
|
(button
|
||||||
|
:visible {has_arrow_if_active == false ? false : (is_active == true ?: false)}
|
||||||
|
:class "cc-button-clicker" :onclick {onclick ?: "echo 'debugger'"}
|
||||||
|
:style {disabled == true ? "color: #6e7071;" : ""} "")
|
||||||
|
)
|
||||||
|
(label :class "cc-button-title" :text {title ?: ""} :style {disabled == true ? "color: #6e7071;" : ""})
|
||||||
|
)
|
||||||
|
)
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
color: $foreground-primary;
|
||||||
|
font-family: "Sarasa Mono CL Nerd Font";
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
background-color: $background-tertiary;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-family: "DM Sans";
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
$darker-background: #0b0f10;
|
||||||
|
$background-primary: #101415;
|
||||||
|
$background-secondary: #151a1c;
|
||||||
|
$background-tertiary: #192022;
|
||||||
|
$lighter-background: #1C2325;
|
||||||
|
|
||||||
|
$foreground-primary: #C5C8C9;
|
||||||
|
$foreground-secondary: #9fa0a0;
|
||||||
|
$foreground-tertiary: #6e7071;
|
||||||
|
|
||||||
|
$red: #ee6a70;
|
||||||
|
$blue: #7ba5dd;
|
||||||
|
$blue-desaturated: #6791c9;
|
||||||
|
$magenta: #cb92f2;
|
||||||
|
$green: #96d6b0;
|
||||||
|
$yellow: #ffb29b;
|
||||||
|
$accent: $blue;
|
||||||
|
|
||||||
|
$javacafeMagenta: #d7c1ed;
|
||||||
|
$javacafeBlue: #bac8ef;
|
||||||
|
$javacafeCyan: #c7e5d6;
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
@import "_variables.scss";
|
||||||
|
@import "_overrides.scss";
|
||||||
|
@import "_modules.scss";
|
||||||
|
|
||||||
|
.notification-center-window {
|
||||||
|
.notification-center-spacer {
|
||||||
|
transition: all 0.8s cubic-bezier(0.455, 0.03, 0.515, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-center-box {
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 1em .75em;
|
||||||
|
|
||||||
|
// background-color: $darker-background;
|
||||||
|
|
||||||
|
min-width: 340px;
|
||||||
|
font-family: "DM Sans";
|
||||||
|
|
||||||
|
background-color: $darker-background;
|
||||||
|
|
||||||
|
.notification-text {
|
||||||
|
margin: 1em 0em .5em;
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-scroller {
|
||||||
|
margin: .75em 0em;
|
||||||
|
min-height: 28em;
|
||||||
|
border-radius: 6px;
|
||||||
|
|
||||||
|
.notification-history {
|
||||||
|
.eon {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification {
|
||||||
|
margin: .75em 1em 1em;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
background-color: $background-secondary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
calendar {
|
||||||
|
font-family: "DM Sans";
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
color: $accent;
|
||||||
|
}
|
||||||
|
&:indeterminate {
|
||||||
|
color: rgba(205, 219, 249, 0.3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar {
|
||||||
|
background-color: $background-secondary;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin: 1em;
|
||||||
|
|
||||||
|
.cal-box {
|
||||||
|
background-color: $lighter-background;
|
||||||
|
border-radius: inherit;
|
||||||
|
|
||||||
|
padding: .5em;
|
||||||
|
margin: 1em;
|
||||||
|
|
||||||
|
.month-year {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 0.5em 0em 0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-names {
|
||||||
|
margin: 1em 1em 0em;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: $green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cal {
|
||||||
|
padding: 1em .75em 0em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
;; CALENDAR VARS
|
||||||
|
(defpoll calendar_day :interval "10h"
|
||||||
|
"date '+%d'")
|
||||||
|
(defpoll calendar_month :interval "10h"
|
||||||
|
"date '+%m'")
|
||||||
|
(defpoll calendar_year :interval "10h"
|
||||||
|
"date '+%Y'")
|
||||||
|
|
||||||
|
;; DATE VARS
|
||||||
|
(defpoll minute :interval "5s"
|
||||||
|
"date '+%M'")
|
||||||
|
(defpoll hour :interval "5s"
|
||||||
|
"date '+%H'")
|
||||||
|
(defpoll weekday :interval "24h"
|
||||||
|
"date '+%A'")
|
||||||
|
(defpoll monthday :interval "24h"
|
||||||
|
"date '+%d %b'")
|
||||||
|
(defpoll month_year :interval "24h"
|
||||||
|
"date '+%B %Y'")
|
||||||
|
(defpoll wd-m-d :interval "24h"
|
||||||
|
"date '+%d %B %Y'")
|
||||||
|
|
||||||
|
|
||||||
|
;; NOTIFICATION CENTER/POPUP VARS
|
||||||
|
(defpoll dunst_history :interval "250ms" :run-while noticenter
|
||||||
|
"dunstctl history")
|
||||||
|
(defpoll dunst_count :interval "250ms" :run-while noticenter
|
||||||
|
"dunstctl count history")
|
||||||
|
(defpoll reveal_no_notification_text :interval "5m"
|
||||||
|
"getNotificationCount.sh")
|
||||||
|
|
||||||
|
(include "_modules.yuck")
|
||||||
|
|
||||||
|
(defwidget notification-center []
|
||||||
|
(box :class "notification-center-window" :orientation "h" :space-evenly "false"
|
||||||
|
(box :class "notification-center-spacer" :style {noticenter ? "padding-left: 0em;" : "padding-left: 37em;"})
|
||||||
|
(box :class "notification-center-box" :orientation "v" :space-evenly "false" :style "margin-right: 6px;"
|
||||||
|
(box :space-evenly "true" :orientation "v" :style "min-width: 315px;"
|
||||||
|
(scroll :class "notification-scroller" :vscroll "true"
|
||||||
|
(box :class "notification-history" :orientation "v" :space-evenly "false"
|
||||||
|
(box :orientation "v"
|
||||||
|
(for entry in {dunst_history["data"][0]}
|
||||||
|
(box
|
||||||
|
(notification :class 'notif-${entry["id"]["data"]}'
|
||||||
|
:title {entry["appname"]["data"]}
|
||||||
|
:summary {entry["summary"]["data"]}
|
||||||
|
:body {entry["body"]["data"]}
|
||||||
|
:icon {entry["appname"]["data"] == "Spotify" ? "../../.cache/dunst/${entry['summary']['data']}.png" :
|
||||||
|
entry["appname"]["data"] == "discord" ? "./assets/applications/discord.png" :
|
||||||
|
(entry["icon_path"]["data"] ?: "../dunst/assets/notification/fallback.png")}
|
||||||
|
:reveal_close_icon "false"
|
||||||
|
:is_ss {entry["appname"]["data"] == "Screenshot Tool" ? "true" : "false"}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
(revealer :reveal reveal_no_notification_text :transition "crossfade"
|
||||||
|
(box :orientation "v" :space-evenly "false"
|
||||||
|
:style {reveal_no_notification_text ? "margin: 8em 0em;" : "margin: 0em 0em;"}
|
||||||
|
(image :style "margin-bottom: 2em;" :path "./assets/ui/wedding-bells.png")
|
||||||
|
(label :class "eon"
|
||||||
|
:valign "center"
|
||||||
|
:text "No Notifications."
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
(box :class "calendar" :orientation "v"
|
||||||
|
(box :class "cal-box"
|
||||||
|
:orientation "v"
|
||||||
|
:space-evenly "false"
|
||||||
|
(label :class "month-year" :text month_year)
|
||||||
|
(box :class "day-names" :orientation "h" :space-evenly "true"
|
||||||
|
(label :text "Su")
|
||||||
|
(label :text "Mo")
|
||||||
|
(label :text "Tu")
|
||||||
|
(label :text "We")
|
||||||
|
(label :text "Th")
|
||||||
|
(label :text "Fr")
|
||||||
|
(label :text "Sa")
|
||||||
|
)
|
||||||
|
(calendar :class "cal"
|
||||||
|
:show-details false :show-heading false :show-day-names false
|
||||||
|
:day calendar_day :month calendar_month :year calendar_year)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
(defvar noticenter false)
|
||||||
|
|
||||||
|
(defwindow notification-center
|
||||||
|
:geometry (geometry :x "0%"
|
||||||
|
:y "6%"
|
||||||
|
:width "26%"
|
||||||
|
:height "80%"
|
||||||
|
:anchor "top right")
|
||||||
|
:windowtype "dock"
|
||||||
|
:wm-ignore false
|
||||||
|
(notification-center))
|
||||||
@@ -0,0 +1,239 @@
|
|||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
$bg: #0d0f18;
|
||||||
|
$bg-alt: #151720;
|
||||||
|
$fg: #c0caf5;
|
||||||
|
$black: #151720;
|
||||||
|
$gray: #1c1e27;
|
||||||
|
$red: #dd6777;
|
||||||
|
$green: #90ceaa;
|
||||||
|
$yellow: #ecd3a0;
|
||||||
|
$blue: #86aaec;
|
||||||
|
$magenta: #c296eb;
|
||||||
|
$cyan: #93cee9;
|
||||||
|
$white: $fg;
|
||||||
|
$archlogo: #0f94d2;
|
||||||
|
|
||||||
|
.profilebox {
|
||||||
|
background-color: $bg-alt;
|
||||||
|
border-radius: 12px;
|
||||||
|
margin-top: .7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pfpface {
|
||||||
|
margin: 1rem 0rem 1rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcometxt {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-style: italic;
|
||||||
|
font-family: Cartograph CF;
|
||||||
|
color: $fg;
|
||||||
|
margin: 1.3rem 0rem 0rem 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pfpapps {
|
||||||
|
margin: 1.3rem 0rem 0rem 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.launcher-btn {
|
||||||
|
color: $fg;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.launcher-btn:hover {
|
||||||
|
color: $blue;
|
||||||
|
font-family: Material Design Icons Desktop;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.weatherbox {
|
||||||
|
background-color: $bg-alt;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: .9rem;
|
||||||
|
margin-top: .7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weathericon {
|
||||||
|
padding: 2rem 1rem;
|
||||||
|
margin-top: .7rem;
|
||||||
|
border-radius: 12px;
|
||||||
|
margin-left: .7rem;
|
||||||
|
background-color: $bg-alt;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-family: "Font Awesome 6 Free Solid";
|
||||||
|
}
|
||||||
|
|
||||||
|
.weatherdesc {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
font-family: "Iosevka Nerd Font";
|
||||||
|
}
|
||||||
|
|
||||||
|
.weathertemp {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: bold;
|
||||||
|
color: $fg;
|
||||||
|
font-family: "Iosevka Nerd Font";
|
||||||
|
}
|
||||||
|
|
||||||
|
.weathercity {
|
||||||
|
font-size: .9rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
color: $fg;
|
||||||
|
font-family: "Iosevka Nerd Font";
|
||||||
|
}
|
||||||
|
|
||||||
|
.playerbox {
|
||||||
|
background-color: $bg-alt;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: .9rem;
|
||||||
|
margin-top: .7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album_art {
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
border-radius: 7px;
|
||||||
|
padding: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.song {
|
||||||
|
font-family: JetBrainsMono Nerd Font;
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: $fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artist {
|
||||||
|
font-family: JetBrainsMono Nerd Font;
|
||||||
|
font-weight: bold;
|
||||||
|
color: $fg;
|
||||||
|
font-size: .8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_prev,
|
||||||
|
.btn_play,
|
||||||
|
.btn_next {
|
||||||
|
font-family: JetBrainsMono Nerd Font;
|
||||||
|
color: $fg;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sysbox {
|
||||||
|
background-color: $bg-alt;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: .9rem;
|
||||||
|
margin-top: .7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calouterbox {
|
||||||
|
padding: 1.75rem 1.35rem;
|
||||||
|
background-color: $bg;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.caltime {
|
||||||
|
font-family: "Iosevka Nerd Font";
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
margin-top: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.caltext {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 3rem;
|
||||||
|
color: $fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infodate {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-family: "Iosevka Nerd Font";
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
color: $fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
.caltimeboxes {
|
||||||
|
margin: 0 2rem;
|
||||||
|
font-family: "Material Design Icon Desktop";
|
||||||
|
font-size: .6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.red {
|
||||||
|
color: $red;
|
||||||
|
}
|
||||||
|
.yellow {
|
||||||
|
color: $yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
.green {
|
||||||
|
color: $green;
|
||||||
|
}
|
||||||
|
.magenta {
|
||||||
|
color: $magenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blue {
|
||||||
|
color: $blue;
|
||||||
|
}
|
||||||
|
.cyan {
|
||||||
|
color: $cyan;
|
||||||
|
}
|
||||||
|
|
||||||
|
.white {
|
||||||
|
color: $red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-icon-cpu,
|
||||||
|
.stats-icon-ram,
|
||||||
|
.stats-icon-fs {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-icon-cpu {
|
||||||
|
color: $red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-icon-ram {
|
||||||
|
color: $green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-icon-fs {
|
||||||
|
color: $yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scale-cpu,
|
||||||
|
.scale-ram,
|
||||||
|
.scale-fs,
|
||||||
|
scale trough {
|
||||||
|
all: unset;
|
||||||
|
background-color: $gray;
|
||||||
|
min-height: 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
margin-left: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scale-cpu,
|
||||||
|
.scale-ram,
|
||||||
|
.scale-fs,
|
||||||
|
scale trough highlight {
|
||||||
|
all: unset;
|
||||||
|
border-radius: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scale-cpu trough highlight {
|
||||||
|
background: linear-gradient(to right, $magenta, $red);
|
||||||
|
}
|
||||||
|
|
||||||
|
.scale-ram trough highlight {
|
||||||
|
background: linear-gradient(to right, $green, $yellow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.scale-fs trough highlight {
|
||||||
|
background: linear-gradient(to right, $yellow, $fg);
|
||||||
|
}
|
||||||
@@ -0,0 +1,154 @@
|
|||||||
|
(defvar eww "/usr/bin/eww -c $HOME/.config/bspwm/widgets/sidebar")
|
||||||
|
|
||||||
|
;; ** Variables ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(defpoll hour :interval "1s" `date +%H`)
|
||||||
|
(defpoll minute :interval "1m" `date +%M`)
|
||||||
|
(defpoll fulldate :interval "24h" "date '+%A, %d %B'")
|
||||||
|
|
||||||
|
(defvar pfpimage "../../assets/profile.png")
|
||||||
|
(defpoll iam :interval "6h" `whoami`)
|
||||||
|
|
||||||
|
(defpoll weathericon :interval "2h" "Weather icon")
|
||||||
|
(defpoll weathercity :interval "2h" "Weather city")
|
||||||
|
(defpoll weathertemp :interval "2h" "Weather current_temp")
|
||||||
|
(defpoll weatherfeel :interval "2h" "Weather feels_like")
|
||||||
|
(defpoll weatherdesc :interval "2h" "Weather weather_desc")
|
||||||
|
(defpoll weatherhex :interval "2h" "Weather hex")
|
||||||
|
|
||||||
|
(defpoll art :interval "1s" "MediaControl coverloc")
|
||||||
|
(defpoll title :interval "1s" "MediaControl title")
|
||||||
|
(defpoll artist :interval "1s" "MediaControl artist")
|
||||||
|
(defpoll playpause :interval "1s" "MediaControl statusicon")
|
||||||
|
|
||||||
|
;; ** Widgets ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
;; User info Widget ;;
|
||||||
|
(defwidget pfp[]
|
||||||
|
(box :orientation "h" :class "pfpbox" :space-evenly false
|
||||||
|
(box :orientation "v" :height 100 :class "profilebox" :hexpand true :space-evenly false
|
||||||
|
(box :orientation "h" :class "pfpboxtop" :space-evenly false
|
||||||
|
(box :class "pfpface" :halign "start" :hexpand false
|
||||||
|
(image :path "${pfpimage}" :image-width 75 :image-height 75))
|
||||||
|
|
||||||
|
(box :orientation "v" :class "pfpboxbot" :space-evenly false
|
||||||
|
(box :class "welcometxt" :halign "start" :valign "center" "Welcome ${iam}")
|
||||||
|
(box :class "pfpapps" :halign "center" :valign "center" :hexpand true :spacing 20
|
||||||
|
(button :class "launcher-btn"
|
||||||
|
:onclick "OpenApps --browser"
|
||||||
|
:tooltip "Browser"
|
||||||
|
"")
|
||||||
|
(button :class "launcher-btn"
|
||||||
|
:onclick "OpenApps --fetch"
|
||||||
|
:tooltip "System Fetch"
|
||||||
|
"")
|
||||||
|
(button :class "launcher-btn"
|
||||||
|
:onclick "OpenApps --filemanager"
|
||||||
|
:tooltip "File Manager"
|
||||||
|
"")
|
||||||
|
(button :class "launcher-btn"
|
||||||
|
:onclick "OpenApps --terminal"
|
||||||
|
:tooltip "Terminal"
|
||||||
|
"")
|
||||||
|
(button :class "launcher-btn"
|
||||||
|
:onclick "OpenApps --editor"
|
||||||
|
:tooltip "Editor"
|
||||||
|
""))
|
||||||
|
))
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
;; Weather widget ;;
|
||||||
|
(defwidget weather[]
|
||||||
|
(box :orientation "h" :class "weatherfullbox" :space-evenly false
|
||||||
|
(box :orientation "v" :height 100 :class "weatherbox" :hexpand true :space-evenly false
|
||||||
|
(box :orientation "h" :class "weathertop" :space-evenly false
|
||||||
|
(box :class "weatherdesc" :style "color: ${weatherhex};" :halign "start" :hexpand true weatherdesc)
|
||||||
|
(box :class "weathertemp" :halign "end" "${weathertemp}°C")
|
||||||
|
)
|
||||||
|
(box :orientation "h" :class "weatherbot" :space-evenly false
|
||||||
|
(box :class "weathercity" :halign "start" :hexpand true weathercity)
|
||||||
|
(box :class "weathercity" :halign "end" "Feels like ${weatherfeel}°C")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
(box :class "weathericon" :style "color: ${weatherhex};" :halign "center" weathericon)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
;; Music Player Widget ;;
|
||||||
|
(defwidget musicplayer[]
|
||||||
|
(box :orientation "h" :class "playerfullbox" :space-evenly false
|
||||||
|
(box :orientation "v" :height 100 :class "playerbox" :hexpand true :space-evenly false
|
||||||
|
(box :orientation "h" :class "playertop" :space-evenly false :spacing 15
|
||||||
|
(box :class "album_art" :style "background-image: url('${art}');")
|
||||||
|
(box :class "playerinfo":orientation "v" :halign "center" :hexpand true
|
||||||
|
(label :class "song" :limit-width 18 :text title)
|
||||||
|
(label :class "artist" :limit-width 18 :text artist)
|
||||||
|
(box :orientation "h" :class "playerbot" :space-evenly false :valign "center" :halign "center" :spacing 30
|
||||||
|
(button :class "btn_prev" :onclick "MediaControl --previous" "玲")
|
||||||
|
(button :class "btn_play" :onclick "MediaControl --toggle" playpause)
|
||||||
|
(button :class "btn_next" :onclick "MediaControl --next" "怜")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
;; System info Widget ;;
|
||||||
|
(defwidget sysinfo[]
|
||||||
|
(box :orientation "h" :class "sysfullbox" :space-evenly false
|
||||||
|
(box :orientation "v" :height 100 :class "sysbox" :hexpand true :space-evenly false
|
||||||
|
(box :orientation "v" :class "systop" :space-evenly false :spacing 15
|
||||||
|
(box :class "stats" :hexpand "false" :vexpand "false" :space-evenly "false"
|
||||||
|
(label :tooltip "${round(EWW_CPU.avg, 0)}%" :class "stats-icon-cpu" :text "")
|
||||||
|
(scale :min 0 :max 101 :active false :value {EWW_CPU.avg} :class "scale-cpu" :width 265)
|
||||||
|
)
|
||||||
|
(box :class "stats" :hexpand "false" :vexpand "false" :space-evenly "false"
|
||||||
|
(label :tooltip "${round(EWW_RAM.used_mem_perc, 0)}%" :class "stats-icon-ram" :text "")
|
||||||
|
(scale :min 0 :max 101 :active false :value {EWW_RAM.used_mem_perc} :class "scale-ram" :width 265)
|
||||||
|
)
|
||||||
|
(box :class "stats" :hexpand "false" :vexpand "false" :space-evenly "false"
|
||||||
|
(label :tooltip "${round(EWW_DISK["/"].used_perc, 0)}%" :class "stats-icon-fs" :text "")
|
||||||
|
(scale :min 0 :max 101 :active false :value {(EWW_DISK["/"].used / EWW_DISK["/"].total) * 100} :class "scale-fs" :width 265)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
;; The Time Widget ;;
|
||||||
|
(defwidget infotime[]
|
||||||
|
(box :halign "center" :class "caltime" :orientation "h" :space-evenly false
|
||||||
|
(box :class "caltext" "${hour}")
|
||||||
|
(box :class "caltimeboxes" :valign "center" :spacing 5 :space-evenly false :orientation 'v'
|
||||||
|
(box :class "caltimebox magenta" "")
|
||||||
|
(box :class "caltimebox green" "")
|
||||||
|
(box :class "caltimebox blue" "")
|
||||||
|
)
|
||||||
|
(box :class "caltext" "${minute}")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
;; Panel Widget ;;
|
||||||
|
(defwidget ipanel[]
|
||||||
|
(box :orientation "v" :width 360 :space-evenly false :class "calouterbox"
|
||||||
|
(infotime)
|
||||||
|
(box :class "infodate" "${fulldate}")
|
||||||
|
(pfp)
|
||||||
|
(weather)
|
||||||
|
(musicplayer)
|
||||||
|
(sysinfo)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
;; ** Windows ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(defwindow dashboard
|
||||||
|
:geometry (geometry :x "13%"
|
||||||
|
:y "70px"
|
||||||
|
:anchor "left top")
|
||||||
|
:stacking "fg"
|
||||||
|
(ipanel))
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<svg id="SvgjsSvg1016" width="288" height="288" xmlns="http://www.w3.org/2000/svg" version="1.1"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs">
|
||||||
|
<defs id="SvgjsDefs1017"></defs>
|
||||||
|
<g id="SvgjsG1018"><svg xmlns="http://www.w3.org/2000/svg" width="288" height="288" viewBox="0 0 512 512">
|
||||||
|
<path fill="none"
|
||||||
|
d="M416,512H96A96,96,0,0,1,0,416V96A96,96,0,0,1,96,0H416a96,96,0,0,1,96,96V416A96,96,0,0,1,416,512Zm0,0"
|
||||||
|
data-name="Path 144"></path>
|
||||||
|
<path fill="#e78284"
|
||||||
|
d="M234.672,384a40.052,40.052,0,0,0,39.184-32H195.473A40.069,40.069,0,0,0,234.672,384Zm0,0"
|
||||||
|
data-name="Path 145" class="colorffe777 svgShape"></path>
|
||||||
|
<path fill="#e78284"
|
||||||
|
d="M312,266.672H264a8.024,8.024,0,0,1-7.09-4.289,7.944,7.944,0,0,1,.516-8.254l39.293-56.785H264a8,8,0,1,1,0-16h48a8.024,8.024,0,0,1,7.09,4.289,7.944,7.944,0,0,1-.516,8.254l-39.293,56.785H312a8,8,0,0,1,0,16Zm0,0"
|
||||||
|
data-name="Path 146" class="colorffe777 svgShape"></path>
|
||||||
|
<g data-name="Group 14" fill="#e5c890" class="color000 svgShape">
|
||||||
|
<path fill="#e5c890"
|
||||||
|
d="M376,192H349.328a7.989,7.989,0,0,1-6.512-12.641l17.633-24.687H349.328a8,8,0,0,1,0-16H376a7.989,7.989,0,0,1,6.512,12.641L364.879,176H376a8,8,0,0,1,0,16Zm0,0"
|
||||||
|
data-name="Path 147" class="colorffd200 svgShape"></path>
|
||||||
|
<path fill="#e5c890"
|
||||||
|
d="M334.7,308.4a71.3,71.3,0,0,1-19.344-26.078,23.138,23.138,0,0,1-3.359.336H264a23.993,23.993,0,0,1-19.711-37.664l21.918-31.664H264a24,24,0,0,1,0-48h16.656a74.56,74.56,0,0,0-35.312-15.152v-11.52a10.672,10.672,0,0,0-21.344.016v11.52A74.708,74.708,0,0,0,160,224v29.742A71.54,71.54,0,0,1,134.527,308.5a18.667,18.667,0,0,0,12.145,32.848h176A18.668,18.668,0,0,0,334.7,308.4Zm0,0"
|
||||||
|
data-name="Path 148" class="colorffd200 svgShape"></path>
|
||||||
|
</g>
|
||||||
|
</svg></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,213 @@
|
|||||||
|
/** Colors *******************************************/
|
||||||
|
$bg: #232634;
|
||||||
|
$bg-alt: #292c3c;
|
||||||
|
$another-bg-alt: #313244;
|
||||||
|
$fg: #cdd6f4;
|
||||||
|
$fg-alt: #bac2de;
|
||||||
|
$red: #e78284;
|
||||||
|
$red-alt: #ed8796;
|
||||||
|
$green: #a6d189;
|
||||||
|
$green-alt: #a6da95;
|
||||||
|
$yellow: #e5c890;
|
||||||
|
$yellow-alt: #eed49f;
|
||||||
|
$orange: #ef9f76;
|
||||||
|
$orange-alt: #f5a97f;
|
||||||
|
$blue: #8caaee;
|
||||||
|
$blue-alt: #8aadf4;
|
||||||
|
$purple: #ca9ee6;
|
||||||
|
$purple-alt: #c6a0f6;
|
||||||
|
$cyan: #99d1db;
|
||||||
|
$cyan-alt: #91d7e3;
|
||||||
|
$gray: #626880;
|
||||||
|
$gray-alt: #5b6078;
|
||||||
|
|
||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
transition: 200ms ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-tray {
|
||||||
|
background-color: $bg-alt;
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
border-radius: 20px;
|
||||||
|
box-shadow: 0px 0px 10px #141414;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-buttons {
|
||||||
|
background-color: $bg;
|
||||||
|
margin: 10px 10px 0px 10px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 15px 0px 15px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.net-status-on {
|
||||||
|
color: $bg;
|
||||||
|
background-color: $blue;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.net-status-off {
|
||||||
|
color: $fg;
|
||||||
|
background-color: $gray;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.volume-status-on {
|
||||||
|
color: $bg;
|
||||||
|
background-color: $green;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.volume-status-off {
|
||||||
|
color: $fg;
|
||||||
|
background-color: $gray;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bluetooth-status-on {
|
||||||
|
color: $bg;
|
||||||
|
background-color: $purple;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bluetooth-status-off {
|
||||||
|
color: $fg;
|
||||||
|
background-color: $gray;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dunst-status-on {
|
||||||
|
font-family: "Feather";
|
||||||
|
color: $bg;
|
||||||
|
background-color: $red;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dunst-status-off {
|
||||||
|
font-family: "Feather";
|
||||||
|
color: $fg;
|
||||||
|
background-color: $gray;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redshift-status-on {
|
||||||
|
color: $bg;
|
||||||
|
background-color: $yellow;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redshift-status-off {
|
||||||
|
color: $fg;
|
||||||
|
background-color: $gray;
|
||||||
|
margin: 0px 19px 0px 19px;
|
||||||
|
padding: 0.5em 0em 0.5em 0em;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.volume-slider-stuff {
|
||||||
|
margin: 20px 20px 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.volume-slider-icon {
|
||||||
|
color: $yellow;
|
||||||
|
padding: 5px 15px 5px 15px;
|
||||||
|
margin-right: 30px;
|
||||||
|
font-size: 30px;
|
||||||
|
background-color: $gray;
|
||||||
|
border-radius: 50px;
|
||||||
|
box-shadow: 0px 0px 7px #141414;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.volume-slider trough {
|
||||||
|
border-radius: 20px;
|
||||||
|
background-color: $gray;
|
||||||
|
box-shadow: 0px 0px 7px #141414;
|
||||||
|
}
|
||||||
|
|
||||||
|
.volume-slider highlight {
|
||||||
|
padding: 0.5em;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: linear-gradient(to left, $red, $red-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mic-slider-stuff {
|
||||||
|
margin: 10px 20px 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mic-slider-icon {
|
||||||
|
color: $purple;
|
||||||
|
padding: 5px 15px 5px 15px;
|
||||||
|
margin-right: 30px;
|
||||||
|
font-size: 30px;
|
||||||
|
background-color: $gray;
|
||||||
|
border-radius: 50px;
|
||||||
|
box-shadow: 0px 0px 7px #141414;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.mic-slider trough {
|
||||||
|
border-radius: 20px;
|
||||||
|
background-color: $gray;
|
||||||
|
box-shadow: 0px 0px 7px #141414;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mic-slider highlight {
|
||||||
|
padding: 0.5em;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: linear-gradient(to left, $blue, $blue-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.brightness-slider-stuff {
|
||||||
|
margin: 7px 20px 7px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brightness-slider-icon {
|
||||||
|
color: $green;
|
||||||
|
padding: 5px 15px 5px 15px;
|
||||||
|
margin-right: 30px;
|
||||||
|
font-size: 30px;
|
||||||
|
background-color: $gray;
|
||||||
|
border-radius: 50px;
|
||||||
|
box-shadow: 0px 0px 7px #141414;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brightness-slider trough {
|
||||||
|
border-radius: 20px;
|
||||||
|
background-color: $gray;
|
||||||
|
box-shadow: 0px 0px 7px #141414;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brightness-slider highlight {
|
||||||
|
padding: 0.5em;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: linear-gradient(to left, $yellow, $yellow-alt);
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
|
||||||
|
;; for controls and tray
|
||||||
|
(defvar net-toggle "scripts/net.sh --toggle" )
|
||||||
|
(defpoll net-status :interval "0s" "scripts/net.sh --status")
|
||||||
|
(defvar volume-toggle "scripts/volume.sh --toggle")
|
||||||
|
(defpoll volume-status :interval "0s" "scripts/volume.sh --status")
|
||||||
|
(defvar bluetooth-toggle "scripts/bluetooth.sh --toggle")
|
||||||
|
(defpoll bluetooth-status :interval "0s" "scripts/bluetooth.sh --status")
|
||||||
|
(defpoll bluetooth-icon :interval "0s" "scripts/bluetooth.sh --icon")
|
||||||
|
(defvar dunst-toggle "scripts/dunst.sh --toggle")
|
||||||
|
(defpoll dunst-status :interval "0s" "scripts/dunst.sh --status")
|
||||||
|
(defpoll redshift :interval "0s" "[ $(pidof redshift) ] && echo '' || echo ''")
|
||||||
|
|
||||||
|
;; for sliders
|
||||||
|
(defpoll volume-slider-indicator :interval "0s" "scripts/volume-slider.sh")
|
||||||
|
(defpoll mic :interval "0s" "scripts/mic get")
|
||||||
|
(defpoll mic-slider-indicator :interval "0s" "scripts/mic-slider.sh")
|
||||||
|
(defpoll brightness :interval "0s" "scripts/brightness.sh br")
|
||||||
|
(defpoll brightness-slider-indicator :interval "0s" "scripts/brightness-slider.sh --icon")
|
||||||
|
(defpoll volume_value :interval "0s" "scripts/volume.sh vol")
|
||||||
|
|
||||||
|
(defwidget tray []
|
||||||
|
(box :class "control-center-tray" :height 280
|
||||||
|
(box :orientation "v" :space-evenly "false"
|
||||||
|
(box :class "control-center-buttons" :orientation "h"
|
||||||
|
(button :tooltip "Toggle Network [Wi-Fi]" :class "net-status-button ${net-status == "" ? "net-status-on" : "net-status-off"}" :onclick net-toggle net-status)
|
||||||
|
(button :tooltip "Toggle Sound" :class "volume-status-button ${volume-status == "" ? "volume-status-on" : "volume-status-off"}" :onclick volume-toggle volume-status)
|
||||||
|
(button :tooltip "Toggle Bluetooth" :class "bluetooth-status-button ${bluetooth-status == "" ? "bluetooth-status-on" : "bluetooth-status-off"}" :onclick bluetooth-toggle bluetooth-icon)
|
||||||
|
(button :tooltip "Toggle Do not Disturb" :class "dunst-status-button ${dunst-status == "" ? "dunst-status-on" : "dunst-status-off"}" :onclick dunst-toggle dunst-status)
|
||||||
|
(button :tooltip "Toggle Night Light" :class "redshift-status-button ${redshift == "" ? "redshift-status-on" : "redshift-status-off"}" :onclick "[ $(pidof redshift) ] && pkill redshift || redshift &" redshift))
|
||||||
|
(box :orientation "h" :class "volume-slider-stuff" :space-evenly "false"
|
||||||
|
(button :onclick "amixer set Master toggle" :class "volume-slider-icon" "${volume-slider-indicator}")
|
||||||
|
(scale :class "volume-slider"
|
||||||
|
:value volume_value
|
||||||
|
:orientation "h"
|
||||||
|
:width 370
|
||||||
|
:active true
|
||||||
|
:max 101
|
||||||
|
:min 0
|
||||||
|
:onchange "scripts/volume.sh set {}"))
|
||||||
|
(box :orientation "h" :class "mic-slider-stuff" :space-evenly "false"
|
||||||
|
(button :onclick "amixer set Capture toggle" :class "mic-slider-icon" "${mic-slider-indicator}")
|
||||||
|
(scale :class "mic-slider"
|
||||||
|
:value mic
|
||||||
|
:orientation "h"
|
||||||
|
:width 370
|
||||||
|
:active true
|
||||||
|
:max 101
|
||||||
|
:min 0
|
||||||
|
:onchange "scripts/mic set {}"))
|
||||||
|
(box :orientation "h" :class "brightness-slider-stuff" :space-evenly "false"
|
||||||
|
(button :class "brightness-slider-icon" "${brightness-slider-indicator}")
|
||||||
|
(scale :class "brightness-slider"
|
||||||
|
:orientation "h"
|
||||||
|
:max 101
|
||||||
|
:min 0
|
||||||
|
:active true
|
||||||
|
:value brightness
|
||||||
|
:width 370
|
||||||
|
:onchange "scripts/brightness.sh set {}")))))
|
||||||
|
|
||||||
|
(defwindow tray :stacking "fg"
|
||||||
|
:windowtype "normal"
|
||||||
|
:wm-ignore true
|
||||||
|
:monitor 0
|
||||||
|
:geometry (geometry :width 498 :height 50 :y 67 :x 1350)
|
||||||
|
(tray))
|
||||||
+53
@@ -0,0 +1,53 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
STATUS="$(bluetoothctl show | grep Powered | awk '{print $2}')"
|
||||||
|
toggle() {
|
||||||
|
if [ $STATUS == "yes" ]; then
|
||||||
|
rfkill block bluetooth &
|
||||||
|
notify-send --icon=bluetooth-offline --urgency=normal "Bluetooth has been turned off."
|
||||||
|
else
|
||||||
|
rfkill unblock bluetooth &
|
||||||
|
notify-send --icon=volume-level-high --urgency=normal "Bluetooth has been turned on."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
icon() {
|
||||||
|
# off
|
||||||
|
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
|
||||||
|
then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
# on
|
||||||
|
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
|
||||||
|
then
|
||||||
|
echo ""
|
||||||
|
# connected
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
status() {
|
||||||
|
# off
|
||||||
|
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
|
||||||
|
then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
# on
|
||||||
|
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
|
||||||
|
then
|
||||||
|
echo ""
|
||||||
|
# connected
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 == "--toggle" ]]; then
|
||||||
|
toggle
|
||||||
|
elif [[ $1 == "--status" ]]; then
|
||||||
|
status
|
||||||
|
elif [[ $1 == "--icon" ]]; then
|
||||||
|
icon
|
||||||
|
fi
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
b=$(light -G)
|
||||||
|
|
||||||
|
icon() {
|
||||||
|
# Lets round the float result
|
||||||
|
bri=$(echo "($b+0.5)/1" | bc)
|
||||||
|
|
||||||
|
if [[ "$bri" -gt "90" ]]; then
|
||||||
|
echo ""
|
||||||
|
elif [[ "$bri" -gt "50" ]]; then
|
||||||
|
echo ""
|
||||||
|
elif [[ "$bri" -gt "30" ]]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
getbri() {
|
||||||
|
bri=$(echo "($b+0.5)/1" | bc)
|
||||||
|
echo $bri
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 == "--icon" ]]; then
|
||||||
|
icon
|
||||||
|
elif [[ $1 == "--value" ]]; then
|
||||||
|
getbri
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# @requires: brightnessctl
|
||||||
|
|
||||||
|
|
||||||
|
get_brightness () {
|
||||||
|
(( br = $(brightnessctl get) * 100 / $(brightnessctl max) ))
|
||||||
|
echo $br
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 == "set" ]]; then
|
||||||
|
light -S $2
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == "br" ]]; then
|
||||||
|
get_brightness
|
||||||
|
fi
|
||||||
+26
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
STATUS=$(dunstctl is-paused)
|
||||||
|
|
||||||
|
toggle() {
|
||||||
|
if [ $STATUS == "false" ]; then
|
||||||
|
dunstctl set-paused true
|
||||||
|
else
|
||||||
|
dunstctl set-paused false
|
||||||
|
notify-send --urgency=normal "Notifications are live." "Notifications have been turned on, no more silence!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
status() {
|
||||||
|
if [ $STATUS == "false" ]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 == "--toggle" ]]; then
|
||||||
|
toggle
|
||||||
|
elif [[ $1 == "--status" ]]; then
|
||||||
|
status
|
||||||
|
fi
|
||||||
Executable
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$1" = "set" ] && [ "$2" -gt 0 ] && [ "$2" -le 100 ]; then
|
||||||
|
volume="$2%"
|
||||||
|
amixer sset Capture "${volume}"
|
||||||
|
echo "Volume set to ${volume}"
|
||||||
|
elif [ "$1" = "get" ]; then
|
||||||
|
(( mic_vol = $(amixer sget Capture | grep -oE '[0-9]+%' | tr -d '%') * 100 / 100 ))
|
||||||
|
echo $mic_vol
|
||||||
|
elif [ "$1" = "percent" ] && [ "$2" -gt 0 ] && [ "$2" -le 100 ]; then
|
||||||
|
amixer sset Capture "${2}%"
|
||||||
|
echo "Volume set to ${2}%"
|
||||||
|
else
|
||||||
|
echo "Usage: $0 [status|toggle|set|get]"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ "$(amixer get Capture | grep 'Left:' | awk -F'[][]' '{ print $4 }' | tr -d '%')" = "on" ]]; then
|
||||||
|
vol=$(amixer get Capture | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%')
|
||||||
|
|
||||||
|
if [[ ${vol} -ge 80 ]]; then
|
||||||
|
echo ""
|
||||||
|
elif [[ ${vol} -ge 40 ]]; then
|
||||||
|
echo ""
|
||||||
|
elif [[ ${vol} -ge 10 ]]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
+25
@@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
STATUS=$(nmcli | grep wlan0 | awk 'FNR == 1 {print $2}')
|
||||||
|
toggle() {
|
||||||
|
if [ $STATUS == "connected" ]; then
|
||||||
|
nmcli radio wifi off
|
||||||
|
notify-send --icon=window-close --urgency=normal "Wi-Fi has been turned off, you are not connected to the outer world!"
|
||||||
|
else
|
||||||
|
nmcli radio wifi on
|
||||||
|
notify-send --icon=checkmark --urgency=normal "Wi-Fi has been turned on, you are back online!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
status() {
|
||||||
|
if [ $STATUS == "connected" ]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 == "--toggle" ]]; then
|
||||||
|
toggle
|
||||||
|
elif [[ $1 == "--status" ]]; then
|
||||||
|
status
|
||||||
|
fi
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ "$(amixer sget Master | awk -F'[][]' '/Right:|Mono:/ && NF > 1 {print $4}')" = "on" ]]; then
|
||||||
|
|
||||||
|
# search for the lines containing 'Right:' or 'Mono:', when more than 1 field exists
|
||||||
|
# we strip the trailing '%' and round it up with printf "%0.0f" just in case
|
||||||
|
vol=$(amixer sget Master | awk -F'[][]' '/Right:|Mono:/ && NF > 1 {sub(/%/, ""); printf "%0.0f\n", $2}')
|
||||||
|
|
||||||
|
if [[ ${vol} -ge 80 ]]; then
|
||||||
|
echo ""
|
||||||
|
elif [[ ${vol} -ge 40 ]]; then
|
||||||
|
echo ""
|
||||||
|
elif [[ ${vol} -ge 10 ]]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# @requires: amixer
|
||||||
|
|
||||||
|
SINK=$(amixer scontrols | grep -oP "'[^']*'" | sed "s/'//g" | head -n 1)
|
||||||
|
|
||||||
|
|
||||||
|
get_percentage () {
|
||||||
|
per=$(amixer get $SINK | grep -o '[0-9]*%' | head -n 1 | tr -d '%')
|
||||||
|
echo "${per}%"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
get_vol () {
|
||||||
|
local percent=$(get_percentage)
|
||||||
|
echo $percent | tr -d '%'
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 == "vol" ]]; then
|
||||||
|
get_vol
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == "set" ]]; then
|
||||||
|
val=$(echo $2 | tr '.' ' ' | awk '{print $1}')
|
||||||
|
if test $val -gt 100; then
|
||||||
|
val=100
|
||||||
|
fi
|
||||||
|
amixer set $SINK $val%
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
STATUS=$(awk '/%/ {gsub(/[\[\]]/,""); print $6}' <(amixer sget Master) | awk 'FNR == 1')
|
||||||
|
toggle() {
|
||||||
|
if [ $STATUS == "on" ]; then
|
||||||
|
amixer set Master toggle
|
||||||
|
notify-send --icon=volume-level-muted --urgency=normal "Volume is muted." "Volume has been muted, your PC has been shut the fucked up."
|
||||||
|
else
|
||||||
|
amixer set Master toggle
|
||||||
|
notify-send --icon=volume-level-high --urgency=normal "Volume has been turned on." "Sound is now on, you will hear farts!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
status() {
|
||||||
|
if [ $STATUS == "on" ]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 == "--toggle" ]]; then
|
||||||
|
toggle
|
||||||
|
elif [[ $1 == "--status" ]]; then
|
||||||
|
status
|
||||||
|
fi
|
||||||
Reference in new issue
Block a user