changes to hyprland and eww
This commit is contained in:
parent
1638ad4031
commit
74ba9d43a7
4 changed files with 52 additions and 104 deletions
|
|
@ -1,35 +1,14 @@
|
||||||
(defwindow main
|
(defwindow main
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :x "0%"
|
:geometry (geometry
|
||||||
:y "0%"
|
:x "0%"
|
||||||
:width "50%"
|
:y "0%"
|
||||||
:height "50%"
|
:width "50%"
|
||||||
:anchor "center")
|
:height "50%"
|
||||||
:stacking "fg"
|
:anchor "center")
|
||||||
:exclusive false
|
:stacking "fg"
|
||||||
:focusable false
|
:exclusive false
|
||||||
(topbar)
|
:focusable false
|
||||||
)
|
|
||||||
|
(box {workspace})
|
||||||
(defwidget topbar []
|
|
||||||
(box :class "topbar"
|
|
||||||
(clock)
|
|
||||||
(workspaces)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
(defwidget clock []
|
|
||||||
(box :class "clock"
|
|
||||||
{formattime(EWW_TIME, "%b %m %H:%M:%S")}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
(defwidget workspaces []
|
|
||||||
(box :class "workspaces"
|
|
||||||
(button :class "workspace-button" "◇")
|
|
||||||
(button :class "workspace-button" "◆")
|
|
||||||
(button :class "workspace-button" "◇")
|
|
||||||
(button :class "workspace-button" "◇")
|
|
||||||
(button :class "workspace-button" "◇")
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
12
modules/wm/hyprland/config/eww/vars.yuck
Normal file
12
modules/wm/hyprland/config/eww/vars.yuck
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
(defpoll workspace
|
||||||
|
:interval '0.1s'
|
||||||
|
:initial-value ""
|
||||||
|
"hyprctl -j activeworkspace | jq '.id'"
|
||||||
|
)
|
||||||
|
|
||||||
|
(defpoll time
|
||||||
|
:interval "1s"
|
||||||
|
:initial-value ""
|
||||||
|
"date +'%H:%M:%S'"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -1,88 +1,45 @@
|
||||||
$accent = $mauve
|
|
||||||
$accentAlpha = $mauveAlpha
|
|
||||||
$font = JetBrainsMono Nerd Font
|
|
||||||
$nix = $HOME/nix-config
|
|
||||||
|
|
||||||
# GENERAL
|
# GENERAL
|
||||||
general {
|
general {
|
||||||
disable_loading_bar = true
|
disable_loading_bar = true
|
||||||
hide_cursor = true
|
hide_cursor = true
|
||||||
|
ignore_empty_input = true
|
||||||
}
|
}
|
||||||
|
|
||||||
# BACKGROUND
|
# BACKGROUND
|
||||||
background {
|
background {
|
||||||
monitor =
|
path = screenshot
|
||||||
path = $nix/misc/lock-screen.png
|
blur_size = 1
|
||||||
blur_passes = 0
|
blur_passes = 3
|
||||||
color = $base
|
|
||||||
}
|
|
||||||
|
|
||||||
# LAYOUT
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = Layout: $LAYOUT
|
|
||||||
color = $text
|
|
||||||
font_size = 25
|
|
||||||
font_family = $font
|
|
||||||
position = 30, -30
|
|
||||||
halign = left
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# TIME
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = $TIME
|
|
||||||
color = $text
|
|
||||||
font_size = 90
|
|
||||||
font_family = $font
|
|
||||||
position = -30, 0
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# DATE
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:43200000] date +"%A, %d %B %Y"
|
|
||||||
color = $text
|
|
||||||
font_size = 25
|
|
||||||
font_family = $font
|
|
||||||
position = -30, -150
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# USER AVATAR
|
|
||||||
image {
|
|
||||||
monitor =
|
|
||||||
path = $nix/misc/face.png
|
|
||||||
size = 100
|
|
||||||
border_color = $accent
|
|
||||||
position = 0, 75
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# INPUT FIELD
|
# INPUT FIELD
|
||||||
input-field {
|
input-field {
|
||||||
monitor =
|
monitor =
|
||||||
size = 300, 60
|
outline_thickness = 3
|
||||||
outline_thickness = 4
|
|
||||||
dots_size = 0.2
|
dots_size = 0.2
|
||||||
dots_spacing = 0.2
|
dots_spacing = 0.5
|
||||||
dots_center = true
|
dots_center = true
|
||||||
outer_color = $accent
|
dots_rounding = -1
|
||||||
inner_color = $surface0
|
outer_color = rgb(151515)
|
||||||
font_color = $text
|
inner_color = rgb(200, 200, 200)
|
||||||
fade_on_empty = false
|
font_color = rgb(10, 10, 10)
|
||||||
placeholder_text = Logged in as $USER
|
fade_on_empty = true
|
||||||
|
fade_timeout = 1000
|
||||||
|
placeholder_text =
|
||||||
hide_input = false
|
hide_input = false
|
||||||
check_color = $accent
|
rounding = -1
|
||||||
fail_color = $red
|
check_color = rgb(204, 136, 34)
|
||||||
|
fail_color = rgb(204, 34, 34)
|
||||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
||||||
capslock_color = $yellow
|
fail_timeout = 2000
|
||||||
position = 0, -47
|
fail_transition = 300
|
||||||
halign = center
|
capslock_color = -1
|
||||||
valign = center
|
numlock_color = -1
|
||||||
|
bothlock_color = -1
|
||||||
|
invert_numlock = true
|
||||||
|
swap_font_color = true
|
||||||
|
|
||||||
|
size = 800, 50
|
||||||
|
position = 0, 200
|
||||||
|
valign = bottom
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ bind = CONTROL, Q, killactive
|
||||||
|
|
||||||
bind = , F11, fullscreen
|
bind = , F11, fullscreen
|
||||||
bind = $mainMod, P, exec, hyprlock
|
bind = $mainMod, P, exec, hyprlock
|
||||||
|
bind = $mainMod, F, togglefloating
|
||||||
|
|
||||||
bind = $mainMod, H, movefocus, l
|
bind = $mainMod, H, movefocus, l
|
||||||
bind = $mainMod, L, movefocus, r
|
bind = $mainMod, L, movefocus, r
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue