can we have a topic to share about sway ?
adaptation to different keyboard and use
@BluishHumility
or choice swaylock tuigreetd.
I don’t see why not.
It is possible I am misunderstanding the question.
for share
❯ cat script/launch
File: script/launch
#!/bin/bash
while ! ping -c 4 free.fr > /dev/null;
do
echo "The network is not up yet"
sleep 1
done
echo "The network is up"
swaymsg 'workspace "1", exec "tuba"'
swaymsg 'workspace "1", exec "bluesky"'
swaymsg 'workspace "2", exec "discord"'
swaymsg 'workspace "2", exec "nextcloud-talk"'
swaymsg 'workspace "3", exec "firedragon"'
swaymsg 'workspace "8", exec "cantata"'
swaymsg 'workspace "9", exec "thunderbird"'
swaymsg 'workspace "1"'
❯ cat .config/autostart/launch.desktop
File: .config/autostart/launch.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=launch
GenericName=Démarrage
Exec=/home/gab/script/launch
Icon=sway
Categories=System;
X-TerminalArgExec=--
X-TerminalArgTitle=--title
X-TerminalArgAppId=--class
X-TerminalArgDir=--working-directory
X-TerminalArgHold=--hold
❯ cat .config/sway/config.d/assign
File: .config/sway/config.d/assign
assign [app_id="dev.geopjr.Tuba"] workspace number 1
assign [class="Bluesky"] workspace number 1
assign [class="discord"] workspace number 2
assign [class="nextcloud-talk"] workspace number 2
assign [app_id="virt-viewer"] workspace number 6
assign [app_id="cantata"] workspace number 8
assign [app_id="thunderbird"] workspace number 9
❯ cat .config/sway/config.d/bind.conf
File: .config/sway/config.d/bind.conf
bindsym Mod4+ampersand workspace number 1
bindsym Mod4+eacute workspace number 2
bindsym Mod4+quotedbl workspace number 3
bindsym Mod4+apostrophe workspace number 4
bindsym Mod4+parenleft workspace number 5
bindsym Mod4+minus workspace number 6
bindsym Mod4+egrave workspace number 7
bindsym Mod4+underscore workspace number 8
bindsym Mod4+ccedilla workspace number 9
bindsym Mod4+agrave workspace number 10
bindsym Mod4+Shift+ampersand move container to workspace number 1
bindsym Mod4+Shift+eacute move container to workspace number 2
bindsym Mod4+Shift+quotedbl move container to workspace number 3
bindsym Mod4+Shift+apostrophe move container to workspace number 4
bindsym Mod4+Shift+parenleft move container to workspace number 5
bindsym Mod4+Shift+minus move container to workspace number 6
bindsym Mod4+Shift+egrave move container to workspace number 7
bindsym Mod4+Shift+underscore move container to workspace number 8
bindsym Mod4+Shift+ccedilla move container to workspace number 9
bindsym Mod4+Shift+agrave move container to workspace number 10
## Kill focused window ##
# bindsym Ctrl+k kill
bindsym Ctrl+Shift+q kill
## Lock Screen ##
#bindsym mod5+l exec /usr/share/sway/scripts/swaylock.sh
## hibernation ##
bindsym mod5+Shift+l exec systemctl hibernate
## soft-reboot ##
#bindsym mod5+Shift+r exec systemctl reboot
## poweroff ##
#bindsym mod5+Shift+p exec systemctl poweroff
## menu ##
bindsym Mod4+a exec nwg-drawer
## ménage écran ##
bindsym Mod4+delete exec swaymsg output eDP-1 toggle
## waybar ##
#bindsym $mod+Shift+b exec pkill -SIGUSR1 waybar
## pcmanfm-qt ##
#bindsym mod4+m exec pcmanfm-qt
bindsym mod4+m exec thunar
## kitty ##
#bindsym $mod+c exec kitty
## nwg-drawer ##
#bindsym $mod+q exec nwg-drawer
# Switch the current container between different layout styles
bindsym mod4+s layout stacking
bindsym mod4+w layout tabbed
bindsym mod4+e layout toggle split
❯ cat .config/sway/config.d/output
File: .config/sway/config.d/output
### Output configuration
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
#
# Wacom Tablet - Example
# input "1386:884:Wacom_Intuos_S_Pad" map_to_output HDMI-A-1
# input "1386:884:Wacom_Intuos_S_Pen" map_to_output HDMI-A-1
##
## Remove the hidpi_1.5.sh script below and configure
## the outputs according to your preference.
##
exec_always ~/.config/sway/scripts/hidpi_1.5.sh
set $nighthawks /home/gab/ncd/Photos/backgrounds/Nighthawks1080.jpg
output * bg $nighthawks fill
output 'AU Optronics 0x2B99 Unknown' mode 1920x1080@60.011Hz pos 1920,1080
# output 'HP Inc. HP E24m G4 CNC23613Z0' mode 1920x1080@60.000Hz pos 1920,120
# output 'Lenovo Group Limited LEN T2454pA 0x01010101' mode 1920x1200@59.950Hz pos 1920,0
# output 'HP Inc. HP E24m G4 CNC2241FH9' mode 1920x1080@60.000Hz pos 1920,120
# output 'HP Inc. HP E24 G4 CN422708RM' transform 270 mode 1920x1080@60.000Hz pos 3840,140
# output 'Sony SONY TV 0x00000101' mode 1920x1080@60.000Hz pos 1920,0
# output 'Dell Inc. DELL U2717D J0XYN891BS1L' mode 2560x1440@59.951Hz pos -640,120
❯ cat .config/sway/config.d/workspace
File: .config/sway/config.d/workspace
# workspace 1 output 'eDP-1'
# workspace 2 output 'eDP-1'
# workspace 3 output 'eDP-1'
# workspace 4 output 'eDP-1'
# workspace 9 output 'eDP-1'
# workspace 5 output 'Lenovo Group Limited LEN T2454pA 0x01010101'
# workspace 6 output 'Lenovo Group Limited LEN T2454pA 0x01010101'
# workspace 5 output 'HP Inc. HP E24m G4 CNC23613Z0'
# workspace 6 output 'HP Inc. HP E24m G4 CNC23613Z0'
# workspace 5 output 'HP Inc. HP E24m G4 CNC2241FH9'
# workspace 6 output 'HP Inc. HP E24m G4 CNC2241FH9'
# workspace 7 output 'HP Inc. HP E24 G4 CN422708RM'
# workspace 8 output 'HP Inc. HP E24 G4 CN422708RM'
# workspace 10 output 'HDMI-A-1'
i’d like a button on waybar to activate/desactivate swayfx blur&shadow. When i use other screen like vidéo-projecteur.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.