Skip to content

Instantly share code, notes, and snippets.

@LukasDoesDev
Last active March 10, 2021 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LukasDoesDev/6a50f0271b7885274d9470353690e1d8 to your computer and use it in GitHub Desktop.
Save LukasDoesDev/6a50f0271b7885274d9470353690e1d8 to your computer and use it in GitHub Desktop.
suckless config

My suckless config

Color:

#9d5fae

Fonts:

mononoki:size=10

Jetbrains Mono:style=Regular:size=10

Noto Color Emoji:pixelsize=12:antialias=true:autohint=true

Nerd Font Symbols Mono:size=80

externalpipe stuff:

st-urlhandler

st-copyout

static char *openurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -o", "externalpipe", NULL };
static char *copyurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -c", "externalpipe", NULL };
static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL };


static Shortcut shortcuts[] = {
...
	{ MODKEY,               XK_l,           externalpipe,   {.v = openurlcmd } },
	{ MODKEY,               XK_y,           externalpipe,   {.v = copyurlcmd } },
	{ MODKEY,               XK_o,           externalpipe,   {.v = copyoutput } },
};

dwm Patches:

Centeredmaster

Centeredwindowname

Cyclelayouts (adds MOD1+Control+PLUS and MOD1+Control+MINUS to cycle layouts)

Gridmode

Layoutmenu

Moveresize

Noborder

Colorbar

Launcher (buttons in bar)

Reorganizetags (ex. if windows A, B, C are tagged on tags 1, 5, 9 respectively when this function is called, they will now be on 1, 2, 3. The focused window will remain focused)

Sticky (Make seen on all tags)

Uselessgap (Add gaps around windows and between windows and screen sides)

Zoomswap (Swap windows on zoom)

st Patches:

Boxdraw

Alpha

Bold is not bright

Clipboard

Delkey

Dynamic cursor color

externalpipe

universcroll

dmenu Patches:

Border

Center

dwm layouts:

tile:

MOD1+T

Set master/zoom with MOD1+Enter

Increment master with MOD1+I

Decrement master with MOD1+D

Increment master area size with MOD1+L

Decrement master area size with MOD1+H

floating:

MOD1+F

monocle (fullscreen):

MOD1+M

centeredmaster:

MOD1+U

columns:

MOD1+C

grid:

MOD1+G

Application shortcuts:

Open a new terminal with MOD1+Shift+Return

Open firefox with MOD1+Shift+F

Open flameshot with MOD1+Shift+S

Open dmenu with MOD1+P

Tag shortcuts:

Apply tag to window with MOD1+Shift+[1..n]

Toggle tag for window with MOD1+Control+Shift+[1..n]

Apply all tags to window with MOD1+Shift+0

View tag with MOD1+[1..n]

Other shortcuts:

Change focused window with MOD1+J or K

Toggle the bar with MOD1+B

Quit dwm with MOD1+Shift+Q

Mousing around (Hover over window you want to edit):

Move window by holding MOD1+Button1 and then dragging the mouse (This will switch the window to the floating layout)

Toggle layout between tiled and floating with MOD1+Button3 (Middleclick)

Resize window by holding MOD1+Button2 and then dragging the mouse (This will switch the window to the floating layout)

Tags mouse control:

Click on tag to view it Right click tag to toggle it MOD1+Click to apply tag to focused window

TODO:

make MOD1+C launch "st" "-e" "bc"

st shortcuts:

TERMMOD = Control + Shift

TERMMOD + PageUp   = zoom(1)
TERMMOD + PageDown = zoom(-1)
TERMMOD + Home     = zoomreset(0)
Shift + Insert     = paste()
TERMMOD + V        = paste()
TERMMOD + C        = copy() /* This is what you select with mouse */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment