mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Migrate services from wrappers to systemd services
This commit is contained in:
parent
e1ba06a5fb
commit
aceeeef689
13 changed files with 291 additions and 247 deletions
|
|
@ -1,38 +0,0 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
(inputs.wrapper-manager.lib {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
{
|
||||
wrappers.hypridle = {
|
||||
basePackage = pkgs.hypridle;
|
||||
flags =
|
||||
let
|
||||
hypridle-config = pkgs.writeText "hypridle-config" ''
|
||||
general {
|
||||
lock_cmd = pidof hyprlock || hyprlock
|
||||
after_sleep_cmd = hyprctl dispatch dpms on
|
||||
}
|
||||
listener {
|
||||
timeout = 300
|
||||
on-timeout= brightnessctl -s && brightnessctl -e set 10%
|
||||
on-resume = brightnessctl -r
|
||||
}
|
||||
listener {
|
||||
timeout = 600
|
||||
on-timeout = hyprctl dispatch dpms off
|
||||
on-resume = hyprctl dispatch dpms on
|
||||
}
|
||||
listener {
|
||||
timeout = 610
|
||||
on-timeout = loginctl lock-session
|
||||
}
|
||||
'';
|
||||
in
|
||||
[
|
||||
"--config"
|
||||
hypridle-config
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}).config.wrappers.hypridle.wrapped
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
(inputs.wrapper-manager.lib {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
{
|
||||
wrappers.hyprpaper = {
|
||||
basePackage = pkgs.hyprpaper;
|
||||
flags =
|
||||
let
|
||||
hyprpaper-config = pkgs.writeText "hyprpaper-config" ''
|
||||
preload = ~/Pictures/.wallpaper
|
||||
wallpaper = , ~/Pictures/.wallpaper
|
||||
splash = false
|
||||
'';
|
||||
in
|
||||
[
|
||||
"--config"
|
||||
hyprpaper-config
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}).config.wrappers.hyprpaper.wrapped
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
{
|
||||
"output": ["DP-1", "eDP-1"],
|
||||
"layer": "top",
|
||||
"position": "bottom",
|
||||
"spacing": 10,
|
||||
|
||||
"modules-left": ["clock"],
|
||||
"modules-center": ["hyprland/workspaces"],
|
||||
"modules-right": ["tray", "network", "wireplumber", "backlight", "battery"],
|
||||
|
||||
"clock": {
|
||||
"format": " {:%H:%M}",
|
||||
"tooltip-format": "{:%d.%m.%Y}"
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"active-only": false,
|
||||
"all-outputs": true
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 20,
|
||||
"spacing": 6
|
||||
},
|
||||
|
||||
"network": {
|
||||
"format": "",
|
||||
"format-disconnected": "",
|
||||
"format-ethernet": "",
|
||||
"format-icons": ["", "", "", ""],
|
||||
"format-wifi": "{icon}",
|
||||
"interval": 10,
|
||||
"tooltip-format-disconnected": "Disconnected",
|
||||
"tooltip-format-ethernet": " {bandwidthDownBits} {bandwidthUpBits}",
|
||||
"tooltip-format-wifi": "{essid} {bandwidthDownBits} {bandwidthUpBits}"
|
||||
},
|
||||
|
||||
"wireplumber": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-icons": ["", "", ""],
|
||||
"format-muted": "",
|
||||
"scroll-step": "5"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"device": "amdgpu_bl1",
|
||||
"format": "{icon} {percent}%",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
|
||||
"states": {
|
||||
"critical": 5,
|
||||
"warning": 15
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
(inputs.wrapper-manager.lib {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
{
|
||||
wrappers.waybar = {
|
||||
basePackage = pkgs.waybar;
|
||||
flags = [
|
||||
"--config"
|
||||
./config.json
|
||||
"--style"
|
||||
./style.css
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}).config.wrappers.waybar.wrapped
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
* {
|
||||
border: none;
|
||||
border-radius: 0px;
|
||||
font-family: "Open Sans, Symbols Nerd Font Mono";
|
||||
font-size: 15px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue