changing wifi to iwd, adding desktop entries for tui apps, etc

This commit is contained in:
Matt Nish-Lapidus 2025-02-17 10:13:08 -05:00
parent 1975a1c6c7
commit f920b83d27
11 changed files with 143 additions and 80 deletions

View file

@ -26,12 +26,10 @@
pdftk
zathura
gpu-viewer
foliate
wl-mirror
soundconverter
wmctrl
godot_4
gdtoolkit_4
sane-airscan
@ -51,7 +49,7 @@
ripdrag
sway-launcher-desktop
swayidle
thunderbird-latest
emojify
smile
@ -176,11 +174,23 @@
};
};
programs = {
firefox.enable = true;
};
xdg.desktopEntries = {
isd = {
name = "isd (interactive systemd)";
exec = "/home/emenel/.local/bin/wezapp isd";
categories = [ "System" ];
};
impala = {
name = "impala (iwd wifi)";
exec = "/home/emenel/.local/bin/wezapp impala";
categories = [ "System" ];
};
};
xdg.configFile."halloy/config.toml".source =
../../homes/emenel/dotfiles/dot_config/halloy/config.toml;

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
let
emacs_pkg = ((pkgs.emacsPackagesFor pkgs.emacs29-pgtk).emacsWithPackages (
emacs_pkg = ((pkgs.emacsPackagesFor pkgs.emacs30-pgtk).emacsWithPackages (
epkgs: [
epkgs.vterm
epkgs.mu4e

View file

@ -12,36 +12,30 @@
ignore_systemd_inhibit = false;
};
# TODO add screen dimming and test configurations with different monitors
listener = [
# battery timers
{
timeout = "60";
on-timeout = "systemd-ac-power || dim-all-monitors";
on-timeout = "dim-all-monitors";
}
# battery timers
{
timeout = "120";
on-timeout = "systemd-ac-power || lock-power-off-monitors";
}
{
timeout = "300";
timeout = "180";
on-timeout = "systemd-ac-power || lock-suspend";
}
# ac power timers
{
timeout = "90";
on-timeout = "systemd-ac-power && dim-all-monitors";
}
{
timeout = "180";
on-timeout = "systemd-ac-power && loginctl lock-session";
}
{
timeout = "200";
timeout = "240";
on-timeout = "systemd-ac-power && lock-power-off-monitors";
}

View file

@ -14,6 +14,9 @@
]))
ccl
racket
ruby
ruby-lsp
gdu
cljfmt
libxml2

View file

@ -5,6 +5,9 @@
inputs.isd.packages.x86_64-linux.default
cmake
cmake-format
just
readline
rlwrap

53
modules/home/swayidle.nix Normal file
View file

@ -0,0 +1,53 @@
{ inputs, ... }:
{
services.swayidle = {
enable = true;
events = [
{
event = "lock";
command = "pidof hyprlock || hyprlock";
}
{
event = "after-resume";
command = "shikanectl reload && brillo -e -u 150000 -I";
}
];
timeouts = [
{
timeout = 60;
command = "dim-all-monitors";
}
# battery timers
{
timeout = 120;
command = "systemd-ac-power || lock-power-off-monitors";
}
{
timeout = 180;
command = "systemd-ac-power || lock-suspend";
}
# ac power timers
{
timeout = 180;
command = "systemd-ac-power && loginctl lock-session";
}
{
timeout = 240;
command = "systemd-ac-power && lock-power-off-monitors";
}
{
timeout = 600;
command = "systemd-ac-power && lock-suspend";
}
];
};
}

View file

@ -40,7 +40,7 @@
'';
};
razer = {
devices = [];
devices = [ "/dev/input/by-id/usb-Razer_Razer_Blade-event-kbd" ];
config = ''
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc