From db2180159664281ecd904b6989ebfc957d2ec250 Mon Sep 17 00:00:00 2001 From: lucas barbieri Date: Tue, 26 Nov 2024 08:56:28 -0300 Subject: [PATCH] feat(work): add new kb --- .../configs/sway/.config/sway/settings/binds | 6 +++- .../configs/sway/.config/sway/settings/config | 30 +++++++++++++------ .../configs/sway/.config/sway/settings/init | 15 ++++++---- .../configs/sway/.config/sway/settings/rules | 1 + 4 files changed, 37 insertions(+), 15 deletions(-) diff --git a/work-laptop/configs/sway/.config/sway/settings/binds b/work-laptop/configs/sway/.config/sway/settings/binds index 5ef7426..5ea1983 100644 --- a/work-laptop/configs/sway/.config/sway/settings/binds +++ b/work-laptop/configs/sway/.config/sway/settings/binds @@ -3,7 +3,7 @@ set $left h set $down j set $up k set $right l -set $term LC_ALL=C alacritty +set $term alacritty set $menu fuzzel mode "resize" { @@ -93,4 +93,8 @@ bindsym $mod+Alt+x exec XL_SECRET_PROVIDER=FILE flatpak run --parent-expose-pids bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- +# brightness +bindsym $mod+F9 exec brightnessctl set 5%- +bindsym $mod+F10 exec brightnessctl set 5%+ + # vim: ts=2 sts=2 sw=2 ft=swayconfig diff --git a/work-laptop/configs/sway/.config/sway/settings/config b/work-laptop/configs/sway/.config/sway/settings/config index ac81f7e..dd97728 100644 --- a/work-laptop/configs/sway/.config/sway/settings/config +++ b/work-laptop/configs/sway/.config/sway/settings/config @@ -18,29 +18,41 @@ mouse_warping none input "2362:9523:Gaming_Mouse" { accel_profile flat - dwt enabled - pointer_accel 0.5 + dwt enabled + pointer_accel 0.5 } input "1267:12721:ELAN050A:00_04F3:31B1_Touchpad" { dwt enabled - tap enabled + tap enabled +} + +input "1267:12721:ELAN050A:00_04F3:31B1_Mouse" { + accel_profile flat + dwt enabled + pointer_accel 0.5 } input "1241:6185:LogoTech_Gaming_Keyboard" { xkb_layout br - xkb_variant abnt2 - xkb_options ctrl:nocaps + xkb_variant abnt2 + xkb_options ctrl:nocaps } input "1:1:AT_Translated_Set_2_keyboard" { xkb_layout br - xkb_variant abnt2 - xkb_options ctrl:nocaps + xkb_variant abnt2 + xkb_options ctrl:nocaps } input "6700:11555:USB_USB_Keyboard" { xkb_layout br - xkb_variant abnt2 - xkb_options ctrl:nocaps + xkb_variant abnt2 + xkb_options ctrl:nocaps +} + +input "10874:27160:CASUE_CASUE_USB_Keyboard" { + xkb_layout br + xkb_variant abnt2 + xkb_options ctrl:nocaps } input "1356:2508:Sony_Interactive_Entertainment_Wireless_Controller_Touchpad" { diff --git a/work-laptop/configs/sway/.config/sway/settings/init b/work-laptop/configs/sway/.config/sway/settings/init index 56770a2..a7afba5 100644 --- a/work-laptop/configs/sway/.config/sway/settings/init +++ b/work-laptop/configs/sway/.config/sway/settings/init @@ -4,17 +4,22 @@ exec { gsettings set $gnome-schema icon-theme "Reversal-black-dark" gsettings set $gnome-schema cursor-theme 'Simp1e-Adw' gsettings set $gnome-schema font-name 'CozetteVector 12' - xrandr --output HDMI-A-1 --primary waybar & autotiling & gammastep -t 4500:3500 -l -23.5475:-46.63611 -b 1.0:0.7 & - dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway DISPLAY + dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway DISPLAY rm -rf ~/tmp/* ~/scripts/swww.sh - # otd-daemon - ~/scripts/weechat.sh + blueman-applet & + # ~/scripts/weechat.sh dunst & - nextcloud --background + swayidle -w \ + timeout 300 'swaylock -f --image ~/pics/white.jpg' \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f --image ~/pics/white.jpg' + teams-for-linux & + flatpak run com.mattermost.Desktop + bitwarden-desktop-bin } # vim: ts=2 sts=2 sw=2 ft=swayconfig diff --git a/work-laptop/configs/sway/.config/sway/settings/rules b/work-laptop/configs/sway/.config/sway/settings/rules index 1b0651c..a32b2ad 100644 --- a/work-laptop/configs/sway/.config/sway/settings/rules +++ b/work-laptop/configs/sway/.config/sway/settings/rules @@ -50,5 +50,6 @@ for_window [title="^Steam Keyboard$"] floating enable for_window [class="Mattermost"] move to workspace 7 for_window [class="teams-for-linux"] move to workspace 8 +for_window [class="Bitwarden"] move to workspace 9 # vim: ts=2 sts=2 sw=2 ft=swayconfig