Compare commits

..

11 Commits

Author SHA1 Message Date
2bfa726363 formatting, added shortcuts for keyboard layout switch
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-23 16:25:40 +01:00
62cd0cb2cb bottom bar
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-23 15:49:18 +01:00
5c907737ef Update .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-21 20:14:03 +01:00
bc610eadd8 Update .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-21 20:13:23 +01:00
4f4f1dad3a Update .drone.yml
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-21 20:11:20 +01:00
844da04cc3 Add .drone.yml
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-21 20:09:23 +01:00
07e5a6dcc3 latest update 2023-11-16 23:53:30 +01:00
5986b69f7b latest 2023-10-15 00:01:47 +02:00
97fba86edb latest stable 2023-05-31 15:05:05 +02:00
dddc54c15e update 2022-12-12 15:59:14 +01:00
b5d419b69d update 2022-12-08 22:52:36 +00:00
7 changed files with 70 additions and 48 deletions

10
.drone.yml Normal file
View File

@@ -0,0 +1,10 @@
---
kind: pipeline
name: default
steps:
- name: build
image: gcc
commands:
- rm config.h
- make clean

View File

@@ -4,18 +4,21 @@
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const int topbar = 0; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
static const char dmenufont[] = { "monospace:size=10" };
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
static const char col_main[] = "#383838";
static const char col_background[] = "#151515";
static const char col_alert[] = "#a55";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
/* fg bg border */
[SchemeNorm] = { col_gray3, col_background, col_gray2 },
[SchemeSel] = { col_gray4, col_main, col_alert },
};
/* tagging */
@@ -56,28 +59,26 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "kitty", NULL };
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_main, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "alacritty", NULL };
static const char *slockcmd[] = { "slock", NULL };
static const char *brightness[2][3] = {{"backlight_control", "+5", NULL}, {"backlight_control", "-5", NULL}};
// Volume Commands
static const char *volume[3][4] = { {
"amixer", "set", "Master", "10%+"
},{
"amixer", "set", "Master", "10%-"
},{
"amixer", "set", "Master", "toggle"
}
};
static const char *brightness[3][4] = { {"xbacklight", "-inc", "5"}, {"xbacklight", "-dec", "5"} };
static const char *volume[3][4] = { {"pamixer", "-i", "10"}, {"pamixer", "-d", "10"}, {"pamixer", "--toggle-mute"} };
static const char *xkbmapus[] = { "setxkbmap", "us", NULL };
static const char *xkbmapcz[] = { "setxkbmap", "cz", "qwerty", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } },
{ 0, 233, spawn, {.v = brightness[0]} },
{ 0, 232, spawn, {.v = brightness[1]} },
{ 0, 123, spawn, {.v = volume[0]} },
{ 0, 122, spawn, {.v = volume[1]} },
{ 0, 121, spawn, {.v = volume[2]} },
/* { MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } }, */
{ MODKEY|ShiftMask, 46, spawn, SHCMD("setxkbmap us; slock") },
{ 0, 233, spawn, {.v = brightness[0]} },
{ 0, 232, spawn, {.v = brightness[1]} },
{ 0, 123, spawn, {.v = volume[0]} },
{ 0, 122, spawn, {.v = volume[1]} },
{ 0, 121, spawn, {.v = volume[2]} },
{ MODKEY|ShiftMask, 65, spawn, SHCMD("setxkbmap -query | grep 'us' && setxkbmap cz qwerty || setxkbmap us")},
{ MODKEY|ShiftMask, 156, spawn, SHCMD("setxkbmap -query | grep 'us' && setxkbmap cz qwerty || setxkbmap us")},
{ MODKEY, 33, spawn, {.v = dmenucmd } }, // p
{ MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return
{ MODKEY, 56, togglebar, {0} }, // b
@@ -111,7 +112,12 @@ static const Key keys[] = {
TAGKEYS( 17, 7) // 8
TAGKEYS( 18, 8) // 9
{ MODKEY|ShiftMask, 24, quit, {0} }, // q
{ MODKEY, 127, spawn, SHCMD("setxkbmap us; slock & sleep 0.2; loginctl suspend") }, // Pause
{ 0, 107, spawn, SHCMD("shotgun $(slop -f '-i %i -g %g') - | tee /home/$USER/Pictures/Screenshots/$(date +'%F_%T').png | xclip -t 'image/png' -selection c") },
{ MODKEY, 30, spawn, {.v = xkbmapus } },
{ MODKEY, 54, spawn, {.v = xkbmapcz } },
};
/* button definitions */

View File

@@ -4,18 +4,21 @@
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const int topbar = 0; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
static const char dmenufont[] = { "monospace:size=10" };
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
static const char col_main[] = "#383838";
static const char col_background[] = "#151515";
static const char col_alert[] = "#a55";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
/* fg bg border */
[SchemeNorm] = { col_gray3, col_background, col_gray2 },
[SchemeSel] = { col_gray4, col_main, col_alert },
};
/* tagging */
@@ -56,28 +59,26 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "kitty", NULL };
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_main, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "alacritty", NULL };
static const char *slockcmd[] = { "slock", NULL };
static const char *brightness[2][3] = {{"backlight_control", "+5", NULL}, {"backlight_control", "-5", NULL}};
// Volume Commands
static const char *volume[3][4] = { {
"amixer", "set", "Master", "10%+"
},{
"amixer", "set", "Master", "10%-"
},{
"amixer", "set", "Master", "toggle"
}
};
static const char *brightness[3][4] = { {"xbacklight", "-inc", "5"}, {"xbacklight", "-dec", "5"} };
static const char *volume[3][4] = { {"pamixer", "-i", "10"}, {"pamixer", "-d", "10"}, {"pamixer", "--toggle-mute"} };
static const char *xkbmapus[] = { "setxkbmap", "us", NULL };
static const char *xkbmapcz[] = { "setxkbmap", "cz", "qwerty", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } },
{ 0, 233, spawn, {.v = brightness[0]} },
{ 0, 232, spawn, {.v = brightness[1]} },
{ 0, 123, spawn, {.v = volume[0]} },
{ 0, 122, spawn, {.v = volume[1]} },
{ 0, 121, spawn, {.v = volume[2]} },
/* { MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } }, */
{ MODKEY|ShiftMask, 46, spawn, SHCMD("setxkbmap us; slock") },
{ 0, 233, spawn, {.v = brightness[0]} },
{ 0, 232, spawn, {.v = brightness[1]} },
{ 0, 123, spawn, {.v = volume[0]} },
{ 0, 122, spawn, {.v = volume[1]} },
{ 0, 121, spawn, {.v = volume[2]} },
{ MODKEY|ShiftMask, 65, spawn, SHCMD("setxkbmap -query | grep 'us' && setxkbmap cz qwerty || setxkbmap us")},
{ MODKEY|ShiftMask, 156, spawn, SHCMD("setxkbmap -query | grep 'us' && setxkbmap cz qwerty || setxkbmap us")},
{ MODKEY, 33, spawn, {.v = dmenucmd } }, // p
{ MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return
{ MODKEY, 56, togglebar, {0} }, // b
@@ -111,7 +112,12 @@ static const Key keys[] = {
TAGKEYS( 17, 7) // 8
TAGKEYS( 18, 8) // 9
{ MODKEY|ShiftMask, 24, quit, {0} }, // q
{ MODKEY, 127, spawn, SHCMD("setxkbmap us; slock & sleep 0.2; loginctl suspend") }, // Pause
{ 0, 107, spawn, SHCMD("shotgun $(slop -f '-i %i -g %g') - | tee /home/$USER/Pictures/Screenshots/$(date +'%F_%T').png | xclip -t 'image/png' -selection c") },
{ MODKEY, 30, spawn, {.v = xkbmapus } },
{ MODKEY, 54, spawn, {.v = xkbmapcz } },
};
/* button definitions */

BIN
drw.o

Binary file not shown.

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.

BIN
util.o

Binary file not shown.