diff --git a/wm-workshop/inspiration/20211009154105_1280x800_scrot.png b/wm-workshop/inspiration/20211009154105_1280x800_scrot.png new file mode 100644 index 0000000000000000000000000000000000000000..25741bbcdd275d2e9eb0bf26fe9a4671ea20a543 Binary files /dev/null and b/wm-workshop/inspiration/20211009154105_1280x800_scrot.png differ diff --git a/wm-workshop/inspiration/20211013184708_maim.png b/wm-workshop/inspiration/20211013184708_maim.png new file mode 100644 index 0000000000000000000000000000000000000000..97bfcf0a757ce6c811162cb147a41a303aa29c8a Binary files /dev/null and b/wm-workshop/inspiration/20211013184708_maim.png differ diff --git a/wm-workshop/inspiration/20211019224950_maim.png b/wm-workshop/inspiration/20211019224950_maim.png new file mode 100644 index 0000000000000000000000000000000000000000..f8ab38318a3024bb4e786d35281ce93e7bd33c55 Binary files /dev/null and b/wm-workshop/inspiration/20211019224950_maim.png differ diff --git a/wm-workshop/inspiration/Screenshot_20210920_054843.png b/wm-workshop/inspiration/Screenshot_20210920_054843.png new file mode 100644 index 0000000000000000000000000000000000000000..f57b3639bdc50701277aa2896c4e971b729edc6b Binary files /dev/null and b/wm-workshop/inspiration/Screenshot_20210920_054843.png differ diff --git a/wm-workshop/inspiration/berrywm.png b/wm-workshop/inspiration/berrywm.png new file mode 100644 index 0000000000000000000000000000000000000000..3732a9ca3f985be269d17d6961eda8e7c698e4e0 Binary files /dev/null and b/wm-workshop/inspiration/berrywm.png differ diff --git a/wm-workshop/inspiration/bspwm.png b/wm-workshop/inspiration/bspwm.png new file mode 100644 index 0000000000000000000000000000000000000000..52e5bd29ab8ea40047f4a5c134683a0d8623df05 Binary files /dev/null and b/wm-workshop/inspiration/bspwm.png differ diff --git a/wm-workshop/inspiration/eiswm.png b/wm-workshop/inspiration/eiswm.png new file mode 100644 index 0000000000000000000000000000000000000000..7cf27b6b6df853138cc35bcc8fedbc577f19d3cd Binary files /dev/null and b/wm-workshop/inspiration/eiswm.png differ diff --git a/wm-workshop/inspiration/jc.png b/wm-workshop/inspiration/jc.png new file mode 100644 index 0000000000000000000000000000000000000000..16862195fffcc6e6463a05b33e7240a6143a409e Binary files /dev/null and b/wm-workshop/inspiration/jc.png differ diff --git a/wm-workshop/inspiration/source.txt b/wm-workshop/inspiration/source.txt new file mode 100644 index 0000000000000000000000000000000000000000..f218fb6dab6efa3af89ddde32929c95d4b63ef87 --- /dev/null +++ b/wm-workshop/inspiration/source.txt @@ -0,0 +1 @@ +All files are from somewhere on the internet and not my creation. diff --git a/wm-workshop/inspiration/zorro.gif b/wm-workshop/inspiration/zorro.gif new file mode 100644 index 0000000000000000000000000000000000000000..ddb8cdb208b343881ac850ee6ad6075ec16b074d Binary files /dev/null and b/wm-workshop/inspiration/zorro.gif differ diff --git a/wm-workshop/presentation/build.sh b/wm-workshop/presentation/build.sh new file mode 100755 index 0000000000000000000000000000000000000000..c474c9fa0eb3c3884e67342db6389c83abd4c62c --- /dev/null +++ b/wm-workshop/presentation/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash +echo "Building pdf..." +pandoc -t beamer --template template.tex --listings pres.md -o pres-part.pdf --pdf-engine pdflatex \ + && pandoc -t beamer --template template.tex --listings firstslide.md -o firstslide.pdf --pdf-engine pdflatex \ + && pdfunite firstslide.pdf pres-part.pdf pres.pdf \ + && rm firstslide.pdf pres-part.pdf \ + && echo "Build successful" diff --git a/wm-workshop/presentation/firstslide.md b/wm-workshop/presentation/firstslide.md new file mode 100644 index 0000000000000000000000000000000000000000..fe0c6d09f3285f5ac5965d71ab6ff57bbbaf71cd --- /dev/null +++ b/wm-workshop/presentation/firstslide.md @@ -0,0 +1,7 @@ +# Welcome to the Window Manager Workshop! + +* Please get your certificate and identifying documents ready + +* Slides available under thealternative.ch -> courses -> wm workshop + +* If there are any technical problems, let me know! diff --git a/wm-workshop/presentation/header.tex b/wm-workshop/presentation/header.tex new file mode 100644 index 0000000000000000000000000000000000000000..e9dd259ce3e9e9cbdafb5bd0dfa6c3055e30c577 --- /dev/null +++ b/wm-workshop/presentation/header.tex @@ -0,0 +1,133 @@ +\usepackage[T1]{fontenc} %pipes don't display properly without this +\usepackage[utf8]{inputenc} +\usepackage{listings} +\usepackage{color} +\usepackage{datapie} +\usepackage{multicol} +\usepackage{siunitx} %pretty measurement unit rendering +\usepackage{hyperref} %enable hyperlink for urls +\usepackage{caption} % needed to tweak caption size + + +\usefonttheme[onlymath]{serif} +\setcounter{MaxMatrixCols}{20} + +\DeclareSIUnit\pixel{px} + +\usecolortheme[RGB={37,68,113}]{structure} +\usetheme{Dresden} + +\newenvironment{figurehere} +{\def\@captype{figure}} +{} +\makeatother + +%commands to exclude sections from miniframes +\makeatletter +\let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry +\def\beamer@writeslidentry@miniframesoff{% + \expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally + {%else + % removed \addtocontents commands + \clearpage\beamer@notesactions% + } +} +\newcommand*{\miniframeson}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframeson} +\newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff} +\beamer@compresstrue +\makeatother + + +%various gray colors +\definecolor{slg}{gray}{0.25} +\definecolor{lg}{gray}{0.55} +\definecolor{vlg}{gray}{0.73} +\definecolor{tlg}{gray}{0.9} + +%TheAlt colors +\definecolor{ldorange}{HTML}{F18A20} +\colorlet{ldbright}{ldorange!70!white} % tinted version of orange, used in miniframes +\definecolor{ldblue}{HTML}{254471} + +%reduce caption font size: +\captionsetup{font={scriptsize,color=lg}} + +%do not prepend numbering/lettering to figures/subfigures +\captionsetup{labelformat=empty} %do not prepend letters to figure captions + +%Apply TheAlt colors to theme + % section titles in top navigation bar +\setbeamercolor{section in head/foot}{parent=palette tertiary,fg=ldorange} +\setbeamertemplate{section in head/foot shaded}{\color{ldbright}\usebeamertemplate{section in head/foot}} + % miniframes (little navigation circles) +\setbeamercolor*{mini frame}{fg=ldorange,bg=ldbright} +\setbeamertemplate{mini frame in other section}[default][0] +\setbeamertemplate{mini frame in other subsection}[default][0] + % others +\setbeamercolor{author in head/foot}{fg=white} +\setbeamercolor{subsection in head/foot}{fg=white} +\setbeamercolor{caption name}{fg=vlg} +\setbeamercolor{caption}{fg=vlg} +\setbeamercolor{frametitle}{fg=ldblue} + +\setbeamertemplate{caption}{\raggedright\insertcaption\par} +\setbeamertemplate{navigation symbols}{} +\setbeamertemplate{bibliography item}[text] + +\definecolor{mygreen}{rgb}{0,0.6,0} +\definecolor{mygray}{rgb}{0.5,0.5,0.5} +\definecolor{mymauve}{rgb}{0.58,0,0.82} + +\lstdefinestyle{custombash}{ + belowcaptionskip=1\baselineskip, + captionpos=, + breaklines=true, + frame=L, + xleftmargin=\parindent, + language=bash, + showstringspaces=false, + basicstyle=\scriptsize\ttfamily, + rulecolor=\color{tlg}, + backgroundcolor=\color{tlg}, + fillcolor=\color{tlg}, + rulesepcolor=\color{tlg}, + commentstyle=\itshape\color{purple!60!black}, + keywordstyle=\bfseries\color{ldorange!80!black}, + %keywordstyle=\bfseries\color{green!40!black}, + identifierstyle=\color{blue}, + stringstyle=\color{orange}, +} + +\lstset{language=Bash,style=custombash,caption={Descriptive Caption Text},label=DescriptiveLabel} + +\title{Bash Workshop} +\author{Aline Abler} + +\institute{\includegraphics[width=0.35\textwidth]{img/logo_blue.pdf}} + + +\renewcommand{\emph}[1]{\textcolor{ldorange}{#1}} +\newcommand{\soft}[1]{\textcolor{lg}{#1}} +\newcommand{\textt}[1]{\textcolor{blue}{\texttt{#1}}} +\newcommand{\bigtext}[1]{\centering\Huge \textbf{\textcolor{ldorange}{#1}}} + +%shortcut to insert small logo in footline +\def\logo{% + \resizebox{!}{3ex}{\includegraphics{img/logo_white.pdf}} +} + +% Define a custom footline that includes our logo +\setbeamertemplate{footline} +{% + \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot} + \usebeamerfont{title in head/foot}% + \insertshorttitle\hfill\insertframenumber + \end{beamercolorbox} + \begin{beamercolorbox}[wd=\paperwidth,ht=3.5ex,dp=1.625ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot} + \usebeamerfont{author in head/foot} + \raisebox{0.5ex}{\insertshortauthor}\hfill\raisebox{-0.5ex}{\logo} + \end{beamercolorbox} +} + diff --git a/wm-workshop/presentation/img/berrywm.png b/wm-workshop/presentation/img/berrywm.png new file mode 100644 index 0000000000000000000000000000000000000000..3732a9ca3f985be269d17d6961eda8e7c698e4e0 Binary files /dev/null and b/wm-workshop/presentation/img/berrywm.png differ diff --git a/wm-workshop/presentation/img/bspwm.png b/wm-workshop/presentation/img/bspwm.png new file mode 100644 index 0000000000000000000000000000000000000000..52e5bd29ab8ea40047f4a5c134683a0d8623df05 Binary files /dev/null and b/wm-workshop/presentation/img/bspwm.png differ diff --git a/wm-workshop/presentation/img/eiswm.png b/wm-workshop/presentation/img/eiswm.png new file mode 100644 index 0000000000000000000000000000000000000000..7cf27b6b6df853138cc35bcc8fedbc577f19d3cd Binary files /dev/null and b/wm-workshop/presentation/img/eiswm.png differ diff --git a/wm-workshop/presentation/img/jc.png b/wm-workshop/presentation/img/jc.png new file mode 100644 index 0000000000000000000000000000000000000000..16862195fffcc6e6463a05b33e7240a6143a409e Binary files /dev/null and b/wm-workshop/presentation/img/jc.png differ diff --git a/wm-workshop/presentation/img/logo_blue.pdf b/wm-workshop/presentation/img/logo_blue.pdf new file mode 100644 index 0000000000000000000000000000000000000000..dd60efc4c6899371b6086d097bd64d744d55b127 Binary files /dev/null and b/wm-workshop/presentation/img/logo_blue.pdf differ diff --git a/wm-workshop/presentation/img/logo_white.pdf b/wm-workshop/presentation/img/logo_white.pdf new file mode 100644 index 0000000000000000000000000000000000000000..74e15f9b659f0609691256ad2075f21bec24882a Binary files /dev/null and b/wm-workshop/presentation/img/logo_white.pdf differ diff --git a/wm-workshop/presentation/pres.md b/wm-workshop/presentation/pres.md new file mode 100644 index 0000000000000000000000000000000000000000..dff416efa095408d103224a9ebd2f566af002001 --- /dev/null +++ b/wm-workshop/presentation/pres.md @@ -0,0 +1,246 @@ +--- +author: +- Noah Marti +title: Window Manager Workshop +--- + +# Introduction + +## Introduction + +### What is this workshop about? + +Contents + +* An introduction by Noah Marti +* Lukas Tobler about his bar +* YOUR time + +### What can you do? + +Whatever you want + +* Rice your WM/DE on your own +* Rice your WM/DE with our help + +# Ricing Guide - Basics + +## Do you know the five thinking steps? + +### What is ricing? + +Why RICE + +* Racing Inspired Car Enhancements + +Ricing your Computer + +* Configuring the graphical part of your OS to suit your desires + +### The five steps of ricing + +* WM +* Basic config +* Intermdeiate config +* Advanced config +* Finishing touch + +### WM + +* Decide which WM/DE you want to use + +### Basic Configuration + +* keybindings +* autostart +* wallpaper + * image +* lockscreen + * image + * generated image + +### Intermediate Configuration + +* statusbar +* panel +* display on wallpaper +* terminal + +### Advanced Configuration + +Additional cool tools + +* ranger +* rofi +* dmenu + +* Just for fun + * neofetch (or similar) + * cmatrix + * pipes.sh + +### Finishing Touch + +* Configure your day-to-day programs + +# Ricing Guide - Details + +## Window Manager + +### Window Manager (or DE) + +* floating/tiling/dynamic +* have a look at the arch wiki [https://wiki.archlinux.org/title/Window\_manager] + * just test every WM :^) +* what language/config do they use? +* have a look at their homepage +* look at some screenshots in the web +* openbox, fvwm, berrywm, i3, herbstluftwm, bspwm, eiswm + +## Basic + +### Keybindings + +* usually comes with your WM +* sxhkd + +### Autostart + +* usually comes with your WM + +### Wallpaper & Lockscreen + +* Wallpaper + * Any image you like + * Set with feh, nitrogen, bgs, hsetroot, habak, display + * Derive a colorscheme from it +* Lockscreen + * Program to lock screen + * Image + * Generate Image with a skript (ImageMagick) + +## Intermediate + +### Statusbar + +* Polybar +* Lemonbar +* dzen2 (write your own) + +### Panel + +* xfce4-panel +* tint2 + +### Info on wallpaper + +* conky + +### Terminal + +* Whatever you like +* What do you want your terminal to support? +* Shell + * bash (standard) + * csh, fsh, ... + +## Advanced + +### Additional things to have a look at + +* neofetch + * display system specifications in terminal +* redshift + * "night mode" for your screen + * alternative: xrandr gamma correction + +* pywal + * create and apply colorscheme + +### Additional things to have a look at + +* rofi + * create menues +* dmenu + * program launcher +* .Xresources + * [https://wiki.archlinux.org/title/X\_resources] + * configure parameters for X client applications + +# Examples + +## Some examples + +### i3 + i3blocks + +\includegraphics[width=0.8\textwidth]{img/jc.png} + +### eiswm + +\includegraphics[width=0.8\textwidth]{img/eiswm.png} + +### berrywm + +\includegraphics[width=0.8\textwidth]{img/berrywm.png} + +### bspwm + +\includegraphics[width=0.8\textwidth]{img/bspwm.png} + +## More examples + +### Reddit + +* unixporn +* search for your specific wm + +# Writing your own programs + +## Writing your own WM + +### Writing your own WM + +Dont + +### Framework + +Graphic Server + +* Xorg +* Wayland + +### Where to start + +* from scratch +* start with TinyWM [http://incise.org/tinywm.html] +* fork the WM you like most + +### eiswm + +* a fork of dwm + * pretty lightweight + * written in C + * patches +* just rename it and pretend its your work :^) +* additional features + * gaps + * battery charge + * time + * more layouts + +## Writing your own bar + +### ggbar + +\bigtext{ggbar by Lukas Tobler} + +## Material + +### Course material +* These slides and additional content: \ + \soft{http://thealternative.ch} + +<!-- --> + +* \soft{Theme by} Christian Horea, [CC BY](https://creativecommons.org/licenses/by/4.0/) +* \soft{Original Presentation by} Noah Marti diff --git a/wm-workshop/presentation/pres.pdf b/wm-workshop/presentation/pres.pdf new file mode 100644 index 0000000000000000000000000000000000000000..6c379e4882fc092938c04a8a7e42f78bcb76ead1 Binary files /dev/null and b/wm-workshop/presentation/pres.pdf differ diff --git a/wm-workshop/presentation/scripts/example b/wm-workshop/presentation/scripts/example new file mode 100644 index 0000000000000000000000000000000000000000..c9320d232395be87726c25273a66a49302c3621c --- /dev/null +++ b/wm-workshop/presentation/scripts/example @@ -0,0 +1,12 @@ +#!/bin/bash + +echo Hello World + +echo Bash is awesome + +# Now some fun stuff: +sudo zypper update +notify-send "Update complete" +feh --bg-fill "pictures/fancy_wallpaper.jpg" +youtube-dl -o "Video.%(ext)s" "https://www.youtube.com/watch?v=lAIGb1lfpBw" + diff --git a/wm-workshop/presentation/template.tex b/wm-workshop/presentation/template.tex new file mode 100644 index 0000000000000000000000000000000000000000..bb4ac0711f1bc5064bc73ad793c7ed468f0529c3 --- /dev/null +++ b/wm-workshop/presentation/template.tex @@ -0,0 +1,188 @@ +\documentclass[aspectratio=169,12pt]{beamer} +\usepackage{lmodern} +\usepackage[T1]{fontenc} %pipes don't display properly without this +\usepackage[utf8]{inputenc} +\usepackage{listings} +\usepackage{color} +\usepackage{datapie} +\usepackage{multicol} +\usepackage{siunitx} %pretty measurement unit rendering +\usepackage{hyperref} %enable hyperlink for urls +\usepackage{caption} % needed to tweak caption size + +\newcommand{\passthrough}[1]{#1} + +\usefonttheme[onlymath]{serif} +\setcounter{MaxMatrixCols}{20} + +\DeclareSIUnit\pixel{px} + +\usecolortheme[RGB={37,68,113}]{structure} +\usetheme{Dresden} + +\newenvironment{figurehere} +{\def\@captype{figure}} +{} +\makeatother + +%commands to exclude sections from miniframes +\makeatletter +\let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry +\def\beamer@writeslidentry@miniframesoff{% + \expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally + {%else + % removed \addtocontents commands + \clearpage\beamer@notesactions% + } +} +\newcommand*{\miniframeson}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframeson} +\newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff} +\beamer@compresstrue +\makeatother + + +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} + + +%various gray colors +\definecolor{slg}{gray}{0.25} +\definecolor{lg}{gray}{0.55} +\definecolor{vlg}{gray}{0.73} +\definecolor{tlg}{gray}{0.9} + +%TheAlt colors +\definecolor{ldorange}{HTML}{F18A20} +\colorlet{ldbright}{ldorange!70!white} % tinted version of orange, used in miniframes +\definecolor{ldblue}{HTML}{254471} + +%%Theme colors +%\definecolor{thgreen}{HTML}{A1A92C} +%\definecolor{thmauve}{HTML}{97284D} + +%Theme colors +\definecolor{thgreen}{HTML}{539727} +\definecolor{thmauve}{HTML}{572272} + +%reduce caption font size: +\captionsetup{font={scriptsize,color=lg}} + +%do not prepend numbering/lettering to figures/subfigures +\captionsetup{labelformat=empty} %do not prepend letters to figure captions + +%Apply TheAlt colors to theme + % section titles in top navigation bar +\setbeamercolor{section in head/foot}{parent=palette tertiary,fg=ldorange} +\setbeamertemplate{section in head/foot shaded}{\color{ldbright}\usebeamertemplate{section in head/foot}} + % miniframes (little navigation circles) +\setbeamercolor*{mini frame}{fg=ldorange,bg=ldbright} +\setbeamertemplate{mini frame in other section}[default][0] +\setbeamertemplate{mini frame in other subsection}[default][0] + % others +\setbeamercolor{author in head/foot}{fg=white} +\setbeamercolor{subsection in head/foot}{fg=white} +\setbeamercolor{caption name}{fg=vlg} +\setbeamercolor{caption}{fg=vlg} +\setbeamercolor{frametitle}{fg=ldblue} + +\setbeamertemplate{caption}{\raggedright\insertcaption\par} +\setbeamertemplate{navigation symbols}{} +\setbeamertemplate{bibliography item}[text] + +\definecolor{mygreen}{rgb}{0,0.6,0} +\definecolor{mygray}{rgb}{0.5,0.5,0.5} +\definecolor{mymauve}{rgb}{0.58,0,0.82} + +\lstdefinestyle{custombash}{ + belowcaptionskip=1\baselineskip, + captionpos=, + breaklines=true, + frame=L, + xleftmargin=\parindent, + language=bash, + morestring=[b]', + morekeywords=[2]{sudo,zypper,notify-send,feh,youtube-dl,sort,tee,head,tail,shuf,mpv,find,convert,xrandr,curl,wget,grep,xdotool,rm,cp,mv,touch,bash,chmod,mkdir,rsync,mplayer,mpv,xdotool,jshon}, + showstringspaces=false, + basicstyle=\scriptsize\ttfamily, + rulecolor=\color{tlg}, + backgroundcolor=\color{tlg}, + fillcolor=\color{tlg}, + rulesepcolor=\color{tlg}, + commentstyle=\itshape\color{thmauve!60!black}, + keywordstyle=\bfseries\color{thgreen}, + identifierstyle=\color{ldblue}, + stringstyle=\color{thmauve} +} + +\lstset{ + style=custombash, + caption={Descriptive Caption Text}, + label=DescriptiveLabel +} + +$if(title)$ +\title{$title$} +$endif$ +$if(subtitle)$ +\subtitle{$subtitle$} +$endif$ +$if(author)$ +\author{$for(author)$$author$$sep$ \and $endfor$} +$endif$ + +\institute{\includegraphics[width=0.35\textwidth]{img/logo_blue.pdf}} +\date{$date$} + +\renewcommand{\emph}[1]{\textcolor{ldorange}{#1}} +\let\oldtextbf\textbf +\renewcommand{\textbf}[1]{\textcolor{ldorange}{\oldtextbf{#1}}} +\newcommand{\soft}[1]{\textcolor{lg}{#1}} +\newcommand{\textt}[1]{\textcolor{blue}{\texttt{#1}}} +\newcommand{\bigtext}[1]{\centering\Huge \textbf{\textcolor{ldorange}{#1}}\normalsize} + +%shortcut to insert small logo in footline +\def\logo{% + \resizebox{!}{3ex}{\includegraphics{img/logo_white.pdf}} +} + +% Define a custom footline that includes our logo +\setbeamertemplate{footline} +{% + \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot} + \usebeamerfont{title in head/foot}% + \insertshorttitle\hfill\insertframenumber + \end{beamercolorbox} + \begin{beamercolorbox}[wd=\paperwidth,ht=3.5ex,dp=1.625ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot} + \usebeamerfont{author in head/foot} + \raisebox{0.5ex}{\insertshortauthor}\hfill\raisebox{-0.5ex}{\logo} + \end{beamercolorbox} +} + +\begin{document} + +$if(title)$ +\frame{\titlepage} +$endif$ + +$for(include-before)$ +$include-before$ + +$endfor$ + +$if(toc)$ +\begin{frame} +\tableofcontents[hideallsubsections] +\end{frame} + +$endif$ + +$body$ + +$for(include-after)$ +$include-after$ + +$endfor$ + +\end{document} diff --git a/wm-workshop/programs.md b/wm-workshop/programs.md new file mode 100644 index 0000000000000000000000000000000000000000..fd5bb2c94635702e2beeb6df5b139ffb609f4a2c --- /dev/null +++ b/wm-workshop/programs.md @@ -0,0 +1,28 @@ +# Additional resources + +* Terminal emulator +* Shell + * bash (standard) + * csh + * fsh +* statusbar + * polybar + * lemonbar + * dzen2 (write your own) +* panel + * xfce4-panel + * tint2 +* conky +* ImageMagick +* neofetch +* i3lock +* Programming languages + * bash + * python + * ruby +* pywal +* rofi +* dmenu +* neofetch +* redshift (xrandr gamma correction) + diff --git a/wm-workshop/resources/lockscript1.sh b/wm-workshop/resources/lockscript1.sh new file mode 100755 index 0000000000000000000000000000000000000000..40868e73e113419a2e980d812c0262be1e2318bb --- /dev/null +++ b/wm-workshop/resources/lockscript1.sh @@ -0,0 +1,4 @@ +#!/bin/bash +scrot /tmp/screenshot.png +convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png +i3lock -i /tmp/screenshotblur.png diff --git a/wm-workshop/resources/lockscript2.sh b/wm-workshop/resources/lockscript2.sh new file mode 100755 index 0000000000000000000000000000000000000000..b129e04d276aebbd1ee6221f1f85f19e0a67249b --- /dev/null +++ b/wm-workshop/resources/lockscript2.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# Glichting screen lock script by xzvf + +pngfile="/tmp/sclock.png" +bmpfile="/tmp/sclock.bmp" +glitchedfile="/tmp/sclock_g.bmp" + +scrot -z $pngfile + +# convert to bmp and pixelate +convert convert -rotate -90 $pngfile $bmpfile + + +for a in {1,2,4,5,10} +do + # Glitch it with sox FROM: https://maryknize.com/blog/glitch_art_with_sox_imageconvert_and_vim/ + sox -t ul -c 1 -r 48k $bmpfile -t ul $glitchedfile trim 0 90s : echo 1 1 $((a*2)) 0.1 + # Rotate it by 90 degrees + convert convert -scale $((100/(a)))% -scale $((100*(a)))% -rotate 90 $glitchedfile $bmpfile +done + + +# Add lock icon, pixelate and convert back to png +convert convert -gravity center -font "Hack-Bold-Nerd-Font-Complete-Mono" \ + -pointsize 200 -draw "text 0,0 ''" -channel RGBA -fill '#bf616a' \ + $bmpfile $pngfile + +i3lock -e -i $pngfile +#feh $pngfile +rm $pngfile $bmpfile $glitchedfile