Initial
This commit is contained in:
commit
c8734e660a
392 changed files with 21043 additions and 0 deletions
22
.config/sway/README.md
Normal file
22
.config/sway/README.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# dotfiles
|
||||
Configurações para seu i3, sway, openbox, dwm, awesome, polybar e muito mais. Personalize o seu Linux.
|
||||
|
||||
|
||||
[](https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/ScreenShots/Captura%20de%20tela%20de%2006-10-2019%2001%3A36%3A00.png)
|
||||
|
||||
[Sway](https://github.com/felipefacundes/dotfiles/tree/master/config/sway) +
|
||||
[waybar](https://github.com/felipefacundes/dotfiles/tree/master/config/waybar/arrow-date-center-theme-transparent) + [rofi](https://github.com/felipefacundes/dotfiles/tree/master/rofi)
|
||||
|
||||
##### Instale automaticamente essas configurações e aparência com o comando:
|
||||
`bash <(curl -s https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/sway/sway-install.sh)`
|
||||
|
||||
[](https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/ScreenShots/Captura%20de%20tela%20de%2006-10-2019%2017%3A25%3A04.png)
|
||||
|
||||
[Sway](https://github.com/felipefacundes/dotfiles/tree/master/config/sway) +
|
||||
[waybar](https://github.com/felipefacundes/dotfiles/tree/master/config/waybar) + [rofi](https://github.com/felipefacundes/dotfiles/tree/master/config/rofi)
|
||||
|
||||
##### Instale automaticamente essas configurações e aparência com o comando:
|
||||
`bash <(curl -s https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/sway/sway-install.sh)`
|
||||
|
||||
|
||||
|
||||
445
.config/sway/config
Normal file
445
.config/sway/config
Normal file
|
|
@ -0,0 +1,445 @@
|
|||
#!/bin/bash
|
||||
# By tenkuma, forked from Felipe Facundes
|
||||
# Por tenkuma, originalmente por Felipe Facundes
|
||||
|
||||
# *** Variables | Variáveis ***
|
||||
set $term alacritty
|
||||
set $wallpaper ~/.config/sway/wallpaper.jpg
|
||||
|
||||
# Input | Métodos de entrada
|
||||
# Run | Execute: swaymsg -t get_inputs
|
||||
|
||||
# Keyboard | Teclado
|
||||
input * xkb_layout "br"
|
||||
input * xkb_numlock enabled
|
||||
#input * xkb_variant "colemak,,typewriter"
|
||||
#input * xkb_options "grp:win_space_toggle"
|
||||
#input "MANUFACTURER1 Keyboard" xkb_model "pc101"
|
||||
|
||||
# Touchpad
|
||||
input "SYNA2BA6:00 06CB:CE2C" {
|
||||
dwt enabled
|
||||
tap enabled
|
||||
drag enabled
|
||||
# tap_button_map lmr
|
||||
tap_button_map lrm
|
||||
middle_emulation enabled
|
||||
# natural_scroll enabled
|
||||
pointer_accel 0.2
|
||||
accel_profile adaptive
|
||||
}
|
||||
|
||||
# Run | Execute: swaymsg -t get_outputs
|
||||
# man sway-output
|
||||
# To get the monitors IDs
|
||||
# Para saber a identificação dos monitores
|
||||
|
||||
output HDMI-A-1 {
|
||||
#res 1360x768
|
||||
# mode 1920x1080@144Hz
|
||||
# Observe que o x-pos esquerdo do eDP1 é 1600 = 3200/2 e o y-pos inferior é 1020 + (1800/2) = 1920 = 0 + 1920
|
||||
# pos 0 1020
|
||||
# subpixel rgb|bgr|vrgb|vbgr|none
|
||||
# subpixel rgb
|
||||
# background|bg <color> solid_color
|
||||
# Pode ser "90", "180", "270" para rotação; ou "flipped", "flipped-90", "flipped-180", "flipped-270" para aplicar uma rotação e inverter, ou "normal"
|
||||
# transform 180
|
||||
#dpms on
|
||||
#scale 2
|
||||
}
|
||||
|
||||
# Miscellaneous Customizations | Customizações miscelâneas
|
||||
focus_follows_mouse no
|
||||
|
||||
set $gaps_inner_default 5
|
||||
set $gaps_outer_default 5
|
||||
gaps inner $gaps_inner_default
|
||||
gaps outer $gaps_outer_default
|
||||
|
||||
set $alt Mod1
|
||||
set $sup Mod4
|
||||
set $ctrl Control
|
||||
set $paper bash -c 'swww img "$(find ${HOME}/Pictures/Wallpapers/ -name "*[jJpP][nNpP][gG]" | shuf -n1)" &'
|
||||
|
||||
# To start in tabbed mode, like on OpenBox, you can set: workspace_layout default|stacking|tabbed
|
||||
# Para já iniciar no modo tabbed, ao estilo OpenBox, pode ser: workspace_layout default|stacking|tabbed
|
||||
|
||||
# Change internal spacing on tabbed mode
|
||||
# Modificar espaçamento interno no modo tabbed
|
||||
workspace_layout tabbed
|
||||
|
||||
# Align window title: title_align left|center|right
|
||||
# Alinhar o título da janela: title_align left|center|right
|
||||
title_align center
|
||||
|
||||
# Windows title font | Fonte do título das janelas
|
||||
font pango:"UbuntuMono Nerd Font" 10
|
||||
|
||||
# Borders | Bordas
|
||||
# only works on i3 and not on Sway: new_window pixel 0
|
||||
# só funciona no i3 e não no Sway: new_window pixel 0
|
||||
smart_borders on
|
||||
default_border normal 0
|
||||
default_border pixel 0
|
||||
default_border none
|
||||
default_floating_border pixel 3
|
||||
mode hide
|
||||
hide_edge_borders smart
|
||||
hide_edge_borders both
|
||||
hide_edge_borders --i3 both
|
||||
hide_edge_borders --i3 smart
|
||||
|
||||
floating_modifier Mod1
|
||||
|
||||
# smart|urgent|focus|none
|
||||
focus_on_window_activation focus
|
||||
|
||||
# Other options | Outras opções
|
||||
#floating_minimum_size 75 x 50
|
||||
#floating_maximum_size -1 x -1
|
||||
|
||||
# *** Colors | Cores ***
|
||||
# only works on 13, not on Sway: set_from_resource $bg background
|
||||
# só funciona no i3 e não no sway: set_from_resource $bg background
|
||||
|
||||
#set_from_resource $bg background
|
||||
|
||||
# classe borda fundo texto ind. borda filho
|
||||
client.focused #1f1f1f #1f1f1f #ffffff #aeff00 #aeff00
|
||||
client.focused_inactive #ffffff #4f4f4f #ffffff #ffcf7c #ffcf7c
|
||||
client.unfocused #000000 #000000 #ffffff #ffcf7c #fa8100
|
||||
client.urgent #2f343a #900000 #ffffff #900000 #900000
|
||||
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
|
||||
|
||||
#shock#f700ff | #abacate#aeff00 | #semisalmon~laranja~fosco#ffcf7c
|
||||
|
||||
# *** Shortcuts | Atalhos do Teclado ***
|
||||
# Use o comando: xev para detectar qual é à sua tecla especial.
|
||||
|
||||
# Terminal
|
||||
bindsym $sup+Return exec $term
|
||||
|
||||
# Kill Window | Matar janela
|
||||
bindsym $ctrl+$alt+Escape exec FOCUSED_APP_ID=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true).pid') && kill -9 $FOCUSED_APP_ID
|
||||
|
||||
# Clipboard wayland
|
||||
bindsym $ctrl+$alt+c exec bash -c 'pkill -9 wofi; cliphist list | wofi --show dmenu | cliphist decode | wl-copy'
|
||||
|
||||
# Task Manager | Gerenciador de Janelas
|
||||
bindsym $ctrl+Escape exec $term -e htop
|
||||
|
||||
# Shutdown | Desligar o sistema
|
||||
bindsym $ctrl+Shift+$alt+delete exec bash -c 'openrc-shutdown --poweroff now; systemctl poweroff'
|
||||
|
||||
# Power options | Opções de energia
|
||||
bindsym $sup+Shift+l exec rofi -show p -modi p:'rofi-power-menu --symbols-font "Symbols Nerd Font Mono"' -theme Paper -theme-str 'window {width: 8em;} listview {lines: 6;}'
|
||||
|
||||
# Mouse Click
|
||||
bindsym $sup+equal exec wlrctl pointer click right
|
||||
bindsym $sup+Next exec wlrctl pointer click right
|
||||
bindsym $sup+KP_7 exec wlrctl pointer click left
|
||||
bindsym $sup+minus exec wlrctl pointer click left
|
||||
|
||||
# Move Mouse
|
||||
#bindsym $sup+KP_8 exec wlrctl pointer move 0 -10
|
||||
bindsym $sup+$ctrl+Up exec wlrctl pointer move 0 -10
|
||||
#bindsym $ctrl+$sup+KP_8 exec wlrctl pointer move 0 -40
|
||||
#bindsym $ctrl+$sup+Up exec wlrctl pointer move 0 -40
|
||||
#bindsym $sup+KP_2 exec wlrctl pointer move 0 10
|
||||
bindsym $sup+$ctrl+Down exec wlrctl pointer move 0 10
|
||||
#bindsym $ctrl+$sup+KP_2 exec wlrctl pointer move 0 40
|
||||
#bindsym $ctrl+$sup+Down exec wlrctl pointer move 0 40
|
||||
#bindsym $sup+KP_4 exec wlrctl pointer move -10 0
|
||||
bindsym $sup+$ctrl+Left exec wlrctl pointer move -10 0
|
||||
#bindsym $ctrl+$sup+KP_4 exec wlrctl pointer move -40 0
|
||||
#bindsym $ctrl+$sup+Left exec wlrctl pointer move -40 0
|
||||
#bindsym $sup+KP_6 exec wlrctl pointer move 10 0
|
||||
bindsym $sup+$ctrl+Right exec wlrctl pointer move 10 0
|
||||
#bindsym $ctrl+$sup+KP_6 exec wlrctl pointer move 40 0
|
||||
#bindsym $ctrl+$sup+Right exec wlrctl pointer move 40 0
|
||||
|
||||
# System update | Atualizar o sistema
|
||||
bindsym $sup+u exec $term -e sudo pacman -Syu
|
||||
|
||||
# Volume Pulseaudio
|
||||
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ .05+
|
||||
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ .05-
|
||||
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle
|
||||
|
||||
# Volume Alsa
|
||||
#bindsym --locked XF86AudioLowerVolume exec amixer set Master 5%- unmute && pkill -x -RTMIN+11 waybar
|
||||
#bindsym --locked XF86AudioRaiseVolume exec amixer set Master 5%+ unmute && pkill -x -RTMIN+11 waybar
|
||||
#bindsym XF86AudioMute exec "amixer set Master toggle"
|
||||
#bindsym XF86AudioMicMute exec "amixer set Capture toggle"
|
||||
|
||||
# Pavucontrol
|
||||
bindsym $sup+p exec pavucontrol
|
||||
|
||||
# Brighteness | Brilho
|
||||
bindsym XF86MonBrightnessUp exec "light -A 2"
|
||||
bindsym XF86MonBrightnessDown exec "light -U 2"
|
||||
bindsym XF86ScreenSaver exec "echo 0 > /sys/class/backlight/intel_backlight/brightness"
|
||||
#bindsym --whole-window $sup+Shift+button4 exec "light -A 2"
|
||||
#bindsym --whole-window $sup+Shift+button5 exec "light -U 2"
|
||||
#bindsym XF86MonBrightnessUp exec /bin/xbacklight -dec 15
|
||||
#bindsym XF86MonBrightnessDown exec /bin/xbacklight -inc 15
|
||||
|
||||
# Playerctl (multimedia manager | gestor de multimídia)
|
||||
bindsym $alt+Space exec playerctl play-pause
|
||||
|
||||
# Browser | Navegador
|
||||
bindsym $ctrl+$sup+f exec xdg-open https://
|
||||
|
||||
# Files | Arquivos
|
||||
bindsym $sup+e exec xdg-open ~
|
||||
|
||||
# Kill Window | "Assasquinar" janela (mata essa "pomba" seu "assasquino")
|
||||
bindsym $sup+q kill
|
||||
|
||||
# Change focus | Mudar foco
|
||||
bindsym $sup+Left focus left
|
||||
bindsym $sup+Down focus down
|
||||
bindsym $sup+Up focus up
|
||||
bindsym $sup+Right focus right
|
||||
|
||||
# Enter fullscreen mode | Entrar em modo tela cheia
|
||||
bindsym $sup+f fullscreen toggle
|
||||
|
||||
# Change container layout (stacked, tabbed, toggle split) | Mudar layout do conteúdo (estacado, agrupado, ativar/desativar partição)
|
||||
bindsym $sup+s layout toggle split
|
||||
bindsym $sup+a layout toggle tabbed split
|
||||
bindsym $sup+Shift+w layout tabbed
|
||||
bindsym $sup+Shift+a layout toggle tabbed stacking split
|
||||
bindsym $sup+Shift+Space layout toggle tabbed stacking split
|
||||
|
||||
# Resize floating window | Redimensionar janela flutuante
|
||||
#bindsym $sup+Shift+h exec swaymsg -t command resize shrink width 50px
|
||||
#bindsym $sup+Shift+k exec swaymsg -t command resize grow height 50px
|
||||
#bindsym $sup+Shift+j exec swaymsg -t command resize shrink height 50px
|
||||
#bindsym $sup+Shift+l exec swaymsg -t command resize grow width 50px
|
||||
#bindsym $sup+backslash exec bash -c 'f=/tmp/sway_toggle_float_size; if [[ ! -f "$f" ]]; then swaymsg -t command resize set width 1900px height 1020px; touch "$f"; else swaymsg -t command resize set width 1000px height 800px; rm "$f"; fi'
|
||||
|
||||
# Floating/maximized screen | Tela maximizada/floating
|
||||
bindsym $sup+Tab floating toggle
|
||||
|
||||
# Change focus between tiling / floating windows | Mudar foco entre janelas organizadas / flutuantes
|
||||
bindsym $alt+Tab focus mode_toggle
|
||||
|
||||
# Center | Centro
|
||||
bindsym $sup+Shift+c move position center
|
||||
bindsym $sup+c move position center
|
||||
|
||||
# Sway reload | Recarregar o Sway
|
||||
bindsym $sup+$ctrl+r reload
|
||||
|
||||
# Kill Sway | Matar Sway
|
||||
bindsym $ctrl+$sup+q exec pkill -9 sway
|
||||
|
||||
# Sway Exit | Sair do Sway
|
||||
bindsym $sup+Shift+e exit
|
||||
|
||||
# Application launcher | Lançador de programas
|
||||
bindsym $sup+Space exec rofi -no-lazy-grab -show drun -modi drun
|
||||
|
||||
# Lock | Bloquear
|
||||
bindsym $sup+l exec swaylock
|
||||
|
||||
# Screenshot | Captura de tela
|
||||
bindsym $ctrl+Print exec bash -c 'grim -t png - | wl-copy && wl-paste > "${HOME}/Pictures/Capture/$(date +"%Y-%m-%d %H:%M:%S") - Capture.png"'
|
||||
bindsym Print exec bash -c 'grim -t png | wl-copy'
|
||||
|
||||
# Screen recording | Gravar tela
|
||||
#bindsym $ctrl+$alt+r exec bash -c '$term -e ffmpeg -video_size 1360x768 -framerate 25 -f x11grab -i :0.0 -f pulse -ac 2 -i default ${HOME}/Videos/Tela_$(date +%d-%m-%Y_%H:%M:%S).mkv'
|
||||
bindsym $ctrl+$alt+r exec obs
|
||||
#bindsym $ctrl+$alt+r exec bash <($term -e wf-recorder -c libx265 --audio=`LC_ALL=c pactl list sources | head -n 3 | tail -n1 | awk '{print $2}'` pulse -f "${HOME}/Videos/Capture/WScreen_$(date +%d-%m-%Y_%H:%M:%S).mkv")
|
||||
|
||||
# *** Areas ***
|
||||
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"
|
||||
|
||||
# Names | Nomes
|
||||
#set $ws1 ""
|
||||
#set $ws2 ""
|
||||
#set $ws3 ""
|
||||
#set $ws4 ""
|
||||
#set $ws5 ""
|
||||
#set $ws6 ""
|
||||
#set $ws7 ""
|
||||
#set $ws8 ""
|
||||
#set $ws9 ""
|
||||
#set $ws10 ""
|
||||
|
||||
# Browse workspaces | Navegar pelas workspaces
|
||||
bindsym $sup+1 workspace number $ws1
|
||||
bindsym $sup+2 workspace number $ws2
|
||||
bindsym $sup+3 workspace number $ws3
|
||||
bindsym $sup+4 workspace number $ws4
|
||||
bindsym $sup+5 workspace number $ws5
|
||||
bindsym $sup+6 workspace number $ws6
|
||||
bindsym $sup+7 workspace number $ws7
|
||||
bindsym $sup+8 workspace number $ws8
|
||||
bindsym $sup+9 workspace number $ws9
|
||||
bindsym $sup+0 workspace number $ws10
|
||||
|
||||
# Move focus to workspace | Mover foco para as workspace
|
||||
bindsym $sup+Shift+1 move container to workspace number $ws1
|
||||
bindsym $sup+Shift+2 move container to workspace number $ws2
|
||||
bindsym $sup+Shift+3 move container to workspace number $ws3
|
||||
bindsym $sup+Shift+4 move container to workspace number $ws4
|
||||
bindsym $sup+Shift+5 move container to workspace number $ws5
|
||||
bindsym $sup+Shift+6 move container to workspace number $ws6
|
||||
bindsym $sup+Shift+7 move container to workspace number $ws7
|
||||
bindsym $sup+Shift+8 move container to workspace number $ws8
|
||||
bindsym $sup+Shift+9 move container to workspace number $ws9
|
||||
bindsym $sup+Shift+0 move container to workspace number $ws10
|
||||
|
||||
bindsym $sup+d workspace back_and_forth
|
||||
|
||||
# *** Window Modes | Modos da janela ***
|
||||
# On i3 the floating mode would be like:
|
||||
# No i3 o modo floating seria assim:
|
||||
# for_window [class="($term)"]floating enable, move position center
|
||||
#
|
||||
# On Sway the floating mode is different, does not need the "move position center", like this:
|
||||
# No Sway o modo floating é diferente, não precisa da opção "move position center", é assim:
|
||||
# for_window [app_id=".*$term$"] floating enable
|
||||
|
||||
######## Ou com (title / app_id ou class), dependerá do progrma, ou vai funcionar de um modo ou de outro,
|
||||
######## No entanto, às vezes precisa de uma parâmetro especial, como: ".*progrma$", ou simplesmente: "progrma", exemplos:
|
||||
|
||||
# Termite (Terminal)
|
||||
#for_window [app_id=".*termite$"] floating enablew
|
||||
|
||||
# Container
|
||||
bindsym $sup+Shift+g exec swaymsg \
|
||||
'[con_id=focused]' \
|
||||
move container to mark tabgroup; \
|
||||
[mark=tabgroup] \
|
||||
layout tabbed; \
|
||||
unmark tabgroup
|
||||
|
||||
# *** Move | Mover ***
|
||||
bindsym $sup+Shift+Left move left
|
||||
bindsym $sup+Shift+Right move right
|
||||
bindsym $sup+Shift+Down move down
|
||||
bindsym $sup+Shift+Up move up
|
||||
|
||||
# *** Resize | Redimensionar ***
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
# Essas combinações vão funcionar assim que você entrar no modo de redimensionamento
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
# Apertar esquerda vai diminuir a largura da janela.
|
||||
# Apertar direita vai aumentar a largura da janela.
|
||||
# Apertar cima vai aumentar a altura da janela.
|
||||
# Apertar baixo vai diminuir a altura da janela.
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
# back to normal: Enter or Escape or $sup+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $sup+r mode "resize"
|
||||
|
||||
# *** Gaps | Espaçamento ***
|
||||
# Ativar bordas inteligentes quando não há espaçamento
|
||||
# Activate smart borders when no gaps present
|
||||
|
||||
set $mode_gaps Gaps: (o) outer, (i) inner
|
||||
set $mode_gaps_outer Outer Gaps: +|-|0|d (local), Shift + +|-|0|d (global)
|
||||
set $mode_gaps_inner Inner Gaps: +|-|0|d (local), Shift + +|-|0|d (global)
|
||||
#bindsym $sup+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym o mode "$mode_gaps_outer"
|
||||
bindsym i mode "$mode_gaps_inner"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_gaps_inner" {
|
||||
bindsym plus gaps inner current plus 5
|
||||
bindsym minus gaps inner current minus 5
|
||||
bindsym 0 gaps inner current set 0
|
||||
|
||||
bindsym Shift+plus gaps inner all plus 5
|
||||
bindsym Shift+minus gaps inner all minus 5
|
||||
bindsym Shift+0 gaps inner all set 0
|
||||
|
||||
bindsym d gaps inner current set $gaps_inner_default, mode "default"
|
||||
bindsym Shift+d gaps inner all set $gaps_inner_default, mode "default"
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_gaps_outer" {
|
||||
bindsym plus gaps outer current plus 5
|
||||
bindsym minus gaps outer current minus 5
|
||||
bindsym 0 gaps outer current set 0
|
||||
|
||||
bindsym Shift+plus gaps outer all plus 5
|
||||
bindsym Shift+minus gaps outer all minus 5
|
||||
bindsym Shift+0 gaps outer all set 0
|
||||
|
||||
bindsym d gaps outer current set $gaps_outer_default, mode "default"
|
||||
bindsym Shift+d gaps outer all set $gaps_outer_default, mode "default"
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
# *** Startup applications | Aplicações de inicialização ***
|
||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
|
||||
# Taskbar | Barra de Tarefas
|
||||
exec waybar
|
||||
|
||||
# Start sound | Som de inicialização
|
||||
exec paplay "${HOME}/.config/startup.mp3" --volume=76767 &
|
||||
|
||||
# Sets Xwayland scale | Seta escala do Xwayland
|
||||
exec xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2 &
|
||||
|
||||
# dbus-update-activation-environment --systemd --all &
|
||||
exec systemctl --user import-environment WAYLAND_DISPLAY & dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE &
|
||||
|
||||
# https://github.com/swaywm/swaylock/issues/99
|
||||
exec swayidle -w timeout 300 'imv-wayland -x -t 1 -f /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png & sleep 0.25 ; swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' timeout 315 'swaylock -f' before-sleep 'swaylock -f ; sleep 1' &
|
||||
|
||||
# Clipboard Wayland | Área de transferência Wayland
|
||||
exec bash -c 'wl-paste --type image --watch cliphist store & wl-paste --type text --watch cliphist -max-dedupe-search 750 -max-items 750 store &' &
|
||||
|
||||
# KWallet (keyring)
|
||||
exec kwalletd6
|
||||
|
||||
# Xwayland
|
||||
xwayland enable
|
||||
|
||||
# Wallpaper | Papel de parede
|
||||
exec swaybg --image $wallpaper
|
||||
|
||||
# Fix for broken keyboard key | Gambiarra por causa da minha tecla defeituosa
|
||||
bindsym $alt+1 exec wtype "2"
|
||||
bindsym $alt+Shift+1 exec wtype "@"
|
||||
|
||||
# Autostart applications | Aplicações iniciadas automaticamente
|
||||
exec bash ~/.autostart.sh
|
||||
|
||||
612
.config/sway/config-backup-20230405-004326
Normal file
612
.config/sway/config-backup-20230405-004326
Normal file
|
|
@ -0,0 +1,612 @@
|
|||
#!/bin/bash
|
||||
# 😉 Crédito: Felipe Facundes
|
||||
# Telegram: @FeFacundes
|
||||
# Telegram Group: t.me/winehq_linux
|
||||
# 😅 Dúvidas: https://github.com/swaywm/sway/wiki
|
||||
# https://i3wm.org/docs/userguide.html
|
||||
# https://manned.org/sway.5
|
||||
|
||||
####################################################################
|
||||
################ P A P E L D E P A R E D E #######################
|
||||
####################################################################
|
||||
|
||||
# Para o papel de parede aleatório use o comando control+alt+w
|
||||
# Para mudar o caminho da pasta é em ajustes e ao final em executar.
|
||||
# Ou, use o modo fixo, como está logo abaixo, só descomentar:
|
||||
#output * bg /home/$USER/Imagens/Wallpapers/Floresta.jpg fill
|
||||
|
||||
####################################################################
|
||||
##################### X W A Y L A N D ##############################
|
||||
xwayland enable
|
||||
|
||||
####################################################################
|
||||
##################### E N T R A D A S ##############################
|
||||
####################################################################
|
||||
|
||||
# Execute: swaymsg -t get_inputs
|
||||
# man sway-input
|
||||
# Para saber a identificação do seu dispositivo, e manual de configuração dos mesmos.
|
||||
|
||||
# Teclado
|
||||
input * xkb_layout "br"
|
||||
input * xkb_numlock enabled
|
||||
#input * xkb_variant "colemak,,typewriter"
|
||||
#input * xkb_options "grp:win_space_toggle"
|
||||
#input "MANUFACTURER1 Keyboard" xkb_model "pc101"
|
||||
|
||||
# Touchpad
|
||||
input "2:14:ETPS/2_Elantech_Touchpad" {
|
||||
dwt enabled
|
||||
tap enabled
|
||||
drag enabled
|
||||
# tap_button_map lmr
|
||||
tap_button_map lrm
|
||||
middle_emulation enabled
|
||||
# natural_scroll enabled
|
||||
pointer_accel 0.2
|
||||
accel_profile adaptive
|
||||
}
|
||||
|
||||
# Touch Screen
|
||||
input "1003:33815:Atmel_Atmel_maXTouch_Digitizer" {
|
||||
events disabled
|
||||
}
|
||||
|
||||
#input "2:10:TPPS/2_Elan_TrackPoint" {
|
||||
# pointer_accel 1.0
|
||||
# accel_profile adaptive
|
||||
#}
|
||||
|
||||
####################################################################
|
||||
######################### S A Í D A S ##############################
|
||||
####################################################################
|
||||
|
||||
# Execute: swaymsg -t get_outputs
|
||||
# man sway-output
|
||||
# Para saber a identificação dos monitores
|
||||
|
||||
output HDMI-A-1 {
|
||||
#res 1360x768
|
||||
mode 1920x1080@144Hz
|
||||
# Observe que o x-pos esquerdo do eDP1 é 1600 = 3200/2 e o y-pos inferior é 1020 + (1800/2) = 1920 = 0 + 1920
|
||||
#pos 0 1020
|
||||
# subpixel rgb|bgr|vrgb|vbgr|none
|
||||
#subpixel rgb
|
||||
# background|bg <color> solid_color
|
||||
# Pode ser "90", "180", "270" para rotação; ou "flipped", "flipped-90", "flipped-180", "flipped-270" para aplicar uma rotação e inverter, ou "normal"
|
||||
transform 180
|
||||
#dpms on
|
||||
#scale 2
|
||||
}
|
||||
|
||||
####################################################################
|
||||
######################### A J U S T E S ############################
|
||||
####################################################################
|
||||
|
||||
#set $gaps_inner_default 10
|
||||
#set $gaps_outer_default 0
|
||||
#gaps inner $gaps_inner_default
|
||||
#gaps outer $gaps_outer_default
|
||||
|
||||
# Mod1 = $alt
|
||||
# Mod4 = Super
|
||||
set $papel bash -c 'pkill -9 oguri ; pkill -9 swaybg ; swaybg -i "$(find /home/$USER/Imagens/Wallpapers/ -name "*[jJpP][nNpP][gG]" | shuf -n1)"'
|
||||
set $menu dmenu_path | rofi -show drun | xargs swaymsg exec
|
||||
set $alt Mod1
|
||||
set $mod Mod4
|
||||
|
||||
# Para já iniciar no modo tabbed, ao estilo openbox, mas pode ser: workspace_layout default|stacking|tabbed
|
||||
|
||||
workspace_layout tabbed
|
||||
|
||||
# Alinhar o título da janela: title_align left|center|right
|
||||
title_align center
|
||||
# Fonte do título das janelas
|
||||
font pango:DejaVu Sans Mono 7
|
||||
#font pango:Fantasque Sans Mono 7
|
||||
|
||||
#######################################################
|
||||
##################### B O R D A S #####################
|
||||
#######################################################
|
||||
# só funciona no i3 e não no sway: new_window pixel 0
|
||||
#default_border normal 0
|
||||
default_border pixel 1
|
||||
#default_border none
|
||||
default_floating_border pixel 1
|
||||
#mode hide
|
||||
#hide_edge_borders smart
|
||||
#hide_edge_borders both
|
||||
#hide_edge_borders --i3 both
|
||||
hide_edge_borders --i3 smart
|
||||
|
||||
floating_modifier Mod1
|
||||
|
||||
# smart|urgent|focus|none
|
||||
focus_on_window_activation focus
|
||||
|
||||
### Outras opções
|
||||
#floating_minimum_size 75 x 50
|
||||
#floating_maximum_size -1 x -1
|
||||
|
||||
####################################################################
|
||||
############################# B A R ################################
|
||||
####################################################################
|
||||
# i3status
|
||||
# Status Bar:
|
||||
#
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
bar {
|
||||
swaybar_command nwg-panel
|
||||
tray_padding 0
|
||||
|
||||
#position top
|
||||
|
||||
# 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
|
||||
#font pango:Fira Sans, FontAwesome 13
|
||||
#status_command i3status-rs ~/.config/sway/status.toml
|
||||
#status_command i3status-rs ~/.config/sway/Cargo.toml
|
||||
#hidden_state hide
|
||||
#tray_output yes
|
||||
#strip_workspace_numbers yes
|
||||
|
||||
# colors {
|
||||
# statusline #ffffff
|
||||
# background #323232
|
||||
# inactive_workspace #32323200 #32323200 #5c5c5c
|
||||
# }
|
||||
# colors {
|
||||
# separator #666666
|
||||
# background #000000
|
||||
# statusline #dddddd
|
||||
# focused_workspace #0088CC #0088CC #ffffff
|
||||
# active_workspace #333333 #333333 #ffffff
|
||||
# inactive_workspace #333333 #333333 #888888
|
||||
# urgent_workspace #2f343a #900000 #ffffff
|
||||
# }
|
||||
#colors {
|
||||
# background #282A36
|
||||
# statusline #F8F8F2
|
||||
# separator #44475A
|
||||
#
|
||||
# focused_workspace #44475A #44475A #F8F8F2
|
||||
# active_workspace #282A36 #44475A #F8F8F2
|
||||
# inactive_workspace #282A36 #282A36 #BFBFBF
|
||||
# urgent_workspace #FF5555 #FF5555 #F8F8F2
|
||||
# binding_mode #FF5555 #FF5555 #F8F8F2
|
||||
#}
|
||||
}
|
||||
|
||||
####################################################################
|
||||
####################### C O R E S ##################################
|
||||
####################################################################
|
||||
|
||||
# só funciona no i3 e não no sway: set_from_resource $bg background
|
||||
|
||||
#set_from_resource $bg background
|
||||
|
||||
# classe borda fundo texto ind. borda filho
|
||||
client.focused #aeff00 #474747 #ffffff #aeff00 #aeff00
|
||||
client.focused_inactive #ffcf7c #453824 #ffffff #ffcf7c #ffcf7c
|
||||
client.unfocused #ffcf7c #453824 #ffffff #ffcf7c #ffcf7c
|
||||
client.urgent #2f343a #900000 #ffffff #900000 #900000
|
||||
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
|
||||
|
||||
#shock#f700ff | #abacate#aeff00 | #semisalmon~laranja~fosco#ffcf7c
|
||||
|
||||
####################################################################
|
||||
###################### A T A L H O S ###############################
|
||||
####################################################################
|
||||
### Use o comando: xev para detectar qual é à sua tecla especial.
|
||||
|
||||
# Reiniciar o sistema
|
||||
bindsym Control+Shift+Mod1+backspace exec bash -c 'openrc-shutdown --reboot now; systemctl reboot -i'
|
||||
|
||||
# Matar janela
|
||||
bindsym Control+Mod1+Escape exec xkill
|
||||
|
||||
# TaskManager (Gerenciador de Janelas)
|
||||
bindsym Control+Escape exec kitty -T HTOP -e htop
|
||||
bindsym Control+Mod4+Escape exec kitty -T VTOP -e vtop
|
||||
bindsym Mod4+Escape exec kitty -T nvtop -e nvtop
|
||||
|
||||
# Desligar o sistema
|
||||
bindsym Control+Shift+Mod1+delete exec bash -c 'openrc-shutdown --poweroff now; systemctl poweroff -i'
|
||||
bindsym Shift+Pause exec bash -c 'openrc-shutdown --poweroff now; systemctl poweroff -i'
|
||||
|
||||
# Mouse Scroll
|
||||
bindsym Control+Mod4+Up exec wlrctl pointer scroll -40 0 # xdotool click 4
|
||||
bindsym Control+Mod4+Down exec wlrctl pointer scroll 40 0 # xdotool click 5
|
||||
# Move Mouse
|
||||
bindsym Mod4+KP_9 exec wlrctl pointer click right
|
||||
bindsym Mod4+KP_7 exec wlrctl pointer click left
|
||||
# Mouse Click
|
||||
bindsym Mod4+KP_8 exec wlrctl pointer move 0 -10
|
||||
bindsym Control+Mod4+KP_8 exec wlrctl pointer move 0 -40
|
||||
bindsym Mod4+KP_2 exec wlrctl pointer move 0 10
|
||||
bindsym Control+Mod4+KP_2 exec wlrctl pointer move 0 40
|
||||
bindsym Mod4+KP_4 exec wlrctl pointer move -10 0
|
||||
bindsym Control+Mod4+KP_4 exec wlrctl pointer move -40 0
|
||||
bindsym Mod4+KP_6 exec wlrctl pointer move 10 0
|
||||
bindsym Control+Mod4+KP_6 exec wlrctl pointer move 40 0
|
||||
|
||||
# Atualizar o sistema
|
||||
bindsym Mod4+u exec kitty -e sudo pacman -Syyu --noconfirm
|
||||
|
||||
# Mude seu papel de parede #antes mude o caminho das imagens em "ajustes" (3ª sessão)
|
||||
bindsym Control+Mod1+w exec $papel
|
||||
|
||||
# Volume Pulseaudio
|
||||
bindsym XF86AudioRaiseVolume exec bash -c "pactl set-sink-volume @DEFAULT_SINK@ +5%; pkill -9 osd_cat; xrefresh; echo Volume:\ `pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,'` | osd_cat -d 1 -s 1 -A center -l 1 -p middle -o 60 -c green -f '-*-helvetica-bold-*-*-*-44-*-*-*-*-*-*'"
|
||||
bindsym XF86AudioLowerVolume exec bash -c "pactl set-sink-volume @DEFAULT_SINK@ -5%; pkill -9 osd_cat; xrefresh; echo Volume:\ `pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,'` | osd_cat -d 1 -s 1 -A center -l 1 -p middle -o 60 -c green -f '-*-helvetica-bold-*-*-*-44-*-*-*-*-*-*'"
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
#bindsym XF86AudioMicMute exec pactl ...............
|
||||
# Volume Alsa
|
||||
#bindsym --locked XF86AudioLowerVolume exec amixer set Master 5%- unmute && pkill -x -RTMIN+11 waybar
|
||||
#bindsym --locked XF86AudioRaiseVolume exec amixer set Master 5%+ unmute && pkill -x -RTMIN+11 waybar
|
||||
#bindsym XF86AudioMute exec "amixer set Master toggle"
|
||||
#bindsym XF86AudioMicMute exec "amixer set Capture toggle"
|
||||
|
||||
# Pavucontrol
|
||||
bindsym Mod4+p exec pavucontrol
|
||||
|
||||
# Brilho
|
||||
bindsym XF86MonBrightnessUp exec "light -A 2"
|
||||
bindsym XF86MonBrightnessDown exec "light -U 2"
|
||||
bindsym XF86ScreenSaver exec "echo 0 > /sys/class/backlight/intel_backlight/brightness"
|
||||
#bindsym --whole-window Mod4+Shift+button4 exec "light -A 2"
|
||||
#bindsym --whole-window Mod4+Shift+button5 exec "light -U 2"
|
||||
#bindsym XF86MonBrightnessUp exec /bin/xbacklight -dec 15
|
||||
#bindsym XF86MonBrightnessDown exec /bin/xbacklight -inc 15
|
||||
|
||||
# Playerctl (gestor de players multimídia)
|
||||
bindsym Shift+space exec playerctl play-pause
|
||||
|
||||
# Min Browser
|
||||
bindsym Control+Mod4+m exec min
|
||||
|
||||
# Firefox
|
||||
bindsym Control+Mod4+f exec firefox
|
||||
bindsym Control+Mod4+Shift+f exec firefox --profile ~/.firefox-rofe/
|
||||
|
||||
# https://www.qwant.com
|
||||
bindsym Control+Mod4+w exec firefox --new-tab https://www.qwant.com
|
||||
|
||||
#https://www.ecosia.org/
|
||||
bindsym Control+Mod4+e exec firefox --new-tab https://www.ecosia.org/
|
||||
|
||||
#https://duckduckgo.com/
|
||||
bindsym Control+Mod4+d exec firefox --new-tab https://duckduckgo.com/
|
||||
|
||||
# Arquivos
|
||||
bindsym Shift+Mod4+f exec xdg-open ~
|
||||
|
||||
# Arquivos
|
||||
bindsym Mod4+n exec xdg-open ~
|
||||
|
||||
# Inkscape
|
||||
bindsym Control+Mod4+i exec inkscape
|
||||
|
||||
# Gimp
|
||||
bindsym Control+Mod4+g exec gimp
|
||||
|
||||
# Gimp
|
||||
bindsym Control+Mod4+a exec arandr
|
||||
|
||||
# Iniciar terminal
|
||||
#bindsym Mod4+Return exec i3-sensible-terminal
|
||||
bindsym Mod4+t exec kitty
|
||||
bindsym Mod4+y exec yakuake
|
||||
bindsym Mod4+Return exec termite
|
||||
bindsym Shift+Mod4+t exec kitty
|
||||
bindsym Shift+Mod4+Return exec termite
|
||||
bindsym Mod4+Shift+x exec xterm
|
||||
|
||||
# Iniciar Qbittorrent
|
||||
bindsym Control+Mod1+t exec qbittorrent
|
||||
|
||||
# "Assasquinar" janela (mata essa "pomba" seu "assasquino")
|
||||
bindsym Control+q kill
|
||||
bindsym Mod4+q kill
|
||||
bindsym Mod4+Shift+q kill
|
||||
bindsym Mod1+F4 kill
|
||||
|
||||
# Mudar foco
|
||||
bindsym Mod1+h focus left
|
||||
bindsym Mod1+Shift+Tab focus left
|
||||
bindsym Mod1+j focus down
|
||||
bindsym Mod4+Tab focus down
|
||||
bindsym Mod1+k focus up
|
||||
bindsym Mod4+Shift+Tab focus up
|
||||
bindsym Mod1+l focus right
|
||||
bindsym Mod1+Tab focus right
|
||||
|
||||
# Alternativa
|
||||
bindsym Mod4+Left focus left
|
||||
bindsym Mod4+Down focus down
|
||||
bindsym Mod4+Up focus up
|
||||
bindsym Mod4+Right focus right
|
||||
|
||||
# Mover janela focada
|
||||
bindsym Mod1+Shift+h move left
|
||||
bindsym Mod1+Shift+j move down
|
||||
bindsym Mod1+Shift+k move up
|
||||
bindsym Mod1+Shift+l move right
|
||||
|
||||
# Alternativa
|
||||
bindsym Mod1+Shift+Left move left
|
||||
bindsym Mod1+Shift+Down move down
|
||||
bindsym Mod1+Shift+Up move up
|
||||
bindsym Mod1+Shift+Right move right
|
||||
|
||||
# Orientação horizontal
|
||||
#bindsym Mod4+h split h
|
||||
bindsym Mod4+h layout toggle split
|
||||
|
||||
# Orientação vertical
|
||||
#bindsym Mod4+v split v
|
||||
bindsym Mod4+v layout toggle split
|
||||
|
||||
# Entrar em modo tela cheia
|
||||
bindsym Mod1+F11 fullscreen toggle
|
||||
bindsym Mod4+a fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym Mod4+s layout stacking
|
||||
bindsym Mod4+w layout tabbed
|
||||
bindsym Mod4+e layout toggle split
|
||||
|
||||
# Tela maximizada/floating
|
||||
bindsym Mod4+f floating toggle
|
||||
bindsym button3 floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym Mod4+space focus mode_toggle
|
||||
bindsym Mod1+Escape focus mode_toggle
|
||||
|
||||
# Centro
|
||||
bindsym Mod4+Shift+c move position center
|
||||
bindsym Mod4+c move position center
|
||||
|
||||
# Sway reload
|
||||
bindsym Mod4+Shift+r reload
|
||||
|
||||
# Alterar config da SwayWM
|
||||
bindsym Control+Mod1+c exec code ~/.config/sway/config
|
||||
|
||||
# Matar Sway
|
||||
bindsym Control+Mod4+q exec pkill -9 sway
|
||||
|
||||
# Sway Exit
|
||||
bindsym Mod4+Shift+e exit
|
||||
bindsym Control+Mod1+backspace exit
|
||||
|
||||
# Lançadores de programas
|
||||
bindsym Mod4+x exec ~/.config/rofi/rofimenu2.sh
|
||||
bindsym Mod1+F2 exec rofi -no-lazy-grab -show drun -modi drun -theme ~/.config/rofi/launchers/misc/row_dock.rasi
|
||||
bindsym Mod1+F3 exec rofi -no-lazy-grab -show drun -modi drun -theme ~/.config/rofi/launchers/misc/appdrawer.rasi
|
||||
bindsym Mod4+F1 exec rofi -no-lazy-grab -show drun -modi drun -theme ~/.config/rofi/launchers/misc/screen.rasi
|
||||
bindsym Mod4+z exec rofi -show drun -font "Poppins 13"
|
||||
bindsym Mod1+F1 exec bash -c "rm ~/.jgmenu-lockfile ; jgmenu"
|
||||
bindsym Control+space exec synapse
|
||||
|
||||
# Lock
|
||||
bindsym Control+alt+l exec swaylock
|
||||
|
||||
# Screenshot
|
||||
bindsym Print exec bash -c 'play ~/.local/songs/camera_shutter.mp3 ; grim "/home/$USER/Imagens/Captura de Tela/Captura de tela de $(date +"%d-%m-%Y %H:%M:%S").png" - | wl-copy'
|
||||
|
||||
# Gravar tela
|
||||
#bindsym Control+Mod1+r exec bash -c 'sakura -e ffmpeg -video_size 1360x768 -framerate 25 -f x11grab -i :0.0 -f pulse -ac 2 -i default /home/$USER/Vídeos/Tela_$(date +%d-%m-%Y_%H:%M:%S).mkv'
|
||||
#bindsym Control+Mod1+r exec obs
|
||||
bindsym Control+Mod1+r exec wf-recorder -f '/home/$USER/Vídeos/Tela_$(date +%d-%m-%Y_%H:%M:%S).mkv'
|
||||
|
||||
####################################################################
|
||||
######################### A R E A S ################################
|
||||
####################################################################
|
||||
|
||||
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"
|
||||
################
|
||||
#set $ws1 ""
|
||||
#set $ws2 ""
|
||||
#set $ws3 ""
|
||||
#set $ws4 ""
|
||||
#set $ws5 ""
|
||||
#set $ws6 ""
|
||||
#set $ws7 ""
|
||||
#set $ws8 ""
|
||||
#set $ws9 ""
|
||||
#set $ws10 ""
|
||||
|
||||
# Navegar pelas workspaces
|
||||
bindsym Mod4+1 workspace number $ws1
|
||||
bindsym Mod4+2 workspace number $ws2
|
||||
bindsym Mod4+3 workspace number $ws3
|
||||
bindsym Mod4+4 workspace number $ws4
|
||||
bindsym Mod4+5 workspace number $ws5
|
||||
bindsym Mod4+6 workspace number $ws6
|
||||
bindsym Mod4+7 workspace number $ws7
|
||||
bindsym Mod4+8 workspace number $ws8
|
||||
bindsym Mod4+9 workspace number $ws9
|
||||
bindsym Mod4+0 workspace number $ws10
|
||||
|
||||
# Mover foco para as workspace
|
||||
bindsym Mod4+Shift+1 move container to workspace number $ws1
|
||||
bindsym Mod4+Shift+2 move container to workspace number $ws2
|
||||
bindsym Mod4+Shift+3 move container to workspace number $ws3
|
||||
bindsym Mod4+Shift+4 move container to workspace number $ws4
|
||||
bindsym Mod4+Shift+5 move container to workspace number $ws5
|
||||
bindsym Mod4+Shift+6 move container to workspace number $ws6
|
||||
bindsym Mod4+Shift+7 move container to workspace number $ws7
|
||||
bindsym Mod4+Shift+8 move container to workspace number $ws8
|
||||
bindsym Mod4+Shift+9 move container to workspace number $ws9
|
||||
bindsym Mod4+Shift+0 move container to workspace number $ws10
|
||||
|
||||
bindsym Mod4+d workspace back_and_forth
|
||||
|
||||
####################################################################
|
||||
############## R E G R A S # D A S # J A N E L A S #################
|
||||
####################################################################
|
||||
#
|
||||
######## No i3 o modo floating seria assim:
|
||||
# for_window [class="(Sakura)"]floating enable, move position center
|
||||
#
|
||||
######## No sway o modo floating é diferente, não precisa da opção "move position center" é assim:
|
||||
# for_window [app_id=".*sakura$"] floating enable
|
||||
#
|
||||
######## Ou com (title / app_id ou class), dependerá do progrma, ou vai funcionar de um modo ou de outro,
|
||||
######## No entanto, às vezes precisa de uma parâmetro especial, como: ".*progrma$", ou simplesmente: "progrma", exemplos:
|
||||
# for_window [app_id=".*sakura$"] floating enable
|
||||
# for_window [title=".*mpv$"] floating enable
|
||||
# for_window [class="Viewnior"] floating enable
|
||||
#####################################################################
|
||||
|
||||
# Sakura (Terminal)
|
||||
#for_window [app_id=".*sakura$"] floating enable
|
||||
|
||||
# Termite (Terminal)
|
||||
#for_window [app_id=".*termite$"] floating enable
|
||||
|
||||
# Telegram (Desktop)
|
||||
#for_window [title=".*telegram$"] floating enable
|
||||
|
||||
# Nemo (Gerenciador de arquivos)
|
||||
#for_window [app_id="nemo"] floating enable
|
||||
|
||||
# Nautilus (Gerenciador de arquivos)
|
||||
#for_window [title="Nautilus"] floating enable
|
||||
|
||||
# Orage (Calendário)
|
||||
#for_window [class=".*orage$" instance=".*orage$" title="Orage" app_id=".*orage$"] floating enable
|
||||
|
||||
# MPV (Video Player)
|
||||
#for_window [title=".*mpv$"] floating enable
|
||||
|
||||
# Qbittorrent
|
||||
for_window [app_id="qbittorrent"] floating enable
|
||||
assign [app_id="qbittorrent"] $ws5
|
||||
|
||||
# Howl (IDE)
|
||||
#for_window [app_id=".*howl$"] floating enable
|
||||
|
||||
# Viewnior (Gerenciador de imagens)
|
||||
#for_window [class="Viewnior"] floating enable
|
||||
|
||||
####################################################################
|
||||
################# R E D I M E N S I O N A R ########################
|
||||
####################################################################
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym h resize shrink width 10 px or 10 ppt
|
||||
bindsym j resize grow height 10 px or 10 ppt
|
||||
bindsym k resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
# back to normal: Enter or Escape or Mod4+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym Mod4+r mode "default"
|
||||
bindsym Mod4+a mode "default"
|
||||
bindsym Mod4+w mode "default"
|
||||
}
|
||||
bindsym Mod4+r mode "resize"
|
||||
|
||||
####################################################################
|
||||
######################### G A P S ##################################
|
||||
####################################################################
|
||||
set $mode_gaps Gaps: (o) outer, (i) inner
|
||||
set $mode_gaps_outer Outer Gaps: +|-|0|d (local), Shift + +|-|0|d (global)
|
||||
set $mode_gaps_inner Inner Gaps: +|-|0|d (local), Shift + +|-|0|d (global)
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym o mode "$mode_gaps_outer"
|
||||
bindsym i mode "$mode_gaps_inner"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_gaps_inner" {
|
||||
bindsym plus gaps inner current plus 5
|
||||
bindsym minus gaps inner current minus 5
|
||||
bindsym 0 gaps inner current set 0
|
||||
|
||||
bindsym Shift+plus gaps inner all plus 5
|
||||
bindsym Shift+minus gaps inner all minus 5
|
||||
bindsym Shift+0 gaps inner all set 0
|
||||
|
||||
bindsym d gaps inner current set $gaps_inner_default, mode "default"
|
||||
bindsym Shift+d gaps inner all set $gaps_inner_default, mode "default"
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_gaps_outer" {
|
||||
bindsym plus gaps outer current plus 5
|
||||
bindsym minus gaps outer current minus 5
|
||||
bindsym 0 gaps outer current set 0
|
||||
|
||||
bindsym Shift+plus gaps outer all plus 5
|
||||
bindsym Shift+minus gaps outer all minus 5
|
||||
bindsym Shift+0 gaps outer all set 0
|
||||
|
||||
bindsym d gaps outer current set $gaps_outer_default, mode "default"
|
||||
bindsym Shift+d gaps outer all set $gaps_outer_default, mode "default"
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
####################################################################
|
||||
####################### E X E C U T A R ############################
|
||||
####################################################################
|
||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
exec bash -c 'pkill -9 swaybg ; swaybg -i "$(find /home/$USER/Imagens/Wallpapers/ -name "*[jJpP][nNpP][gG]" | shuf -n1)"' &
|
||||
|
||||
#exec oguri &
|
||||
|
||||
exec copyq &
|
||||
|
||||
exec bash -c "while true; do anyremote -f /usr/share/anyremote/cfg-data/Server-mode/all-in-one2.cfg -s socket:5197 ; done" &
|
||||
|
||||
exec bash -c "while true; do minidlnad -f /home/$USER/.config/minidlna/minidlna.conf -P /home/$USER/.config/minidlna/minidlna.pid ; done" &
|
||||
|
||||
exec bash -c 'while true; do sleep 7; if ! pactl stat; then systemctl --user stop pulseaudio.service pulseaudio.socket; sleep 2; pulseaudio --kill; sleep 2; pulseaudio --start; sleep 2; if ! pactl stat; then systemctl --user restart pulseaudio.service; sleep 2; systemctl --user reset-failed pulseaudio.service; fi; fi; done' &
|
||||
|
||||
exec pulseaudio --start
|
||||
exec pactl set-card-profile 0 output:analog-stereo+input:analog-stereo
|
||||
exec pactl upload-sample /home/$USER/.local/songs/media-center-family-facundes.ogg
|
||||
exec paplay /home/$USER/.local/songs/media-center-family-facundes.ogg --volume=76767
|
||||
exec nwg-panel &
|
||||
|
||||
# https://github.com/swaywm/swaylock/issues/99
|
||||
set $lockcmd swaylock -f
|
||||
exec swayidle -w \
|
||||
timeout 300 'imv-wayland -x -t 1 -f /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png & sleep 0.25 ; swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
timeout 315 '$lockcmd' \
|
||||
before-sleep '$lockcmd ; sleep 1'
|
||||
1
.config/sway/config.d/autostart_applications
Normal file
1
.config/sway/config.d/autostart_applications
Normal file
|
|
@ -0,0 +1 @@
|
|||
exec python ~/.config/sway/scripts/swayfader.py
|
||||
37
.config/sway/config.d/theme
Normal file
37
.config/sway/config.d/theme
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# Apply gtk theming
|
||||
exec_always ~/.config/sway/scripts/import-gsettings
|
||||
|
||||
# Set inner/outer gaps
|
||||
gaps inner 5
|
||||
gaps outer 5
|
||||
|
||||
# Hide titlebar on windows:
|
||||
default_border pixel 2
|
||||
|
||||
# Default Font
|
||||
font pango:Noto Sans Regular 10
|
||||
|
||||
# Thin borders:
|
||||
smart_borders on
|
||||
|
||||
# Set wallpaper:
|
||||
#exec ~/.azotebg
|
||||
|
||||
# Title format for windows
|
||||
for_window [shell="xdg_shell"] title_format "%title (%app_id)"
|
||||
for_window [shell="x_wayland"] title_format "%class - %title"
|
||||
|
||||
## Window decoration
|
||||
# class border backgr. text indicator child_border
|
||||
client.focused #EA1414 #360303 #eceff4 #EA1414 #EA1414
|
||||
client.focused_inactive #EA1414 #000000 #d8dee9 #000000 #000000
|
||||
client.unfocused #EA1414 #000000 #d8dee9 #000000 #000000
|
||||
client.urgent #EA1414 #ebcb8b #2e3440 #8fbcbb #ebcb8b
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
#
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
}
|
||||
1
.config/sway/config.save
Normal file
1
.config/sway/config.save
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
15
.config/sway/scripts/import-gsettings
Normal file
15
.config/sway/scripts/import-gsettings
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
# usage: import-gsettings
|
||||
config="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-3.0/settings.ini"
|
||||
if [ ! -f "$config" ]; then exit 1; fi
|
||||
|
||||
gnome_schema="org.gnome.desktop.interface"
|
||||
gtk_theme="$(grep 'gtk-theme-name' "$config" | cut -d'=' -f2)"
|
||||
icon_theme="$(grep 'gtk-icon-theme-name' "$config" | cut -d'=' -f2)"
|
||||
cursor_theme="$(grep 'gtk-cursor-theme-name' "$config" | cut -d'=' -f2)"
|
||||
font_name="$(grep 'gtk-font-name' "$config" | cut -d'=' -f2)"
|
||||
gsettings set $gnome_schema gtk-theme 'Sweet-Dark'
|
||||
gsettings set $gnome_schema icon-theme 'BeautyLine'
|
||||
gsettings set $gnome_schema cursor-theme 'Sweet-cursors'
|
||||
gsettings set $gnome_schema font-name 'Noto Music'
|
||||
228
.config/sway/scripts/swayfader.py
Normal file
228
.config/sway/scripts/swayfader.py
Normal file
|
|
@ -0,0 +1,228 @@
|
|||
from i3ipc import Connection, Event
|
||||
from threading import Thread
|
||||
from time import sleep
|
||||
|
||||
|
||||
FRAME_T = 0.01 # time taken between each frame of fade
|
||||
|
||||
# transparency values
|
||||
CON_AC = 1 # active window
|
||||
CON_INAC = 0.95 # inactive window
|
||||
FLOAT_AC = 1 # active floating window
|
||||
FLOAT_INAC = 0.90 # inactive floating window
|
||||
BOT_INAC = 0.80 # bottom window
|
||||
|
||||
|
||||
# fade durations
|
||||
FADE_TIME = 0.2
|
||||
ALT_FADE_TIME = 0.1
|
||||
|
||||
CON_OUT = FADE_TIME # window fading out
|
||||
CON_IN = 0.15 # window fading in
|
||||
FLOAT_OUT = ALT_FADE_TIME # floating window fading out
|
||||
FLOAT_IN = ALT_FADE_TIME # floating window fading in
|
||||
BOT_OUT = ALT_FADE_TIME # bottom window fading out
|
||||
BOT_IN = ALT_FADE_TIME # bottom window fading in
|
||||
BOT_SWITCH_IN = FADE_TIME # window becoming bottom window
|
||||
BOT_SWITCH_OUT = FADE_TIME # bottom window becoming window
|
||||
FLOAT_BOT_OUT = FADE_TIME # floating window fading out from bottom
|
||||
FLOAT_BOT_IN = FADE_TIME # floating window fading in from bottom
|
||||
|
||||
|
||||
class Fader:
|
||||
def __init__(self):
|
||||
self.floating_windows = []
|
||||
self.fader_running = False
|
||||
self.fade_queue = []
|
||||
self.fade_data = {}
|
||||
self.bottom_win = None
|
||||
self.old_win = None
|
||||
self.active_win = None
|
||||
|
||||
ipc = Connection()
|
||||
ipc.on(Event.WINDOW_FOCUS, self.on_window_focus)
|
||||
ipc.on(Event.WINDOW_NEW, self.on_window_new)
|
||||
ipc.on(Event.WINDOW_FLOATING, self.on_window_floating)
|
||||
|
||||
for win in ipc.get_tree():
|
||||
if win.type == "floating_con":
|
||||
self.floating_windows.append(win.id)
|
||||
if win.focused:
|
||||
change_opacity(win, FLOAT_AC)
|
||||
self.active_win = win
|
||||
else:
|
||||
change_opacity(win, FLOAT_INAC)
|
||||
elif win.type == "con":
|
||||
if win.focused:
|
||||
self.active_win = win
|
||||
change_opacity(win, CON_AC)
|
||||
else:
|
||||
change_opacity(win, CON_INAC)
|
||||
|
||||
ipc.main()
|
||||
|
||||
def add_fade(self, win, start, target, duration):
|
||||
if not duration:
|
||||
if win.id in self.fade_queue:
|
||||
self.fade_queue.remove(win.id)
|
||||
del self.fade_data[win.id]
|
||||
change_opacity(win, target)
|
||||
return
|
||||
|
||||
if win.id in self.fade_queue:
|
||||
f = self.fade_data[win.id]
|
||||
change = (FRAME_T / duration) * (target - f["opacity"])
|
||||
f["change"] = change
|
||||
f["target"] = target
|
||||
return
|
||||
|
||||
change_opacity(win, start)
|
||||
change = (FRAME_T / duration) * (target - start)
|
||||
fade_data = {"opacity": start, "change": change, "target": target, "win": win}
|
||||
self.fade_queue.append(win.id)
|
||||
self.fade_data[win.id] = fade_data
|
||||
|
||||
def start_fader(self):
|
||||
if not self.fader_running:
|
||||
self.fader_running = True
|
||||
Thread(target=self.fader).start()
|
||||
|
||||
def fader(self):
|
||||
while self.fade_queue:
|
||||
for win_id in self.fade_queue.copy():
|
||||
try:
|
||||
f = self.fade_data[win_id]
|
||||
except KeyError:
|
||||
continue
|
||||
f["opacity"] += f["change"]
|
||||
|
||||
finished = False
|
||||
if f["change"] > 0:
|
||||
if f["opacity"] >= f["target"]:
|
||||
finished = True
|
||||
elif f["opacity"] <= f["target"]:
|
||||
finished = True
|
||||
|
||||
if finished:
|
||||
change_opacity(f["win"], f["target"])
|
||||
try:
|
||||
self.fade_queue.remove(win_id)
|
||||
del self.fade_data[win_id]
|
||||
except (KeyError, ValueError):
|
||||
continue
|
||||
else:
|
||||
change_opacity(f["win"], f["opacity"])
|
||||
|
||||
sleep(FRAME_T)
|
||||
self.fader_running = False
|
||||
|
||||
def on_window_focus(self, ipc, e):
|
||||
if self.active_win.id == e.container.id:
|
||||
return
|
||||
|
||||
if self.active_win.type == "con":
|
||||
if e.container.type == "con":
|
||||
self.add_fade(
|
||||
e.container, CON_INAC,
|
||||
CON_AC, CON_IN)
|
||||
self.add_fade(
|
||||
self.active_win, CON_AC,
|
||||
CON_INAC, CON_OUT)
|
||||
|
||||
else:
|
||||
self.add_fade(
|
||||
e.container, FLOAT_INAC,
|
||||
FLOAT_AC, FLOAT_IN)
|
||||
self.add_fade(
|
||||
self.active_win, CON_AC,
|
||||
BOT_INAC, BOT_OUT)
|
||||
self.bottom_win = self.active_win
|
||||
|
||||
else:
|
||||
if e.container.type == "con":
|
||||
self.add_fade(
|
||||
self.active_win, FLOAT_AC,
|
||||
FLOAT_INAC, FLOAT_BOT_OUT)
|
||||
|
||||
if not self.bottom_win:
|
||||
self.add_fade(
|
||||
e.container, CON_INAC,
|
||||
CON_AC, CON_IN)
|
||||
|
||||
elif e.container.id != self.bottom_win.id:
|
||||
self.add_fade(
|
||||
self.bottom_win, BOT_INAC,
|
||||
CON_INAC, BOT_SWITCH_OUT)
|
||||
self.add_fade(
|
||||
e.container, CON_INAC,
|
||||
CON_AC, BOT_SWITCH_IN)
|
||||
self.bottom_win = e.container
|
||||
|
||||
else:
|
||||
self.add_fade(
|
||||
self.bottom_win, BOT_INAC,
|
||||
CON_AC, BOT_IN)
|
||||
|
||||
else:
|
||||
self.add_fade(
|
||||
self.active_win, FLOAT_AC,
|
||||
FLOAT_INAC, FLOAT_OUT)
|
||||
self.add_fade(
|
||||
e.container, FLOAT_INAC,
|
||||
FLOAT_AC, FLOAT_IN)
|
||||
|
||||
self.start_fader()
|
||||
self.active_win = e.container
|
||||
|
||||
def on_window_new(self, ipc, e):
|
||||
if self.active_win:
|
||||
if self.active_win.type == "con":
|
||||
change_opacity(self.active_win, CON_INAC)
|
||||
else:
|
||||
change_opacity(self.active_win, FLOAT_INAC)
|
||||
|
||||
if self.bottom_win:
|
||||
change_opacity(self.bottom_win, CON_INAC)
|
||||
|
||||
elif self.active_win and self.active_win.type == "con":
|
||||
self.bottom_win = self.active_win
|
||||
change_opacity(self.bottom_win, CON_INAC)
|
||||
|
||||
change_opacity(e.container, CON_AC)
|
||||
self.old_win = self.active_win
|
||||
self.active_win = e.container
|
||||
|
||||
def on_window_floating(self, ipc, e):
|
||||
c_id = e.container.id
|
||||
if c_id not in self.floating_windows:
|
||||
self.floating_windows.append(c_id)
|
||||
|
||||
if self.active_win.id != e.container.id:
|
||||
change_opacity(e.container, FLOAT_INAC)
|
||||
|
||||
else:
|
||||
if self.old_win and self.bottom_win:
|
||||
if self.old_win.type == "con":
|
||||
self.bottom_win = self.old_win
|
||||
change_opacity(self.bottom_win, BOT_INAC)
|
||||
change_opacity(e.container, FLOAT_AC)
|
||||
|
||||
else:
|
||||
self.floating_windows.remove(c_id)
|
||||
if self.active_win.id != e.container.id:
|
||||
change_opacity(e.container, CON_INAC)
|
||||
|
||||
else:
|
||||
if self.old_win and self.old_win.type == "con":
|
||||
change_opacity(self.old_win, CON_INAC)
|
||||
change_opacity(self.active_win, CON_AC)
|
||||
|
||||
self.active_win = e.container
|
||||
|
||||
|
||||
def change_opacity(win, trans):
|
||||
win.command("opacity " + str(trans))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Fader()
|
||||
63
.config/sway/status.toml
Normal file
63
.config/sway/status.toml
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
[theme]
|
||||
name = "plain"
|
||||
[theme.overrides]
|
||||
idle_bg = "#2A2A36"
|
||||
idle_fg = "#F8F8F2"
|
||||
|
||||
[icons]
|
||||
name = "awesome"
|
||||
|
||||
[[block]]
|
||||
block = "focused_window"
|
||||
max_width = 21
|
||||
|
||||
[[block]]
|
||||
block = "music"
|
||||
|
||||
[[block]]
|
||||
block = "disk_space"
|
||||
path = "/home"
|
||||
alias = "/"
|
||||
info_type = "available"
|
||||
unit = "GB"
|
||||
interval = 20
|
||||
warning = 20.0
|
||||
alert = 10.0
|
||||
|
||||
[[block]]
|
||||
block = "memory"
|
||||
display_type = "memory"
|
||||
format_mem = "{MAg} GB"
|
||||
format_swap = "{SUm} MB"
|
||||
|
||||
[[block]]
|
||||
block = "cpu"
|
||||
interval = 1
|
||||
|
||||
[[block]]
|
||||
block = "load"
|
||||
interval = 1
|
||||
format = " {1m} {5m} {15m}"
|
||||
|
||||
[[block]]
|
||||
block = "backlight"
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
|
||||
[[block]]
|
||||
block = "temperature"
|
||||
collapsed = false
|
||||
interval = 10
|
||||
format = "{min}° min, {max}° max, {average}° avg"
|
||||
|
||||
[[block]]
|
||||
block = "battery"
|
||||
upower = true
|
||||
format = "{percentage}% {time}"
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
interval = 60
|
||||
|
||||
format = "%a %d/%m %R"
|
||||
68
.config/sway/sway-install.sh
Normal file
68
.config/sway/sway-install.sh
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
#!/bin/bash
|
||||
mkdir -p ~/.config/sway
|
||||
cd ~/.config/sway
|
||||
rm -rf *
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/sway/config
|
||||
mkdir -p ~/.config/waybar
|
||||
cd ~/.config/waybar
|
||||
rm -rf *
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/waybar/arrow-date-center-theme-transparent/config
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/waybar/arrow-date-center-theme-transparent/style.css
|
||||
mkdir -p ~/.config/swaylock
|
||||
cd ~/.config/swaylock
|
||||
rm -rf *
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/swaylock/config
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/swaylock/ford_mustang_12-wallpaper-1920x1080.jpg
|
||||
mkdir -p ~/.config/termite
|
||||
cd ~/.config/termite
|
||||
rm -rf *
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/termite/config
|
||||
cd ~
|
||||
rm -rf .Xdefaults
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/.Xdefaults
|
||||
mkdir -p ~/.config/rofi
|
||||
cd ~/.config/rofi
|
||||
rm -rf *
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/rofi/rofimenu.sh
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/rofi/center.rasi
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/rofi/config
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/rofi/rofi-list.sh
|
||||
mv rofimenu.sh rofimenu2.sh
|
||||
mv rofi-list.sh rofimenu.sh
|
||||
mv config config.bkp
|
||||
chmod +x *.sh
|
||||
mkdir -p ~/.config/rofi/sidebar
|
||||
cd ~/.config/rofi/sidebar
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/rofi/sidebar/rofi.rasi
|
||||
mkdir -p ~/.config/rofi/appmenu
|
||||
cd ~/.config/rofi/appmenu
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/rofi/appmenu/drun.rasi
|
||||
mkdir -p "/home/$USER/Imagens/Captura de Tela"
|
||||
mkdir -p ~/Imagens/Wallpapers
|
||||
cd ~/Imagens/Wallpapers
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/Wallpapers/Archlinux-lbdesign-arch-Linux-1333727-wallhere.com.jpg
|
||||
wget -nc https://raw.githubusercontent.com/felipefacundes/dotfiles/master/config/swaylock/ford_mustang_12-wallpaper-1920x1080.jpg
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo "Vamos às Fontes especiais com íconizadas"
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
mkdir -p ~/.fonts
|
||||
cd ~/.fonts
|
||||
rm -f *Hack*
|
||||
rm -f Minhas_Fonts_2.tar.zst
|
||||
#wget -nc "https://github.com/felipefacundes/dotfiles/blob/master/fonts/NerdFontHkNF.tar.xz?raw=true" -O NerdFontHkNF.tar.xz
|
||||
wget -nc "https://github.com/felipefacundes/dotfiles/blob/master/config/fonts/Minhas_Fonts_2.tar.zst?raw=true" -O Minhas_Fonts_2.tar.zst
|
||||
#tar -xf NerdFontHkNF.tar.xz
|
||||
tar -xf Minhas_Fonts_2.tar.zst
|
||||
rm -f Minhas_Fonts_2.tar.zst
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo "Configuração do Sway instalada"
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo "Vamos instalar às depêndencias para ArchLinux ou derivados (Manjaro e etc...)"
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
sudo pacman -S sakura pavucontrol rofi jgmenu lxmenu-data awesome-terminal-fonts xorg-xkill nemo cinnamon-translations gtop htop xsensors gsimplecal cpupower grim mako slurp sway swaybg swaylock waybar wayland wayland-protocols wl-clipboard wlroots xorg-server-xwayland termite atool ffmpegthumbnailer highlight libcaca lynx mediainfo odt2txt perl-image-exiftool python-chardet ranger light networkmanager --noconfirm
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo "Criação de Felipe Facundes"
|
||||
echo "Telegram: @FeFacundes"
|
||||
echo "Acesse nosso grupo do Telegram:"
|
||||
echo "https://t.me/winehq_linux"
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
BIN
.config/sway/wallpaper.jpg
Normal file
BIN
.config/sway/wallpaper.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Loading…
Add table
Add a link
Reference in a new issue