From e2f00a219c609aaea4fea280ba03f21d9ef5a7a9 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Sat, 7 Jan 2023 17:05:17 +0300 Subject: [PATCH] Update to current vesions. sway: - use bg from ~/Pictures/bg/bg.png - add trackpad gestures - add opacity for alacritty (look to alacritty section) alacritty: - add 0.5 opacity (only not for menu window) waybar: - remove abstime from current configuration (module on it's place) zshrc: - add alias for quickly restart network Signed-off-by: Ivan Bushchik --- configs/.profile | 1 + configs/.zshrc | 7 +++++++ configs/alacritty/alacritty.yml | 1 + configs/sway/config | 17 +++++++++++++++-- configs/waybar/config | 4 ++-- configs/waybar/style.css | 9 +++++---- 6 files changed, 31 insertions(+), 8 deletions(-) diff --git a/configs/.profile b/configs/.profile index baac4e6..46fc92f 100644 --- a/configs/.profile +++ b/configs/.profile @@ -5,3 +5,4 @@ export ELM_ACCEL="gl" export MOZ_ENABLE_WAYLAND=1 export MOZ_DBUS_REMOTE=1 export QT_QPA_PLATFORMTHEME=qt5ct +export XDG_CURRENT_DESKTOP=Unity diff --git a/configs/.zshrc b/configs/.zshrc index 1886357..b197cca 100644 --- a/configs/.zshrc +++ b/configs/.zshrc @@ -33,3 +33,10 @@ alias vim="nvim" alias upgrade_dotfiles="sh $HOME/.dotfiles/tools/upgrade.sh" alias timestamp='date -u +%FT%TZ' alias yt-dlp-opus="yt-dlp -f 251 -x" + +# AsahiLinux useful aliases +alias reload_net="sudo systemctl restart NetworkManager wpa_supplicant" # iwd" + + + +add-zsh-hook -Uz chpwd(){ source <(tea -Eds) } #tea diff --git a/configs/alacritty/alacritty.yml b/configs/alacritty/alacritty.yml index b9fe58f..913e576 100644 --- a/configs/alacritty/alacritty.yml +++ b/configs/alacritty/alacritty.yml @@ -5,6 +5,7 @@ window: padding: x: 5 y: 5 + opacity: 0.5 scrolling: history: 100000 multiplier: 3 diff --git a/configs/sway/config b/configs/sway/config index 98b78d7..ac0bc92 100644 --- a/configs/sway/config +++ b/configs/sway/config @@ -5,10 +5,10 @@ set $up k set $right l set $term alacritty for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt -set $menu exec $term --class=launcher -e env zsh -c "source ~/.profile && /usr/bin/sway-launcher-desktop" +set $menu exec $term --option window.opacity=1 --class=launcher -e env zsh -c "source ~/.profile && /usr/bin/sway-launcher-desktop" set $filemgr nemo -output * bg #181924 solid_color +output * bg ~/Pictures/bg/bg.png fill input type:keyboard { xkb_layout us,ru @@ -136,6 +136,19 @@ bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous bindsym XF86Search exec $menu +# Trackpad gestures + +bindgesture swipe:3:right workspace next +bindgesture swipe:3:left workspace prev + +bindgesture swipe:4:up move up +bindgesture swipe:4:down move down +bindgesture swipe:4:left move left +bindgesture swipe:4:right move right + +bindgesture pinch:4:inward exec $menu # launchpad like + + # Floating for_window [app_id="pavucontrol"] floating enable, resize 600 300, move absolute position 25ppt 25ppt for_window [app_id="iwgtk"] floating enable, resize 300 150, move absolute position 25ppt 25ppt diff --git a/configs/waybar/config b/configs/waybar/config index d664bbe..c9f060d 100644 --- a/configs/waybar/config +++ b/configs/waybar/config @@ -2,14 +2,14 @@ "position": "top", "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": [], - "modules-right": ["idle_inhibitor", "cpu", "memory", "custom/loadavg", "custom/uptime", "network", "pulseaudio", "battery", "sway/language", "custom/absclock", "clock", "tray"], + "modules-right": ["tray", "idle_inhibitor", "cpu", "memory", "custom/uptime", "network", "pulseaudio", "battery", "sway/language", "clock"], "sway/mode": { "format": "{}" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { - "activated": "No idling", + "activated": "Don't idle", "deactivated": "Idling" } }, diff --git a/configs/waybar/style.css b/configs/waybar/style.css index c78d067..309c0f8 100644 --- a/configs/waybar/style.css +++ b/configs/waybar/style.css @@ -9,15 +9,16 @@ } window#waybar { - /*background-color: @base;*/ color: transparent; - background: transparent; - padding-left: 16px; - padding-right: 16px; + background: none; + padding-top: 0; + padding-bottom: 0; margin-top: 8px; border-radius: 32px; } + + #workspaces { background: @base; transition: none;