wip
This commit is contained in:
parent
36790cebbc
commit
3fabfaaec1
@ -30,10 +30,6 @@ with import ../support.nix { inherit lib config; }; {
|
|||||||
cmd = "${pkgs.xfce4-14.xfce4-taskmanager}/bin/xfce4-taskmanager";
|
cmd = "${pkgs.xfce4-14.xfce4-taskmanager}/bin/xfce4-taskmanager";
|
||||||
desktop = "taskmanager";
|
desktop = "taskmanager";
|
||||||
};
|
};
|
||||||
# monitor = {
|
|
||||||
# cmd = "${pkgs.ksysguard}/bin/ksysguard";
|
|
||||||
# desktop = "ksysguard";
|
|
||||||
# };
|
|
||||||
torrent = {
|
torrent = {
|
||||||
cmd = "${pkgs.qbittorrent}/bin/qbittorrent";
|
cmd = "${pkgs.qbittorrent}/bin/qbittorrent";
|
||||||
desktop = "qbittorrent";
|
desktop = "qbittorrent";
|
||||||
|
@ -7,8 +7,6 @@ with deviceSpecific; {
|
|||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = isLaptop;
|
enable = isLaptop;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# To avoid filesystem corruption on btrfs formatted partitions
|
|
||||||
# SATA_LINKPWR_ON_BAT=max_performance
|
|
||||||
# Recommended
|
# Recommended
|
||||||
CPU_SCALING_GOVERNOR_ON_AC=powersave
|
CPU_SCALING_GOVERNOR_ON_AC=powersave
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT=powersave
|
CPU_SCALING_GOVERNOR_ON_BAT=powersave
|
||||||
@ -16,10 +14,22 @@ with deviceSpecific; {
|
|||||||
CPU_HWP_ON_BAT=balance_power
|
CPU_HWP_ON_BAT=balance_power
|
||||||
CPU_BOOST_ON_AC=1
|
CPU_BOOST_ON_AC=1
|
||||||
CPU_BOOST_ON_BAT=0
|
CPU_BOOST_ON_BAT=0
|
||||||
DISK_DEVICES="sda nvme0n1"
|
SCHED_POWERSAVE_ON_AC=0
|
||||||
|
SCHED_POWERSAVE_ON_BAT=1
|
||||||
|
DISK_DEVICES="nvme0n1 sda"
|
||||||
DISK_APM_LEVEL_ON_AC="255 254"
|
DISK_APM_LEVEL_ON_AC="255 254"
|
||||||
DISK_APM_LEVEL_ON_BAT="128 128"
|
DISK_APM_LEVEL_ON_BAT="255 254"
|
||||||
|
# To avoid filesystem corruption on btrfs formatted partitions
|
||||||
|
SATA_LINKPWR_ON_BAT="med_power_with_dipm max_performance"
|
||||||
|
SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
|
||||||
'';
|
'';
|
||||||
|
# TLP >1.3
|
||||||
|
# tlp1_3 = ''
|
||||||
|
# # instead CPU_ENERGY_PERF_POLICY_ON_*
|
||||||
|
# CPU_ENERGY_PERF_POLICY_ON_AC=balance_performance
|
||||||
|
# CPU_ENERGY_PERF_POLICY_ON_BAT=balance_power
|
||||||
|
# '';
|
||||||
|
|
||||||
};
|
};
|
||||||
services.undervolt = {
|
services.undervolt = {
|
||||||
enable = (device == "Dell-Laptop");
|
enable = (device == "Dell-Laptop");
|
||||||
|
@ -10,10 +10,10 @@ in {
|
|||||||
package = pkgs.i3-gaps;
|
package = pkgs.i3-gaps;
|
||||||
config = rec {
|
config = rec {
|
||||||
assigns = {
|
assigns = {
|
||||||
# "" = [ { class = "Chromium"; } { class = "Firefox"; } ];
|
|
||||||
"" = [
|
"" = [
|
||||||
{ class = "Spotify"; }
|
{ class = "Spotify"; }
|
||||||
# { class = "PulseEffects"; }
|
{ class = "PulseEffects"; }
|
||||||
|
{ class = "spt"; }
|
||||||
];
|
];
|
||||||
"" = [
|
"" = [
|
||||||
{ class = "^Telegram"; }
|
{ class = "^Telegram"; }
|
||||||
@ -26,8 +26,6 @@ in {
|
|||||||
};
|
};
|
||||||
fonts = [ "RobotoMono 9" ];
|
fonts = [ "RobotoMono 9" ];
|
||||||
|
|
||||||
bars = [ ];
|
|
||||||
|
|
||||||
# colors = rec {
|
# colors = rec {
|
||||||
# background = thm.bg;
|
# background = thm.bg;
|
||||||
# unfocused = {
|
# unfocused = {
|
||||||
@ -94,7 +92,8 @@ in {
|
|||||||
startup = map (a: { notification = false; } // a) [
|
startup = map (a: { notification = false; } // a) [
|
||||||
{ command = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources"; }
|
{ command = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources"; }
|
||||||
{ command = "${pkgs.pywal}/bin/wal -R"; }
|
{ command = "${pkgs.pywal}/bin/wal -R"; }
|
||||||
# { command = "${pkgs.spotifywm}/bin/spotifywm"; }
|
{ command = "${pkgs.tdesktop}/bin/telegram-desktop"; }
|
||||||
|
{ command = "${apps.term.cmd} -e spt"; }
|
||||||
{
|
{
|
||||||
command =
|
command =
|
||||||
"${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
"${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
||||||
|
@ -30,15 +30,21 @@ in {
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home-manager.users.alukard.xdg.configFile."i3status-rust/config.toml".text = ''
|
# TODO: rewrite concat
|
||||||
|
home-manager.users.alukard.xdg.configFile."i3status-rust/config.toml".text = lib.concatStrings [''
|
||||||
theme = "slick"
|
theme = "slick"
|
||||||
icons = "awesome"
|
icons = "awesome"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "net"
|
block = "net"
|
||||||
'' + lib.optionals (device == "Dell-Laptop") ''
|
''
|
||||||
|
(if device == "Dell-Laptop" then ''
|
||||||
device = "wlo1"
|
device = "wlo1"
|
||||||
'' + lib.optionals (isLaptop) ''
|
'' else "")
|
||||||
|
(if device == "AMD-Workstation" then ''
|
||||||
|
device = "enp9s0"
|
||||||
|
'' else "")
|
||||||
|
(if isLaptop then ''
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "battery"
|
block = "battery"
|
||||||
interval = 10
|
interval = 10
|
||||||
@ -46,7 +52,8 @@ in {
|
|||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "backlight"
|
block = "backlight"
|
||||||
'' + ''
|
'' else "")
|
||||||
|
''
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "custom"
|
block = "custom"
|
||||||
command = "${scripts.weather}"
|
command = "${scripts.weather}"
|
||||||
@ -85,5 +92,5 @@ in {
|
|||||||
block = "time"
|
block = "time"
|
||||||
interval = 1
|
interval = 1
|
||||||
format = "%a %Y/%m/%d %T"
|
format = "%a %Y/%m/%d %T"
|
||||||
'';
|
''];
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user