ehehehehhee
This commit is contained in:
parent
c2f96dd319
commit
160bc8c7ea
|
@ -51,7 +51,7 @@
|
|||
};
|
||||
enable = true;
|
||||
layout = "us";
|
||||
xkbVariant = "altgr-intl";
|
||||
xkbVariant = "alt-intl";
|
||||
windowManager.i3 = {
|
||||
package = pkgs.i3-gaps;
|
||||
enable = true;
|
||||
|
|
|
@ -55,7 +55,7 @@ in
|
|||
## calculator
|
||||
"${mod}+c" = "exec rofi -show calc";
|
||||
## emoji
|
||||
"${mod}+period" = "exec rofimoji";
|
||||
"${mod}+period" = "exec rofimoji --action copy --prompt 🏳️⚧️";
|
||||
|
||||
# windows
|
||||
## switch to resize mode
|
||||
|
@ -74,10 +74,22 @@ in
|
|||
## split
|
||||
"${mod}+e" = "split toggle";
|
||||
|
||||
# control values
|
||||
# extra keys
|
||||
## audio
|
||||
"XF86AudioMute" = "amixer set Master toggle";
|
||||
"XF86AudioUnmute" = "amixer set Master toggle";
|
||||
"XF86AudioMicMute" = "amixer set Capture toggle";
|
||||
"XF86AudioMicUnmute" = "amixer set Capture toggle";
|
||||
|
||||
## brightness
|
||||
"XF86MonBrightnessUp" = "exec /etc/nixos/i3/brightness.py 100+";
|
||||
"XF86MonBrightnessDown" = "exec /etc/nixos/i3/brightness.py 100-";
|
||||
|
||||
## display
|
||||
"XF86Display" = "exec arandr";
|
||||
|
||||
## wifi
|
||||
"XF86WLAN" = "exec rfkill toggle wifi";
|
||||
};
|
||||
|
||||
modes = {
|
||||
|
@ -92,8 +104,12 @@ in
|
|||
media = {
|
||||
Return = "mode default";
|
||||
Escape = "mode default";
|
||||
j = "exec --no-startup-id python3 /etc/nixos/i3/audio.py 5%-";
|
||||
k = "exec --no-startup-id python3 /etc/nixos/i3/audio.py 5%+";
|
||||
j = "exec --no-startup-id python3 /etc/nixos/i3/volume.py 5%-";
|
||||
k = "exec --no-startup-id python3 /etc/nixos/i3/volume.py 5%+";
|
||||
m = "exec --no-startup-id amixer set Master toggle";
|
||||
c = "exec --no-startup-id kitty cmus";
|
||||
v = "exec --no-startup-id mpv";
|
||||
Space = "exec playerctl play-pause";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -137,7 +153,6 @@ in
|
|||
border = color_bg;
|
||||
text = color_fg;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
import subprocess
|
||||
import argparse
|
||||
|
||||
|
||||
def get_amixer_volume() -> int:
|
||||
s: str = str(subprocess.check_output(["amixer", "get", "Master"]))
|
||||
try:
|
||||
|
@ -25,6 +26,7 @@ def display_volume(volume: int):
|
|||
["dunstify", "volume 蓼", "-h", "int:value:" + str(volume), "-r", "39489384"]
|
||||
)
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("volchange")
|
||||
args = parser.parse_args()
|
Loading…
Reference in New Issue