mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add keybindings as module
This commit is contained in:
parent
e468436cce
commit
6a63090c68
6 changed files with 260 additions and 255 deletions
|
|
@ -2069,7 +2069,7 @@ My new main machine.
|
||||||
|
|
||||||
#+begin_src nix :tangle profiles/fourside/default.nix
|
#+begin_src nix :tangle profiles/fourside/default.nix
|
||||||
|
|
||||||
{ inputs, outputs, ... }:
|
{ inputs, outputs, config, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -2128,6 +2128,21 @@ My new main machine.
|
||||||
xkb_variant = "altgr-intl";
|
xkb_variant = "altgr-intl";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
keybindings = {
|
||||||
|
"Mod4+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
|
||||||
|
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
|
||||||
|
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
|
||||||
|
"XF86Display" = "exec wl-mirror eDP-1";
|
||||||
|
# these are left open to use
|
||||||
|
# "XF86WLAN" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Messenger" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Go" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Favorites" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86HomePage" = "exec wtype -P Escape -p Escape";
|
||||||
|
# "XF86AudioLowerVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink -5%";
|
||||||
|
# "XF86AudioRaiseVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink +5% ";
|
||||||
|
"XF86AudioMute" = "exec pactl set-sink-mute alsa_output.pci-0000_08_00.6.HiFi__Speaker__sink toggle && exec pactl set-sink-mute alsa_output.usb-Lenovo_ThinkPad_Thunderbolt_4_Dock_USB_Audio_000000000000-00.analog-stereo toggle";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -2272,25 +2287,6 @@ This is basically just adjusted to the core count, path to the =hwmon= (this was
|
||||||
# ];
|
# ];
|
||||||
|
|
||||||
|
|
||||||
keybindings =
|
|
||||||
let
|
|
||||||
inherit (config.wayland.windowManager.sway.config) modifier;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"${modifier}+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
|
|
||||||
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
|
|
||||||
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
|
|
||||||
"XF86Display" = "exec wl-mirror eDP-1";
|
|
||||||
# these are left open to use
|
|
||||||
# "XF86WLAN" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Messenger" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Go" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Favorites" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86HomePage" = "exec wtype -P Escape -p Escape";
|
|
||||||
# "XF86AudioLowerVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink -5%";
|
|
||||||
# "XF86AudioRaiseVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink +5% ";
|
|
||||||
"XF86AudioMute" = "pactl set-sink-mute alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink toggle";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -4588,6 +4584,11 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
|
||||||
options.swarselsystems.standardinputs = mkOption {
|
options.swarselsystems.standardinputs = mkOption {
|
||||||
type = types.attrsOf (types.attrsOf types.str );
|
type = types.attrsOf (types.attrsOf types.str );
|
||||||
default = lib.recursiveUpdate (lib.recursiveUpdate config.swarselsystems.touchpad config.swarselsystems.kyria) config.swarselsystems.inputs;
|
default = lib.recursiveUpdate (lib.recursiveUpdate config.swarselsystems.touchpad config.swarselsystems.kyria) config.swarselsystems.inputs;
|
||||||
|
internal = true;
|
||||||
|
};
|
||||||
|
options.swarselsystems.keybindings = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -7317,7 +7318,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
let
|
let
|
||||||
inherit (config.wayland.windowManager.sway.config) modifier;
|
inherit (config.wayland.windowManager.sway.config) modifier;
|
||||||
in
|
in
|
||||||
{
|
recursiveUpdate {
|
||||||
"${modifier}+q" = "kill";
|
"${modifier}+q" = "kill";
|
||||||
"${modifier}+f" = "exec firefox";
|
"${modifier}+f" = "exec firefox";
|
||||||
"${modifier}+Space" = "exec fuzzel";
|
"${modifier}+Space" = "exec fuzzel";
|
||||||
|
|
@ -7385,7 +7386,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
||||||
"${modifier}+r" = "mode resize";
|
"${modifier}+r" = "mode resize";
|
||||||
"${modifier}+Return" = "exec kitty";
|
"${modifier}+Return" = "exec kitty";
|
||||||
};
|
} config.swarselsystems.keybindings;
|
||||||
modes = {
|
modes = {
|
||||||
resize = {
|
resize = {
|
||||||
Down = "resize grow height 10 px or 10 ppt";
|
Down = "resize grow height 10 px or 10 ppt";
|
||||||
|
|
|
||||||
145
index.html
145
index.html
|
|
@ -3,7 +3,7 @@
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-07-25 Do 15:13 -->
|
<!-- 2024-07-25 Do 16:01 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>SwarselSystems: NixOS + Emacs Configuration</title>
|
<title>SwarselSystems: NixOS + Emacs Configuration</title>
|
||||||
|
|
@ -223,7 +223,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#h:8a411ee2-a58e-4b5b-99bd-4ba772f8f0a2">2.3.1. Inputs</a></li>
|
<li><a href="#h:8a411ee2-a58e-4b5b-99bd-4ba772f8f0a2">2.3.1. Inputs</a></li>
|
||||||
<li><a href="#h:df0072bc-853f-438f-bd85-bfc869501015">2.3.2. let</a></li>
|
<li><a href="#h:df0072bc-853f-438f-bd85-bfc869501015">2.3.2. let</a></li>
|
||||||
<li><a href="#org7206b04">2.3.3. General (outputs)</a></li>
|
<li><a href="#org672ba3a">2.3.3. General (outputs)</a></li>
|
||||||
<li><a href="#h:9c9b9e3b-8771-44fa-ba9e-5056ae809655">2.3.4. nixosConfigurations</a></li>
|
<li><a href="#h:9c9b9e3b-8771-44fa-ba9e-5056ae809655">2.3.4. nixosConfigurations</a></li>
|
||||||
<li><a href="#h:f881aa05-a670-48dd-a57b-2916abdcb692">2.3.5. homeConfigurations</a></li>
|
<li><a href="#h:f881aa05-a670-48dd-a57b-2916abdcb692">2.3.5. homeConfigurations</a></li>
|
||||||
<li><a href="#h:5f6ef553-59f9-4239-b6f3-63d33b57f335">2.3.6. nixOnDroidConfigurations</a></li>
|
<li><a href="#h:5f6ef553-59f9-4239-b6f3-63d33b57f335">2.3.6. nixOnDroidConfigurations</a></li>
|
||||||
|
|
@ -241,11 +241,11 @@
|
||||||
<li><a href="#h:4dc59747-9598-4029-aa7d-92bf186d6c06">3.1.3. Virtual hosts</a></li>
|
<li><a href="#h:4dc59747-9598-4029-aa7d-92bf186d6c06">3.1.3. Virtual hosts</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org01e96bc">3.2. Overlays, packages, and modules</a>
|
<li><a href="#org3358c6e">3.2. Overlays, packages, and modules</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3005a05">3.2.1. Packages</a></li>
|
<li><a href="#orge67e1f0">3.2.1. Packages</a></li>
|
||||||
<li><a href="#org465daff">3.2.2. Overlays</a></li>
|
<li><a href="#org913e520">3.2.2. Overlays</a></li>
|
||||||
<li><a href="#org6e2448e">3.2.3. Modules</a></li>
|
<li><a href="#org459523c">3.2.3. Modules</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#h:1c1250cd-e9b4-4715-8d9f-eb09e64bfc7f">3.3. Common NixOS</a>
|
<li><a href="#h:1c1250cd-e9b4-4715-8d9f-eb09e64bfc7f">3.3. Common NixOS</a>
|
||||||
|
|
@ -253,7 +253,7 @@
|
||||||
<li><a href="#h:45e4315b-0929-4c47-b65a-c8f0a685f4df">3.3.1. Imports, enable home-manager module</a></li>
|
<li><a href="#h:45e4315b-0929-4c47-b65a-c8f0a685f4df">3.3.1. Imports, enable home-manager module</a></li>
|
||||||
<li><a href="#h:5a114da6-ef8d-404d-b31b-b51472908e77">3.3.2. General</a></li>
|
<li><a href="#h:5a114da6-ef8d-404d-b31b-b51472908e77">3.3.2. General</a></li>
|
||||||
<li><a href="#h:d87d80fd-2ac7-4f29-b338-0518d06b4deb">3.3.3. sops</a></li>
|
<li><a href="#h:d87d80fd-2ac7-4f29-b338-0518d06b4deb">3.3.3. sops</a></li>
|
||||||
<li><a href="#orgd1aacc7">3.3.4. Theme (stylix)</a></li>
|
<li><a href="#org683e0c0">3.3.4. Theme (stylix)</a></li>
|
||||||
<li><a href="#h:0e7e8bea-ec58-499c-9731-09dddfc39532">3.3.5. System Packages</a></li>
|
<li><a href="#h:0e7e8bea-ec58-499c-9731-09dddfc39532">3.3.5. System Packages</a></li>
|
||||||
<li><a href="#h:2bbf5f31-246d-4738-925f-eca40681f7b6">3.3.6. Programs (including zsh setup)</a></li>
|
<li><a href="#h:2bbf5f31-246d-4738-925f-eca40681f7b6">3.3.6. Programs (including zsh setup)</a></li>
|
||||||
<li><a href="#h:79f3258f-ed9d-434d-b50a-e58d57ade2a7">3.3.7. Services</a></li>
|
<li><a href="#h:79f3258f-ed9d-434d-b50a-e58d57ade2a7">3.3.7. Services</a></li>
|
||||||
|
|
@ -263,7 +263,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#h:f0a6b5e0-2157-4522-b5e1-3f0abd91c05e">3.4. Common Home-Manager</a>
|
<li><a href="#h:f0a6b5e0-2157-4522-b5e1-3f0abd91c05e">3.4. Common Home-Manager</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3243e56">3.4.1. Imports</a></li>
|
<li><a href="#orgd681b46">3.4.1. Imports</a></li>
|
||||||
<li><a href="#h:893a7f33-7715-415b-a895-2687ded31c18">3.4.2. Installed packages</a></li>
|
<li><a href="#h:893a7f33-7715-415b-a895-2687ded31c18">3.4.2. Installed packages</a></li>
|
||||||
<li><a href="#h:d87d80fd-2ac7-4f29-b338-0518d06b4deb">3.4.3. sops</a></li>
|
<li><a href="#h:d87d80fd-2ac7-4f29-b338-0518d06b4deb">3.4.3. sops</a></li>
|
||||||
<li><a href="#h:edd6720e-1f90-40bf-b6f9-30a19d4cae08">3.4.4. SSH Machines</a></li>
|
<li><a href="#h:edd6720e-1f90-40bf-b6f9-30a19d4cae08">3.4.4. SSH Machines</a></li>
|
||||||
|
|
@ -272,7 +272,7 @@
|
||||||
<li><a href="#h:5ef03803-e150-41bc-b603-e80d60d96efc">3.4.7. Linking dotfiles</a></li>
|
<li><a href="#h:5ef03803-e150-41bc-b603-e80d60d96efc">3.4.7. Linking dotfiles</a></li>
|
||||||
<li><a href="#h:4486b02f-4fb8-432b-bfa2-2e786206341d">3.4.8. Sourcing environment variables</a></li>
|
<li><a href="#h:4486b02f-4fb8-432b-bfa2-2e786206341d">3.4.8. Sourcing environment variables</a></li>
|
||||||
<li><a href="#h:070a75ce-e209-4cda-aa25-e979bbf75d47">3.4.9. Programs</a></li>
|
<li><a href="#h:070a75ce-e209-4cda-aa25-e979bbf75d47">3.4.9. Programs</a></li>
|
||||||
<li><a href="#org53eed6c">3.4.10. nix-index</a></li>
|
<li><a href="#org4963dc2">3.4.10. nix-index</a></li>
|
||||||
<li><a href="#h:ac0e5e62-0dbf-4782-9a96-9e558eae86ae">3.4.11. password-store</a></li>
|
<li><a href="#h:ac0e5e62-0dbf-4782-9a96-9e558eae86ae">3.4.11. password-store</a></li>
|
||||||
<li><a href="#h:1ab84307-b3fb-4c32-9def-4b89a53a8547">3.4.12. direnv</a></li>
|
<li><a href="#h:1ab84307-b3fb-4c32-9def-4b89a53a8547">3.4.12. direnv</a></li>
|
||||||
<li><a href="#h:1bd6b0c7-f201-43e2-9624-6c50de00a1f6">3.4.13. eza</a></li>
|
<li><a href="#h:1bd6b0c7-f201-43e2-9624-6c50de00a1f6">3.4.13. eza</a></li>
|
||||||
|
|
@ -287,7 +287,7 @@
|
||||||
<li><a href="#h:fbec0bd4-690b-4f79-8b2b-a40263760a96">3.4.22. Firefox</a></li>
|
<li><a href="#h:fbec0bd4-690b-4f79-8b2b-a40263760a96">3.4.22. Firefox</a></li>
|
||||||
<li><a href="#h:387c3a82-1fb1-4c0f-8051-874e2acb8804">3.4.23. Services</a></li>
|
<li><a href="#h:387c3a82-1fb1-4c0f-8051-874e2acb8804">3.4.23. Services</a></li>
|
||||||
<li><a href="#h:02df9dfc-d1af-4a37-a7a0-d8da0af96a20">3.4.24. Sway</a></li>
|
<li><a href="#h:02df9dfc-d1af-4a37-a7a0-d8da0af96a20">3.4.24. Sway</a></li>
|
||||||
<li><a href="#org9aea842">3.4.25. gpg-agent</a></li>
|
<li><a href="#org318c149">3.4.25. gpg-agent</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#h:aee5ec75-7ca6-40d8-b6ac-a3e7e33a474b">3.5. flake.nix template</a>
|
<li><a href="#h:aee5ec75-7ca6-40d8-b6ac-a3e7e33a474b">3.5. flake.nix template</a>
|
||||||
|
|
@ -340,7 +340,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#h:99544398-72af-4382-b8e1-01b2221baff4">4.4.1. Org Mode</a></li>
|
<li><a href="#h:99544398-72af-4382-b8e1-01b2221baff4">4.4.1. Org Mode</a></li>
|
||||||
<li><a href="#h:406c2ecc-0e3e-4d9f-9ae3-3eb1f8b87d1b">4.4.2. Nix Mode</a></li>
|
<li><a href="#h:406c2ecc-0e3e-4d9f-9ae3-3eb1f8b87d1b">4.4.2. Nix Mode</a></li>
|
||||||
<li><a href="#org87ac3f4">4.4.3. nixpkgs-fmt</a></li>
|
<li><a href="#org0f524e3">4.4.3. nixpkgs-fmt</a></li>
|
||||||
<li><a href="#h:50327461-a11b-4e81-830a-90febc720cfa">4.4.4. Markdown Mode</a></li>
|
<li><a href="#h:50327461-a11b-4e81-830a-90febc720cfa">4.4.4. Markdown Mode</a></li>
|
||||||
<li><a href="#h:65e69741-9860-4ed0-bbed-7b7be9a2a9d6">4.4.5. Olivetti</a></li>
|
<li><a href="#h:65e69741-9860-4ed0-bbed-7b7be9a2a9d6">4.4.5. Olivetti</a></li>
|
||||||
<li><a href="#h:94d4a0dc-b0d7-4702-b760-beeaa6da2b8f">4.4.6. darkroom</a></li>
|
<li><a href="#h:94d4a0dc-b0d7-4702-b760-beeaa6da2b8f">4.4.6. darkroom</a></li>
|
||||||
|
|
@ -400,7 +400,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<b>This file has 42658 words spanning 11524 lines and was last revised on 2024-07-25 15:13:17 +0200.</b>
|
<b>This file has 42684 words spanning 11525 lines and was last revised on 2024-07-25 16:01:11 +0200.</b>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -450,7 +450,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-25 15:13:17 +0200)
|
My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-25 16:01:11 +0200)
|
||||||
</p></li>
|
</p></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
@ -1060,8 +1060,8 @@ mixedModules = [
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org7206b04" class="outline-4">
|
<div id="outline-container-org672ba3a" class="outline-4">
|
||||||
<h4 id="org7206b04"><span class="section-number-4">2.3.3.</span> General (outputs)</h4>
|
<h4 id="org672ba3a"><span class="section-number-4">2.3.3.</span> General (outputs)</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-3">
|
<div class="outline-text-4" id="text-2-3-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">
|
<pre class="src src-nix">
|
||||||
|
|
@ -2440,7 +2440,7 @@ in
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="orgac39b9e"></a>Home-manager only<br />
|
<li><a id="org7681fe0"></a>Home-manager only<br />
|
||||||
<ol class="org-ol">
|
<ol class="org-ol">
|
||||||
<li><a id="h:483a26b5-5a40-4417-9ffb-67cc2cf07161"></a>Home manager<br />
|
<li><a id="h:483a26b5-5a40-4417-9ffb-67cc2cf07161"></a>Home manager<br />
|
||||||
<div class="outline-text-6" id="text-h:483a26b5-5a40-4417-9ffb-67cc2cf07161">
|
<div class="outline-text-6" id="text-h:483a26b5-5a40-4417-9ffb-67cc2cf07161">
|
||||||
|
|
@ -2838,7 +2838,7 @@ My new main machine.
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">
|
<pre class="src src-nix">
|
||||||
{ inputs, outputs, ... }:
|
{ inputs, outputs, config, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -2897,6 +2897,21 @@ My new main machine.
|
||||||
xkb_variant = "altgr-intl";
|
xkb_variant = "altgr-intl";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
keybindings = {
|
||||||
|
"Mod4+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
|
||||||
|
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
|
||||||
|
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
|
||||||
|
"XF86Display" = "exec wl-mirror eDP-1";
|
||||||
|
# these are left open to use
|
||||||
|
# "XF86WLAN" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Messenger" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Go" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Favorites" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86HomePage" = "exec wtype -P Escape -p Escape";
|
||||||
|
# "XF86AudioLowerVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink -5%";
|
||||||
|
# "XF86AudioRaiseVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink +5% ";
|
||||||
|
"XF86AudioMute" = "exec pactl set-sink-mute alsa_output.pci-0000_08_00.6.HiFi__Speaker__sink toggle && exec pactl set-sink-mute alsa_output.usb-Lenovo_ThinkPad_Thunderbolt_4_Dock_USB_Audio_000000000000-00.analog-stereo toggle";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -3043,25 +3058,6 @@ This is basically just adjusted to the core count, path to the <code>hwmon</code
|
||||||
# ];
|
# ];
|
||||||
|
|
||||||
|
|
||||||
keybindings =
|
|
||||||
let
|
|
||||||
inherit (config.wayland.windowManager.sway.config) modifier;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"${modifier}+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
|
|
||||||
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
|
|
||||||
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
|
|
||||||
"XF86Display" = "exec wl-mirror eDP-1";
|
|
||||||
# these are left open to use
|
|
||||||
# "XF86WLAN" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Messenger" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Go" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Favorites" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86HomePage" = "exec wtype -P Escape -p Escape";
|
|
||||||
# "XF86AudioLowerVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink -5%";
|
|
||||||
# "XF86AudioRaiseVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink +5% ";
|
|
||||||
"XF86AudioMute" = "pactl set-sink-mute alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink toggle";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -5450,8 +5446,8 @@ in
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org01e96bc" class="outline-3">
|
<div id="outline-container-org3358c6e" class="outline-3">
|
||||||
<h3 id="org01e96bc"><span class="section-number-3">3.2.</span> Overlays, packages, and modules</h3>
|
<h3 id="org3358c6e"><span class="section-number-3">3.2.</span> Overlays, packages, and modules</h3>
|
||||||
<div class="outline-text-3" id="text-3-2">
|
<div class="outline-text-3" id="text-3-2">
|
||||||
<p>
|
<p>
|
||||||
In this section I define packages that I manually want to nixpkgs. This can be useful for packages that are currently awaiting a PR or public packages that I do not want to maintain.
|
In this section I define packages that I manually want to nixpkgs. This can be useful for packages that are currently awaiting a PR or public packages that I do not want to maintain.
|
||||||
|
|
@ -5470,8 +5466,8 @@ These are for packages that are on nixpkgs, but do not fit my usecase, meaning I
|
||||||
This is simply a mirror of the most recent stable branch of nixpkgs. Useful for packages that are broken on nixpkgs, but do not need to be on bleeding edge anyways.</li>
|
This is simply a mirror of the most recent stable branch of nixpkgs. Useful for packages that are broken on nixpkgs, but do not need to be on bleeding edge anyways.</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org3005a05" class="outline-4">
|
<div id="outline-container-orge67e1f0" class="outline-4">
|
||||||
<h4 id="org3005a05"><span class="section-number-4">3.2.1.</span> Packages</h4>
|
<h4 id="orge67e1f0"><span class="section-number-4">3.2.1.</span> Packages</h4>
|
||||||
<div class="outline-text-4" id="text-3-2-1">
|
<div class="outline-text-4" id="text-3-2-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">
|
<pre class="src src-nix">
|
||||||
|
|
@ -5481,8 +5477,8 @@ _ : rec { }
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org465daff" class="outline-4">
|
<div id="outline-container-org913e520" class="outline-4">
|
||||||
<h4 id="org465daff"><span class="section-number-4">3.2.2.</span> Overlays</h4>
|
<h4 id="org913e520"><span class="section-number-4">3.2.2.</span> Overlays</h4>
|
||||||
<div class="outline-text-4" id="text-3-2-2">
|
<div class="outline-text-4" id="text-3-2-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">
|
<pre class="src src-nix">
|
||||||
|
|
@ -5515,15 +5511,15 @@ _ : rec { }
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org6e2448e" class="outline-4">
|
<div id="outline-container-org459523c" class="outline-4">
|
||||||
<h4 id="org6e2448e"><span class="section-number-4">3.2.3.</span> Modules</h4>
|
<h4 id="org459523c"><span class="section-number-4">3.2.3.</span> Modules</h4>
|
||||||
<div class="outline-text-4" id="text-3-2-3">
|
<div class="outline-text-4" id="text-3-2-3">
|
||||||
<p>
|
<p>
|
||||||
In this section I define custom modules under the <code>swarsel</code> attribute. These are mostly used to define settings specific to a host. I keep these settings confined to either home-manager or nixos to maintain compatibility with non-NixOS machines.
|
In this section I define custom modules under the <code>swarsel</code> attribute. These are mostly used to define settings specific to a host. I keep these settings confined to either home-manager or nixos to maintain compatibility with non-NixOS machines.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<ol class="org-ol">
|
<ol class="org-ol">
|
||||||
<li><a id="orgc558f7c"></a>NixOS<br />
|
<li><a id="orgc4b8b6e"></a>NixOS<br />
|
||||||
<div class="outline-text-5" id="text-3-2-3-1">
|
<div class="outline-text-5" id="text-3-2-3-1">
|
||||||
<p>
|
<p>
|
||||||
Modules that need to be loaded on the NixOS level. Note that these will not be available on systems that are not running NixOS
|
Modules that need to be loaded on the NixOS level. Note that these will not be available on systems that are not running NixOS
|
||||||
|
|
@ -5537,7 +5533,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org980cd9f"></a>home-manager<br />
|
<li><a id="orgc1077bd"></a>home-manager<br />
|
||||||
<div class="outline-text-5" id="text-3-2-3-2">
|
<div class="outline-text-5" id="text-3-2-3-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">{
|
<pre class="src src-nix">{
|
||||||
|
|
@ -5553,7 +5549,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ol class="org-ol">
|
<ol class="org-ol">
|
||||||
<li><a id="org72f0b54"></a>Laptop<br />
|
<li><a id="orgfa8854d"></a>Laptop<br />
|
||||||
<div class="outline-text-6" id="text-3-2-3-2-1">
|
<div class="outline-text-6" id="text-3-2-3-2-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">{ lib, config, ... }:
|
<pre class="src src-nix">{ lib, config, ... }:
|
||||||
|
|
@ -5588,7 +5584,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org6193a40"></a>Hardware<br />
|
<li><a id="orgb5aba4c"></a>Hardware<br />
|
||||||
<div class="outline-text-6" id="text-3-2-3-2-2">
|
<div class="outline-text-6" id="text-3-2-3-2-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">{ lib, ... }:
|
<pre class="src src-nix">{ lib, ... }:
|
||||||
|
|
@ -5612,7 +5608,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org51e8747"></a>Waybar<br />
|
<li><a id="orge5dece8"></a>Waybar<br />
|
||||||
<div class="outline-text-6" id="text-3-2-3-2-3">
|
<div class="outline-text-6" id="text-3-2-3-2-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix"> { lib, config, ... }:
|
<pre class="src src-nix"> { lib, config, ... }:
|
||||||
|
|
@ -5652,7 +5648,7 @@ in
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org9f2b34f"></a>Monitors<br />
|
<li><a id="org6ee28d8"></a>Monitors<br />
|
||||||
<div class="outline-text-6" id="text-3-2-3-2-4">
|
<div class="outline-text-6" id="text-3-2-3-2-4">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">{ lib, config, ... }:
|
<pre class="src src-nix">{ lib, config, ... }:
|
||||||
|
|
@ -5669,7 +5665,7 @@ in
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org23cd7cb"></a>Input<br />
|
<li><a id="orgcef717e"></a>Input<br />
|
||||||
<div class="outline-text-6" id="text-3-2-3-2-5">
|
<div class="outline-text-6" id="text-3-2-3-2-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">{ lib, config, ... }:
|
<pre class="src src-nix">{ lib, config, ... }:
|
||||||
|
|
@ -5697,6 +5693,11 @@ in
|
||||||
options.swarselsystems.standardinputs = mkOption {
|
options.swarselsystems.standardinputs = mkOption {
|
||||||
type = types.attrsOf (types.attrsOf types.str );
|
type = types.attrsOf (types.attrsOf types.str );
|
||||||
default = lib.recursiveUpdate (lib.recursiveUpdate config.swarselsystems.touchpad config.swarselsystems.kyria) config.swarselsystems.inputs;
|
default = lib.recursiveUpdate (lib.recursiveUpdate config.swarselsystems.touchpad config.swarselsystems.kyria) config.swarselsystems.inputs;
|
||||||
|
internal = true;
|
||||||
|
};
|
||||||
|
options.swarselsystems.keybindings = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -5705,7 +5706,7 @@ in
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="orgde02c7b"></a>Nixos<br />
|
<li><a id="org878ca11"></a>Nixos<br />
|
||||||
<div class="outline-text-6" id="text-3-2-3-2-6">
|
<div class="outline-text-6" id="text-3-2-3-2-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">{ lib, config, ... }:
|
<pre class="src src-nix">{ lib, config, ... }:
|
||||||
|
|
@ -5727,7 +5728,7 @@ in
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org232f993"></a>System startup<br />
|
<li><a id="orgdaf9acc"></a>System startup<br />
|
||||||
<div class="outline-text-6" id="text-3-2-3-2-7">
|
<div class="outline-text-6" id="text-3-2-3-2-7">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">{ lib, config, ... }:
|
<pre class="src src-nix">{ lib, config, ... }:
|
||||||
|
|
@ -6303,8 +6304,8 @@ I use sops-nix to handle secrets that I want to have available on my machines at
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgd1aacc7" class="outline-4">
|
<div id="outline-container-org683e0c0" class="outline-4">
|
||||||
<h4 id="orgd1aacc7"><span class="section-number-4">3.3.4.</span> Theme (stylix)</h4>
|
<h4 id="org683e0c0"><span class="section-number-4">3.3.4.</span> Theme (stylix)</h4>
|
||||||
<div class="outline-text-4" id="text-3-3-4">
|
<div class="outline-text-4" id="text-3-3-4">
|
||||||
<p>
|
<p>
|
||||||
By default, <a href="https://github.com/danth/stylix">stylix</a> wants to style GRUB as well. However, I think that looks horrible.
|
By default, <a href="https://github.com/danth/stylix">stylix</a> wants to style GRUB as well. However, I think that looks horrible.
|
||||||
|
|
@ -6486,7 +6487,7 @@ Some programs profit from being installed through dedicated NixOS settings on sy
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ol class="org-ol">
|
<ol class="org-ol">
|
||||||
<li><a id="org469da79"></a>zsh<br />
|
<li><a id="orgbdf66ae"></a>zsh<br />
|
||||||
<div class="outline-text-5" id="text-3-3-6-1">
|
<div class="outline-text-5" id="text-3-3-6-1">
|
||||||
<p>
|
<p>
|
||||||
Do not touch this.
|
Do not touch this.
|
||||||
|
|
@ -6504,7 +6505,7 @@ Do not touch this.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org359251a"></a>syncthing<br />
|
<li><a id="org38c0a5e"></a>syncthing<br />
|
||||||
<div class="outline-text-5" id="text-3-3-6-2">
|
<div class="outline-text-5" id="text-3-3-6-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">
|
<pre class="src src-nix">
|
||||||
|
|
@ -6582,7 +6583,7 @@ Enables the blueman service including the nice system tray icon.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="orgea77292"></a>Network devices<br />
|
<li><a id="orgb35e55a"></a>Network devices<br />
|
||||||
<div class="outline-text-5" id="text-3-3-7-2">
|
<div class="outline-text-5" id="text-3-3-7-2">
|
||||||
<p>
|
<p>
|
||||||
In this section we enable compatibility with several network devices I have at home, mainly printers and scanners.
|
In this section we enable compatibility with several network devices I have at home, mainly printers and scanners.
|
||||||
|
|
@ -6634,7 +6635,7 @@ services.printing = {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="orgd07deca"></a>Avahi (device discovery)<br />
|
<li><a id="org6bbe0dc"></a>Avahi (device discovery)<br />
|
||||||
<div class="outline-text-6" id="text-3-3-7-2-3">
|
<div class="outline-text-6" id="text-3-3-7-2-3">
|
||||||
<p>
|
<p>
|
||||||
Avahi is the service used for the network discovery.
|
Avahi is the service used for the network discovery.
|
||||||
|
|
@ -6788,8 +6789,8 @@ This section houses the greetd related settings. I do not really want to use a d
|
||||||
<h3 id="h:f0a6b5e0-2157-4522-b5e1-3f0abd91c05e"><span class="section-number-3">3.4.</span> Common Home-Manager</h3>
|
<h3 id="h:f0a6b5e0-2157-4522-b5e1-3f0abd91c05e"><span class="section-number-3">3.4.</span> Common Home-Manager</h3>
|
||||||
<div class="outline-text-3" id="text-h:f0a6b5e0-2157-4522-b5e1-3f0abd91c05e">
|
<div class="outline-text-3" id="text-h:f0a6b5e0-2157-4522-b5e1-3f0abd91c05e">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org3243e56" class="outline-4">
|
<div id="outline-container-orgd681b46" class="outline-4">
|
||||||
<h4 id="org3243e56"><span class="section-number-4">3.4.1.</span> Imports</h4>
|
<h4 id="orgd681b46"><span class="section-number-4">3.4.1.</span> Imports</h4>
|
||||||
<div class="outline-text-4" id="text-3-4-1">
|
<div class="outline-text-4" id="text-3-4-1">
|
||||||
<p>
|
<p>
|
||||||
This section sets up all the imports that are used in the home-manager section.
|
This section sets up all the imports that are used in the home-manager section.
|
||||||
|
|
@ -7599,8 +7600,8 @@ This section is for programs that require no further configuration. zsh Integrat
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org53eed6c" class="outline-4">
|
<div id="outline-container-org4963dc2" class="outline-4">
|
||||||
<h4 id="org53eed6c"><span class="section-number-4">3.4.10.</span> nix-index</h4>
|
<h4 id="org4963dc2"><span class="section-number-4">3.4.10.</span> nix-index</h4>
|
||||||
<div class="outline-text-4" id="text-3-4-10">
|
<div class="outline-text-4" id="text-3-4-10">
|
||||||
<p>
|
<p>
|
||||||
nix-index provides a way to find out which packages are provided by which derivations. By default it also comes with a replacement for <code>command-not-found.sh</code>, however, the implementation is based on a channel based setup. I like consistency, so I replace the command with one that provides a flakes-based output.
|
nix-index provides a way to find out which packages are provided by which derivations. By default it also comes with a replacement for <code>command-not-found.sh</code>, however, the implementation is based on a channel based setup. I like consistency, so I replace the command with one that provides a flakes-based output.
|
||||||
|
|
@ -8686,7 +8687,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
let
|
let
|
||||||
inherit (config.wayland.windowManager.sway.config) modifier;
|
inherit (config.wayland.windowManager.sway.config) modifier;
|
||||||
in
|
in
|
||||||
{
|
recursiveUpdate {
|
||||||
"${modifier}+q" = "kill";
|
"${modifier}+q" = "kill";
|
||||||
"${modifier}+f" = "exec firefox";
|
"${modifier}+f" = "exec firefox";
|
||||||
"${modifier}+Space" = "exec fuzzel";
|
"${modifier}+Space" = "exec fuzzel";
|
||||||
|
|
@ -8754,7 +8755,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
||||||
"${modifier}+r" = "mode resize";
|
"${modifier}+r" = "mode resize";
|
||||||
"${modifier}+Return" = "exec kitty";
|
"${modifier}+Return" = "exec kitty";
|
||||||
};
|
} config.swarselsystems.keybindings;
|
||||||
modes = {
|
modes = {
|
||||||
resize = {
|
resize = {
|
||||||
Down = "resize grow height 10 px or 10 ppt";
|
Down = "resize grow height 10 px or 10 ppt";
|
||||||
|
|
@ -8941,8 +8942,8 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org9aea842" class="outline-4">
|
<div id="outline-container-org318c149" class="outline-4">
|
||||||
<h4 id="org9aea842"><span class="section-number-4">3.4.25.</span> gpg-agent</h4>
|
<h4 id="org318c149"><span class="section-number-4">3.4.25.</span> gpg-agent</h4>
|
||||||
<div class="outline-text-4" id="text-3-4-25">
|
<div class="outline-text-4" id="text-3-4-25">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-nix">{ pkgs, ... }:
|
<pre class="src src-nix">{ pkgs, ... }:
|
||||||
|
|
@ -9977,7 +9978,7 @@ The standard Emacs behaviour for the Python process shell is a bit annoying. Thi
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org687bcdb"></a>Nix common prefix bracketer<br />
|
<li><a id="org0f2f88d"></a>Nix common prefix bracketer<br />
|
||||||
<div class="outline-text-5" id="text-4-2-1-15">
|
<div class="outline-text-5" id="text-4-2-1-15">
|
||||||
<p>
|
<p>
|
||||||
This function searches for common delimiters in region and removes them, summarizing all captured lines by it.
|
This function searches for common delimiters in region and removes them, summarizing all captured lines by it.
|
||||||
|
|
@ -10010,7 +10011,7 @@ This function searches for common delimiters in region and removes them, summari
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a id="org1cc1a9f"></a>Nix formatters<br />
|
<li><a id="org4cede31"></a>Nix formatters<br />
|
||||||
<div class="outline-text-5" id="text-4-2-1-16">
|
<div class="outline-text-5" id="text-4-2-1-16">
|
||||||
<p>
|
<p>
|
||||||
This formats the org code block at <code>point</code> in accordance to the <code>nixpkgs-fmt</code> formatter
|
This formats the org code block at <code>point</code> in accordance to the <code>nixpkgs-fmt</code> formatter
|
||||||
|
|
@ -11583,8 +11584,8 @@ This adds a rudimentary nix-mode to Emacs. I have not really tried this out, as
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org87ac3f4" class="outline-4">
|
<div id="outline-container-org0f524e3" class="outline-4">
|
||||||
<h4 id="org87ac3f4"><span class="section-number-4">4.4.3.</span> nixpkgs-fmt</h4>
|
<h4 id="org0f524e3"><span class="section-number-4">4.4.3.</span> nixpkgs-fmt</h4>
|
||||||
<div class="outline-text-4" id="text-4-4-3">
|
<div class="outline-text-4" id="text-4-4-3">
|
||||||
<p>
|
<p>
|
||||||
Adds functions for formatting nix code.
|
Adds functions for formatting nix code.
|
||||||
|
|
@ -13599,7 +13600,7 @@ My laptop, sadly soon to be replaced by a new one, since most basic functions ar
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Leon Schwarzäugl</p>
|
<p class="author">Author: Leon Schwarzäugl</p>
|
||||||
<p class="date">Created: 2024-07-25 Do 15:13</p>
|
<p class="date">Created: 2024-07-25 Do 16:01</p>
|
||||||
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,11 @@ in
|
||||||
options.swarselsystems.standardinputs = mkOption {
|
options.swarselsystems.standardinputs = mkOption {
|
||||||
type = types.attrsOf (types.attrsOf types.str);
|
type = types.attrsOf (types.attrsOf types.str);
|
||||||
default = lib.recursiveUpdate (lib.recursiveUpdate config.swarselsystems.touchpad config.swarselsystems.kyria) config.swarselsystems.inputs;
|
default = lib.recursiveUpdate (lib.recursiveUpdate config.swarselsystems.touchpad config.swarselsystems.kyria) config.swarselsystems.inputs;
|
||||||
|
internal = true;
|
||||||
|
};
|
||||||
|
options.swarselsystems.keybindings = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ in
|
||||||
let
|
let
|
||||||
inherit (config.wayland.windowManager.sway.config) modifier;
|
inherit (config.wayland.windowManager.sway.config) modifier;
|
||||||
in
|
in
|
||||||
|
recursiveUpdate
|
||||||
{
|
{
|
||||||
"${modifier}+q" = "kill";
|
"${modifier}+q" = "kill";
|
||||||
"${modifier}+f" = "exec firefox";
|
"${modifier}+f" = "exec firefox";
|
||||||
|
|
@ -99,7 +100,8 @@ in
|
||||||
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
||||||
"${modifier}+r" = "mode resize";
|
"${modifier}+r" = "mode resize";
|
||||||
"${modifier}+Return" = "exec kitty";
|
"${modifier}+Return" = "exec kitty";
|
||||||
};
|
}
|
||||||
|
config.swarselsystems.keybindings;
|
||||||
modes = {
|
modes = {
|
||||||
resize = {
|
resize = {
|
||||||
Down = "resize grow height 10 px or 10 ppt";
|
Down = "resize grow height 10 px or 10 ppt";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, outputs, ... }:
|
{ inputs, outputs, config, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -57,6 +57,21 @@
|
||||||
xkb_variant = "altgr-intl";
|
xkb_variant = "altgr-intl";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
keybindings = {
|
||||||
|
"Mod4+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
|
||||||
|
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
|
||||||
|
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
|
||||||
|
"XF86Display" = "exec wl-mirror eDP-1";
|
||||||
|
# these are left open to use
|
||||||
|
# "XF86WLAN" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Messenger" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Go" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86Favorites" = "exec wl-mirror eDP-1";
|
||||||
|
# "XF86HomePage" = "exec wtype -P Escape -p Escape";
|
||||||
|
# "XF86AudioLowerVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink -5%";
|
||||||
|
# "XF86AudioRaiseVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink +5% ";
|
||||||
|
"XF86AudioMute" = "exec pactl set-sink-mute alsa_output.pci-0000_08_00.6.HiFi__Speaker__sink toggle && exec pactl set-sink-mute alsa_output.usb-Lenovo_ThinkPad_Thunderbolt_4_Dock_USB_Audio_000000000000-00.analog-stereo toggle";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,25 +11,6 @@
|
||||||
# ];
|
# ];
|
||||||
|
|
||||||
|
|
||||||
keybindings =
|
|
||||||
let
|
|
||||||
inherit (config.wayland.windowManager.sway.config) modifier;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"${modifier}+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
|
|
||||||
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
|
|
||||||
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
|
|
||||||
"XF86Display" = "exec wl-mirror eDP-1";
|
|
||||||
# these are left open to use
|
|
||||||
# "XF86WLAN" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Messenger" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Go" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86Favorites" = "exec wl-mirror eDP-1";
|
|
||||||
# "XF86HomePage" = "exec wtype -P Escape -p Escape";
|
|
||||||
# "XF86AudioLowerVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink -5%";
|
|
||||||
# "XF86AudioRaiseVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink +5% ";
|
|
||||||
"XF86AudioMute" = "pactl set-sink-mute alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink toggle";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue