services: Add a few desktop services.

* LICENSES/CC-BY-SA-4.0.txt: New file.
* modules/rosenthal/examples/emacs/fonts.el: New file.
* modules/rosenthal/examples/emacs/init.el: New file.
* modules/rosenthal/examples/mako.conf: New file.
* modules/rosenthal/examples/niri.kdl: New file.
* modules/rosenthal/examples/wallpaper.jpg: New file.
* modules/rosenthal/examples/waybar/config.jsonc: New file.
* modules/rosenthal/examples/waybar/style.css: New file.
* modules/rosenthal/services/desktop.scm (%rosenthal-example-emacs-fonts)
(%rosenthal-example-emacs-init, %rosenthal-desktop-home-services)
(home-blueman-applet-service-type, home-fcitx5-service-type)
(home-mako-service-type, home-network-manager-applet-service-type)
(home-niri-service-type, home-rofi-service-type, home-swaybg-service-type)
(home-waybar-service-type): New variables.
(home-blueman-applet-configuration, home-fcitx5-configuration)
(home-mako-configuration, home-network-manager-applet-configuration)
(home-niri-configuration, home-rofi-configuration, home-swaybg-configuration)
(home-waybar-configuration): New data types.
This commit is contained in:
Hilton Chain committed 2025-06-23 09:21:23 +08:00
1 parent b084fdae98
commit 20c9d408bc
10 files changed
+2014 -3

No files matched your search

@@ -0,0 +1,107 @@
// -*- mode: jsonc -*-
// SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
//
// SPDX-License-Identifier: CC0-1.0
{
"layer": "top",
"spacing": 5,
"modules-left": [
"niri/workspaces",
"cpu",
"memory",
"temperature",
],
"modules-center": [
"clock",
],
"modules-right": [
"tray",
"wireplumber",
"backlight",
"battery",
],
// left
"niri/workspaces": {
"all-outputs": true,
"format": "{icon}",
"format-icons": {
"focused": "\uF055",
"active": "\uF192",
"default": "\uF111",
}
},
"cpu": {
"format": "CPU {usage}%",
"states": {
"full": 90,
},
"interval": 2,
},
"memory": {
"format": "RAM {percentage}%",
"states": {
"full": 90,
},
"interval": 2,
},
"temperature": {
"critical-threshold": 80,
"format": "{temperatureC}\u00B0C",
"interval": 2,
"tooltip": false,
},
// center
"clock": {
"format": "{:%A, %B %d, %Y (%R)}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "year",
"mode-mon-col" : 3,
"weeks-pos" : "right",
"on-scroll" : 1,
"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>",
}
},
"actions": {
"on-click-right": "mode",
"on-scroll-up": "tz_up",
"on-scroll-down": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down",
}
},
// right
"tray": {
"spacing": 10,
},
"wireplumber": {
"scroll-step": 5,
"format": "{icon} {volume}%",
"format-icons": ["\uF026", "\uF027", "\uF028"],
"format-muted": "Muted {volume}%",
"on-click": "$$bin/wpctl$$ set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "$$bin/pavucontrol$$",
},
"backlight": {
"on-scroll-down": "$$bin/light$$ -U 5",
"on-scroll-up": "$$bin/light$$ -A 5",
"format": "{icon} {percent}%",
"format-icons": ["\uF186", "\uF0EB"],
"tooltip": false,
},
"battery": {
"interval": 60,
"states": {
"warning": 30,
"critical": 15,
},
"format": "{icon} {capacity}%",
"format-icons": ["\uF244", "\uF243", "\uF242", "\uF241", "\uF240"],
},
}
+135
View File
@@ -0,0 +1,135 @@
/* SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space> */
/* SPDX-License-Identifier: CC0-1.0 */
@define-color bg1 #d2dee9;
@define-color bg2 #13181b;
@define-color red #EC7875;
@define-color green #A3BE8C;
@define-color blue #75A4CD;
/* Execute ‘guix shell python-pywal imagemagick -- wal -nstei <image>’, */
/* then select colors from ‘~/.cache/wal/colors-waybar.css’. */
@define-color color0 #d2dee9;
@define-color color1 #B3C6D3;
@define-color color2 #97B0C7;
@define-color color3 #AFB5AE;
@define-color color4 #d2dee9;
@define-color color5 #A7BAC9;
@define-color color6 #C2C2B5;
@define-color color7 #939ba3;
* {
font-family: "Noto Sans";
font-size: 1.2rem;
background-color: transparent;
border-radius: 5px;
}
window {
color: @bg2;
}
tooltip {
background-color: @bg2;
border: 1px solid @bg2;
}
tooltip label {
color: @bg1;
text-shadow: none;
}
.modules-right {
margin: 10px 10px 0 0;
}
.modules-center {
margin: 10px 0 0 0;
}
.modules-left {
margin: 10px 0 0 10px;
}
#cpu,
#memory,
#temperature,
#clock,
#tray,
#wireplumber,
#backlight,
#battery {
padding: 0 10px;
background-color: @bg1;
opacity: 0.95;
}
#workspaces button {
color: @bg2;
padding: 0 5px;
}
#tray menu {
color: @bg2;
background-color: @bg1;
}
#tray menu menuitem:hover {
color: @bg1;
background-color: @bg2;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
}
#tray {
background-color: @bg2;
}
#cpu.full,
#memory.full,
#temperature.critical,
#wireplumber.muted,
#battery.warning, #battery.critical {
background-color: @red;
}
#battery.charging, #battery.plugged {
background-color: @green;
}
#workspaces {
background-color: @color0;
}
#cpu {
background-color: @color1;
}
#memory {
background-color: @color2;
}
#temperature {
background-color: @color3;
}
#clock {
background-color: @color4;
}
#wireplumber {
background-color: @color5;
}
#backlight {
background-color: @color6;
}
#battery {
background-color: @color7;
}