gentoo-sway #2

Merged
dbroqua merged 116 commits from gentoo-sway into master 2021-10-24 00:30:54 +02:00
3 changed files with 28 additions and 16 deletions
Showing only changes of commit 47f7950584 - Show all commits

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
*.swp
config/neomutt/accounts config/neomutt/accounts
config/neomutt/signature config/neomutt/signature
Bin/calameco.sh Bin/calameco.sh

9
bin/autoFocus.sh Executable file
View file

@ -0,0 +1,9 @@
#! /bin/bash
swaymsg -t get_outputs|grep 'eDP-1' > /dev/null
if [ $? == 0 ]; then
swaymsg focus output eDP-1
else
swaymsg focus output HDMI-A-3
fi

View file

@ -5,13 +5,9 @@ input "type:keyboard" {
xkb_options "compose:rwin" xkb_options "compose:rwin"
} }
input "19266:13912:You_kbd6x" { input "19266:13912:You_kbd6x" {
xkb_layout us
xkb_variant intl
xkb_options "compose:rctrl" xkb_options "compose:rctrl"
} }
input "1:1:AT_Translated_Set_2_keyboard" { input "1:1:AT_Translated_Set_2_keyboard" {
xkb_layout us
xkb_variant intl
xkb_options "compose:rctrl" xkb_options "compose:rctrl"
} }
@ -78,11 +74,17 @@ set $ps2 Control+Print
set $modalWidth 1280 set $modalWidth 1280
set $modalHeight 800 set $modalHeight 800
# Screens definitions
output $thinkstation resolution 3440x1440@100Hz position 0,0 adaptive_sync on ### Screens definitions
output $thinkstation-work resolution 1920x1080@60Hz position 3440,0 transform 270 adaptive_sync on #
output $thinkpad resolution 1920x1080 position 0,0
output $thinkpad-work resolution 1920x1080 position 0,1080 # Thinkstation
output $thinkstation resolution 3440x1440@100Hz position 0 0 adaptive_sync on
output $thinkstation-work resolution 1920x1080@60Hz position 3440 0 transform 270 adaptive_sync on
# Thinkpad
output $thinkpad-work resolution 1920x1080 position 0 0
output $thinkpad resolution 1920x1080 position 1920 785
### Gnome settings ### Gnome settings
@ -129,6 +131,9 @@ exec spotify
exec signal-desktop --use-tray-icon exec signal-desktop --use-tray-icon
exec teams exec teams
exec mpd exec mpd
exec libinput-gestures-setup start
# Set focus on main screen
exec ~/bin/autoFocus.sh
### Window config ### Window config
@ -187,9 +192,6 @@ bindsym $mod+t exec "$term -t 'Top' -e bpytop"
# Calendar # Calendar
bindsym $mod+c exec "$term -t 'Calendar' -e khal interactive" bindsym $mod+c exec "$term -t 'Calendar' -e khal interactive"
# Note
#bindsym $mod+n exec "/home/dbroqua/Softwares/Zettlr"
# Dismiss last notification # Dismiss last notification
bindsym $mod+n exec makoctl dismiss bindsym $mod+n exec makoctl dismiss
# Do not disturb # Do not disturb
@ -212,8 +214,8 @@ bindsym $mod+p exec "swaymsg output $work toggle"
# #
# Brightness # Brightness
bindsym XF86MonBrightnessDown exec light -U 10 bindsym XF86MonBrightnessDown exec brightnessctl s 64-
bindsym XF86MonBrightnessUp exec light -A 10 bindsym XF86MonBrightnessUp exec brightnessctl s 64+
# Screenshots # Screenshots
bindsym $ps1 exec grim ~/Pictures/Screenshots/ps_$(date +"%Y%m%d%H%M%S").png bindsym $ps1 exec grim ~/Pictures/Screenshots/ps_$(date +"%Y%m%d%H%M%S").png
@ -313,8 +315,8 @@ workspace $wksp5 output $thinkstation
workspace $wksp6 output $thinkstation workspace $wksp6 output $thinkstation
workspace $wksp7 output $thinkstation workspace $wksp7 output $thinkstation
workspace $wksp8 output $thinkstation workspace $wksp8 output $thinkstation
workspace $wksp9 output $thinkstation-work workspace $wksp9 output $work
workspace $wksp10 output $thinkstation-work workspace $wksp10 output $work