Minor edits.

This commit is contained in:
Derek Taylor
2019-10-16 18:46:40 -05:00
parent b1963fa820
commit fc97828310
16 changed files with 88 additions and 73 deletions

View File

@@ -269,7 +269,7 @@ globalkeys = my_table.join(
-- dmenu
awful.key({ altkey, "Control" }, "Return",
function ()
awful.spawn(string.format("dmenu_run -i -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -fn 'UbuntuMono Nerd Font:bold:pixelsize=14'",
awful.spawn(string.format("dmenu_run -i -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -fn 'Mononoki Nerd Font:bold:pixelsize=14'",
beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus))
end,
{description = "show dmenu", group = "hotkeys"}),
@@ -578,7 +578,7 @@ globalkeys = my_table.join(
{description = "show the menubar", group = "super"})
--]]
awful.key({ altkey }, "x",
awful.key({ altkey, "Shift" }, "x",
function ()
awful.prompt.run {
prompt = "Run Lua code: ",

View File

@@ -16,19 +16,19 @@ local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility
local theme = {}
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/powerarrow-blue"
theme.wallpaper = theme.dir .. "/starwars.jpg"
theme.font = "UbuntuMono Nerd Font 11"
theme.taglist_font = "Droid Sans 7"
theme.fg_normal = "#FEFEFE"
theme.font = "Mononoki Nerd Font 9"
theme.taglist_font = "Droid Sans Bold 7"
theme.fg_normal = "#ffffff"
theme.fg_focus = "#A77AC4"
theme.fg_urgent = "#b74822"
theme.bg_normal = "#292d3e"
theme.bg_focus = "#892f4e"
theme.bg_normal = "#282a36"
theme.bg_focus = "#FF79C6"
theme.bg_urgent = "#3F3F3F"
theme.taglist_fg_focus = "#ffffff"
theme.taglist_fg_focus = "#282a36"
theme.tasklist_bg_focus = "#000000"
theme.tasklist_fg_focus = "#A77AC4"
theme.border_width = 2
theme.border_normal = "#292D3E"
theme.border_normal = "#282a36"
theme.border_focus = "#F07178"
theme.border_marked = "#CC9393"
theme.titlebar_bg_focus = "#3F3F3F"
@@ -115,7 +115,7 @@ local clock = awful.widget.watch(
theme.cal = lain.widget.cal({
attach_to = { clock },
notification_preset = {
font = "UbuntuMono Nerd Font 11",
font = "Mononoki Nerd Font 11",
fg = theme.fg_normal,
bg = theme.bg_normal
}
@@ -239,7 +239,7 @@ Copy/paste the city code in the URL to this file in city_id
local weathericon = wibox.widget.imagebox(theme.widget_weather)
theme.weather = lain.widget.weather({
city_id = 2803138, -- placeholder (Belgium)
notification_preset = { font = "UbuntuMono Nerd Font 11", fg = theme.fg_normal },
notification_preset = { font = "Mononoki Nerd Font 11", fg = theme.fg_normal },
weather_na_markup = markup.fontfg(theme.font, "#ffffff", "N/A "),
settings = function()
descr = weather_now["weather"][1]["description"]:lower()

View File

@@ -13,9 +13,13 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t
, persistent = True
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
, commands = [ Run Date "%a, %b %d %Y, %H:%M:%S" "date" 10
, Run Network "enp4s0" ["-t", "<icon=net_up_20.xpm/>up <rxbar> <icon=net_down_20.xpm/>dn <txbar>"] 10
, Run Cpu ["-t", "<icon=cpu_20.xpm/> cpu <bar> (<total>%)","-H","50","--high","red"] 10
, Run Memory ["-t", "<icon=memory-icon_20.xpm/> mem <usedbar> (<usedratio>%)"] 10
, Run DiskU [("/", "<icon=harddisk-icon_20.xpm/> hdd <usedbar> (<used>)")] [] 3600
, Run UnsafeStdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = "%UnsafeStdinReader% }{ <fc=#A0522D> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> </fc> "
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
}

View File

@@ -13,9 +13,13 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t
, persistent = True
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
, commands = [ Run Date "%a, %b %d %Y, %H:%M:%S" "date" 10
, Run Network "enp4s0" ["-t", "<icon=net_up_20.xpm/>up <rxbar> <icon=net_down_20.xpm/>dn <txbar>"] 10
, Run Cpu ["-t", "<icon=cpu_20.xpm/> cpu <bar> (<total>%)","-H","50","--high","red"] 10
, Run Memory ["-t", "<icon=memory-icon_20.xpm/> mem <usedbar> (<usedratio>%)"] 10
, Run DiskU [("/", "<icon=harddisk-icon_20.xpm/> hdd <usedbar> (<used>)")] [] 3600
, Run UnsafeStdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = "%UnsafeStdinReader% }{ <fc=#A0522D> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> </fc> "
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
}

View File

@@ -21,5 +21,5 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t
]
, sepChar = "%"
, alignSep = "}{"
, template = "%UnsafeStdinReader% }{ <fc=#A0522D> <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> </fc> "
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
}

View File

@@ -8,7 +8,7 @@
# Dmenu script for editing some of my more frequently edited config files.
declare -nc options=(" awesome
declare options=(" awesome
bash
bspwm
dwm
@@ -31,47 +31,47 @@ choice=$(echo -e "${options[@]}" | dmenu -i -p 'Edit a config file: ')
echo "Program terminated."
fi
if [ "$choice" == ' awesome ' ]; then
exec emacsclient -nc '~/.config/awesome/rc.lua'
exec emacsclient -c '~/.config/awesome/rc.lua'
fi
if [ "$choice" == ' bash ' ]; then
exec emacsclient -nc '~/.bashrc'
exec emacsclient -c '~/.bashrc'
fi
if [ "$choice" == ' bspwm ' ]; then
exec emacsclient -nc '~/.config/bspwm/bspwmrc'
exec emacsclient -c '~/.config/bspwm/bspwmrc'
fi
if [ "$choice" == ' dwm ' ]; then
exec emacsclient -nc '~/dwm/config.h'
exec emacsclient -c '~/dwm/config.h'
fi
if [ "$choice" == ' emacs ' ]; then
exec emacsclient -nc '~/.emacs.d/init.el'
exec emacsclient -c '~/.emacs.d/init.el'
fi
if [ "$choice" == ' herbstluftwm ' ]; then
exec emacsclient -nc '~/.config/herbstluftwm/autostart'
exec emacsclient -c '~/.config/herbstluftwm/autostart'
fi
if [ "$choice" == ' i3 ' ]; then
exec emacsclient -nc '~/.i3/config'
exec emacsclient -c '~/.i3/config'
fi
if [ "$choice" == ' polybar ' ]; then
exec emacsclient -nc '~/.config/polybar/config'
exec emacsclient -c '~/.config/polybar/config'
fi
if [ "$choice" == ' qtile ' ]; then
exec emacsclient -nc '~/.config/qtile/config.py'
exec emacsclient -c '~/.config/qtile/config.py'
fi
if [ "$choice" == ' st ' ]; then
exec emacsclient -nc '~/st/config.h'
exec emacsclient -c '~/st/config.h'
fi
if [ "$choice" == ' sxhkd ' ]; then
exec emacsclient -nc '~/.config/sxhkd/sxhkdrc'
exec emacsclient -c '~/.config/sxhkd/sxhkdrc'
fi
if [ "$choice" == ' vim ' ]; then
exec emacsclient -nc '~/.vimrc'
exec emacsclient -c '~/.vimrc'
fi
if [ "$choice" == ' xmobar ' ]; then
exec emacsclient -nc '~/.config/xmobar/xmobarrc2'
exec emacsclient -c '~/.config/xmobar/xmobarrc2'
fi
if [ "$choice" == ' xmonad ' ]; then
exec emacsclient -nc '~/.xmonad/xmonad.hs'
exec emacsclient -c '~/.xmonad/xmonad.hs'
fi
if [ "$choice" == ' zsh ' ]; then
exec emacsclient -nc '~/.zshrc'
exec emacsclient -c '~/.zshrc'
fi

View File

@@ -24,7 +24,9 @@
(quote
(("gnu" . "http://elpa.gnu.org/packages/")
("melpa-stable" . "http://stable.melpa.org/packages/"))))
'(package-selected-packages (quote (minimap lua-mode haskell-mode ##)))
'(package-selected-packages
(quote
(rainbow-mode pdf-tools emojify minimap lua-mode haskell-mode ##)))
'(scroll-bar-mode nil)
'(tool-bar-mode nil)
'(tooltip-mode nil))
@@ -32,18 +34,22 @@
(add-to-list 'load-path "/home/dt/.emacs.d/elpa/which-key-3.3.0/which-key.el")
(require 'which-key)
(which-key-mode)
(require 'rainbow-mode)
(use-package rainbow-mode
:ensure t
:config
(setq rainbow-x-colors nil)
(add-hook 'prog-mode-hook 'rainbow-mode))
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'dracula t)
(add-hook 'after-init-hook #'global-emojify-mode)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:family "mononoki Nerd Font Mono" :foundry "UKWN" :slant normal :weight normal :height 120 :width normal))))
'(minimap-active-region-background ((t (:background "#303342"))))
'(powerline-grey22-white ((t (:background "gray22" :foreground "white" :box nil))) t)
'(powerline-grey40-white ((t (:background "dark magenta" :foreground "white" :box nil))) t))
'(default ((t (:family "mononoki Nerd Font Mono" :foundry "UKWN" :slant normal :weight normal :height 120 :width normal)))))
;;; Keybindings
(global-set-key (kbd "C->") 'indent-rigidly-right-to-tab-stop) ; Indent selection by one tab length

View File

@@ -111,7 +111,7 @@ main = do
---AUTOSTART
------------------------------------------------------------------------
myStartupHook = do
spawnOnce "urxvtd &"
--spawnOnce "emacs --daemon &"
spawnOnce "nitrogen --restore &"
spawnOnce "compton --config /home/dt/.config/compton/compton.conf &"
setWMName "LG3D"
@@ -148,21 +148,21 @@ spawnSelected' lst = gridselect conf lst >>= flip whenJust spawn
---KEYBINDINGS
------------------------------------------------------------------------
myKeys =
-- Xmonad
--- Xmonad
[ ("M-C-r", spawn "xmonad --recompile") -- Recompiles xmonad
, ("M-S-r", spawn "xmonad --restart") -- Restarts xmonad
, ("M-S-q", io exitSuccess) -- Quits xmonad
-- Windows
--- Windows
, ("M-S-c", kill1) -- Kill the currently focused client
, ("M-S-a", killAll) -- Kill all the windows on current workspace
-- Floating windows
--- Floating windows
, ("M-<Delete>", withFocused $ windows . W.sink) -- Push floating window back to tile.
, ("M-S-<Delete>", sinkAll) -- Push ALL floating windows back to tile.
-- Grid Select
--- Grid Select
, (("M-S-t"), spawnSelected'
[ ("Audacity", "audacity")
, ("Deadbeef", "deadbeef")
@@ -185,7 +185,7 @@ myKeys =
, ("M-S-g", goToSelected $ mygridConfig myColorizer)
, ("M-S-b", bringSelected $ mygridConfig myColorizer)
-- Windows navigation
--- Windows navigation
, ("M-m", windows W.focusMaster) -- Move focus to the master window
, ("M-j", windows W.focusDown) -- Move focus to the next window
, ("M-k", windows W.focusUp) -- Move focus to the prev window
@@ -213,7 +213,7 @@ myKeys =
, ("M-C-<Right>", sendMessage (DecreaseRight 10)) -- Decrease size of focused window right
, ("M-C-<Left>", sendMessage (DecreaseLeft 10)) -- Decrease size of focused window left
-- Layouts
--- Layouts
, ("M-<Space>", sendMessage NextLayout) -- Switch to next layout
, ("M-S-<Space>", sendMessage ToggleStruts) -- Toggles struts
, ("M-S-n", sendMessage $ Toggle NOBORDERS) -- Toggles noborder
@@ -234,27 +234,27 @@ myKeys =
, ("M-S-;", sendMessage zoomReset)
, ("M-;", sendMessage ZoomFullToggle)
-- Workspaces
--- Workspaces
, ("M-<KP_Add>", moveTo Next nonNSP) -- Go to next workspace
, ("M-<KP_Subtract>", moveTo Prev nonNSP) -- Go to previous workspace
, ("M-S-<KP_Add>", shiftTo Next nonNSP >> moveTo Next nonNSP) -- Shifts focused window to next workspace
, ("M-S-<KP_Subtract>", shiftTo Prev nonNSP >> moveTo Prev nonNSP) -- Shifts focused window to previous workspace
-- Scratchpads
--- Scratchpads
, ("M-C-<Return>", namedScratchpadAction myScratchPads "terminal")
, ("M-C-c", namedScratchpadAction myScratchPads "cmus")
-- Open Terminal
--- Open Terminal
, ("M-<Return>", spawn myTerminal)
-- Dmenu Scripts (Alt+Ctr+Key)
--- Dmenu Scripts (Alt+Ctr+Key)
, ("M1-C-<Return>", spawn "dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'")
, ("M1-C-e", spawn "./.dmenu/dmenu-edit-configs.sh")
, ("M1-C-m", spawn "./.dmenu/dmenu-sysmon.sh")
, ("M1-C-p", spawn "passmenu")
, ("M1-C-s", spawn "./.dmenu/dmenu-surfraw.sh")
-- My Applications (Super+Alt+Key)
--- My Applications (Super+Alt+Key)
, ("M-M1-a", spawn (myTerminal ++ " -e ncpamixer"))
, ("M-M1-b", spawn ("surf www.youtube.com/c/DistroTube/"))
, ("M-M1-c", spawn (myTerminal ++ " -e cmus"))
@@ -270,7 +270,7 @@ myKeys =
, ("M-M1-w", spawn (myTerminal ++ " -e wopr report.xml"))
, ("M-M1-y", spawn (myTerminal ++ " -e youtube-viewer"))
-- Multimedia Keys
--- Multimedia Keys
, ("<XF86AudioPlay>", spawn "cmus toggle")
, ("<XF86AudioPrev>", spawn "cmus prev")
, ("<XF86AudioNext>", spawn "cmus next")

View File

@@ -9,8 +9,8 @@ static const char *fonts[] = {
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
/* fg bg */
[SchemeNorm] = { "#bbc5ff", "#292d3e" },
[SchemeSel] = { "#292d3e", "#82aaff" },
[SchemeNorm] = { "#CAA7FA", "#282a36" },
[SchemeSel] = { "#282a36", "#ff79c6" },
[SchemeOut] = { "#000000", "#00ffff" },
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -88,40 +88,41 @@ unsigned int alpha = 0xf2;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
/* 8 normal colors */
"#292d3e",
"#f07178",
"#c3e88d",
"#ffcb6b",
"#82aaff",
"#c792ea",
"#89ddff",
"#d0d0d0",
"#282a36",
"#ff5555",
"#50fa7b",
"#f1fa8c",
"#bd93f9",
"#ff79c6",
"#8be9fd",
"#bbbbbb",
/* 8 bright colors */
"#434758",
"#ff8b92",
"#ddffa7",
"#ffe585",
"#9cc4ff",
"#e1acff",
"#a3f7ff",
"#ffffff",
"#44475a",
"#FF6E67",
"#5AF78E",
"#F4F99D",
"#CAA9FA",
"#FF92D0",
"#9AEDFE",
"#E6E6E6",
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"#bbc5ff",
"#292d3e",
"#282a36",
"#f8f8f2",
"#d7d7d7",
};
/*
* Default colors (colorname index)
* foreground, background, cursor, reverse cursor
*/
unsigned int defaultfg = 256;
unsigned int defaultbg = 257;
static unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
unsigned int defaultbg = 256;
unsigned int defaultfg = 257;
static unsigned int defaultcs = 258;
static unsigned int defaultrcs = 258;
/*
* Default shape of cursor