Updated
This commit is contained in:
parent
6e03958841
commit
6cda9bba33
BIN
Screenshot.png
BIN
Screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 1.9 MiB |
4
Xinitrc
Normal file
4
Xinitrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||||
|
xrandr --auto
|
||||||
|
exec dwm
|
18
config.h
18
config.h
@ -1,5 +1,5 @@
|
|||||||
static const unsigned int borderpx = 4; /* border pixel of windows */
|
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||||
static const unsigned int gappx = 20; /* gaps between windows */
|
static const unsigned int gappx = 0; /* gaps between windows */
|
||||||
static const unsigned int snap = 32; /* snap pixel */
|
static const unsigned int snap = 32; /* snap pixel */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
@ -20,8 +20,7 @@ static const char *colors[][3] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };*/
|
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||||
static const char *tags[] = { "一", "二", "三", "四", "五", "六", "七", "八", "九" };
|
|
||||||
|
|
||||||
static const Rule rules[] = {
|
static const Rule rules[] = {
|
||||||
{ "Opera", NULL, NULL, 1 << 1, False, 0 },
|
{ "Opera", NULL, NULL, 1 << 1, False, 0 },
|
||||||
@ -31,6 +30,7 @@ static const Rule rules[] = {
|
|||||||
{ "Lutris", NULL, NULL, 1 << 3, False, 0 },
|
{ "Lutris", NULL, NULL, 1 << 3, False, 0 },
|
||||||
{ "League of Legends", NULL, NULL, 1 << 3, True, 0 },
|
{ "League of Legends", NULL, NULL, 1 << 3, True, 0 },
|
||||||
{ "TeamSpeak 3", NULL, NULL, 1 << 3, False, 0 },
|
{ "TeamSpeak 3", NULL, NULL, 1 << 3, False, 0 },
|
||||||
|
{ "discord", NULL, NULL, 1 << 4, False, 0 },
|
||||||
{ "keepassxc", NULL, NULL, 1 << 7, False, 0 },
|
{ "keepassxc", NULL, NULL, 1 << 7, False, 0 },
|
||||||
{ "obs", NULL, NULL, 1 << 8, False, 0 },
|
{ "obs", NULL, NULL, 1 << 8, False, 0 },
|
||||||
};
|
};
|
||||||
@ -57,7 +57,12 @@ static const Layout layouts[] = {
|
|||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||||
static const char *dmenucmd[] = { "dmenu_run", NULL };
|
static const char *dmenucmd[] = { "dmenu_run", NULL };
|
||||||
static const char *termcmd[] = { "st","-ce", "/bin/zsh" , NULL };
|
static const char *termcmd[] = { "st","-ce", "/bin/zsh" , NULL };
|
||||||
static const char *print_screen_cmd[] = { "scrot", "%Y-%m-%d-%H%M%S.png", "-e", "mv $f ~/Screenshots", NULL };
|
/*static const char *print_screen_cmd[] = { "scrot", "%Y-%m-%d-%H%M%S.png", "-e", "mv $f ~/Screenshots", NULL };*/
|
||||||
|
/*static const char *print_screen_cmd[] = { "gnome-screenshot", "-f", "/home/yorune/Screenshots/`date +%Y%m%d-%H.%M.%S.png`", NULL };
|
||||||
|
static const char *print_screen_cmd_area[] = { "gnome-screenshot", "--area", "-f", "/home/yorune/Screenshots/`date +%Y%m%d-%H.%M.%S.png`", NULL };
|
||||||
|
*/
|
||||||
|
static const char *print_screen_cmd[] = { "screenshot", NULL };
|
||||||
|
static const char *print_screen_cmd_area[] = { "screenshot-area", NULL };
|
||||||
static const char *cmdlock[] = { "slock", NULL };
|
static const char *cmdlock[] = { "slock", NULL };
|
||||||
static const char *dwmkill[] = { "dwm-kill", NULL };
|
static const char *dwmkill[] = { "dwm-kill", NULL };
|
||||||
static const char *cmusshell[] = { "st", "-ce", "cmus-shell", NULL };
|
static const char *cmusshell[] = { "st", "-ce", "cmus-shell", NULL };
|
||||||
@ -84,6 +89,7 @@ static Key keys[] = {
|
|||||||
{ MODKEY, XK_F3, spawn, SHCMD ("ponymix increase 5")},
|
{ MODKEY, XK_F3, spawn, SHCMD ("ponymix increase 5")},
|
||||||
{ MODKEY, XK_F10, spawn, {.v = screenswitcher} },
|
{ MODKEY, XK_F10, spawn, {.v = screenswitcher} },
|
||||||
{0, XK_Print, spawn, {.v = print_screen_cmd } },
|
{0, XK_Print, spawn, {.v = print_screen_cmd } },
|
||||||
|
{ MODKEY, XK_Print, spawn, {.v = print_screen_cmd_area } },
|
||||||
{ MODKEY, XK_l, spawn, {.v = cmdlock } },
|
{ MODKEY, XK_l, spawn, {.v = cmdlock } },
|
||||||
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
@ -118,10 +124,10 @@ static Key keys[] = {
|
|||||||
{ 0, 0x1008ff17, spawn, {.v = cmusnext }},
|
{ 0, 0x1008ff17, spawn, {.v = cmusnext }},
|
||||||
{ 0, 0x1008ff16, spawn, {.v = cmusprev }},
|
{ 0, 0x1008ff16, spawn, {.v = cmusprev }},
|
||||||
/*{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },*/
|
/*{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },*/
|
||||||
/*{ MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[1]} },*/
|
|
||||||
/*{ MODKEY, XK_f, setlayout, {.v = &layouts[2]} },*/
|
/*{ MODKEY, XK_f, setlayout, {.v = &layouts[2]} },*/
|
||||||
/* { MODKEY|ShiftMask, XK_q, spawn, {.v = dwmkill } }, */
|
/* { MODKEY|ShiftMask, XK_q, spawn, {.v = dwmkill } }, */
|
||||||
/*{ MODKEY, XK_space, setlayout, {0} },*/
|
/*{ MODKEY, XK_space, setlayout, {0} },*/
|
||||||
|
/*{ MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[1]} },*/
|
||||||
TAGKEYS( XK_1, 0)
|
TAGKEYS( XK_1, 0)
|
||||||
TAGKEYS( XK_2, 1)
|
TAGKEYS( XK_2, 1)
|
||||||
TAGKEYS( XK_3, 2)
|
TAGKEYS( XK_3, 2)
|
||||||
|
13
dwm_status
13
dwm_status
@ -15,7 +15,7 @@ dunst -config&
|
|||||||
/usr/bin/ibus-daemon -d&
|
/usr/bin/ibus-daemon -d&
|
||||||
transmission-daemon&
|
transmission-daemon&
|
||||||
#pl&
|
#pl&
|
||||||
(sleep 30 && getforecast)&
|
#(sleep 30 && getforecast)&
|
||||||
|
|
||||||
|
|
||||||
print_torrent(){
|
print_torrent(){
|
||||||
@ -81,18 +81,19 @@ batLevel() {
|
|||||||
hash acpi || return 0
|
hash acpi || return 0
|
||||||
onl="$(acpi -V | grep "on-line")"
|
onl="$(acpi -V | grep "on-line")"
|
||||||
charge="$(cat /sys/class/power_supply/BAT*/capacity)"
|
charge="$(cat /sys/class/power_supply/BAT*/capacity)"
|
||||||
|
time="$(awk '{print $5}' <(acpi))"
|
||||||
|
|
||||||
# Determine battery glyph by percentage range
|
# Determine battery glyph by percentage range
|
||||||
if [[ -z $onl && ${charge} -gt 80 ]]; then
|
if [[ -z $onl && ${charge} -gt 80 ]]; then
|
||||||
echo -e " ${charge}%"
|
echo -e " ${charge}% ${time}"
|
||||||
elif [[ -z $onl && ${charge} -le 80 && ${charge} -gt 60 ]]; then
|
elif [[ -z $onl && ${charge} -le 80 && ${charge} -gt 60 ]]; then
|
||||||
echo -e " ${charge}%"
|
echo -e " ${charge}% ${time}"
|
||||||
elif [[ -z $onl && ${charge} -le 60 && ${charge} -gt 40 ]]; then
|
elif [[ -z $onl && ${charge} -le 60 && ${charge} -gt 40 ]]; then
|
||||||
echo -e " ${charge}%"
|
echo -e " ${charge}% ${time}"
|
||||||
elif [[ -z $onl && ${charge} -le 40 && ${charge} -gt 20 ]]; then
|
elif [[ -z $onl && ${charge} -le 40 && ${charge} -gt 20 ]]; then
|
||||||
echo -e " ${charge}%"
|
echo -e " ${charge}% ${time}"
|
||||||
elif [[ -z $onl && ${charge} -le 20 ]]; then
|
elif [[ -z $onl && ${charge} -le 20 ]]; then
|
||||||
echo -e " ${charge}%"
|
echo -e " ${charge}% ${time}"
|
||||||
# If charging, use animated glyph
|
# If charging, use animated glyph
|
||||||
else
|
else
|
||||||
echo -e ""
|
echo -e ""
|
||||||
|
Loading…
Reference in New Issue
Block a user