1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-05-12 10:36:06 +02:00

Compare commits

...

6 Commits

Author SHA1 Message Date
eoli3n e9c3396dc6 added wezterm cursor border 2023-11-06 21:40:49 +01:00
eoli3n 8bc2d5b4f6 added wezterm config 2023-11-06 21:26:43 +01:00
eoli3n afcd2dc761 theming waybar 2023-11-06 15:16:49 +01:00
eoli3n e5a7601f9d improve waybar tooltips 2023-11-06 14:25:50 +01:00
eoli3n ecdf12e428 Merge branch 'master' of github.com:eoli3n/dotfiles 2023-11-06 13:39:47 +01:00
eoli3n 8c352b286c added first files to test eww 2023-11-06 13:39:40 +01:00
11 changed files with 282 additions and 10 deletions

View File

@ -2,6 +2,6 @@
font: jetbrains mono light
font_size: 10
font_icon:
- FontAwesome5FreeRegular
- FontAwesome5FreeSolid
- FontAwesome5Brands
- FontAwesome6FreeRegular
- FontAwesome6FreeSolid
- FontAwesome6Brands

View File

@ -68,3 +68,12 @@
- role: mime
tags: mime
when: ansible_user_id != 'root'
- role: rustup
tags: rustup
when: ansible_user_id != 'root'
- role: eww
tags: eww
when: ansible_user_id != 'root'
- role: wezterm
tags: wezterm
when: ansible_user_id != 'root'

31
roles/eww/tasks/main.yml Normal file
View File

@ -0,0 +1,31 @@
---
- name: clone eww project
git:
repo: https://github.com/elkowar/eww
dest: "$HOME/dev/eww"
- name: build eww
shell: cargo build --release --no-default-features --features=wayland
args:
creates: "$HOME/dev/eww/target/release/eww"
chdir: "$HOME/dev/eww/"
- name: chmod eww
file:
path: "$HOME/dev/eww/target/release/eww"
mode: 0755
- name: create eww config dir
file:
path: "$HOME/.config/eww"
state: directory
- name: configure eww
template:
src: '{{ item.src }}'
dest: "$HOME/.config/eww/{{ item.dest }}"
loop:
- src: eww.scss.j2
dest: eww.scss
- src: eww.yuck.j2
dest: eww.yuck

View File

@ -0,0 +1,54 @@
* {
all: unset; //Unsets everything so you can style everything from scratch
}
//Global Styles
.bartop {
background-color: #3a3a3a;
color: #b0b4bc;
padding: 10px;
}
// 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: 10px;
}
.metric scale trough {
all: unset;
background-color: #4e4e4e;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 10px;
margin-right: 20px;
}
.label-ram {
font-size: large;
}
.workspaces button:hover {
color: #D35D6E;
}

View File

