How I Set Up My Sway Window Manager on Debian 12

  Рет қаралды 48,546

Learn Linux TV

Learn Linux TV

Күн бұрын

Recently, I mentioned that I was switching each of my Linux installs to Debian. But what does that mean for my laptops and desktops? In this video, I'll show you the Sway window manager implementation I've been working on, and where it stands as of now. Plus, I'll show you how you can set this up for yourself!
Check out the LLTV Shop!
Shirts, bags, cups and much more! ➜ merch.learnlinux.tv
Become a Channel Member
Show your support for Linux learning and get early access to select videos, member-only livestreams, and more! ➜ learnlinux.link/member
Support Learn Linux TV in other ways (commission earned)
• Become a Patron ➜ learnlinux.link/patron
• Receive a 5% discount on an LPI exam voucher ➜ learnlinux.link/lpi-voucher
• Affiliate store ➜ learnlinux.link/amazon
• Latest book: Mastering Ubuntu Server 4th Edition ➜ ubuntuserverbook.com
• Get an awesome KVM for your Homelab ➜ learnlinux.link/tinypilot
⏰ TIME CODES
00:00 - Intro
01:52 - Set up your own Linux server with Akamai's Connected Cloud (Sponsor)
03:12 - A tour of my Sway setup
06:47 - Required Debian packages
08:04 - Creating the required directories
09:24 - Config file overview
14:34 - Useful keyboard shortcuts
Video-specific Links
• Official blog post for this video ➜ www.learnlinux.tv/?p=2861
Boost your Linux skills with these stand-alone tutorials
• Essential tweaks for ALL Linux Servers ➜ linux.video/all-servers
• Install Arch Linux ➜ linux.video/arch-guide
• Use Ventoy to create a multi-distro flash drive ➜ linux.video/ventoy
• Browse the web from within your Linux terminal ➜ linux.video/term-web
• From Zero to Proxmox ➜ linux.video/zero-to-pve
• Check out Neovim ➜ linux.video/neovim
• Systemd Deep Dive ➜ linux.video/systemd
• Systemd Timers ➜ • Automate Your Tasks wi...
• Installing an operating system for Raspberry Pi ➜ linux.video/pi-imager
• Connecting to a Linux server via ssh ➜ linux.video/ssh
• Linux permissions ➜ linux.video/perms
• OpenSSH Guide ➜ linux.video/ssh-guide
• 10 Linux Terminal Tips and Tricks ➜ linux.video/cli-tricks-1
• Over 15 Terminal Tricks ➜ linux.video/cli-tricks-2
Full Courses from Learn Linux TV
• Linux Crash Course series ➜ linux.video/cc
• Learn how to exit use tmux ➜ linux.video/tmux
• Learn how to use vim ➜ linux.video/vim
• Bash Scripting Series ➜ linux.video/bash
• Proxmox VE Cluster Full Course ➜ linux.video/pve
• Learn Ansible ➜ linux.video/ansible
Learn Linux TV on the Web
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
⚠️ DISCLAIMER
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. Always make sure you have written permission before working with any infrastructure and that you are compliant with all company rules, change control procedures, and local laws.
#CloudComputing #DevOps #Linux

Пікірлер: 52
@RandyHanley
@RandyHanley 8 ай бұрын
You're, by far, the most open Linux pro I've seen - and you don't say things regularly like "this one is the best, or this one sucks, etc." You always show multiple ways to accomplish things which I think is great for users with various tastes. Cheers from Novi, neighbor.
@thenargles
@thenargles 8 ай бұрын
I absolutely love the super clean and simple nature of this! It’s a work of art. Might have to give this a try.
@AnalyticMinded
@AnalyticMinded 8 ай бұрын
Sway user here. Just a few additional tips. There's a fork called Swayfx that will let you have rounded corners, shadows, blur, etc. (though no animations as of yet). Some settings for things like idle, lockscreen, and audio can be set in Sway's main config file instead of having to create separate bash script files. There's also the tab mode for when the screen gets busy, which I personally find more pleasing to the eye than stacking. An alternative for wofi is tofi, which is great, if a bit ugly in its initial configuration. Honestly, though, since you can configure keys to open apps, I rarely open tofi to launch apps. Great video. I love that Sway is getting some exposure.
@opfax163
@opfax163 2 ай бұрын
thank you
@teenydragons1400
@teenydragons1400 8 ай бұрын
Thank you for this video. This is leading me down a rabbit hole of reading about Sway and i3. I hope to set this up soon as it will sure help with some presentations I do.
@BilatSlayer
@BilatSlayer 8 ай бұрын
Nice vid🎉! Thanks for this vid cuz you give me idea on what to do when i setup my first sway wm.
@jonathanchevallier7046
@jonathanchevallier7046 8 ай бұрын
Thank you for this presentation and this overview of your config.
@RyanBragg84
@RyanBragg84 8 ай бұрын
Thank You so much for doing this. So easy to follow along and set this up
@Your_Degenerate
@Your_Degenerate 8 ай бұрын
I always liked the look of simple colored borders. I think I remember a theme like that for XFCE which is nice because I still like using a floating window manager. Custom desktops are enjoyable. Especially finding ways to add more functionality to them or just keeping it stripped down for a no nonsense workflow.
@Romek_S
@Romek_S 8 ай бұрын
In waybar config, down in audio section you have "/home/jay" hardcoded so it will throw an error for all non-Jays us here :D But that minor problem, everyone can easily fix it. More important is that I would like to thank you for this video as I always wanted to try tiling WM and was quite intimidated by how many WM's are in the wild and how to start customize them for own needs. And now, voila, 20 minutes and I'm ready and going. Thumb up!
@unklebonehead
@unklebonehead 8 ай бұрын
Sway & i3 are the kings of window managers! I love them.
@albertstrohmaier4034
@albertstrohmaier4034 8 ай бұрын
I'm really big on i3. Just came across sway for things that need Wayland. Is there a way to add visual goodies to sway? Like blur fade, rounded corners, etc? That's mostly what's holding me back. My i3 is awfully pretty.
@greenhorngameplays5743
@greenhorngameplays5743 4 ай бұрын
I'm wondering if wayfire or sway is better for FreeBSD systems. I moved all my Linux servers to FreeBSD and now, I'm going to do the same for my desktops.
@Roman-Pregolin
@Roman-Pregolin 7 ай бұрын
I just got a Pinetab2 and want to save resources so I'm setting up Sway. I use a Ferris Sweep variant 34-key keyboard and was a bit worried about shortcuts for sway, but it's fine with very minor tweaking.
@hydragyrumSC
@hydragyrumSC 8 ай бұрын
Curious why you wrote your own audio volume script when waybar has a built in `pulseaudio` module? It not only displays volume similarly to your script, with custom format options, but also supports changing the volume by scrolling on the module and changing the display based on whether you're using bluetooth or wired, etc.
@nsstrails
@nsstrails Ай бұрын
great video and explanation! One question (and possibly I missed it in the video): I'm using Ubuntu, and was able to initialize your environment by entering `sway` in the terminal, but it showed up within the default environment, not full-screen. How would I initiate it during system startup or otherwise as full-screen? Thanks if you take the time to answer this! I'll keep digging and try to figure it out in the meantime.
@cynodont7391
@cynodont7391 8 ай бұрын
Here are font tips for Waybar. It is possible to display Emojis in texts if you have the proper fonts installed. For example, I am using Symbola for the monochrome emojis and Noto Color Emoji for the colored ones. I also have the Hack Nerd Font, a variation of the Hack monospace font with a few thousands additional symbols (See the Nerd Fonts project). The tricky part is to insert those special characters in the waybar config file. For the Nerd fonts, the additional characters are in the unicode range 0xf000 - 0xffff so I it is possible to use escape sequences in strings (e.g. "\uf7ca"). Emojis characters are a bit more problematic because they are in the unicode range 0x10000-0x1ffff and waybar has no syntax to represent them. So you will need an editor that can handle characters in that range (e.g. Emacs). The unicode variation selectors can be used to select between the monochrome and the color version of an emoji (if you have both installed). For example, "🔊\uFE0E" displays the monochrome speaker from Symbola and "🔊\uFE0E" the colored icon from Noto Color Emoji.
@adjusted-bunny
@adjusted-bunny 8 ай бұрын
I have been on Debian/Trixie with sway, too.
@Adam-mx8fp
@Adam-mx8fp 27 күн бұрын
how do you change your screen brightness with this setup?
@albertstrohmaier4034
@albertstrohmaier4034 8 ай бұрын
I'm really big on i3. Just came across sway for things that need Wayland. Is there a way to add visual goodies to sway? Like blur fade, rounded corners, etc? That's mostly what's holding me back. My i3 is awfully pretty.
@maximmk6446
@maximmk6446 7 ай бұрын
There is a fork of Sway called Swayfx, you may have a look into that
@gerryhoekema2561
@gerryhoekema2561 23 күн бұрын
How do you exit from the wofi launcher once it’s on the screen? I really like your videos!
@lsdowdle
@lsdowdle 8 ай бұрын
If I wanted to use sway (KDE Plasma user here), I'd probably use the Fedora SWAY spin or their immutable sway version named Sericea.
@enriquegomez2581
@enriquegomez2581 5 ай бұрын
Will this config also work on Ubuntu?
@alonso0188
@alonso0188 8 ай бұрын
Thank you manito.
@ogis
@ogis 7 ай бұрын
Nice video. By the way, sway works very well with Nvidia open source video driver.
@Whoknowsthatman
@Whoknowsthatman 8 ай бұрын
Thank you.
@LearnLinuxTV
@LearnLinuxTV 8 ай бұрын
You're welcome!
@raughboy188
@raughboy188 Ай бұрын
I am gonna build my desktop on sway and a dock so i don't need to waste my nerves on dealing with broken extensions, buggy kde plasma and so on. I am however gonna switch over to hyprland once trixie is out as a stable version.
@CuttinEJ
@CuttinEJ 8 ай бұрын
I would be more interested in seeing how to setup Hyprland on a laptop with Nvidia.
@edbeckerich3737
@edbeckerich3737 5 ай бұрын
Your sway config file missing a back slash, it gave me errors until I found that.. At the end of this paragraph # Screen locking (automatic, with a timeout) set $lock swaylock -c 550000 exec swayidle -w \ timeout 600 $lock \ timeout 570 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ before-sleep $lock
@SouthFacedWindows
@SouthFacedWindows 8 ай бұрын
I do want to try this out and then I wonder why I would pain myself when there is KDE and Cinnamon I am already used to!
@nintendowiids12
@nintendowiids12 8 ай бұрын
I mostly mess around with Sway for fun every once in a while. Setting it up to bring the perfect workflow for your usecase is way too time consuming lol.
@helloimatapir
@helloimatapir 8 ай бұрын
The tiling manager workflow is very fast and efficient once you get used to it. If you are already familiar with Vim bindings, it's not hard to jump in.
@ChaiBronz
@ChaiBronz 8 ай бұрын
why stacked instead of tabbed tho?
@nikolaus2688
@nikolaus2688 8 ай бұрын
My only problem with Sway is, that I can't use proprietary Nvidia drivers for the time being. But hey, i3 is nice too, and easy on resources.
@DarthDweeb
@DarthDweeb 8 ай бұрын
What do you need to do to get NVIDIA cards to work? INPUT. Need INPUT.
@mattvisaggio
@mattvisaggio 8 ай бұрын
In all seriousness, what advantage does not using a desktop environment offer personally? Is it reduced clutter? Faster working? I just don't understand the appeal yet, but I'm still learning
@Whoknowsthatman
@Whoknowsthatman 8 ай бұрын
Is a Linux super user thing,
@alexstone691
@alexstone691 4 ай бұрын
IMO customizability as you basically create a desktop from parts
@alionicle
@alionicle Ай бұрын
Late here, but it just gets rid of being distracted on having the home/desktop directory with too many elements, in "enables" productivity as in only enabling services that you need and opening specific programs/apps that you intend to work with, also multiple desktops Some of those functionalities may be enabled on other OS's (win, mac, even other linux desktop's managers) but WM let's you decide on what to operate, which function to add or get rid off, basically personalization
@tmendoza6
@tmendoza6 8 ай бұрын
your the man, the myth ,you are legend!
@puppy_BYTE
@puppy_BYTE 7 ай бұрын
Jay, since debian 12 (stable) does not support wayland does this work on 12?. debian 13 (testing) I believe support wayland...
@ChaiBronz
@ChaiBronz 6 ай бұрын
but Debian 12 (stable) supports wayland...
@alexstone691
@alexstone691 4 ай бұрын
Im using wayland on debian 12
@tmendoza6
@tmendoza6 3 ай бұрын
Not as sexy as hyprland but it is a tank!
@technicalthug
@technicalthug 8 ай бұрын
You mentioned many moons ago that you were getting treatment for ADHD. How is your medication/treatment and original symptoms now?
@michaelplaczek9385
@michaelplaczek9385 8 ай бұрын
Cries in Nvidia
@Aoitori365
@Aoitori365 8 ай бұрын
for nvidia hyprland seems to be better than sway
@kencreten7308
@kencreten7308 8 ай бұрын
I hadn't heard of it, but I... swayed in this direction.... Sorry.
@questofanswers
@questofanswers 2 ай бұрын
2 days of using and ricing debian ..... man I don't want TWM but well would hurt to watch
@Mangamaskinen
@Mangamaskinen 2 ай бұрын
I am on Debian 12 Bookworm too and I tried using Sway but the screen is all black whenever I go into it from SDDM. Whenever I run sway in KDE, it opens up but I cannot interact with it and the following errors are printed into the terminal: [wlr] [types/wlr_drm_lease_v1.c:705] No DRM backend supplied, failed to create wlr_drm_lease_v1_manager 00:00:00.071 [wlr] [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use Any solutions to this?
Diving into Neovim: Features, Benefits, and Basics
19:47
Learn Linux TV
Рет қаралды 61 М.
Sway Installation on Debian Bookworm
29:17
JustAGuy Linux
Рет қаралды 10 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 9 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 73 МЛН
My Tier List For Tiling Window Managers
26:28
DistroTube
Рет қаралды 148 М.
I Used Debian 12 For 5 Months - Long Term Review
46:13
The Linux Cast
Рет қаралды 107 М.
What the hell is a Tiling Window Manager? Linux For Newbs EP 2
12:33
10 Common Linux Issues and How to Fix Them
23:45
Learn Linux TV
Рет қаралды 76 М.
Are Linux Tiling Window Managers Worth It?
8:20
Michael Horn
Рет қаралды 82 М.
Why I Use Tiling Window Managers - And Why You Should Too
19:52
The Linux Cast
Рет қаралды 52 М.
OPEN SOURCE alternatives to the MOST POPULAR productivity apps!
15:37
The Linux Experiment
Рет қаралды 1,2 МЛН
Ranking Linux Distributions for 2024: a tier list for my use case !
20:35
The Linux Experiment
Рет қаралды 521 М.
How To Configure Multi Monitor In Wayland Sway
12:39
Brodie Robertson
Рет қаралды 23 М.
Linux Mint vs. Linux Mint Debian Edition: Which Is Better?
10:46
Learn Linux TV
Рет қаралды 105 М.
EXEED VX 2024: Не өзгерді?
9:06
Oljas Oqas
Рет қаралды 49 М.
Самый тонкий смартфон в мире!
0:55
Не шарю!
Рет қаралды 71 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,1 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 15 МЛН