Quick and dirty script to start Sway from TTY and a .desktop file for use in LightDM/GDM.
sudo install -vm755 start-sway /usr/bin/
sudo install -vm644 sway.desktop /usr/share/wayland-sessions/| import wave | |
| import matplotlib.pyplot as plt | |
| CPU_CLK = 1789773 | |
| SAMPLE_RATE = 48000 | |
| LENGTH_COUNTER_LENGTHS = [ | |
| 10, 254, 20, 2, 40, 4, 80, 6, 160, 8, 60, 10, 14, 12, 26, 14, | |
| 12, 16, 24, 18, 48, 20, 96, 22, 192, 24, 72, 26, 16, 28, 32, 30 | |
| ] |
Quick and dirty script to start Sway from TTY and a .desktop file for use in LightDM/GDM.
sudo install -vm755 start-sway /usr/bin/
sudo install -vm644 sway.desktop /usr/share/wayland-sessions/| #include <gtk/gtk.h> | |
| /* Login prompt text */ | |
| static const char *user_text = "Username"; | |
| /* Password prompt text */ | |
| static const char *pass_text = "Password"; | |
| /* Session name */ | |
| static const char *session = "sway"; | |
| /* GTK UI CSS */ | |
| static const gchar *style = |
| * { | |
| border: none; | |
| border-radius: 0; | |
| /* `otf-font-awesome` is required to be installed for icons */ | |
| font-family: Roboto, Helvetica, Arial, sans-serif; | |
| font-size: 13px; | |
| min-height: 0; | |
| } | |
| window#waybar { |