Sway : Add brightness key.
This commit is contained in:
parent
865fb6adc1
commit
35fea860e0
|
@ -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/",
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{ config, ... }: let
|
||||
step = 5;
|
||||
in {
|
||||
text = ''
|
||||
bindsym XF86MonBrightnessDown exec light -U ${toString step}
|
||||
bindsym XF86MonBrightnessUp exec light -A ${toString step}
|
||||
'';
|
||||
}
|
|
@ -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}
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue