Colors + work scratchpad.
This commit is contained in:
parent
a85fe068bd
commit
f9fe3327a0
@ -343,9 +343,9 @@
|
||||
#icon = /path/to/icon
|
||||
|
||||
[urgency_critical]
|
||||
background = "#fd4285"
|
||||
foreground = "#161616"
|
||||
frame_color = "#fd4285"
|
||||
background = "#770000"
|
||||
foreground = "#ffffff"
|
||||
frame_color = "#770000"
|
||||
timeout = 2
|
||||
# Icon for notifications with critical urgency, uncomment to enable
|
||||
#icon = /path/to/icon
|
||||
|
@ -13,5 +13,5 @@ for battery in /sys/class/power_supply/BAT?*; do
|
||||
esac
|
||||
capacity=$(cat "$battery/capacity")
|
||||
# Will make a warn variable if discharging and low
|
||||
[ "$capacity" -le 20 ] && printf "^c#161616^^b#fd4285^${status} ${capacity}%%^d^" || printf "${status} ${capacity}%%"
|
||||
[ "$capacity" -le 20 ] && printf "^c#ffffff^^b#770000^${status} ${capacity}%%^d^" || printf "${status} ${capacity}%%"
|
||||
done && exit 0
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
[ $(pgrep -x emerge) ] && printf "^c#161616^^b#9a37ff^(emerging)^d^" || printf ""
|
||||
[ $(pgrep -x emerge) ] && printf "^c#ffffff^^b#9a37ff^(emerging)^d^" || printf ""
|
||||
|
@ -13,4 +13,4 @@ for i in $(cat ~/.local/share/passwords); do
|
||||
[ $count -ne 0 ] && export unread=$((unread + count))
|
||||
fi
|
||||
done
|
||||
[ "$unread" -eq 0 ] && printf "" || printf "^c#161616^^b#00bdff^\ue0e1 new mail: ${unread}^d^"
|
||||
[ "$unread" -eq 0 ] && printf "" || printf "^c#ffffff^^b#005577^\ue0e1 new mail: ${unread}^d^"
|
||||
|
@ -17,12 +17,12 @@ else
|
||||
volmute=$(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}')
|
||||
micmute=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}')
|
||||
if [ "$volmute" = yes ] && [ "$micmute" = yes ]; then
|
||||
printf "^c#161616^^b#fd4285^\ue02b mute \ue04f mute^d^"
|
||||
printf "^c#ffffff^^b#770000^\ue02b mute \ue04f mute^d^"
|
||||
elif [ "$vol" -eq 0 ] && [ "$mic" -eq 0 ]; then
|
||||
printf "^c#161616^^b#fd4285^\ue02b mute \ue04f mute^d^"
|
||||
printf "^c#ffffff^^b#770000^\ue02b mute \ue04f mute^d^"
|
||||
else
|
||||
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && volinfo="^c#161616^^b#fd4285^\ue04f mute^d^" || volinfo="\ue050 ${vol}%%"
|
||||
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micinfo="^c#161616^^b#fd4285^\ue02b mute^d^" || micinfo="\ue029 ${mic}%%"
|
||||
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && volinfo="^c#ffffff^^b#770000^\ue04f mute^d^" || volinfo="\ue050 ${vol}%%"
|
||||
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micinfo="^c#ffffff^^b#770000^\ue02b mute^d^" || micinfo="\ue029 ${mic}%%"
|
||||
printf "${micinfo} ${volinfo}"
|
||||
fi
|
||||
fi
|
||||
|
@ -13,8 +13,8 @@ static const char *prompt = NULL; /* -p option; prompt to the left of
|
||||
static const char *colors[SchemeLast][2] = {
|
||||
/* fg bg */
|
||||
[SchemeNorm] = { "#161616", "#c7c7c7" },
|
||||
[SchemeSel] = { "#161616", "#00bdff" },
|
||||
[SchemeOut] = { "#000000", "#00ffff" },
|
||||
[SchemeSel] = { "#ffffff", "#005577" },
|
||||
[SchemeOut] = { "#000000", "#005577" },
|
||||
};
|
||||
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
||||
static unsigned int lines = 0;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
/* appearance */
|
||||
static const unsigned int borderpx = 5; /* border pixel of windows */
|
||||
static const unsigned int borderpx = 7; /* border pixel of windows */
|
||||
static const int startwithgaps = 1; /* 1 means gaps are used by default */
|
||||
static const unsigned int gappx = 15; /* default gap between windows in pixels */
|
||||
static const unsigned int snap = 32; /* snap pixel */
|
||||
@ -18,9 +18,9 @@ static const char normfgcolor[] = "#bbbbbb";
|
||||
static const char col_fg[] = "#161616";
|
||||
static const char col_bg[] = "#c7c7c7";
|
||||
static const char col_bd[] = "#161616";
|
||||
static const char col_fg_sel[] = "#161616";
|
||||
static const char col_bg_sel[] = "#00bdff";
|
||||
static const char col_bd_sel[] = "#ffffff";
|
||||
static const char col_fg_sel[] = "#ffffff";
|
||||
static const char col_bg_sel[] = "#005577";
|
||||
static const char col_bd_sel[] = "#005577";
|
||||
static const char *colors[][3] = {
|
||||
/* fg bg border */
|
||||
[SchemeNorm] = { col_fg, col_bg, col_bd },
|
||||
@ -32,9 +32,11 @@ typedef struct {
|
||||
const void *cmd;
|
||||
} Sp;
|
||||
const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL };
|
||||
const char *spcmd2[] = {"st", "-n", "spwork", "-g", "120x34", NULL };
|
||||
static Sp scratchpads[] = {
|
||||
/* name cmd */
|
||||
{"spterm", spcmd1},
|
||||
{"spwork", spcmd2},
|
||||
};
|
||||
|
||||
/* tagging */
|
||||
@ -53,6 +55,7 @@ static const Rule rules[] = {
|
||||
{ NULL, "mutt", NULL, 1 << 3, 0, 1, 1, -1 },
|
||||
{ NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
|
||||
{ NULL, "spterm", NULL, SPTAG(0), 1, 1, 0, -1 },
|
||||
{ NULL, "spwork", NULL, SPTAG(1), 1, 1, 0, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
@ -83,9 +86,6 @@ static const Layout layouts[] = {
|
||||
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||
|
||||
/* commands */
|
||||
static const char *termcmd[] = { "st", NULL };
|
||||
|
||||
#include <X11/XF86keysym.h>
|
||||
|
||||
static Key keys[] = {
|
||||
@ -103,13 +103,14 @@ static Key keys[] = {
|
||||
/* apps n'shit */
|
||||
//{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY, XK_Return, spawn, SHCMD("BROWSER=firefox st") },
|
||||
{ SHTKEY, XK_Return, spawn, SHCMD("BROWSER=workfx st -n f_work") },
|
||||
{ SHTKEY, XK_Return, spawn, SHCMD("BROWSER=workfx st -n stwork") },
|
||||
{ MODKEY, XK_space, spawn, SHCMD("dmenu_run -c -i -l 20") },
|
||||
{ MODKEY, XK_i, spawn, SHCMD("scrot -f -s 'scrot_%Y-%m-%d_%H-%M-%S_%s.png'") },
|
||||
{ SHTKEY, XK_i, spawn, SHCMD("scrot 'scrot_%Y-%m-%d_%H-%M-%S_%s.png'") },
|
||||
{ MODKEY, XK_m, spawn, SHCMD("pgrep -x neomutt > /dev/null || st -n mutt -e neomutt") },
|
||||
{ MODKEY, XK_q, killclient, {0} },
|
||||
{ MODKEY, XK_e, togglescratch, {.ui = 0 } },
|
||||
{ SHTKEY, XK_e, togglescratch, {.ui = 1 } },
|
||||
/* service controls */
|
||||
{ CTRKEY, XK_a, spawn, SHCMD("dmenu-audio") },
|
||||
{ CTRKEY, XK_b, spawn, SHCMD("dmenu-bluetooth") },
|
||||
|
Loading…
Reference in New Issue
Block a user