Rofi Launcher w/ Greenclip Manager
- Add greenclip daemon to autostart - Add background processes section to autostart - Remove references to dmenu - Add rofi run and clipboard shortcuts - Update man page to reference rofi instead of dmenu
This commit is contained in:
parent
0f49dbddfb
commit
a60b1c5d2f
12
autostart.sh
12
autostart.sh
@ -15,15 +15,21 @@ blueman-tray &
|
|||||||
# Network Manager Applet
|
# Network Manager Applet
|
||||||
nm-applet &
|
nm-applet &
|
||||||
|
|
||||||
|
# KDE Connect
|
||||||
|
kdeconnect-indicator &
|
||||||
|
|
||||||
|
########################
|
||||||
|
# Background Processes #
|
||||||
|
########################
|
||||||
# Deadd Notification Center
|
# Deadd Notification Center
|
||||||
deadd-notification-center &
|
deadd-notification-center &
|
||||||
|
|
||||||
|
# Greenclip
|
||||||
|
greenclip daemon &
|
||||||
|
|
||||||
# Redshift
|
# Redshift
|
||||||
redshift-gtk &
|
redshift-gtk &
|
||||||
|
|
||||||
# KDE Connect
|
|
||||||
kdeconnect-indicator &
|
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
# Cloud Drive Rsync #
|
# Cloud Drive Rsync #
|
||||||
#####################
|
#####################
|
||||||
|
8
config.h
8
config.h
@ -10,7 +10,6 @@ static const int showsystray = 1; /* 0 means no systray */
|
|||||||
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 */
|
||||||
static const char *fonts[] = { "monospace:size=12", "fontawesome:size=12" };
|
static const char *fonts[] = { "monospace:size=12", "fontawesome:size=12" };
|
||||||
static const char dmenufont[] = "monospace:size=12";
|
|
||||||
static const char col_gray1[] = "#282a36"; /* background color */
|
static const char col_gray1[] = "#282a36"; /* background color */
|
||||||
static const char col_gray2[] = "#6272a4"; /* inactive window border color */
|
static const char col_gray2[] = "#6272a4"; /* inactive window border color */
|
||||||
static const char col_gray3[] = "#f8f8f2"; /* font color */
|
static const char col_gray3[] = "#f8f8f2"; /* font color */
|
||||||
@ -59,13 +58,14 @@ static const Layout layouts[] = {
|
|||||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
static const char *rofiruncmd[] = { "rofi", "-show", "drun", NULL };
|
||||||
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 *roficlipcmd[] = { "rofi", "-show", "clipboard", NULL };
|
||||||
static const char *termcmd[] = { "alacritty", NULL };
|
static const char *termcmd[] = { "alacritty", NULL };
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_p, spawn, {.v = rofiruncmd } },
|
||||||
|
{ MODKEY, XK_c, spawn, {.v = roficlipcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||||
|
9
dwm.1
9
dwm.1
@ -70,9 +70,14 @@ Start
|
|||||||
.TP
|
.TP
|
||||||
.B Mod1\-p
|
.B Mod1\-p
|
||||||
Spawn
|
Spawn
|
||||||
.BR dmenu(1)
|
.BR rofi(1)
|
||||||
for launching other programs.
|
for launching other programs.
|
||||||
.TP
|
.TP
|
||||||
|
.B Mod1\-c
|
||||||
|
Spawn
|
||||||
|
.BR rofi(1)
|
||||||
|
for Greenclip clipboard manager
|
||||||
|
.TP
|
||||||
.B Mod1\-,
|
.B Mod1\-,
|
||||||
Focus previous screen, if any.
|
Focus previous screen, if any.
|
||||||
.TP
|
.TP
|
||||||
@ -176,7 +181,7 @@ This file is started before any autostart.sh; dwm waits for its termination.
|
|||||||
dwm is customized by creating a custom config.h and (re)compiling the source
|
dwm is customized by creating a custom config.h and (re)compiling the source
|
||||||
code. This keeps it fast, secure and simple.
|
code. This keeps it fast, secure and simple.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR dmenu (1),
|
.BR rofi (1),
|
||||||
.BR st (1)
|
.BR st (1)
|
||||||
.SH ISSUES
|
.SH ISSUES
|
||||||
Java applications which use the XToolkit/XAWT backend may draw grey windows
|
Java applications which use the XToolkit/XAWT backend may draw grey windows
|
||||||
|
Loading…
x
Reference in New Issue
Block a user