@ -0,0 +1,74 @@
(defwidget bar []
(centerbox :orientation "h"
(workspaces)
(music)
(sidestuff)))
(defwidget sidestuff []
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "end"
(metric :label "🔊"
:value volume
:onchange "amixer -D pulse 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 []
(box :class "workspaces"
:orientation "h"
:space-evenly true
:halign "start"
:spacing 10
(button :onclick "wmctrl -s 0" 1)
(button :onclick "wmctrl -s 1" 2)
(button :onclick "wmctrl -s 2" 3)
(button :onclick "wmctrl -s 3" 4)
(button :onclick "wmctrl -s 4" 5)
(button :onclick "wmctrl -s 5" 6)
(button :onclick "wmctrl -s 6" 7)
(button :onclick "wmctrl -s 7" 8)
(button :onclick "wmctrl -s 8" 9)))
(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 volume :interval "1s"
"scripts/getvol")
(defpoll time :interval "1s"
"date '+%d%m%y %H%M%S'")
(defwindow bartop
:monitor 0
:windowtype "dock"
:geometry (geometry :x "0%"
:y "0%"
:width "100%"
:height "10px"
:anchor "top center")
:reserve (struts :side "top" :distance "4%")
(bar))

View File

@ -0,0 +1 @@
set -x PATH "$PATH:$HOME/.cargo/bin"

View File

@ -0,0 +1,10 @@
---
- name: init nightly rustup
shell: rustup-init --default-toolchain nightly --no-modify-path -y
args:
creates: "$HOME/.cargo/bin"
- name: configure cargo path
copy:
src: rustup.fish
dest: "$HOME/.config/fish/conf.d/"

View File

@ -19,7 +19,21 @@
"clock": {
"interval": 1,
"format": "{:%d<span foreground='#929292'>%m</span><span foreground='#606060'>%y</span> %H<span foreground='#929292'>%M</span><span foreground='#606060'>%S</span>}",
"tooltip": false
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "year",
"mode-mon-col" : 3,
"weeks-pos" : "right",
"on-scroll" : 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
}
},
"battery": {
"format-icons": ["", "", "", "", ""],
@ -31,8 +45,7 @@
"states": {
"warning": 25,
"critical": 10
},
"tooltip": false
}
},
"custom/pkg": {
"format": "{}",
@ -46,6 +59,7 @@
"format-disconnected": "",
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "<span foreground='#929292'></span>",
@ -53,8 +67,8 @@
"default": ["<span foreground='#929292'></span>"],
"headphones": ["<span foreground='#929292'></span>"]
},
"on-scroll-up": "pamixer -ui 1 && pamixer --get-volume > $SWAYSOCK.wob",
"on-scroll-down": "pamixer -ud 1 && pamixer --get-volume > $SWAYSOCK.wob",
"on-scroll-up": "pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob",
"on-scroll-down": "pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob",
"tooltip": false
},
"custom/vpn": {
@ -73,7 +87,7 @@
"layer": "bottom",
"position": "bottom",
"modules-left": ["tray", "custom/spotify", "custom/kubernetes"],
"modules-left": ["tray", "custom/spotify"],
"modules-center": ["network#speed"],
"modules-right": ["custom/systemd", "custom/backup", "custom/zfs-trim", "custom/zfs-scrub", "temperature", "custom/storage", "cpu", "memory" ],
"custom/spotify": {

View File

@ -1,5 +1,5 @@
/* colorscheme */
@define-color background rgba(34, 34, 34, 0.9);
@define-color background rgba(34, 34, 34, 0.9);
@define-color active rgba(68, 68, 68, 0.8);
@define-color warning rgba(243, 249, 157, 1);
@define-color alert rgba(255, 92, 87, 1);
@ -29,6 +29,17 @@ window {
background: @background;
}
tooltip {
border: 1px solid @warning;
border-radius: 5px;
background: @background;
font-size: 12px;
}
tooltip label {
color: @warning;
}
#workspaces {
padding-right: 30px;
}
@ -108,6 +119,21 @@ window {
color: rgba(217, 216, 216, 1);
}
@keyframes blink {
to {
background: transparent;
color: transparent;
}
}
#battery.critical:not(.charging) {
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#custom-storage.warning {
color: @warning;
background: transparent;

View File

@ -0,0 +1,5 @@
---
- name: configure wezterm
template:
src: wezterm.lua.j2
dest: "$HOME/.wezterm.lua"

View File

@ -0,0 +1,48 @@
local wezterm = require 'wezterm'
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.font =
wezterm.font('JetBrains Mono', { weight = 'Light'})
config.font_size = 10.0
config.hide_tab_bar_if_only_one_tab = true
config.default_cursor_style = 'BlinkingBar'
config.colors = {
foreground = '{{ color7 }}',
background = '#202020',
cursor_bg = '{{ color7 }}',
cursor_border = '{{ color7 }}',
selection_fg = 'black',
selection_bg = '{{ color3 }}',
ansi = {
'{{ color0 }}',
'{{ color1 }}',
'{{ color2 }}',
'{{ color3 }}',
'{{ color4 }}',
'{{ color5 }}',
'{{ color6 }}',
'{{ color7 }}',
},
brights = {
'{{ color8}}',
'{{ color9 }}',
'{{ color10 }}',
'{{ color11 }}',
'{{ color12 }}',
'{{ color13 }}',
'{{ color14 }}',
'{{ color15 }}',
},
}
config.window_background_opacity = 0.9
config.text_background_opacity = 1
config.window_decorations = "NONE"
config.hyperlink_rules = wezterm.default_hyperlink_rules()
return config