All Projects → bakkeby → slock-flexipatch

bakkeby / slock-flexipatch

Licence: MIT license
An slock build with preprocessor directives to decide which patches to include during build time

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects
Roff
2310 projects

Projects that are alternatives of or similar to slock-flexipatch

Goblocks
Status bar for dwm
Stars: ✭ 50 (-13.79%)
Mutual labels:  suckless
libudev-zero
Daemonless replacement for libudev
Stars: ✭ 157 (+170.69%)
Mutual labels:  suckless
CleanDmenu
🚀 Floating and enhanced dmenu build
Stars: ✭ 25 (-56.9%)
Mutual labels:  suckless
jj
An evolution of the suckless ii(1) file-based IRC client
Stars: ✭ 80 (+37.93%)
Mutual labels:  suckless
dwm-vanitygaps
My dwm vanitygaps build (incl. individual patches)
Stars: ✭ 26 (-55.17%)
Mutual labels:  suckless
sent
a simple plaintext presentation tool
Stars: ✭ 22 (-62.07%)
Mutual labels:  suckless
ssu
Extremely simple su utility
Stars: ✭ 56 (-3.45%)
Mutual labels:  suckless
Nnn
n³ The unorthodox terminal file manager
Stars: ✭ 13,138 (+22551.72%)
Mutual labels:  suckless
mpris-ctl
Basic mpris player control for linux command line
Stars: ✭ 31 (-46.55%)
Mutual labels:  suckless
dotfiles
dotfiles for my beautiful rices!
Stars: ✭ 440 (+658.62%)
Mutual labels:  suckless
chadwm
Making dwm as beautiful as possible!
Stars: ✭ 619 (+967.24%)
Mutual labels:  suckless
st
Repatch repository of developed 'Vim Browse' and 'Alpha Focus Highlight' patches for simple terminal (st).
Stars: ✭ 25 (-56.9%)
Mutual labels:  suckless
smu
Simple MarkUp - markdown/commonmark like syntax
Stars: ✭ 21 (-63.79%)
Mutual labels:  suckless
sfm
simple file manager
Stars: ✭ 163 (+181.03%)
Mutual labels:  suckless
suckless-101
Guide on how to patch, compile and install suckless software.
Stars: ✭ 33 (-43.1%)
Mutual labels:  suckless
dotfiles
My configuration files for Linux and macOS
Stars: ✭ 20 (-65.52%)
Mutual labels:  suckless
voidwm
voidwm • sanely patched dwm
Stars: ✭ 32 (-44.83%)
Mutual labels:  suckless
patches
Collection of patches for dwm, st and dmenu
Stars: ✭ 202 (+248.28%)
Mutual labels:  suckless
st-history-vim
Development of the "vim patch" and a minimalist "history patch" for the suckless simple terminal (st).
Stars: ✭ 43 (-25.86%)
Mutual labels:  suckless
flexipatch-finalizer
A custom pre-processor for removing non-selected patches from flexipatch builds leaving a final patched build
Stars: ✭ 46 (-20.69%)
Mutual labels:  flexipatch

Similar to dwm-flexipatch this slock 1.5 (4f04554, 2022-10-04) project has a different take on patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched and the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.

For example to include the capscolor patch then you would only need to flip this setting from 0 to 1 in patches.h:

#define CAPSCOLOR_PATCH 1

Once you have found out what works for you and what doesn't then you should be in a better position to choose patches should you want to start patching from scratch.

Alternatively if you have found the patches you want, but don't want the rest of the flexipatch entanglement on your plate then you may want to have a look at flexipatch-finalizer; a custom pre-processor tool that removes all the unused flexipatch code leaving you with a build that contains the patches you selected.

Refer to https://tools.suckless.org/slock/ for details on the slock tool, how to install it and how it works.


Changelog:

2022-03-28 - Added the background image patch

2021-09-13 - Added the dwm logo patch

2021-09-09 - Added the auto-timeout, failure-command and secret-password patches

2021-06-08 - Added the color message patch

2020-08-03 - Added alpha, keypress_feedback and blur_pixelated_screen patches

2019-11-27 - Added xresources patch

2019-10-17 - Added capscolor, control clear, dpms, mediakeys, message, pam auth, quickcancel patches

2019-10-16 - Introduced flexipatch-finalizer

Patches included:

  • alpha

    • enables transparency for slock
    • intended to be combined with a compositor that can blur the transparent background
  • auto-timeout

    • allows for a command to be executed after a specified time of inactivity
  • background_image

    • sets the lockscreen picture to a background image
  • blur_pixelated_screen

    • sets the lockscreen picture to a blured or pixelated screenshot
  • capscolor

    • adds an additional color to indicate the state of Caps Lock
  • color-message

    • based on the message patch this patch lets you add a message to your lock screen using 24-bit color ANSI escape codes
  • control-clear

    • with this patch slock will no longer change to the failure color if a control key is pressed while the buffer is empty
    • this may be useful if, for example, you wake your monitor up by pressing a control key and don't want to spoil the detection of failed unlocking attempts
  • dpms

    • interacts with the Display Power Signaling and automatically shuts down the monitor after a configurable amount of seconds
    • the monitor will automatically be activated by pressing a key or moving the mouse and the password can be entered then
  • dwmlogo

    • draws the dwm logo which changes color based on the state
  • failure-command

    • allows for a command to be run after a specified number of incorrect attempts
  • keypress_feedback

    • draws random blocks on the screen to display keypress feedback
  • mediakeys

    • allows media keys to be used while the screen is locked, e.g. adjust volume or skip to the next song without having to unlock the screen first
  • message

    • this patch lets you add a custom message to your lock screen
  • pam-auth

    • replaces shadow support with PAM authentication support
  • quickcancel

    • cancel slock by moving the mouse within a certain time-period after slock started
    • the time-period can be defined in seconds with the setting timetocancel in the config.h
    • this can be useful if you forgot to disable xautolock during an activity that requires no input (e.g. reading text, watching video, etc.)
  • secret-password

    • allows for commands to be executed when the user enters special passwords
  • terminalkeys

    • adds key commands that are commonly used in terminal applications (in particular the login prompt)
  • unlockscreen

    • this patch keeps the screen unlocked, but keeps the input locked
    • that is, the screen is not affected by slock, but users will not be able to interact with the X session unless they enter the correct password
  • xresources

    • this patch adds the ability to get colors via Xresources
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].