Added example config for output displays!

This commit is contained in:
OdiousImp2604
2021-01-20 13:27:45 +00:00
committed by GitHub
parent 30e7d53dfb
commit 2bc2148341

View File

@@ -19,10 +19,14 @@ set $term alacritty
# Your preferred application launcher - (You can also use dmenu or rofi) # Your preferred application launcher - (You can also use dmenu or rofi)
set $menu wofi -c ~/.config/wofi/config -I set $menu wofi -c ~/.config/wofi/config -I
# workspace layouts: # set wallpaper:
#default i3 tiling mode exec swaybg -i ~/.config/sway/wallpaper.png
workspace_layout default
# Desktop notifications
exec mako
# workspace layouts:
workspace_layout default
# Set inner/outer gaps # Set inner/outer gaps
gaps inner 2 gaps inner 2
@@ -118,9 +122,6 @@ for_window [app_id=thunar] focus
assign [class="TelegramDesktop"] 5 assign [class="TelegramDesktop"] 5
for_window [class=TelegramDesktop] focus for_window [class=TelegramDesktop] focus
#set wallpaper:
exec swaybg -i ~/.config/sway/wallpaper.png
# Idle Config # Idle Config
exec swayidle -w\ exec swayidle -w\
timeout 1070 'swaylock -f -C ~/.config/swaylock/config'\ timeout 1070 'swaylock -f -C ~/.config/swaylock/config'\
@@ -131,10 +132,6 @@ exec swayidle -w\
# your displays after another 300 seconds, and turn your screens back on when # your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep. # resumed. It will also lock your screen before your computer goes to sleep.
# Desktop notifications
exec mako
# set floating (nontiling)for apps needing it: # set floating (nontiling)for apps needing it:
for_window [class="Yad" instance="yad"] floating enable for_window [class="Yad" instance="yad"] floating enable
for_window [class="Galculator" instance="galculator"] floating enable for_window [class="Galculator" instance="galculator"] floating enable
@@ -148,6 +145,15 @@ for_window [class="Blueberry.py" instance="blueberry.py"] floating enable
for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable
for_window [class="Pamac-manager"] floating enable for_window [class="Pamac-manager"] floating enable
# set floating for window roles
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [window_role="About"] floating enable
# resize floating windows with mouse scroll: # resize floating windows with mouse scroll:
bindsym --whole-window --border $mod+button4 resize shrink height 5 px or 5 ppt bindsym --whole-window --border $mod+button4 resize shrink height 5 px or 5 ppt
bindsym --whole-window --border $mod+button5 resize grow height 5 px or 5 ppt bindsym --whole-window --border $mod+button5 resize grow height 5 px or 5 ppt
@@ -171,7 +177,6 @@ bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym alt+tab scratchpad show bindsym alt+tab scratchpad show
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
@@ -203,9 +208,6 @@ bindsym $mod+Shift+9 move container to workspace 9
# reload the configuration file: # reload the configuration file:
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# restart sway inplace (preserves your layout/session, can be used to upgrade sway):
bindsym $mod+Shift+r restart
# resize window (you can also use the mouse for that): # resize window (you can also use the mouse for that):
mode "resize" { mode "resize" {
# These bindings trigger as soon as you enter the resize mode # These bindings trigger as soon as you enter the resize mode
@@ -241,6 +243,7 @@ bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume 0 -3%
# mute # mute
bindsym --locked XF86AudioMute exec pactl set-sink-mute 0 toggle bindsym --locked XF86AudioMute exec pactl set-sink-mute 0 toggle
# media
bindsym XF86AudioPlay exec playerctl play bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next bindsym XF86AudioNext exec playerctl next
@@ -275,8 +278,6 @@ client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
client.background #F8F8F2 client.background #F8F8F2
# Input configuration # Input configuration
input "1267:12363:ELAN0650:01_04F3:304B_Touchpad" { input "1267:12363:ELAN0650:01_04F3:304B_Touchpad" {
dwt enabled dwt enabled
@@ -288,6 +289,15 @@ client.background #F8F8F2
# You can get the names of your inputs by running: swaymsg -t get_input. # You can get the names of your inputs by running: swaymsg -t get_input.
# Put your touchpad's ID to replace "1267:12363:ELAN0650:01_04F3:304B_Touchpad" (keep the quotation marks) # Put your touchpad's ID to replace "1267:12363:ELAN0650:01_04F3:304B_Touchpad" (keep the quotation marks)
### Output configuration
#
# Example configuration:
#
# output HDMI1 pos 0 0 res 1920x1080
# output eDP1 pos 1920 0 res 1600x900
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
# Status Bar: # Status Bar:
bar { bar {