add initial unsanitised dotfiles
Adds the clearest current starting point of my dotfiles I can make out. There is no way to automate anything yet. Lots of stuff is missing from the nix configuration, which needs to be added per machine.
This commit is contained in:
commit
2c0e4f885e
26 changed files with 2531 additions and 0 deletions
79
eww/eww.scss
Normal file
79
eww/eww.scss
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
* {
|
||||
all: unset; //Unsets everything so you can style everything from scratch
|
||||
}
|
||||
|
||||
//Global Styles
|
||||
.bar {
|
||||
background-color: #1a1a1a;
|
||||
color: #b0b4bc;
|
||||
padding: 2px;
|
||||
font-family: DaddyTimeMono Nerd Font;
|
||||
font-size: 13;
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
// Styles on classes (see eww.yuck for more information)
|
||||
|
||||
.sidestuff slider {
|
||||
all: unset;
|
||||
color: #ffd5cd;
|
||||
}
|
||||
|
||||
.metric scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #D35D6E;
|
||||
color: #000000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.metric scale trough {
|
||||
all: unset;
|
||||
background-color: #4e4e4e;
|
||||
border-radius: 50px;
|
||||
min-height: 3px;
|
||||
min-width: 50px;
|
||||
margin-left: 10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.metric scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #D35D6E;
|
||||
color: #000000;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.metric scale trough {
|
||||
all: unset;
|
||||
background-color: #4e4e4e;
|
||||
border-radius: 2px;
|
||||
min-height: 9px;
|
||||
min-width: 50px;
|
||||
margin-left: 4px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.label-ram {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
.workspaces button {
|
||||
padding: 2px;
|
||||
}
|
||||
.workspaces button:hover {
|
||||
color: #D35D6E;
|
||||
}
|
||||
.ws-button-mine {
|
||||
color: #4e4e4e;
|
||||
background-color: #ffd5ca;
|
||||
}
|
||||
.ws-button-visible {
|
||||
color: #D35D6E;
|
||||
background-color: #4e4e4e;
|
||||
}
|
||||
.ws-button-urgent {
|
||||
color: #ffd5ca;
|
||||
background-color: #D35D6E;
|
||||
}
|
||||
.ws-button-busy {
|
||||
color: #D35D6E;
|
||||
}
|
||||
.ws-button {
|
||||
color: #b0b4bc;
|
||||
}
|
||||
86
eww/eww.yuck
Normal file
86
eww/eww.yuck
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
(defpoll volume :interval "1s" "scripts/getvol")
|
||||
|
||||
(defwidget bar [index]
|
||||
(centerbox :orientation "h"
|
||||
(workspaces :index index)
|
||||
(music)
|
||||
(sidestuff)))
|
||||
|
||||
(defwidget sidestuff []
|
||||
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "end"
|
||||
(metric :label "∰"
|
||||
:value volume
|
||||
:onchange "amixer sset Master {}%")
|
||||
(metric :label "🐏"
|
||||
:value {EWW_RAM.used_mem_perc}
|
||||
:onchange "")
|
||||
(metric :label "💾"
|
||||
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
|
||||
:onchange "")
|
||||
time))
|
||||
|
||||
(defwidget workspaces [index]
|
||||
(box :class "workspaces"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
:spacing 10
|
||||
(box
|
||||
(for tag in '${wmstate.workspaces[index].tags}'
|
||||
(button
|
||||
:class {tag.mine ? "ws-button-mine" :
|
||||
tag.visible ? "ws-button-visible" :
|
||||
tag.urgent ? "ws-button-urgent" :
|
||||
tag.busy ? "ws-button-busy" :
|
||||
"ws-button"
|
||||
}
|
||||
:onclick "leftwm-command \"SendWorkspaceToTag ${index} ${tag.index}\""
|
||||
{!tag.mine && !tag.busy && !tag.visible && !tag.urgent ? "." : "${tag.name}"}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget music []
|
||||
(box :class "music"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
{music != "" ? "🎵${music}" : ""}))
|
||||
|
||||
|
||||
(defwidget metric [label value onchange]
|
||||
(box :orientation "h"
|
||||
:class "metric"
|
||||
:space-evenly false
|
||||
(box :class "label" label)
|
||||
(scale :min 0
|
||||
:max 101
|
||||
:active {onchange != ""}
|
||||
:value value
|
||||
:onchange onchange)))
|
||||
|
||||
(deflisten music :initial ""
|
||||
"playerctl --follow metadata --format '{{ artist }} - {{ title }}' || true")
|
||||
|
||||
(defpoll time :interval "1s"
|
||||
"date '+%H:%M:%S %b %d, %Y'")
|
||||
|
||||
(deflisten wmstate
|
||||
:initial '{"workspaces":[{"layout":"","tags":[{"name":"","index":0,"mine":false,"busy":false,"visible":false,"urgent":false}]}]}'
|
||||
"leftwm state"
|
||||
)
|
||||
|
||||
(defwindow bar [index]
|
||||
:monitor index
|
||||
:windowtype "dock"
|
||||
:geometry (geometry :x "0%"
|
||||
:y "0%"
|
||||
:width "100%"
|
||||
:height "8px"
|
||||
:anchor "top center")
|
||||
:reserve (struts :side "top" :distance "30px")
|
||||
:exclusive true
|
||||
(bar :index index)
|
||||
)
|
||||
3
eww/scripts/getvol
Executable file
3
eww/scripts/getvol
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
amixer sget Master | grep "Left" | awk -F'[][]' '{ print $2 }' | tr -d '\n%'
|
||||
Loading…
Add table
Add a link
Reference in a new issue