From 64d491cd7a3e7a0a341483939537f17d3e87277e Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 11 Apr 2023 22:17:38 -0400 Subject: feat: swapping over to wayland --- .config/sway/config | 199 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 199 insertions(+) create mode 100644 .config/sway/config (limited to '.config/sway') diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..8011c8a --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,199 @@ +# Read `man 5 sway` for a complete reference. + +### Output configuration +output eDP-1 { + background ~/.local/share/wallpaper.svg tile + resolution 1920x1080 +} + +output DP-3 { + background ~/.local/share/wallpaper.svg tile + resolution 2560x1440 +} + +## GENERAL + +font pango:sans-serif 13 +set $term alacritty +set $sigaudio pkill -75 i3blocks + +## WORKSPACES + +#workspace_auto_back_and_forth yes + +set $ws1 "1:󰈹" +set $ws2 "2:󰲢" +set $ws3 "3:󰲤" +set $ws4 "4:󰲦" +set $ws5 "5:󰲨" +set $ws6 "6:󰲪" +set $ws7 "7:󰲬" +set $ws8 "8:󰲮" +set $ws9 "9:󰲰" +set $ws10 "10:󰲞" + +workspace $ws1 output primary +workspace $ws2 output primary +workspace $ws3 output primary +workspace $ws4 output primary +workspace $ws5 output primary +workspace $ws6 output primary +workspace $ws7 output primary +workspace $ws8 output primary +workspace $ws9 output primary +workspace $ws10 output primary + +# switch to workspace +bindsym Mod1+1 workspace $ws1 +bindsym Mod1+2 workspace $ws2 +bindsym Mod1+3 workspace $ws3 +bindsym Mod1+4 workspace $ws4 +bindsym Mod1+5 workspace $ws5 +bindsym Mod1+6 workspace $ws6 +bindsym Mod1+7 workspace $ws7 +bindsym Mod1+8 workspace $ws8 +bindsym Mod1+9 workspace $ws9 +bindsym Mod1+0 workspace $ws10 +bindsym Mod1+Tab workspace back_and_forth +bindsym Mod1+Shift+Tab exec rofi -show window + +# move focused container to workspace +bindsym Mod1+shift+1 move container to workspace $ws1 +bindsym Mod1+shift+2 move container to workspace $ws2 +bindsym Mod1+shift+3 move container to workspace $ws3 +bindsym Mod1+shift+4 move container to workspace $ws4 +bindsym Mod1+shift+5 move container to workspace $ws5 +bindsym Mod1+shift+6 move container to workspace $ws6 +bindsym Mod1+shift+7 move container to workspace $ws7 +bindsym Mod1+shift+8 move container to workspace $ws8 +bindsym Mod1+shift+9 move container to workspace $ws9 +bindsym Mod1+shift+0 move container to workspace $ws10 + +# move workspaces between outputs on dock +bindswitch --reload --locked lid:on output eDP-1 disable ; output DP-3 enable; +bindswitch --reload --locked lid:off output eDP-1 enable ; output DP-3 disable; + +## WINDOWS + +default_border pixel +hide_edge_borders smart +title_align center +floating_modifier Mod1 +bindsym Mod1+shift+p move scratchpad +bindsym Mod1+p scratchpad show + +# movement +set $down j +set $left h +set $right l +set $up k + +# change focus +bindsym Mod1+$down focus down +bindsym Mod1+$left focus left +bindsym Mod1+$right focus right +bindsym Mod1+$up focus up +bindsym Mod1+space focus mode_toggle + +# move focused window +bindsym Mod1+shift+$down move down +bindsym Mod1+shift+$left move left +bindsym Mod1+shift+$right move right +bindsym Mod1+shift+$up move up + +# resize +bindsym Mod1+i resize grow height +bindsym Mod1+o resize grow width +bindsym Mod1+u resize shrink height +bindsym Mod1+y resize shrink width + +## LAYOUT + +bindsym Mod1+f fullscreen toggle +bindsym Mod1+shift+space floating toggle +bindsym Mod1+shift+s floating enable; sticky toggle + +## CONTROLS + +bindsym Mod1+shift+q kill +bindsym Mod1+shift+e exit +bindsym Mod1+shift+c reload +#bindsym Mod1+shift+r restart + +## SHORTCUTS + +bindsym Mod1+Return split horizontal; exec $term +bindsym Mod1+shift+Return split vertical; exec $term +#bindsym Mod4+p exec arandr +#bindsym Mod4+l exec xautolock -locknow +bindsym Mod1+F1 exec rofi -show combi +bindsym Mod1+F2 workspace $ws1 ; exec firefox +bindsym Mod1+F3 exec exec thunderbird +bindsym Mod1+F4 exec passmenu.sh +#bindsym Mod1+F5 exec +#bindsym Mod1+F1 exec +#bindsym Mod1+F1 exec +#bindsym Mod1+F1 exec +#bindsym Mod1+F6 exec +#bindsym Mod1+F7 exec +#bindsym Mod1+F8 exec +#bindsym Mod1+F9 exec passmenu.sh +bindsym Mod1+F10 exec mixer vol -5 && $sigaudio +bindsym Mod1+F11 exec mixer vol +5 && $sigaudio +bindsym Mod1+F12 exec mixer vol 0 && $sigaudio +bindsym XF86AudioLowerVolume exec mixer vol -5 && $sigaudio +bindsym XF86AudioRaiseVolume exec mixer vol +5 && $sigaudio +bindsym XF86AudioMute exec mixer vol 0 && $sigaudio +#bindsym --release Print exec import -window root ~/`date +"%Y-%m-%d-%H-%M-%S"`.png +#bindsym --release shift+Print exec import -monitor ~/`date +"%Y-%m-%d-%H-%M-%S"`.png +bindsym Mod1+Pause exec swaylock ; exec doas acpiconf -s3 + +## COLORS + +# class border background foreground +client.focused #A2E5C6 #A2E5C6 #000000 +client.focused_inactive #1C433F #3F938D #ffffff +client.unfocused #1C433F #3F938D #ffffff + +## BARS + +bar { + modifier Mod1 + strip_workspace_numbers yes + position bottom + status_command i3blocks + + colors { + background #3F938D + statusline #ffffff + separator #ffffff + # class border background foreground + focused_workspace #A2E5C6 #A2E5C6 #000000 + inactive_workspace #1C433F #3F938D #ffffff + urgent_workspace #1C433F #3F938D #ffffff + } +} + +## MODES + +set $mode_record "󱊫 webcam 󱊬 record" +mode $mode_record { + bindsym Mod1+Escape mode default + bindsym Mod1+F1 exec killall pwcview || pwcview -s vga + bindsym Mod1+F2 exec killall -INT wf-recorder || wf-recorder --audio=oss_input.dsp4 -f ~/recording-$(date +%Y-%m-%d-%T).mp4 ; mode default +} + +set $mode_modes "󱊷 default 󱊫 recording" +bindsym Mod1+Escape mode $mode_modes +mode $mode_modes { + bindsym Mod1+Escape mode default + bindsym Mod1+F1 mode $mode_record +} + +## ASSIGNMENTS + +assign [class="Firefox"] 2 +assign [class="Thunderbird"] 3 +for_window [class="pwcview"] floating enable + +include /usr/local/etc/sway/config.d/* -- cgit v1.2.3