From fc6abac4ca06f06179e429f0d42d64784ccc4166 Mon Sep 17 00:00:00 2001 From: Steve Ayerhart Date: Tue, 18 Aug 2020 08:43:06 -0400 Subject: [PATCH] starting sway documentation --- guix/abbith.scm | 2 +- guix/package-manifests.scm | 109 ---------------------- sway/README.org | 179 +++++++++++++++++++------------------ swaybar/README.org | 2 +- swaylock/README.org | 69 ++++++++++++++ 5 files changed, 161 insertions(+), 200 deletions(-) delete mode 100644 guix/package-manifests.scm create mode 100644 swaylock/README.org diff --git a/guix/abbith.scm b/guix/abbith.scm index b64c5ba..cb8d0d6 100644 --- a/guix/abbith.scm +++ b/guix/abbith.scm @@ -5,7 +5,7 @@ (bbbsd packages virtualization)) (use-service-modules desktop - xorg + xorg avahi dbus sound diff --git a/guix/package-manifests.scm b/guix/package-manifests.scm deleted file mode 100644 index f779002..0000000 --- a/guix/package-manifests.scm +++ /dev/null @@ -1,109 +0,0 @@ -(setenv "GUIX_PACKAGE_PATH" "/home/steve/Source/bbbsd/:$GUIX_PACKAGE_PATH") - -(packages->manifest - (map (compose list specification->package+output symbol->string) - '(glibc-locales - - - gcc-toolchain gdb - strace - - curl wget rsync - openssh gnupg pinentry - - zip unzip bzip2 tar xz - file net-tools nmap - - git - - guile-bytestructures - guile-chickadee - guile-config - guile-fibers - guile-json - guile-irregex - - vim emacs - emacs-guix - emacs-magit emacs-magit-todos - emacs-anzu emacs-better-defaults - emacs-bash-completion emacs-diminish - emacs-emojify - emacs-evil - emacs-evil-anzu emacs-evil-collection - emacs-evil-magit emacs-evil-org - emacs-evil-surround - emacs-flycheck emacs-geiser - emacs-js2-mode - emacs-nodejs-repl emacs-npm-mode - emacs-markdown-mode - emacs-web-mode - emacs-nix-mode - emacs-racket-mode - emacs-shell-switcher - emacs-slack - - node - racket - - - virt-manager virt-viewer - - guile-readline - - graphicsmagick graphviz inkscape - - vlc ffmpeg audacity - flac shntool vorbis-tools - alsa-utils - gstreamer gst-transcoder - gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly - kodi kodi-cli - - aspell aspell-dict-en - hunspell hunspell-dict-en - - evince - - xkbutils xmodmap xprop xwininfo xev xcb-util - arandr - - font-adobe100dpi - font-adobe75dpi - font-anonymous-pro - font-alias - font-anonymous-pro - font-awesome - font-bitstream-vera - font-comic-neue - font-dejavu - font-fira-code - font-fira-mono - font-fira-sans - font-gnu-freefont-ttf - font-gnu-unifont - font-go - font-google-material-design-icons - font-google-noto - font-google-roboto - font-hack - font-ibm-plex - font-inconsolata - font-iosevka - font-isas-misc - font-lato - font-liberation - font-linuxlibertine - font-mathjax - font-micro-misc - font-misc-misc - font-mutt-misc - font-sony-misc - font-sun-misc - font-tamzen - font-terminus - font-ubuntu - font-un - font-util - font-xfree86-type1 - fontconfig))) diff --git a/sway/README.org b/sway/README.org index 457ff22..404d334 100644 --- a/sway/README.org +++ b/sway/README.org @@ -1,95 +1,96 @@ #+TITLE: Sway Config -#+PROPERTY: header-args+ :mkdir p yes +#+PROPERTY: header-args+ :mkdirp yes #+PROPERTY: header-args+ :tangle ~/.config/sway/config -* Sway - :PROPERTIES: - :header-args: :tangle ~/.config/sway/config :mkdirp true - :END: -** Variables - #+begin_src conf - set $mod Mod4 - set $term gnome-terminal - #+end_src -** Window Borders - #+begin_src conf - default_border pixel 0 - default_floating_border normal - #+end_src -** Layouts - Changing the container layout - #+begin_src conf - bindsym $mod+s layout stacking - bindsym $mod+w layout tabbed - bindsym $mod+e layout toggle split - #+end_src -** Focus - Change focus between tiling / floating windows - #+begin_src conf - bindsym $mod+space focus mode_toggle - #+end_src - Focus the parent container - #+begin_src conf - bindsym $mod+a focus parent - #+end_src -** Workspaces - Define name for default workspaces for which key bindings will be configured. - Use variables to avoid repeating the names in multiple places. - #+begin_src conf - 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" - #+end_src - Switching to workspaces - #+begin_src conf - bindsym $mod+1 workspace $ws1 - bindsym $mod+2 workspace $ws2 - bindsym $mod+3 workspace $ws3 - bindsym $mod+4 workspace $ws4 - bindsym $mod+5 workspace $ws5 - bindsym $mod+6 workspace $ws6 - bindsym $mod+7 workspace $ws7 - bindsym $mod+8 workspace $ws8 - bindsym $mod+9 workspace $ws9 - bindsym $mod+0 workspace $ws10 - #+end_src - Move focused container to workspace - #+begin_src conf +* Variables + Logo key + #+begin_src conf + set $mod Mod4 + #+end_src + #+begin_src conf + set $term gnome-terminal --hide-menubar + set $menu dmenu_run + #+end_src +* Window Borders + #+begin_src conf + default_border pixel 0 + default_floating_border normal + #+end_src +* Layouts + Changing the container layout + #+begin_src conf + bindsym $mod+s layout stacking + bindsym $mod+w layout tabbed + bindsym $mod+e layout toggle split + #+end_src +* Focus + Change focus between tiling / floating windows + #+begin_src conf + bindsym $mod+space focus mode_toggle + #+end_src + Focus the parent container + #+begin_src conf + bindsym $mod+a focus parent + #+end_src +* Workspaces + Define name for default workspaces for which key bindings will be configured. + Use variables to avoid repeating the names in multiple places. + #+begin_src conf + 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" + #+end_src + Switching to workspaces + #+begin_src conf + bindsym $mod+1 workspace $ws1 + bindsym $mod+2 workspace $ws2 + bindsym $mod+3 workspace $ws3 + bindsym $mod+4 workspace $ws4 + bindsym $mod+5 workspace $ws5 + bindsym $mod+6 workspace $ws6 + bindsym $mod+7 workspace $ws7 + bindsym $mod+8 workspace $ws8 + bindsym $mod+9 workspace $ws9 + bindsym $mod+0 workspace $ws10 + #+end_src + Move focused container to workspace + #+begin_src conf - bindsym $mod+Shift+1 move container to workspace $ws1 - bindsym $mod+Shift+2 move container to workspace $ws2 - bindsym $mod+Shift+3 move container to workspace $ws3 - bindsym $mod+Shift+4 move container to workspace $ws4 - bindsym $mod+Shift+5 move container to workspace $ws5 - bindsym $mod+Shift+6 move container to workspace $ws6 - bindsym $mod+Shift+7 move container to workspace $ws7 - bindsym $mod+Shift+8 move container to workspace $ws8 - bindsym $mod+Shift+9 move container to workspace $ws9 - bindsym $mod+Shift+0 move container to workspace $ws10 - #+end_src -** Input Configurations - Swap `ctrl` for `caps lock` - #+begin_src conf - input * { - xkb_options ctrl:swapcaps - } - #+end_src + bindsym $mod+Shift+1 move container to workspace $ws1 + bindsym $mod+Shift+2 move container to workspace $ws2 + bindsym $mod+Shift+3 move container to workspace $ws3 + bindsym $mod+Shift+4 move container to workspace $ws4 + bindsym $mod+Shift+5 move container to workspace $ws5 + bindsym $mod+Shift+6 move container to workspace $ws6 + bindsym $mod+Shift+7 move container to workspace $ws7 + bindsym $mod+Shift+8 move container to workspace $ws8 + bindsym $mod+Shift+9 move container to workspace $ws9 + bindsym $mod+Shift+0 move container to workspace $ws10 + #+end_src +* Input Configurations + Swap `ctrl` for `caps lock` + #+begin_src conf + input * { + xkb_options ctrl:swapcaps + } -** Theme - =class border background text indicator child-border= - #+begin_src conf - client.focused #c0c5ce #c0c5ce #1e1e1e #000000 #000000 - client.focused_inactive #000000 #232830 #6b0000 #000000 #000000 - client.unfocused #c0c5ce #2f3237 #6b6b6b #000000 #000000 - client.urgent #000000 #000000 #bbbbbb #000000 #000000 - client.placeholder #000000 #000000 #bbbbbb #000000 #000000 + input * kxb_numlock enable + #+end_src - client.background #FFFFFF - #+end_src +* Theme + =class border background text indicator child-border= + #+begin_src conf + client.focused #C0C5CE #C0C5CE #1B2229 #C0C5CE #C0C5CE + client.focused_inactive #232830 #232830 #C0C5CE #232830 #232830 + client.unfocused #1B2229 #1B2229 #C0C5CE #1B2229 #1B2229 + client.urgent #65737E #65737E #D08770 #65737E #65737E + client.placeholder #4F5B66 #4F5B66 #D08770 #4F5B66 #4F5B66 + client.background #2B303B + #+end_src diff --git a/swaybar/README.org b/swaybar/README.org index c1f48ef..8fb42a5 100644 --- a/swaybar/README.org +++ b/swaybar/README.org @@ -1,3 +1,3 @@ #+TITLE: Swaybar Config -#+PROPERTY: header-args+ :mkdir p yes +#+PROPERTY: header-args+ :mkdirp yes #+PROPERTY: header-args+ :tangle ~/.config/swaybar/config diff --git a/swaylock/README.org b/swaylock/README.org new file mode 100644 index 0000000..69f91bb --- /dev/null +++ b/swaylock/README.org @@ -0,0 +1,69 @@ +#+TITLE: Swaylock Config +#+PROPERTY: header-args+ :mkdirp yes +#+PROPERTY: header-args+ :tangle ~/.config/swaylock/config + +[[https:github.com/swaywm/swaylock][Swaylock]] is a screen locking utility for Wayland compositors. I use the [[https://github.com/mortie/swaylock-effects][swaylock-effects]] fork + +* Options + When an empty password is provided, do not validate it. + #+begin_src conf + ignore-empty-password + #+end_src + Always show the indicator. + #+begin_src conf + indicator + #+end_src + Show a clock in the indicator. + #+begin_src conf + clock + #+end_src + Use screenshots instead of an image on disk or a color. + #+begin_src conf + screenshots + #+end_src + Give a 30 second grace where I don't have to input the password + #+begin_src conf + grace=30 + #+end_src +* Appearance + Pixelate the screenshots with a fade-in just enough to not be able to read the text + and apply a vignette effect. + #+begin_src conf + fade-in=2 + effect-pixelate=5 + effect-vignette=0.5:0.5 + #+end_src + The format for the date and time + =21:00= + =Mon, September 16= + #+begin_src conf + font=Ubuntu + timestr=%R + datestr=%a, %B %e + #+end_src + Colorscheme + #+begin_src conf + indicator-radius=250 + indicator-thickness=8 + + inside-color=2b303b + inside-wrong-color=d08770 + inside-clear-color=1b2229 + inside-ver-color=c0c5ce + + ring-color=232830 + ring-wrong-color=d08770 + ring-clear-color=c0c5ce + ring-ver-color=c0c5ce + + + line-color=2b303b + + key-hl-color=c0c5ce + bs-hl-color=2b303b + + text-color=c0c5ce + text-ver-color=232830 + text-clear-color=c0c5ce + text-wrong-color=1b2229 + #+end_src