diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf new file mode 100644 index 0000000..d4922b2 --- /dev/null +++ b/.config/kitty/kitty.conf @@ -0,0 +1,8 @@ +update_check_interval 0 + +font_family DejaVuSansMono Nerd Font Mono +font_size 14.0 + +background_opacity 0.8 + +enable_audio_bell no diff --git a/.config/nvim/pack/plugins/opt/nvim-treesitter b/.config/nvim/pack/plugins/opt/nvim-treesitter index 826c951..116c72f 160000 --- a/.config/nvim/pack/plugins/opt/nvim-treesitter +++ b/.config/nvim/pack/plugins/opt/nvim-treesitter @@ -1 +1 @@ -Subproject commit 826c951825e94dd57decfbb2dd85781ff4dfc712 +Subproject commit 116c72f5c2e4e63bbf0b7d698f9d35e36848605a diff --git a/.config/sway/config.d/30-startup.conf b/.config/sway/config.d/30-startup.conf index f2a26bc..2026def 100644 --- a/.config/sway/config.d/30-startup.conf +++ b/.config/sway/config.d/30-startup.conf @@ -1,18 +1,14 @@ # fix slow startup time exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK -# Lock after $screen_timeout -# Turn off screen after $screem_timeout - 10 +# Turn off screen after $screen_timeout +# Lock after $screen_timeout + 10s # Lock if screen off -exec swayidle -w \ - timeout $(($screen_timeout + 10)) "$lock" \ - timeout $screen_timeout 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ - before-sleep "$lock" - -# GTK theme -exec gsettings set org.gnome.desktop.interface gtk-theme "Materia-dark" -exec gsettings set org.gnome.desktop.interface icon-theme "Papirus-Dark" +exec swayidle -w \ + timeout $(($screen_timeout + 10)) "$lock" \ + timeout $screen_timeout 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep "$lock" bar swaybar_command waybar diff --git a/.config/zsh/.p10k.zsh b/.config/zsh/.p10k.zsh index 9ee191a..ab12834 100644 --- a/.config/zsh/.p10k.zsh +++ b/.config/zsh/.p10k.zsh @@ -985,7 +985,7 @@ typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global) # If set to false, hide python version if it's the same as global: # $(pyenv version-name) == $(pyenv global). - typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false + typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=true # If set to false, hide python version if it's equal to "system". typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true diff --git a/.xinitrc b/.xinitrc index c84537f..4c142e5 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,6 +1,10 @@ #!/bin/sh -xrandr \ - --output HDMI-2 --auto --primary - --output eDP-1 --left-of HDMI-2 +#xrandr \ +# --output HDMI-2 --auto --primary \ +# --output eDP-1 --left-of HDMI-2 +# +## fix touchscreen +#xinput --map-to-output 'Raydium Corporation Raydium Touch System' 'eDP-1' + exec x-window-manager diff --git a/bin/set-light b/bin/set-light index d95a265..527c75f 100755 --- a/bin/set-light +++ b/bin/set-light @@ -5,8 +5,10 @@ shopt -s extglob nullglob set_brightness() { MAX="$(cat "$1"/max_brightness)" FILE="$1"/brightness - VAL="$(($2 * MAX / 100))" + VAL="$(($2 * MAX / 100 + 1))" + [ "$VAL" -lt 0 ] && VAL=0 + [ "$VAL" -gt "$MAX" ] && VAL="$MAX" echo "$VAL" > "$FILE" }