Sway : Move gaming and montoggle back to system.

This commit is contained in:
Dmitry Voronin 2024-09-12 01:25:17 +03:00
parent d4cc547626
commit 7ba4cca93e
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
6 changed files with 27 additions and 152 deletions

View file

@ -66,7 +66,13 @@
"Down",
"Right",
"Full-screen / Float",
"Toggle Gaming Monitor",
{
"c": "#cccccc"
},
"G",
{
"c": "#8ec07c"
},
"Resize Left",
"Resize Down",
"Resize Up",
@ -99,10 +105,10 @@
"c": "#8ec07c"
},
"Last notif / Dismiss",
"Toggle Focused Monitor",
{
"c": "#cccccc"
},
"M",
"<\n,",
">\n.",
"?\n/",

View file

@ -73,7 +73,13 @@
},
"D",
"F",
"G",
{
"c": "#8ec07c"
},
"Toggle Gaming Mode",
{
"c": "#cccccc"
},
"H",
"J",
"K",
@ -108,7 +114,13 @@
},
"B",
"N",
"M",
{
"c": "#8ec07c"
},
"Toggle Monitor Power",
{
"c": "#cccccc"
},
"<\n,",
">\n.",
"?\n/",

View file

@ -1,134 +0,0 @@
[
[
"~\n`",
"!\n1",
"@\n2",
"#\n3",
"$\n4",
"%\n5",
"^\n6",
"&\n7",
"*\n8",
"(\n9",
")\n0",
"_\n-",
"+\n=",
{
"w": 2
},
"Backspace"
],
[
{
"c": "#8ec07c",
"w": 1.5
},
"Switch app",
"Prev Work-space",
"Maxi-mize",
"Next Work-space",
"Resize Mode",
{
"c": "#cccccc"
},
"T",
"Y",
"U",
"I",
"O",
"P",
"{\n[",
"}\n]",
{
"w": 1.5
},
"|\n\\"
],
[
{
"c": "#8ec07c",
"w": 1.75
},
"Terminal",
"Tile Left",
"Mini-mize",
"Rile Right",
"Full-screen",
{
"c": "#cccccc"
},
"G",
"H",
"J",
"K",
"L",
":\n;",
"\"\n'",
{
"w": 2.25
},
"Enter"
],
[
{
"c": "#8ec07c",
"w": 2.25
},
"Alternative action",
"Lock",
"Close Window",
"Hide All Window",
"Screen select",
{
"c": "#cccccc"
},
"B",
"N",
"M",
"<\n,",
">\n.",
"?\n/",
{
"w": 2.75
},
"Shift"
],
[
{
"w": 1.25
},
"Ctrl",
{
"c": "#d79921",
"w": 1.25
},
"WM Controls",
{
"c": "#cccccc",
"w": 1.25
},
"Alt",
{
"c": "#8ec07c",
"w": 6.25
},
"Run",
{
"c": "#cccccc",
"w": 1.25
},
"Alt",
{
"w": 1.25
},
"Win",
{
"w": 1.25
},
"Menu",
{
"w": 1.25
},
"Ctrl"
]
]

View file

@ -68,11 +68,8 @@ Yellow are modifier keys, they enable layers when held. Green ones are just modi
</details>
<details>
<summary>WM keys</summary>
Sway:<br>
<img src="https://i.imgur.com/zfCWDA6.png" /><br>
Gnome:<br>
<img src="https://i.imgur.com/TrqC5jt.png" />
<summary>Sway keys</summary>
<img src="https://i.imgur.com/GS9MUZp.png" /><br>
</details>
<details>
@ -99,7 +96,7 @@ Tmux:<br>
<details>
<summary>System controls</summary>
<img src="https://i.imgur.com/VmpOq6d.png" />
<img src="https://i.imgur.com/n50RZMy.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

@ -1,16 +1,8 @@
{ ... }: {
text = ''
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
output * scale 1
output "Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622" pos 0,1080
output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165" mode 1920x1080@74.986Hz transform 180 pos 780,0
# Display toggles.
bindsym --to-code $mod+m exec 'swayscript montoggle'
bindsym --to-code $mod+g exec 'swayscript gamingtoggle'
'';
}

View file

@ -5,7 +5,9 @@ in {
text = ''
bindsym ${mod} input * xkb_switch_layout 0
bindsym --to-code ${mod}+c exec 'systemctl reboot -i'
bindsym --to-code ${mod}+g exec 'swayscript gamingtoggle'
bindsym --to-code ${mod}+l exec 'powerlimit toggle'
bindsym --to-code ${mod}+m exec 'swayscript montoggle'
bindsym --to-code ${mod}+p exec 'powersave toggle'
bindsym --to-code ${mod}+r exec 'swayscript reload'
bindsym --to-code ${mod}+v exec 'swayscript vpntoggle'