feat: Add host sydpc
My, this is a lot TwT. Much work was batched as part of the transition from guix-rebound to nixos-testbed/sydpc. - Discord/Vesktop module & config. - Syncthing setup. - Assorted Emacs changes. - Waybar config. - Niri config. - Steam config. - Some MPD. - Stylix config. - Files/Impermanence things. - Enable Ghostty. - God knows what else.
This commit is contained in:
45
modules/home/users/crumb/waybar/src/cputemp
Executable file
45
modules/home/users/crumb/waybar/src/cputemp
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
check() {
|
||||
command -v "$1" 1>/dev/null
|
||||
}
|
||||
|
||||
check sensors || exit
|
||||
|
||||
data="$(sensors coretemp-isa-0000 | sed 's/+//g')"
|
||||
package="$(echo "$data" | awk -e '/Package/ {print $4}')"
|
||||
coretemp="$(echo "$data" | awk -e '/Core/ {print $3}')"
|
||||
|
||||
tooltip="<b>Core Temp: $package </b>\n"
|
||||
|
||||
# "format-icons" : [ "", "", "", "", "" ] ,
|
||||
tempint=''${package%.*}
|
||||
temp="<b>''${tempint}</b>"
|
||||
# icon=""
|
||||
class="cool"
|
||||
[ "$tempint" -gt 50 ] && {
|
||||
# icon=""
|
||||
class="normal"
|
||||
}
|
||||
[ "$tempint" -gt 70 ] && {
|
||||
# icon=" "
|
||||
class="warm"
|
||||
}
|
||||
[ "$tempint" -gt 85 ] && {
|
||||
# icon=" "
|
||||
class="warn"
|
||||
}
|
||||
[ "$tempint" -gt 95 ] && {
|
||||
# icon=" "
|
||||
class="critical"
|
||||
}
|
||||
|
||||
j=0
|
||||
for i in $coretemp; do
|
||||
tooltip+="Core $j: $i\n"
|
||||
((j = j + 1))
|
||||
done
|
||||
tooltip="''${tooltip::-2}"
|
||||
cat <<EOF
|
||||
{"text":"$temp","tooltip":"$tooltip", "class": "$class"}
|
||||
EOF
|
||||
31
modules/home/users/crumb/waybar/src/cycle_notifications.clj
Normal file
31
modules/home/users/crumb/waybar/src/cycle_notifications.clj
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bb
|
||||
|
||||
(ns cycle-notifications
|
||||
(:require [babashka.process :as p]
|
||||
[clojure.string :as str]
|
||||
[cheshire.core :as json]))
|
||||
|
||||
(defn get-mode []
|
||||
(case (:out (p/shell {:out :string} "swaync-client -D"))
|
||||
"true" :dnd
|
||||
"false" :default))
|
||||
|
||||
#_
|
||||
(get-mode)
|
||||
|
||||
(defn toggle! []
|
||||
(p/shell {:out nil} "swaync-client -d")
|
||||
;; Update Waybar.
|
||||
(p/shell "pkill -SIGRTMIN+2 waybar"))
|
||||
|
||||
(defn status []
|
||||
(-> (case (:out (p/shell {:out :string} "swaync-client -D"))
|
||||
"false" {:text "" :tooltip "Notify"}
|
||||
"true" {:text "" :tooltip "Do not disturb"})
|
||||
json/generate-string
|
||||
println))
|
||||
|
||||
(defn -main [& args]
|
||||
(case (first args)
|
||||
"toggle" (toggle!)
|
||||
nil (status)))
|
||||
312
modules/home/users/crumb/waybar/src/waybar.css
Normal file
312
modules/home/users/crumb/waybar/src/waybar.css
Normal file
@@ -0,0 +1,312 @@
|
||||
/* !!!!!!! Shamelessly stolen from Niksingh710 */
|
||||
/* https://github.com/niksingh710/gdots/blob/d97c544a9d73a34d12770ba20b6b80d14e964aa1/.config/waybar/style.css */
|
||||
@define-color fuji-white #DCD7BA;
|
||||
@define-color old-white #C8C093;
|
||||
@define-color sumi-ink-0 #16161D;
|
||||
@define-color sumi-ink-1 #1F1F28;
|
||||
@define-color sumi-ink-2 #2A2A37;
|
||||
@define-color sumi-ink-3 #363646;
|
||||
@define-color sumi-ink-4 #54546D;
|
||||
@define-color wave-blue-1 #223249;
|
||||
@define-color wave-blue-2 #2D4F67;
|
||||
@define-color winter-green #2B3328;
|
||||
@define-color winter-yellow #49443C;
|
||||
@define-color winter-red #43242B;
|
||||
@define-color winter-blue #252535;
|
||||
@define-color autumn-green #76946A;
|
||||
@define-color autumn-red #C34043;
|
||||
@define-color autumn-yellow #DCA561;
|
||||
@define-color samurai-red #E82424;
|
||||
@define-color ronin-yellow #FF9E3B;
|
||||
@define-color wave-aqua-1 #6A9589;
|
||||
@define-color dragon-blue #658594;
|
||||
@define-color fuji-gray #727169;
|
||||
@define-color spring-violet-1 #938AA9;
|
||||
@define-color oni-violet #957FB8;
|
||||
@define-color crystal-blue #7E9CD8;
|
||||
@define-color spring-violet-2 #9CABCA;
|
||||
@define-color spring-blue #7FB4CA;
|
||||
@define-color light-blue #A3D4D5;
|
||||
@define-color wave-aqua-2 #7AA89F;
|
||||
@define-color spring-green #98BB6C;
|
||||
@define-color boat-yellow-1 #938056;
|
||||
@define-color boat-yellow-2 #C0A36E;
|
||||
@define-color carp-yellow #E6C384;
|
||||
@define-color sakura-pink #D27E99;
|
||||
@define-color wave-red #E46876;
|
||||
@define-color peach-red #FF5D62;
|
||||
@define-color surimi-orange #FFA066;
|
||||
|
||||
@define-color background @sumi-ink-1;
|
||||
@define-color foreground @fuji-white;
|
||||
@define-color border @sumi-ink-4;
|
||||
@define-color active @old-white;
|
||||
|
||||
*
|
||||
{ font-size: 16px
|
||||
; font-family: "Symbols Nerd Font"
|
||||
; min-width: 8px
|
||||
; min-height: 0px
|
||||
; border: none
|
||||
; border-radius: 0
|
||||
; box-shadow: none
|
||||
; text-shadow: none
|
||||
; padding: 0px
|
||||
}
|
||||
|
||||
window#waybar
|
||||
{ transition-property: background-color
|
||||
; transition-duration: 0.5s
|
||||
; border-radius: 8px
|
||||
; border: 2px solid @active
|
||||
; background: @background
|
||||
; background: alpha(@background, 0.7)
|
||||
; color: lighter(@active)
|
||||
}
|
||||
|
||||
menu,
|
||||
tooltip
|
||||
{ border-radius: 8px
|
||||
; padding: 2px
|
||||
; border: 1px solid lighter(@active)
|
||||
; background: alpha(@background, 0.6)
|
||||
; color: lighter(@active)
|
||||
}
|
||||
|
||||
menu label,
|
||||
tooltip label
|
||||
{ font-size: 14px
|
||||
; color: lighter(@active)
|
||||
}
|
||||
|
||||
#submap,
|
||||
#tray>.needs-attention
|
||||
{ animation-name: blink-active
|
||||
; animation-duration: 1s
|
||||
; animation-timing-function: linear
|
||||
; animation-iteration-count: infinite
|
||||
; animation-direction: alternate
|
||||
}
|
||||
|
||||
.modules-right
|
||||
{ margin: 0px 6px 6px 6px
|
||||
; border-radius: 4px
|
||||
; background: alpha(@background, 0.4)
|
||||
; color: lighter(@active)
|
||||
}
|
||||
|
||||
.modules-left
|
||||
{ transition-property: background-color
|
||||
; transition-duration: 0.5s
|
||||
; margin: 6px 6px 6px 6px
|
||||
; border-radius: 4px
|
||||
; background: alpha(@background, 0.4)
|
||||
; color: lighter(@active)
|
||||
}
|
||||
|
||||
#gcpu,
|
||||
#custom-github,
|
||||
#memory,
|
||||
#disk,
|
||||
#together,
|
||||
#submap,
|
||||
#custom-weather,
|
||||
#custom-recorder,
|
||||
#connection,
|
||||
#cnoti,
|
||||
#brightness,
|
||||
#power,
|
||||
#custom-updates,
|
||||
#tray,
|
||||
#audio,
|
||||
#privacy,
|
||||
#sound
|
||||
{ border-radius: 4px
|
||||
; margin: 2px 2px 4px 2px
|
||||
; background: alpha(darker(@active), 0.3)
|
||||
}
|
||||
|
||||
#custom-notifications
|
||||
{ padding-left: 4px
|
||||
}
|
||||
|
||||
#custom-hotspot,
|
||||
#custom-github,
|
||||
#custom-notifications
|
||||
{ font-size: 14px
|
||||
}
|
||||
|
||||
#custom-hotspot
|
||||
{ padding-right: 2px
|
||||
}
|
||||
|
||||
#custom-vpn,
|
||||
#custom-hotspot
|
||||
{ background: alpha(darker(@active), 0.3)
|
||||
}
|
||||
|
||||
#privacy-item
|
||||
{ padding: 6px 0px 6px 6px
|
||||
}
|
||||
|
||||
#gcpu
|
||||
{ padding: 8px 0px 8px 0px
|
||||
}
|
||||
|
||||
#custom-cpu-icon
|
||||
{ font-size: 25px
|
||||
}
|
||||
|
||||
#custom-cputemp,
|
||||
#disk,
|
||||
#memory,
|
||||
#cpu
|
||||
{ font-size: 14px
|
||||
; font-weight: bold
|
||||
}
|
||||
|
||||
#custom-github
|
||||
{ padding-top: 2px
|
||||
; padding-right: 4px
|
||||
}
|
||||
|
||||
#custom-dmark
|
||||
{ color: alpha(@foreground, 0.3)
|
||||
}
|
||||
|
||||
#submap
|
||||
{ margin-bottom: 0px
|
||||
}
|
||||
|
||||
#workspaces
|
||||
{ margin: 0px 2px
|
||||
; padding: 4px 0px 0px 0px
|
||||
; border-radius: 8px
|
||||
}
|
||||
|
||||
#workspaces button
|
||||
{ transition-property: background-color
|
||||
; transition-duration: 0.5s
|
||||
; color: @foreground
|
||||
; background: transparent
|
||||
; border-radius: 4px
|
||||
; color: alpha(@foreground, 0.3)
|
||||
}
|
||||
|
||||
#workspaces button.urgent
|
||||
{ font-weight: bold
|
||||
; color: @foreground
|
||||
}
|
||||
|
||||
#workspaces button.active
|
||||
{ padding: 4px 2px
|
||||
; background: alpha(@active, 0.4)
|
||||
; color: lighter(@active)
|
||||
; border-radius: 4px
|
||||
}
|
||||
|
||||
#network.wifi
|
||||
{ padding-right: 4px
|
||||
}
|
||||
|
||||
#submap
|
||||
{ min-width: 0px
|
||||
; margin: 4px 6px 4px 6px
|
||||
}
|
||||
|
||||
#custom-weather,
|
||||
#tray
|
||||
{ padding: 4px 0px 4px 0px
|
||||
}
|
||||
|
||||
#bluetooth
|
||||
{ padding-top: 2px
|
||||
}
|
||||
|
||||
#battery
|
||||
{ border-radius: 8px
|
||||
; padding: 4px 0px
|
||||
; margin: 4px 2px 4px 2px
|
||||
}
|
||||
|
||||
#battery.discharging.warning
|
||||
{ animation-name: blink-yellow
|
||||
; animation-duration: 1s
|
||||
; animation-timing-function: linear
|
||||
; animation-iteration-count: infinite
|
||||
; animation-direction: alternate
|
||||
}
|
||||
|
||||
#battery.discharging.critical
|
||||
{ animation-name: blink-red
|
||||
; animation-duration: 1s
|
||||
; animation-timing-function: linear
|
||||
; animation-iteration-count: infinite
|
||||
; animation-direction: alternate
|
||||
}
|
||||
|
||||
#clock
|
||||
{ font-weight: bold
|
||||
; padding: 4px 2px 2px 2px
|
||||
; font-family: "MartianMono"
|
||||
}
|
||||
|
||||
#pulseaudio.mic
|
||||
{ border-radius: 4px
|
||||
; color: @background
|
||||
; background: alpha(darker(@foreground), 0.6)
|
||||
; padding-left: 4px
|
||||
}
|
||||
|
||||
#backlight-slider slider,
|
||||
#pulseaudio-slider slider
|
||||
{ background-color: transparent
|
||||
; box-shadow: none
|
||||
}
|
||||
|
||||
#backlight-slider trough,
|
||||
#pulseaudio-slider trough
|
||||
{ margin-top: 4px
|
||||
; min-width: 6px
|
||||
; min-height: 60px
|
||||
; border-radius: 8px
|
||||
; background-color: alpha(@background, 0.6)
|
||||
}
|
||||
|
||||
#backlight-slider highlight,
|
||||
#pulseaudio-slider highlight
|
||||
{ border-radius: 8px
|
||||
; background-color: lighter(@active)
|
||||
}
|
||||
|
||||
#bluetooth.discoverable,
|
||||
#bluetooth.discovering,
|
||||
#bluetooth.pairable
|
||||
{ border-radius: 8px
|
||||
; animation-name: blink-active
|
||||
; animation-duration: 1s
|
||||
; animation-timing-function: linear
|
||||
; animation-iteration-count: infinite
|
||||
; animation-direction: alternate
|
||||
}
|
||||
|
||||
@keyframes blink-active
|
||||
{ to
|
||||
{ background-color: @active
|
||||
; color: @foreground
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blink-red
|
||||
{ to
|
||||
{ background-color: @samurai-red
|
||||
; color: @foreground
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blink-yellow
|
||||
{ to
|
||||
{ background-color: @autumn-yellow
|
||||
; color: @foreground
|
||||
}
|
||||
}
|
||||
485
modules/home/users/crumb/waybar/src/waybar.nix
Normal file
485
modules/home/users/crumb/waybar/src/waybar.nix
Normal file
@@ -0,0 +1,485 @@
|
||||
# !!!!!! Shamelessly stolen from Niksingh710's config!
|
||||
# https://github.com/niksingh710/gdots/blob/d97c544a9d73a34d12770ba20b6b80d14e964aa1/.config/waybar/bars/top.jsonc
|
||||
{ niri-gaps ? 8
|
||||
, pkgs ? import <nixpkgs> {}
|
||||
, lib ? pkgs.lib
|
||||
}:
|
||||
|
||||
let
|
||||
cputemp = pkgs.writeShellApplication {
|
||||
name = "cputemp";
|
||||
runtimeInputs = with pkgs; [
|
||||
lm_sensors
|
||||
];
|
||||
text = builtins.readFile ./cputemp;
|
||||
};
|
||||
cycle-notifications = pkgs.writeShellApplication {
|
||||
name = "cycle-notifications";
|
||||
runtimeInputs = with pkgs; [
|
||||
swaynotificationcenter
|
||||
];
|
||||
text = ''
|
||||
${pkgs.babashka}/bin/bb -cp ${./.} -m cycle-notifications -- "$@"
|
||||
'';
|
||||
};
|
||||
in {
|
||||
layer = "top";
|
||||
# Left margin will be provided by Niri's gaps.
|
||||
margin =
|
||||
let i = builtins.toString niri-gaps;
|
||||
in "${i} ${i} ${i} 0";
|
||||
|
||||
modules-left = [
|
||||
# "custom/updates"
|
||||
"niri/workspaces"
|
||||
"group/info"
|
||||
];
|
||||
modules-right = [
|
||||
"custom/recorder"
|
||||
"privacy"
|
||||
"group/brightness"
|
||||
"group/sound"
|
||||
"group/together"
|
||||
# "group/cnoti"
|
||||
"tray"
|
||||
# "group/power"
|
||||
];
|
||||
|
||||
backlight = {
|
||||
device = "intel_backlight";
|
||||
format = "{icon}";
|
||||
format-icons =
|
||||
[ "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ];
|
||||
on-scroll-down = "brightnessctl s 5%-";
|
||||
on-scroll-up = "brightnessctl s +5%";
|
||||
smooth-scrolling-threshold = 1;
|
||||
tooltip = true;
|
||||
tooltip-format = "Brightness: {percent}% ";
|
||||
};
|
||||
"backlight/slider" = {
|
||||
device = "intel_backlight";
|
||||
max = 100;
|
||||
min = 5;
|
||||
orientation = "vertical";
|
||||
};
|
||||
battery = {
|
||||
format = "{icon}";
|
||||
format-charging = "<b>{icon} </b>";
|
||||
format-full = "<span color='#82A55F'><b>{icon}</b></span>";
|
||||
format-icons = [ "" "" "" "" "" "" ];
|
||||
rotate = 270;
|
||||
states = {
|
||||
critical = 15;
|
||||
good = 95;
|
||||
warning = 30;
|
||||
};
|
||||
tooltip-format = "{timeTo} {capacity} % | {power} W";
|
||||
};
|
||||
bluetooth = {
|
||||
format-connected = "<b></b>";
|
||||
format-disabled = "";
|
||||
format-off = "";
|
||||
format-on = "";
|
||||
on-click = "rofi-bluetooth -config ~/.config/rofi/menu.d/network.rasi -i";
|
||||
tooltip-format = ''
|
||||
{controller_alias} {controller_address}
|
||||
|
||||
{num_connections} connected'';
|
||||
tooltip-format-connected = ''
|
||||
{controller_alias} {controller_address}
|
||||
|
||||
{num_connections} connected
|
||||
|
||||
{device_enumerate}'';
|
||||
tooltip-format-enumerate-connected = "{device_alias} {device_address}";
|
||||
tooltip-format-enumerate-connected-battery =
|
||||
"{device_alias} {device_address} {device_battery_percentage}%";
|
||||
};
|
||||
"bluetooth#status" = {
|
||||
format-connected = "<b>{num_connections}</b>";
|
||||
format-connected-battery =
|
||||
"<small><b>{device_battery_percentage}%</b></small>";
|
||||
format-disabled = "";
|
||||
format-off = "";
|
||||
format-on = "";
|
||||
on-click = "rofi-bluetooth -config ~/.config/rofi/menu.d/network.rasi -i";
|
||||
tooltip-format = ''
|
||||
{controller_alias} {controller_address}
|
||||
|
||||
{num_connections} connected'';
|
||||
tooltip-format-connected = ''
|
||||
{controller_alias} {controller_address}
|
||||
|
||||
{num_connections} connected
|
||||
|
||||
{device_enumerate}'';
|
||||
tooltip-format-enumerate-connected = "{device_alias} {device_address}";
|
||||
tooltip-format-enumerate-connected-battery =
|
||||
"{device_alias} {device_address} {device_battery_percentage}%";
|
||||
};
|
||||
clock = {
|
||||
calendar = {
|
||||
format = { today = "<span color='#a6e3a1'><b><u>{}</u></b></span>"; };
|
||||
mode = "month";
|
||||
mode-mon-col = 3;
|
||||
on-click-right = "mode";
|
||||
on-scroll = 1;
|
||||
weeks-pos = "right";
|
||||
};
|
||||
format = ''
|
||||
{:%H
|
||||
%M}'';
|
||||
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||
};
|
||||
cpu = {
|
||||
format = "<b>{usage}</b>";
|
||||
on-click = "foot btop";
|
||||
};
|
||||
"custom/colorpicker" = {
|
||||
exec = "colorpicker -j";
|
||||
format = "{}";
|
||||
interval = "once";
|
||||
on-click = "sleep 1 && colorpicker";
|
||||
return-type = "json";
|
||||
signal = 1;
|
||||
};
|
||||
"custom/cpu-icon" = {
|
||||
format = "";
|
||||
tooltip = false;
|
||||
};
|
||||
"custom/cputemp" = {
|
||||
exec = "${cputemp}/bin/cputemp";
|
||||
format = "{}";
|
||||
interval = 10;
|
||||
return-type = "json";
|
||||
};
|
||||
"custom/dmark" = {
|
||||
format = "";
|
||||
tooltip = false;
|
||||
};
|
||||
"custom/github" = {
|
||||
exec = "$HOME/.config/waybar/bin/github.sh";
|
||||
format = "{}";
|
||||
interval = 3600;
|
||||
on-click =
|
||||
"xdg-open https://github.com/notifications;pkill -RTMIN+9 waybar";
|
||||
return-type = "json";
|
||||
signal = 9;
|
||||
};
|
||||
"custom/hotspot" = {
|
||||
exec = "~/.config/waybar/bin/hotspot";
|
||||
format = "{} ";
|
||||
interval = 5;
|
||||
on-click = "hash wihotspot && wihotspot";
|
||||
return-type = "json";
|
||||
};
|
||||
"custom/hyprkill" = {
|
||||
exec = ''
|
||||
echo '
|
||||
Kill clients using hyrpctl kill'
|
||||
'';
|
||||
format = "{}";
|
||||
interval = "once";
|
||||
on-click = "sleep 1 && hyprctl kill";
|
||||
};
|
||||
"custom/hyprshade" = {
|
||||
exec = "toggle-hyprshade status";
|
||||
format = "{}";
|
||||
on-click = "toggle-hyprshade";
|
||||
return-type = "json";
|
||||
signal = 11;
|
||||
tooltip = true;
|
||||
};
|
||||
"custom/mark" = {
|
||||
format = "";
|
||||
tooltip = false;
|
||||
};
|
||||
"custom/notifications" = {
|
||||
exec = "${cycle-notifications}/bin/cycle-notifications";
|
||||
format = "<b>{}</b> ";
|
||||
interval = "once";
|
||||
on-click = "swaync-client -t";
|
||||
on-click-right = "~/scratch/waybar/cycle-notifications toggle";
|
||||
return-type = "json";
|
||||
signal = 2;
|
||||
};
|
||||
"custom/recorder" = {
|
||||
exec = "echo ''";
|
||||
exec-if = "pgrep 'wl-screenrec'";
|
||||
format = "{}";
|
||||
interval = "once";
|
||||
on-click = "recorder";
|
||||
signal = 4;
|
||||
tooltip = "false";
|
||||
};
|
||||
"custom/updates" = {
|
||||
exec = "~/.config/waybar/bin/updatecheck";
|
||||
exec-if = "exit 0";
|
||||
format = "{}";
|
||||
interval = 10800;
|
||||
return-type = "json";
|
||||
signal = 8;
|
||||
};
|
||||
"custom/vpn" = {
|
||||
exec = "~/.config/waybar/bin/vpn";
|
||||
format = "{} ";
|
||||
interval = 5;
|
||||
return-type = "json";
|
||||
};
|
||||
"custom/weather" = {
|
||||
exec = ''
|
||||
wttrbar --custom-indicator '{ICON}
|
||||
<b>{temp_C}</b>' --location noida
|
||||
'';
|
||||
format = "{}";
|
||||
interval = 3600;
|
||||
return-type = "json";
|
||||
tooltip = true;
|
||||
};
|
||||
disk = {
|
||||
format = ''
|
||||
<b>
|
||||
{percentage_used}</b>
|
||||
'';
|
||||
interval = 600;
|
||||
path = "/";
|
||||
};
|
||||
"group/audio" = {
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = false;
|
||||
};
|
||||
modules = [ "pulseaudio" "pulseaudio#mic" "pulseaudio/slider" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/bluetooth" = {
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = true;
|
||||
};
|
||||
modules = [ "bluetooth" "bluetooth#status" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/brightness" = {
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = false;
|
||||
};
|
||||
modules = [
|
||||
"backlight"
|
||||
"backlight/slider"
|
||||
];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/cnoti" = {
|
||||
modules = [ "custom/github" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/connection" = {
|
||||
modules =
|
||||
[ "custom/vpn" "custom/hotspot" "group/network" "group/bluetooth" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/gcpu" = {
|
||||
modules = [ "custom/cpu-icon" "custom/cputemp" "cpu" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/info" = {
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = false;
|
||||
};
|
||||
modules = [ "custom/dmark" "group/gcpu" "memory" "disk" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/network" = {
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = true;
|
||||
};
|
||||
modules = [ "network" "network#speed" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/power" = {
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = false;
|
||||
};
|
||||
modules = [ "battery" "power-profiles-daemon" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/sound" = {
|
||||
modules = [ "group/audio" "custom/notifications" ];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/together" = {
|
||||
modules = [
|
||||
"group/utils"
|
||||
"clock"
|
||||
];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"group/utils" = {
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = true;
|
||||
};
|
||||
modules = [
|
||||
"custom/mark"
|
||||
# "custom/weather"
|
||||
# "custom/colorpicker"
|
||||
# "custom/hyprshade"
|
||||
"idle_inhibitor"
|
||||
"custom/hyprkill"
|
||||
];
|
||||
orientation = "inherit";
|
||||
};
|
||||
"hyprland/submap" = {
|
||||
format = "<b></b>";
|
||||
max-length = 8;
|
||||
tooltip = true;
|
||||
};
|
||||
"hyprland/workspaces" = {
|
||||
all-outputs = true;
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
"1" = "१";
|
||||
"10" = "०";
|
||||
"2" = "२";
|
||||
"3" = "३";
|
||||
"4" = "४";
|
||||
"5" = "५";
|
||||
"6" = "६";
|
||||
"7" = "७";
|
||||
"8" = "८";
|
||||
"9" = "९";
|
||||
};
|
||||
on-click = "activate";
|
||||
};
|
||||
idle_inhibitor = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
activated = "";
|
||||
deactivated = "";
|
||||
};
|
||||
tooltip-format-activated = "Idle Inhibitor is active";
|
||||
tooltip-format-deactivated = "Idle Inhibitor is not active";
|
||||
};
|
||||
memory = {
|
||||
format = ''
|
||||
<b>
|
||||
{:2}</b>'';
|
||||
};
|
||||
network = {
|
||||
format = "{icon}";
|
||||
format-disconnected = "";
|
||||
format-ethernet = "";
|
||||
format-icons = {
|
||||
disconnected = [ "" ];
|
||||
ethernet = [ "" ];
|
||||
wifi = [ "" ];
|
||||
};
|
||||
format-linked = "";
|
||||
format-wifi = "";
|
||||
on-click =
|
||||
"pgrep -x rofi &>/dev/null && notify-send rofi || networkmanager_dmenu";
|
||||
tooltip = false;
|
||||
};
|
||||
"network#speed" = {
|
||||
format = " {bandwidthDownBits} ";
|
||||
interval = 5;
|
||||
on-click =
|
||||
"pgrep -x rofi &>/dev/null && notify-send rofi || networkmanager_dmenu";
|
||||
rotate = 90;
|
||||
tooltip = true;
|
||||
tooltip-format = "{ipaddr}";
|
||||
tooltip-format-disconnected = "Not Connected to any type of Network";
|
||||
tooltip-format-ethernet = ''
|
||||
{ifname}
|
||||
{ipaddr} | {frequency} MHz{icon} '';
|
||||
tooltip-format-wifi = ''
|
||||
{essid} ({signalStrength}%)
|
||||
{ipaddr} | {frequency} MHz{icon} '';
|
||||
};
|
||||
"niri/workspaces" = {
|
||||
all-outputs = true;
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
"1" = "१";
|
||||
"10" = "०";
|
||||
"2" = "२";
|
||||
"3" = "३";
|
||||
"4" = "४";
|
||||
"5" = "५";
|
||||
"6" = "६";
|
||||
"7" = "७";
|
||||
"8" = "८";
|
||||
"9" = "९";
|
||||
};
|
||||
on-click = "activate";
|
||||
};
|
||||
position = "right";
|
||||
power-profiles-daemon = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
balanced = "<span><small> </small></span>";
|
||||
default = "";
|
||||
performance = "<span color='#B37F34'><small></small></span>";
|
||||
power-saver = "<span color='#a6e3a1'><small></small></span>";
|
||||
};
|
||||
tooltip = true;
|
||||
tooltip-format = ''
|
||||
Power profile: {profile}
|
||||
Driver: {driver}'';
|
||||
};
|
||||
privacy = {
|
||||
icon-size = 14;
|
||||
icon-spacing = 4;
|
||||
modules = [{
|
||||
tooltip = true;
|
||||
tooltip-icon-size = 24;
|
||||
type = "screenshare";
|
||||
}];
|
||||
orientation = "vertical";
|
||||
transition-duration = 250;
|
||||
};
|
||||
pulseaudio = {
|
||||
format = "{icon}";
|
||||
format-bluetooth = "{icon}";
|
||||
format-icons = {
|
||||
car = " ";
|
||||
default = [ "" "" "" ];
|
||||
handsfree = "";
|
||||
headphones = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
};
|
||||
format-muted = "";
|
||||
on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||
on-click-right = "volume mute";
|
||||
on-scroll-down = "pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||
on-scroll-up = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||
smooth-scrolling-threshold = 1;
|
||||
tooltip-format = "{volume}% {icon} | {desc}";
|
||||
};
|
||||
"pulseaudio#mic" = {
|
||||
format = "{format_source}";
|
||||
format-source = "";
|
||||
format-source-muted = "";
|
||||
on-click = "pactl set-source-mute 0 toggle";
|
||||
on-scroll-down = "pactl set-source-volume 0 -1%";
|
||||
on-scroll-up = "pactl set-source-volume 0 +1%";
|
||||
tooltip-format = "{volume}% {format_source} ";
|
||||
};
|
||||
"pulseaudio/slider" = {
|
||||
max = 140;
|
||||
min = 0;
|
||||
orientation = "vertical";
|
||||
};
|
||||
reload_style_on_change = true;
|
||||
tray = {
|
||||
icon-size = 18;
|
||||
spacing = 10;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user