From 469af65de8e2ffdd86ca1b8a52a701c914adfbef Mon Sep 17 00:00:00 2001 From: Julien Negrotto Date: Fri, 24 Oct 2025 18:40:16 -0500 Subject: [PATCH] Updates after first setup --- packages/arch_packages.txt | 11 ++++++++ private_dot_config/sway/config | 33 +++++++++++++++++++++-- run_onchange_install-aur-packages.sh.tmpl | 5 ++-- 3 files changed, 44 insertions(+), 5 deletions(-) diff --git a/packages/arch_packages.txt b/packages/arch_packages.txt index db0bc66..5fd9656 100644 --- a/packages/arch_packages.txt +++ b/packages/arch_packages.txt @@ -1,5 +1,7 @@ +base-devel bc bitwarden +brightnessctl chezmoi colordiff ctags @@ -26,7 +28,13 @@ nvm obsidian ripgrep ripgrep-all +sway +swaybg +swayidle +swayimg swaync +sway-contrib +telegram-desktop thunar thunar-archive-plugin thunar-media-tags-plugin @@ -36,5 +44,8 @@ thunar-volman trash-cli ttf-iosevka-nerd watchexec +waybar wev +wmenu +xorg-xwayland zsh diff --git a/private_dot_config/sway/config b/private_dot_config/sway/config index 6427dfa..c681849 100644 --- a/private_dot_config/sway/config +++ b/private_dot_config/sway/config @@ -37,7 +37,27 @@ output * bg wallpaper.jpg fit # output HDMI-A-1 resolution 1920x1080 position 1920,0 # # You can get the names of your outputs by running: swaymsg -t get_outputs -output Virtual-1 resolution 1920x1080 + +# External displays + +output "Acer Technologies CB272 0x1360141A" { + resolution 1920x1080 + position 0 0 +} + +output "Hewlett Packard HP 22cwa 6CM74621LS" { + resolution 1920x1080 + position 1920 0 +} + +# Laptop internal display + +output "Chimei Innolux Corporation 0x14E4 Unknown" { + resolution 1920x1080 + position 3840 0 +} +bindswitch --reload --locked lid:on output "Chimei Innolux Corporation 0x14E4 Unknown" disable +bindswitch --reload --locked lid:off output "Chimei Innolux Corporation 0x14E4 Unknown" enable ### Idle configuration # @@ -69,7 +89,7 @@ output Virtual-1 resolution 1920x1080 # # You can also configure each device individually. # Read `man 5 sway-input` for more information about this section. -input "1:1:AT_Translated_Set_2_keyboard" { +input "9456:320:Metadot_-_Das_Keyboard_Das_Keyboard" { xkb_options "altwin:swap_alt_win,ctrl:nocaps,compose:rwin" } @@ -122,6 +142,15 @@ input "1:1:AT_Translated_Set_2_keyboard" { bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right + + # Move focus between displays + bindsym $mod+BracketLeft focus output left + bindsym $mod+BracketRight focus output right + + # Move focused window between displays + bindsym $mod+Shift+BracketLeft move container to output left + bindsym $mod+Shift+BracketRight move container to output right + # # Workspaces: # diff --git a/run_onchange_install-aur-packages.sh.tmpl b/run_onchange_install-aur-packages.sh.tmpl index 20cb1f5..c6c3b93 100644 --- a/run_onchange_install-aur-packages.sh.tmpl +++ b/run_onchange_install-aur-packages.sh.tmpl @@ -6,9 +6,8 @@ set -euo pipefail if ! command -v paru; then echo "Installing paru..." - pushd "$(mktemp -d)" - git clone https://aur.archlinux.org/paru.git - cd paru + git clone https://aur.archlinux.org/paru.git "$HOME/.paru" + cd "$HOME/.paru" makepkg -si popd fi