ehehehehhee

This commit is contained in:
zoe 2022-11-04 15:04:17 +01:00
parent c2f96dd319
commit 160bc8c7ea
4 changed files with 29 additions and 6 deletions

View File

@ -51,7 +51,7 @@
}; };
enable = true; enable = true;
layout = "us"; layout = "us";
xkbVariant = "altgr-intl"; xkbVariant = "alt-intl";
windowManager.i3 = { windowManager.i3 = {
package = pkgs.i3-gaps; package = pkgs.i3-gaps;
enable = true; enable = true;

View File

@ -55,7 +55,7 @@ in
## calculator ## calculator
"${mod}+c" = "exec rofi -show calc"; "${mod}+c" = "exec rofi -show calc";
## emoji ## emoji
"${mod}+period" = "exec rofimoji"; "${mod}+period" = "exec rofimoji --action copy --prompt 🏳";
# windows # windows
## switch to resize mode ## switch to resize mode
@ -74,10 +74,22 @@ in
## split ## split
"${mod}+e" = "split toggle"; "${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 ## brightness
"XF86MonBrightnessUp" = "exec /etc/nixos/i3/brightness.py 100+"; "XF86MonBrightnessUp" = "exec /etc/nixos/i3/brightness.py 100+";
"XF86MonBrightnessDown" = "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 = { modes = {
@ -92,8 +104,12 @@ in
media = { media = {
Return = "mode default"; Return = "mode default";
Escape = "mode default"; Escape = "mode default";
j = "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/audio.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; border = color_bg;
text = color_fg; text = color_fg;
}; };
}; };
} }
]; ];

View File

@ -2,6 +2,7 @@
import subprocess import subprocess
import argparse import argparse
def get_amixer_volume() -> int: def get_amixer_volume() -> int:
s: str = str(subprocess.check_output(["amixer", "get", "Master"])) s: str = str(subprocess.check_output(["amixer", "get", "Master"]))
try: try:
@ -25,6 +26,7 @@ def display_volume(volume: int):
["dunstify", "volume 蓼", "-h", "int:value:" + str(volume), "-r", "39489384"] ["dunstify", "volume 蓼", "-h", "int:value:" + str(volume), "-r", "39489384"]
) )
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument("volchange") parser.add_argument("volchange")
args = parser.parse_args() args = parser.parse_args()

View File

@ -25,6 +25,7 @@
# music / sound # music / sound
cmus cmus
pavucontrol pavucontrol
playerctl
# video # video
mpv mpv
@ -32,6 +33,7 @@
# images # images
feh feh
viewnior
# games # games
steam steam
@ -60,6 +62,10 @@
## python ## python
python311 python311
black black
# dotlang
graphviz
# 3d
blender
# help # help
tldr tldr