From 17d803c5174e718c0514f8aed7b02467b579e962 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Wed, 9 Jul 2025 23:10:22 +0500 Subject: [PATCH] set variables from zprofile --- .config/sway/config | 19 +++++++++++-------- .zprofile | 6 ++++++ .zshrc | 7 +------ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 065d6eb..3f8349c 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -9,12 +9,21 @@ set $up k set $right l -# autostart +# start daemons exec copyq --start-server # exec waybar exec dunst +exec playerctld daemon exec_always autotiling +# subscribe to ntfy notifications +exec ~/Scripts/ntfy/ntfy_subscribe.sh & + +# start xwayland at session start to make DP-2 monitor primary +xwayland force +exec xrandr --output DP-2 --primary + + bar { id 1 tray_output none @@ -75,6 +84,7 @@ assign [app_id="DBeaver"] workspace 22 assign [class="jetbrains-datagrip"] workspace 23 assign [app_id="taxsee.im.desktop*"] workspace 24 +assign [app_id="Element"] workspace number 25 assign [class="Element"] workspace number 25 # powermenu @@ -257,11 +267,4 @@ bindsym --to-code --locked Shift+XF86AudioPrev exec mpc prev # special key to take a screenshot with grim bindsym --to-code $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy -# subscribe to ntfy notifications -exec ~/Scripts/ntfy/ntfy_subscribe.sh & - -# start xwayland at session start to make DP-2 monitor primary -xwayland force -exec xrandr --output DP-2 --primary - include /etc/sway/config.d/* diff --git a/.zprofile b/.zprofile index 08a8473..20b91c3 100644 --- a/.zprofile +++ b/.zprofile @@ -1,5 +1,11 @@ export PATH=~/.local/bin:~/.cargo/bin:$PATH +export EDITOR=nvim +export SUDO_EDITOR=/usr/bin/nvim +export XDG_CURRENT_DESKTOP=Sway +export HOMEBREW_NO_AUTO_UPDATE=true +export ELECTRON_OZONE_PLATFORM_HINT=auto + if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then exec sway fi diff --git a/.zshrc b/.zshrc index 7a02a1c..6abd50f 100644 --- a/.zshrc +++ b/.zshrc @@ -24,12 +24,7 @@ alias acpoet='source $( poetry env list --full-path | grep Activated | cut -d" " alias rutracker='RUTRACKER_USERNAME=$(pass show rutracker | grep -oP "username:\K.*") RUTRACKER_PASSWORD=$(pass show rutracker | head -n 1) rust_rutracker_cli' alias weather='curl wttr.in/tyumen' alias toggle_vpn='sudo toggle_vpn' - -export WLR_NO_HARDWARE_CURSORS=1 -export EDITOR=nvim -export SUDO_EDITOR=/usr/bin/nvim -export XDG_CURRENT_DESKTOP=Sway -export HOMEBREW_NO_AUTO_UPDATE=true +alias rr='ranger' ### Added by Zinit's installer if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then