Mic colors
This commit is contained in:
parent
30ead683ec
commit
36d2211220
4 changed files with 58 additions and 51 deletions
|
@ -1,4 +1,5 @@
|
||||||
function fish_user_key_bindings
|
function fish_user_key_bindings
|
||||||
|
set --export SKIM_TMUX_HEIGHT ""
|
||||||
command -q sk && functions | grep skim_key_bindings &>/dev/null && skim_key_bindings
|
command -q sk && functions | grep skim_key_bindings &>/dev/null && skim_key_bindings
|
||||||
fish_vi_key_bindings insert --no-erase
|
fish_vi_key_bindings insert --no-erase
|
||||||
|
|
||||||
|
|
|
@ -67,4 +67,12 @@ $rosewater: #f5e0dc;
|
||||||
.bar>* {
|
.bar>* {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mic .live {
|
||||||
|
color: #f38ba8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mic .muted {
|
||||||
|
color: #74c7ec;
|
||||||
}
|
}
|
|
@ -2,24 +2,33 @@
|
||||||
(centerbox :orientation "h"
|
(centerbox :orientation "h"
|
||||||
(sidestuff)
|
(sidestuff)
|
||||||
(box)
|
(box)
|
||||||
(music)
|
(music)))
|
||||||
)
|
|
||||||
)
|
(defwindow bar
|
||||||
|
:monitor 2
|
||||||
|
:stacking "fg"
|
||||||
|
:exclusive true
|
||||||
|
:geometry
|
||||||
|
(geometry
|
||||||
|
:x "0%"
|
||||||
|
:y "0%"
|
||||||
|
:width "100%"
|
||||||
|
:height "31px"
|
||||||
|
:anchor "bottom center")
|
||||||
|
(bar))
|
||||||
|
|
||||||
(defwidget sidestuff []
|
(defwidget sidestuff []
|
||||||
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "start" :spacing 10
|
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "start" :spacing 20
|
||||||
time
|
time
|
||||||
; TODO: get these to align properly
|
; TODO: idle inhibitor?
|
||||||
(metric :label " "
|
; TODO: get these to align properly?
|
||||||
:value volume
|
(box :class "mic" (box :class {micMuted == "false" ? "muted" : "live"} {micMuted == "false" ? " " : " "}))
|
||||||
:onchange "pamixer --set-volume {}%")
|
{" " + volume}
|
||||||
(metric :label " "
|
{" " + cpu}
|
||||||
:value {EWW_RAM.used_mem_perc}
|
{" " + ram}
|
||||||
:onchange "")
|
; TODO: brightness
|
||||||
(metric :label ""
|
; TODO: battery
|
||||||
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
|
))
|
||||||
:onchange "")
|
|
||||||
))
|
|
||||||
|
|
||||||
(defwidget music []
|
(defwidget music []
|
||||||
(box :class "music"
|
(box :class "music"
|
||||||
|
@ -28,36 +37,24 @@
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
{music != "" ? "${music}" : ""}))
|
{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 ""
|
(deflisten music :initial ""
|
||||||
"playerctl --follow metadata --format '{{ title }} by {{ artist }}' || true")
|
"playerctl --follow metadata --format '{{ title }} by {{ artist }}' || true")
|
||||||
|
|
||||||
|
; convert these to `deflisten`s as well because polling is very silly
|
||||||
(defpoll volume :interval "1s"
|
(defpoll volume :interval "1s"
|
||||||
"pamixer --get-volume")
|
"pamixer --get-volume")
|
||||||
|
|
||||||
(defpoll time :interval "10s"
|
(defpoll micVolume :interval "10s"
|
||||||
"date '+%a %b %d %H:%M:%S'")
|
"pamixer --default-source --get-volume")
|
||||||
|
|
||||||
(defwindow bar
|
(defpoll micMuted :interval "1s"
|
||||||
:monitor 2
|
"pamixer --default-source --get-mute")
|
||||||
:stacking "fg"
|
|
||||||
:exclusive true
|
(defpoll cpu :interval "1s"
|
||||||
:geometry (geometry :x "0%"
|
"mpstat -o JSON | jq -r '(100 - .sysstat.hosts[0].statistics[0][\"cpu-load\"][0].idle | round | tostring)+\"%\"'")
|
||||||
:y "0%"
|
|
||||||
:width "100%"
|
(defpoll ram :interval "1s"
|
||||||
:height "31px"
|
"free | grep Mem | awk '{printf \"%.0f%\", $3/$2 * 100.0}'")
|
||||||
:anchor "bottom center")
|
|
||||||
(bar))
|
(defpoll time :interval "1s"
|
||||||
|
"date '+%a %b %d %H:%M:%S'")
|
||||||
|
|
|
@ -89,8 +89,10 @@ animations {
|
||||||
|
|
||||||
dwindle {
|
dwindle {
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
# master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
preserve_split = yes # you probably want this
|
pseudotile = yes
|
||||||
|
preserve_split = yes
|
||||||
|
no_gaps_when_only = true
|
||||||
}
|
}
|
||||||
|
|
||||||
master {
|
master {
|
||||||
|
@ -119,16 +121,15 @@ gestures {
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
bind = $mainMod, Q, exec, wezterm
|
|
||||||
bind = $mainMod, ret, exec, wezterm
|
|
||||||
bind = $mainMod, return, exec, wezterm
|
bind = $mainMod, return, exec, wezterm
|
||||||
bind = $mainMod SHIFT, return, exec, wezterm
|
bind = $mainMod SHIFT, return, exec, wezterm start --always-new-process
|
||||||
bind = $mainMod, U, exec, firefox
|
bind = $mainMod, U, exec, firefox
|
||||||
bind = $mainMod, space, exec, wofi --show drun
|
bind = $mainMod, space, exec, wofi --show drun
|
||||||
bind = $mainMod, C, killactive,
|
bind = $mainMod, C, killactive,
|
||||||
bind = $mainMod, M, exit,
|
bind = $mainMod, M, exit,
|
||||||
bind = $mainMod, E, exec, dolphin
|
bind = $mainMod, E, exec, dolphin
|
||||||
bind = $mainMod, V, togglefloating,
|
bind = $mainMod, F, togglefloating,
|
||||||
|
bind = $mainMod SHIFT, F, fullscreen,
|
||||||
bind = $mainMod, R, exec, wofi --show drun
|
bind = $mainMod, R, exec, wofi --show drun
|
||||||
bind = $mainMod, S, pseudo, # dwindle
|
bind = $mainMod, S, pseudo, # dwindle
|
||||||
bind = $mainMod, P, togglesplit, # dwindle
|
bind = $mainMod, P, togglesplit, # dwindle
|
||||||
|
@ -143,10 +144,10 @@ bind = $mainMod, l, movefocus, r
|
||||||
bind = $mainMod, k, movefocus, u
|
bind = $mainMod, k, movefocus, u
|
||||||
bind = $mainMod, j, movefocus, d
|
bind = $mainMod, j, movefocus, d
|
||||||
|
|
||||||
bind = $mainMod SHIFT, H, movewindow, l
|
bind = $mainMod SHIFT, H, swapwindow, l
|
||||||
bind = $mainMod SHIFT, L, movewindow, r
|
bind = $mainMod SHIFT, L, swapwindow, r
|
||||||
bind = $mainMod SHIFT, K, movewindow, u
|
bind = $mainMod SHIFT, K, swapwindow, u
|
||||||
bind = $mainMod SHIFT, J, movewindow, d
|
bind = $mainMod SHIFT, J, swapwindow, d
|
||||||
|
|
||||||
bind = $mainMod SHIFT, V, exec, pamixer --default-source --toggle-mute
|
bind = $mainMod SHIFT, V, exec, pamixer --default-source --toggle-mute
|
||||||
bind = , XF86AudioMicMute, exec, pamixer --default-source --toggle-mute
|
bind = , XF86AudioMicMute, exec, pamixer --default-source --toggle-mute
|
||||||
|
|
Reference in a new issue