aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/aliases/system.zsh
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-10-15 00:51:15 +0530
committerAkshay Nair <phenax5@gmail.com>2023-10-15 00:51:15 +0530
commit32d0bd79637cdc6400798bc033c8e2149ec4c5a6 (patch)
treedf6f25cb31bb2b93a1af5104b613c96013b823b9 /config/zsh/aliases/system.zsh
parent4eb5f01f1f7a11527be56bd8a8afecd31d640b15 (diff)
downloadnixos-config-32d0bd79637cdc6400798bc033c8e2149ec4c5a6.tar.gz
nixos-config-32d0bd79637cdc6400798bc033c8e2149ec4c5a6.zip
config sync
Diffstat (limited to 'config/zsh/aliases/system.zsh')
-rw-r--r--config/zsh/aliases/system.zsh16
1 files changed, 16 insertions, 0 deletions
diff --git a/config/zsh/aliases/system.zsh b/config/zsh/aliases/system.zsh
index 4554289..031bb1b 100644
--- a/config/zsh/aliases/system.zsh
+++ b/config/zsh/aliases/system.zsh
@@ -21,3 +21,19 @@ nix-rollback() {
#sv_enable() { [[ -f "/etc/runit/sv/$1" ]] && sudo ln -s /etc/runit/sv/$1 /run/runit/service; }
#sv_disable() { sudo unlink /run/runit/service/$1; }
+setup_webcam_day() {
+ v4l2-ctl -d /dev/video2 --set-ctrl exposure_absolute=300
+ v4l2-ctl -d /dev/video2 --set-ctrl gamma=180
+ v4l2-ctl -d /dev/video2 --set-ctrl saturation=17
+ v4l2-ctl -d /dev/video2 --set-ctrl contrast=12
+ v4l2-ctl -d /dev/video2 --set-ctrl brightness=1
+}
+
+setup_webcam_night() {
+ v4l2-ctl -d /dev/video2 --set-ctrl exposure_absolute=400
+ v4l2-ctl -d /dev/video2 --set-ctrl gamma=230
+ v4l2-ctl -d /dev/video2 --set-ctrl saturation=16
+ v4l2-ctl -d /dev/video2 --set-ctrl contrast=11
+ v4l2-ctl -d /dev/video2 --set-ctrl brightness=1
+}
+