Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Default config for sway
- #
- # Copy this to ~/.config/sway/config and edit it to your liking.
- #
- # Read `man 5 sway` for a complete reference.
- #exec xinput --set-prop 7 "Device Accel Velocity Scaling" 0
- #exec xinput --set-prop 7 "Device Accel Profile" -1
- for_window [class=“*”] allow_tearing yes
- #capelations
- #exec capela &
- #tmux. split -h pra botar na horizontal e split -v na vertical
- #tmux new "btop -t" ';' split -v "htop" ';' split -h "cmatrix"
- #btop "embutido" no sistema
- #exec swaymsg "workspace monitoramento; exec foot -F -f monospace:size=15 btop -t;" &
- #exec swaymsg "workspace sistema;" &
- #exec xinput --set-prop 7 "Device Accel Adaptive Deceleration" 4
- #exec xinput --set-prop 7 "Device Accel Constant Deceleration" 4
- #exec xinput --set-prop 6 'libinput Accel Profile Enabled' 0, 1 &
- #exec firejail --noprofile mpv --no-keepaspect --vo=gpu ~/mpv/preilisti.m3u &
- #exec foot -F -f monospace:size=15 tmux new genact -m cc \; splitw -h genact -m download \; splitw -v genact -m cryptomining \; splitw -v genact -m memdump -s 0.10
- #exec foot -f monospace:15 ytop -s &
- input type:keyboard {
- xkb_layout "br"
- xkb_model "abtn2"
- xkb_options "nodeadkeys"
- }
- input type:pointer {
- accel_profile "flat"
- pointer_accel 0
- }
- #for_window [app_id="foot"] border none
- #for_window [app_id="foot"] floating enable
- font pango: Taskbar, Liberation-bold 9
- #mouse_warping none
- #focus_follows_mouse no
- # Color scheme (Gruvbox dark)
- set $color_normal_white #a89984
- set $color_bright_white #ebdbb2
- set $color_normal_gray #3c3836
- set $color_bright_gray #0000ff
- set $color_bright_yellow #d79921
- set $color_normal_black #1d2021
- set $color_unused #ff0000
- # Colors border background text indicator child_border
- client.focused $color_bright_gray $color_bright_gray $color_bright_white $color_bright_gray $color_normal_black
- client.focused_inactive $color_bright_gray $color_bright_gray $color_bright_white $color_bright_gray $color_normal_black
- client.unfocused $color_normal_gray $color_normal_gray $color_normal_white $color_normal_gray $color_normal_black
- client.urgent $color_bright_yellow $color_bright_yellow $color_normal_black $color_unused $color_unused
- client.placeholder $color_unused $color_unused $color_unused $color_unused $color_unused
- # Logo key. Use Mod1 for Alt.
- set $mod2 Mod1
- bindsym Menu+Return exec "foot -F -f monospace:size=15"
- bindsym $mod2+q exec "/sbin/poweroff"
- bindsym Menu+Control_R exec "brave-browser"
- bindsym Menu+Shift_R exec pcmanfm
- bindsym Menu+Down exec 'pkill mpv'
- bindsym Menu+Up exec 'mpv --no-video https://www.youtube.com/playlist?list=PLjn8M2LjejNSNzb4-9wHXJnvDLikiTT_z --loop-playlist=yes --shuffle'
- bindsym Menu+slash exec "foot -F -f monospace:size=15 tmux new 'btop -t' ';' split -h -l 5 'mop'"
- #bindsym KP_Right exec pcmanfm
- bindsym Print exec grim
- default_border none
- #for_window [app_id="foot"] floating enable
- ### Variables
- #
- # Home row direction keys, like vim
- set $left h
- set $down j
- set $up k
- set $right l
- # Your preferred terminal emulator
- set $term st
- set $cabo doas poweroff
- # Your preferred application launcher
- # Note: pass the final command to swaymsg so that the resulting window can be opened
- # on the original workspace that the command was run on.
- set $menu dmenu_path | dmenu | xargs swaymsg exec --
- ### Output configuration
- #
- # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
- #
- # Example configuration:
- #
- #output * bg #008080 solid_color
- output HDMI-A-1 resolution 800x600@50Hz position 0,0
- #output HDMI-A-1 resolution 1280x720@50Hz position 0,0
- #output HDMI-A-1 resolution 1920x1080 position 0,0 max_render_time off
- output HDMI-A-1 bg #008080 solid_color
- #
- # You can get the names of your outputs by running: swaymsg -t get_outputs
- ### Idle configuration
- #
- # Example configuration:
- #
- # exec swayidle -w \
- # timeout 300 'swaylock -f -c 000000' \
- # timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
- # before-sleep 'swaylock -f -c 000000'
- #
- # This will lock your screen after 300 seconds of inactivity, then turn off
- # 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.
- ### Input configuration
- #
- # Example configuration:
- #
- # input "2:14:SynPS/2_Synaptics_TouchPad" {
- # dwt enabled
- # tap enabled
- # natural_scroll enabled
- # middle_emulation enabled
- # }
- #
- # You can get the names of your inputs by running: swaymsg -t get_inputs
- # Read `man 5 sway-input` for more information about this section.
- ### Key bindings
- #
- # Basics:
- #
- # Start a terminal
- bindsym Mod4+Return exec $term
- # Kill focused window
- bindsym $mod2+F4 kill
- # bindsym $mod2+q exec $cabo
- # Start your launcher
- bindsym $mod2+p exec bemenu-run
- # Drag floating windows by holding down $mod2 and left mouse button.
- # Resize them with right mouse button + $mod2.
- # Despite the name, also works for non-floating windows.
- # Change normal to inverse to use left mouse button for resizing and right
- # mouse button for dragging.
- floating_modifier $mod2 normal
- # Reload the configuration file
- bindsym $mod2+Shift+c reload
- # Exit sway (logs you out of your Wayland session)
- bindsym $mod2+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
- #
- # Moving around:
- #
- # Move your focus around
- bindsym $mod2+$left focus left
- bindsym $mod2+$down focus down
- bindsym $mod2+$up focus up
- bindsym $mod2+$right focus right
- # Or use $mod2+[up|down|left|right]
- bindsym $mod2+Left focus left
- bindsym $mod2+Down focus down
- bindsym $mod2+Up focus up
- bindsym $mod2+Right focus right
- # Move the focused window with the same, but add Shift
- bindsym $mod2+Shift+$left move left
- bindsym $mod2+Shift+$down move down
- bindsym $mod2+Shift+$up move up
- bindsym $mod2+Shift+$right move right
- # Ditto, with arrow keys
- bindsym $mod2+Shift+Left move left
- bindsym $mod2+Shift+Down move down
- bindsym $mod2+Shift+Up move up
- bindsym $mod2+Shift+Right move right
- bindsym $mod2+Shift+a exec wterm
- bindsym $mod2+Shift+z exec bemenu
- #
- # Workspaces:
- #
- # Switch to workspace
- bindsym $mod2+1 workspace sistema
- bindsym $mod2+2 workspace monitoramento
- bindsym $mod2+3 workspace number 3
- bindsym $mod2+4 workspace number 4
- bindsym $mod2+5 workspace number 5
- bindsym $mod2+6 workspace number 6
- bindsym $mod2+7 workspace number 7
- bindsym $mod2+8 workspace number 8
- bindsym $mod2+9 workspace number 9
- bindsym $mod2+0 workspace number 10
- # Move focused container to workspace
- bindsym $mod2+Shift+1 move container to workspace number 1
- bindsym $mod2+Shift+2 move container to workspace number 2
- bindsym $mod2+Shift+3 move container to workspace number 3
- bindsym $mod2+Shift+4 move container to workspace number 4
- bindsym $mod2+Shift+5 move container to workspace number 5
- bindsym $mod2+Shift+6 move container to workspace number 6
- bindsym $mod2+Shift+7 move container to workspace number 7
- bindsym $mod2+Shift+8 move container to workspace number 8
- bindsym $mod2+Shift+9 move container to workspace number 9
- bindsym $mod2+Shift+0 move container to workspace number 10
- # Note: workspaces can have any name you want, not just numbers.
- # We just use 1-10 as the default.
- #
- # Layout stuff:
- #
- # You can "split" the current object of your focus with
- # $mod2+b or $mod2+v, for horizontal and vertical splits
- # respectively.
- bindsym $mod2+b splith
- bindsym $mod2+v splitv
- # Switch the current container between different layout styles
- bindsym $mod2+s layout stacking
- bindsym $mod2+w layout tabbed
- bindsym $mod2+e layout toggle split
- # Make the current focus fullscreen
- bindsym $mod2+Return fullscreen
- # Toggle the current focus between tiling and floating mode
- bindsym $mod2+Shift+space floating toggle
- # Swap focus between the tiling area and the floating area
- bindsym $mod2+space focus mode_toggle
- # Move focus to the parent container
- bindsym $mod2+a focus parent
- #
- # Scratchpad:
- #
- # Sway has a "scratchpad", which is a bag of holding for windows.
- # You can send windows there and get them back later.
- # Move the currently focused window to the scratchpad
- bindsym $mod2+Shift+minus move scratchpad
- # Show the next scratchpad window or hide the focused scratchpad window.
- # If there are multiple scratchpad windows, this command cycles through them.
- bindsym $mod2+minus scratchpad show
- #
- # Resizing containers:
- #
- mode "resize" {
- # left will shrink the containers width
- # right will grow the containers width
- # up will shrink the containers height
- # down will grow the containers height
- bindsym $left resize shrink width 10px
- bindsym $down resize grow height 10px
- bindsym $up resize shrink height 10px
- bindsym $right resize grow width 10px
- # Ditto, with arrow keys
- bindsym Left resize shrink width 10px
- bindsym Down resize grow height 10px
- bindsym Up resize shrink height 10px
- bindsym Right resize grow width 10px
- # Return to default mode
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod2+r mode "resize"
- #
- # Status Bar:
- #
- # Read `man 5 sway-bar` for more information about this section.
- bar {
- position bottom
- mode hide
- modifier $mod2
- # When the status_command prints a new line to stdout, swaybar updates.
- # The default just shows the current date and time.
- status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
- colors {
- statusline #ffffff
- background #BEBEBE
- inactive_workspace #32323200 #32323200 #5c5c5c
- }
- }
- include /etc/sway/config.d/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement