You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sway.sh
+60-22Lines changed: 60 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -51,22 +51,25 @@ function install_packages() {
51
51
echo"--> Install packages."
52
52
sudo pacman -S --noconfirm --needed \
53
53
alacritty `# terminal` \
54
+
brightnessctl `# gestor de brillo de pantalla` \
55
+
grim `# screenshots` \
56
+
lxqt-policykit `# authentication agent` \
57
+
mako `# notificaciones` \
58
+
nyxt `# web browser` \
59
+
slurp `# seleccionar región screenshot` \
54
60
sway `# window manager Wayland` \
55
61
swaybg `# fondo de pantalla` \
56
-
swaylock `# lock screen` \
57
62
swayidle `# gestión de idle / suspensión` \
63
+
swaylock `# lock screen` \
64
+
swayimg `# image viewer` \
65
+
touchegg `# gestos para el touch mouse` \
58
66
waybar `# barra superior` \
59
-
wmenu `# launcher o usar wofi` \
60
-
mako `# notificaciones` \
61
-
grim `# screenshots` \
62
-
slurp `# seleccionar región screenshot` \
63
67
wl-clipboard `# clipboard` \
68
+
wmenu `# launcher o usar wofi` \
64
69
xdg-desktop-portal-wlr `# compatibilidad con apps` \
65
70
xdg-open `# ...` \
66
-
lxqt-policykit `# authentication agent` \
67
-
nyxt `# web browser` \
68
-
touchegg `# gestos para el touch mouse` \
69
-
brightnessctl `# gestor de brillo de pantalla` \
71
+
xdg-user-dirs `# create user directories` \
72
+
mpv `# media player` \
70
73
&> /dev/null
71
74
}
72
75
@@ -91,6 +94,7 @@ function configure_sway() {
91
94
echo"--> Configure sway."
92
95
93
96
mkdir -p "$HOME"/.config/sway/
97
+
mkdir -p "$HOME"/.config/sway/scripts
94
98
# cp /etc/sway/config "$HOME"/.config/sway/config
95
99
96
100
cat >"$HOME"/.config/sway/config << 'EOF'
@@ -110,17 +114,11 @@ set $term alacritty
110
114
set $menu wmenu-run
111
115
112
116
### Idle configuration
113
-
#
114
-
# Example configuration:
115
-
#
116
-
# exec swayidle -w \
117
-
# timeout 300 'swaylock -f -c 000000' \
118
-
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
119
-
# before-sleep 'swaylock -f -c 000000'
120
-
#
121
-
# This will lock your screen after 300 seconds of inactivity, then turn off
122
-
# your displays after another 300 seconds, and turn your screens back on when
123
-
# resumed. It will also lock your screen before your computer goes to sleep.
117
+
exec swayidle -w \
118
+
timeout 120 'swaylock -f -c 000000' \
119
+
timeout 300 'swaymsg "output * power off"' \
120
+
resume 'swaymsg "output * power on"' \
121
+
before-sleep 'swaylock -f -c 000000'
124
122
125
123
### Key bindings
126
124
#
@@ -147,6 +145,12 @@ set $menu wmenu-run
147
145
148
146
# Exit sway (logs you out of your Wayland session)
149
147
bindsym $mod+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'
0 commit comments