diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-12-24 12:25:03 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-12-24 15:39:10 +0530 |
| commit | 6dcf30e323ae94e1c5fd8c34190f81c2bc5cf4c0 (patch) | |
| tree | 6142a086365c5576e72515307efbf79232b95fa1 /config/zsh | |
| parent | 681ee5e5329f63d1902518994900a70df1c48084 (diff) | |
| download | nixos-config-6dcf30e323ae94e1c5fd8c34190f81c2bc5cf4c0.tar.gz nixos-config-6dcf30e323ae94e1c5fd8c34190f81c2bc5cf4c0.zip | |
config sync
Diffstat (limited to 'config/zsh')
| -rw-r--r-- | config/zsh/aliases/system.zsh | 6 | ||||
| -rw-r--r-- | config/zsh/plugins/fzf-cd.zsh | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/config/zsh/aliases/system.zsh b/config/zsh/aliases/system.zsh index 3f049a3..9e562dd 100644 --- a/config/zsh/aliases/system.zsh +++ b/config/zsh/aliases/system.zsh @@ -24,13 +24,13 @@ nix-rollback() { 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 saturation=15 + v4l2-ctl -d /dev/video2 --set-ctrl contrast=11 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 exposure_absolute=460 v4l2-ctl -d /dev/video2 --set-ctrl gamma=230 v4l2-ctl -d /dev/video2 --set-ctrl saturation=14 v4l2-ctl -d /dev/video2 --set-ctrl contrast=10 diff --git a/config/zsh/plugins/fzf-cd.zsh b/config/zsh/plugins/fzf-cd.zsh index f1897c5..02b85e7 100644 --- a/config/zsh/plugins/fzf-cd.zsh +++ b/config/zsh/plugins/fzf-cd.zsh @@ -4,7 +4,7 @@ fzf-change-dir-cwd() { # fzf + cd in cwd if [ ! -z "$selected" ] && [ "$selected" != "$(pwd)" ]; then cd $selected; fi - zle send-break + zle send-break || true } zle -N fzf-change-dir-cwd; @@ -15,7 +15,7 @@ fzf-change-dir() { if ! [[ -z "$result" ]]; then cd "$result" fi - zle send-break + zle send-break || true } zle -N fzf-change-dir; |
