Sway : Add brightness key.

This commit is contained in:
Dmitry Voronin 2024-09-12 01:03:30 +03:00
parent 865fb6adc1
commit 35fea860e0
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
6 changed files with 21 additions and 24 deletions

View file

@ -30,7 +30,13 @@
},
"Tab",
"Q",
"W",
{
"c": "#8ec07c"
},
"Bright- ness Up",
{
"c": "#cccccc"
},
"E",
"R",
"T",
@ -58,16 +64,16 @@
},
"Caps Lock",
"A",
"S",
"D",
"F",
{
"c": "#8ec07c"
},
"Toggle Gaming",
"Bright-ness Down",
{
"c": "#cccccc"
},
"D",
"F",
"G",
"H",
"J",
"K",
@ -102,13 +108,7 @@
},
"B",
"N",
{
"c": "#8ec07c"
},
"Toggle moni-tors",
{
"c": "#cccccc"
},
"M",
"<\n,",
">\n.",
"?\n/",

View file

@ -99,7 +99,7 @@ Tmux:<br>
<details>
<summary>System controls</summary>
<img src="https://i.imgur.com/wZOTRCm.png" />
<img src="https://i.imgur.com/VmpOq6d.png" />
</details>
[Link](http://www.keyboard-layout-editor.com) / [Source](https://github.com/ijprest/keyboard-layout-editor) of the tool I used to draw the images.

View file

@ -9,7 +9,6 @@
./module/Launcher.nix
./module/Terminal.nix
./module/TitleBar.nix
./module/Brightness.nix
./module/Navigation.nix
./module/Notification.nix
./module/Resize.nix

View file

@ -1,8 +0,0 @@
{ config, ... }: let
step = 5;
in {
text = ''
bindsym XF86MonBrightnessDown exec light -U ${toString step}
bindsym XF86MonBrightnessUp exec light -A ${toString step}
'';
}

View file

@ -1,5 +1,6 @@
{ ... }: let
mod = "print";
brstep = 5;
in {
text = ''
bindsym ${mod} input * xkb_switch_layout 0
@ -10,5 +11,10 @@ in {
bindsym --to-code ${mod}+v exec 'swayscript vpntoggle'
bindsym --to-code ${mod}+x exec 'systemctl poweroff -i'
bindsym --to-code ${mod}+z exec 'systemctl suspend -i'
bindsym --to-code ${mod}+w exec light -U ${toString brstep}
bindsym XF86MonBrightnessDown exec light -U ${toString brstep}
bindsym --to-code ${mod}+s exec light -A ${toString brstep}
bindsym XF86MonBrightnessUp exec light -A ${toString brstep}
'';
}

View file

@ -4,7 +4,7 @@
];
# Keyd Print to Macro remap.
services.keyd.keyboards.default.settings.main.print = "layer(layer_macro)";
services.keyd.keyboards.default.settings.main.print = "layer(layer_number)";
home.nixos.enable = true;
user = {
@ -17,7 +17,7 @@
builder.client.enable = true;
desktop.sway.enable = true;
kernel.enable = true;
keyd.enable = true;
keyd.enable = true;
powerlimit.thinkpad.enable = true;
print.enable = true;
intel.cpu = {